Home | History | Annotate | Download | only in sqlite3

Lines Matching refs:Sn

5 ]=1;s=y+65|0;o=b+504|0;f=b+508|0;m=y+240|0;k=0;h=-1;a:while(1){while(1){if(a[s>>0]|0){v=19;break a}g=d+k|0;if(!(a[g>>0]|0)){v=19;break a}c[o>>2]=g;g=yn(g,n)|0;c[f>>2]=g;k=g+k|0;if((k|0)>(l|0)){v=12;break a}g=c[n>>2]|0;if((g|0)==150){v=16;break a}else if((g|0)==1){h=g;v=17;break}else if((g|0)!=151){h=g;break}if(c[m>>2]|0){v=15;break a}}if((v|0)==17){v=0;c[p>>2]=d+k};c[x+0>>2]=c[o+0>>2];c[x+4>>2]=c[o+4>>2];Kn(t,h,x,b);h=c[n>>2]|0;if(c[z>>2]|0){v=19;break}}if((v|0)==12){c[z>>2]=18;v=19}else if((v|0)==15){ph(b,20384,x);c[z>>2]=9;v=19}else if((v|0)==16){ig(y,c[e>>2]|0);c[x>>2]=o;c[e>>2]=qh(y,20400,x)|0;f=1}if((v|0)==19){k=d+k|0;if((a[k>>0]|0)==0?(c[z>>2]|0)==0:0){if((h|0)!=1){c[x+0>>2]=c[o+0>>2];c[x+4>>2]=c[o+4>>2];Kn(t,1,x,b);c[p>>2]=k};c[x+0>>2]=c[o+0>>2];c[x+4>>2]=c[o+4>>2];Kn(t,0,x,b);f=0}else f=0}if((c[t>>2]|0)>-1)do Ln(t);while((c[t>>2]|0)>-1);Sc(t);a[q>>0]=r;if(!(a[s>>0]|0)){h=c[z>>2]|0;if(!((h|0)==101|(h|0)==0)){u=h;v=29}}else{c[z>>2]=7;u=7;v=29}if((v|0)==29?(w=b+4|0,(c[w>>2]|0)==0):0){if((u|0)!=516){h=u&255;if(h>>>0>26|(h|0)==2)h=16328;else h=c[15488+(h<<2)>>2]|0}else h=16344;c[x>>2]=h;$g(w,y,10344,x)}h=b+4|0;g=c[h>>2]|0;if(g){c[e>>2]=g;e=c[z>>2]|0;c[x>>2]=g;Zc(e,10344,x);c[h>>2]=0;f=f+1|0}h=b+8|0;g=c[h>>2]|0;if(((g|0)!=0?(c[b+64>>2]|0)>0:0)?(a[b+18>>0]|0)==0:0){Ll(g);c[h>>2]=0}if(!(a[b+18>>0]|0)){e=b+400|0;ig(y,c[e>>2]|0);c[e>>2]=0;c[b+396>>2]=0}Sc(c[b+520>>2]|0);if(!(a[b+451>>0]|0))gg(y,c[b+484>>2]|0);if(a[b+449>>0]|0)Mn(y,c[b+532>>2]|0);fg(y,c[b+488>>2]|0);h=c[b+444>>2]|0;k=b+472|0;g=c[k>>2]|0;if((h|0)>0)do{h=h+-1|0;ig(y,c[g+(h<<2)>>2]|0);g=c[k>>2]|0}while((h|0)>0);ig(y,g);h=b+404|0;g=c[h>>2]|0;if(g)do{c[h>>2]=c[g>>2];ig(y,g);g=c[h>>2]|0}while((g|0)!=0);h=b+524|0;g=c[h>>2]|0;if(g)do{c[h>>2]=c[g+72>>2];gg(y,g);g=c[h>>2]|0}while((g|0)!=0);if((f|0)>0?(c[z>>2]|0)==0:0)c[z>>2]=1}else{a[y+65>>0]=1;f=7}i=A;return f|0}function Ih(a){a=a|0;if(a){if(!((b[a+8>>1]&9312)==0?(c[a+24>>2]|0)==0:0))Mg(a);ig(c[a+32>>2]|0,a)}return}function Jh(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(!(c[d+252>>2]|0)){n=d+251|0;if(a[n>>0]|0)Sc(c[d+276>>2]|0);j=f&-8;h=(j|0)<5?0:j;i=(g|0)<0?0:g;if(!((h|0)==0|(i|0)==0))if(!e){f=c[3164]|0;if(f)jc[f&3]();f=_(h,i)|0;f=mg(f,((f|0)<0)<<31>>31)|0;g=c[3166]|0;if(g)jc[g&3]();if(!f)f=0;else i=(hc[c[8744+48>>2]&127](f)|0)/(j|0)|0}else f=e;else{h=0;f=0}g=d+276|0;c[g>>2]=f;m=d+272|0;c[m>>2]=0;b[d+248>>1]=h;if(!f){c[g>>2]=d;c[d+280>>2]=d;a[d+250>>0]=0;f=0}else{if((i|0)>0){g=_(h,i)|0;l=f+(_(h,i+-1|0)|0)|0;k=0;j=f;while(1){i=i+-1|0;c[j>>2]=k;if((i|0)<=0)break;else{k=j;j=j+h|0}}c[m>>2]=l;f=f+g|0}c[d+280>>2]=f;a[d+250>>0]=1;f=(e|0)==0&1}a[n>>0]=f;f=0}else f=5;return f|0}function Kh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();p=q;do if(!b)e=0;else{l=b+76|0;n=c[l>>2]|0;if(!((n|0)==1266094736|(n|0)==-1607883113|(n|0)==-264537850)){c[p>>2]=15248;Zc(21,15256,p);c[p>>2]=128509;c[p+4>>2]=10788;Zc(21,13648,p);e=21;break}m=b+20|0;e=c[m>>2]|0;a:do if((e|0)>0){n=b+16|0;f=c[n>>2]|0;h=0;do{g=c[f+(h<<4)+4>>2]|0;if(g)c[(c[g+4>>2]|0)+4>>2]=c[g>>2];h=h+1|0}while((h|0)!=(e|0));k=0;while(1){e=c[f+(k<<4)+12>>2]|0;if((e|0)!=0?(o=c[e+16>>2]|0,(o|0)!=0):0){e=o;do{f=c[e+8>>2]|0;b:do if(a[f+44>>0]&16){g=f+60|0;while(1){f=c[g>>2]|0;if(!f)break b;h=f+24|0;if((c[f>>2]|0)==(b|0))break;else g=h}c[g>>2]=c[h>>2];wn(f)}while(0);e=c[e>>2]|0}while((e|0)!=0)}e=k+1|0;if((e|0)>=(c[m>>2]|0))break a;f=c[n>>2]|0;k=e}}while(0);nl(b);Nn(b,68);if((d|0)==0?(Fl(b)|0)!=0:0){qg(b,5,16368,p);e=5;break}c[l>>2]=1691352191;Ig(b);e=0}while(0);i=q;return e|0}function Lh(a,b){a=a|0;b=b|0;if(((b*1e3|0)+1e3|0)>(c[a+492>>2]|0))b=0;else{b=c[a>>2]|0;nc[c[b+60>>2]&127](b,1e6)|0;b=1}return b|0}function Mh(d,f,g,h,k,l,m,n,o){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();t=v;do if(f){r=(l|0)!=0;p=(n|0)!=0;if(r)if(p|(m|0)!=0){u=8;break}else{p=0;q=0}else{q=(m|0)!=0;if(!(q|p^1)){u=8;break}}if(!(q&((r|p)^1)|(g|0)<-1|(g|0)>127)){p=f;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;q=p-f&1073741823;if(q>>>0<=255){s=h&2048;p=h&7;if((p|0)!=4){if((p|0)==5){p=Mh(d,f,g,s|1,k,l,m,n,o)|0;if(p)break;p=Mh(d,f,g,s|2,k,l,m,n,o)|0;if(!p)p=3;else break}}else p=2;r=p&255;h=Oh(d,f,q,g,r,0)|0;if(((h|0)!=0?(e[h+2>>1]&3|0)==(p|0):0)?(b[h>>1]|0)==(g|0):0){if(c[d+148>>2]|0){qg(d,5,15424,t);p=5;break}p=c[d+4>>2]|0;if(p)do{t=p+88|0;b[t>>1]=b[t>>1]|8;p=c[p+52>>2]|0}while((p|0)!=0)}p=Oh(d,f,q,g,r,1)|0;if(!p)p=7;else{Jl(d,p);if(o)c[o>>2]=(c[o>>2]|0)+1;c[p+32>>2]=o;o=p+2|0;b[o>>1]=e[o>>1]&3|s;c[p+12>>2]=l;c[p+16>>2]=m;c[p+20>>2]=n;c[p+4>>2]=k;b[p>>1]=g;p=0}}else u=8}else u=8}else u=8;while(0);if((u|0)==8){c[t>>2]=129075;c[t+4>>2]=10788;Zc(21,13648,t);p=21}i=v;return p|0}function Nh(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+48|0;if((i|0)>=(j|0))ba();k=l;g=k+0|0;h=g+40|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));c[k+32>>2]=d;Tg(k,e,f,2,0)|0;f=k+8|0;e=c[f>>2]|0;if(!((e&2|0)==0|(e&16711680|0)==65536))xn(k,1)|0;if(!(a[d+65>>0]|0))f=c[k+16>>2]|0;else{if(!((b[f>>1]&9312)==0?(c[k+24>>2]|0)==0:0))Mg(k);c[k+16>>2]=0;f=0}i=l;return f|0}function Oh(e,f,g,h,i,j){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0;n=((d[9328+(d[f>>0]|0)>>0]|0)+g|0)%23|0;o=e+336|0;l=Nk(o,n,f,g)|0;if(!l){m=0;k=0}else{m=0;k=0;do{q=On(l,h,i)|0;p=(q|0)>(m|0);m=p?q:m;k=p?l:k;l=c[l+8>>2]|0}while((l|0)!=0)}do if(!(j<<24>>24)){if((k|0)!=0?(c[e+24>>2]&2097152|0)==0:0){l=0;n=12;break}l=Nk(10840,n,f,g)|0;if(!l){m=0;n=8}else{m=0;do{p=On(l,h,i)|0;n=(p|0)>(m|0);m=n?p:m;k=n?l:k;l=c[l+8>>2]|0}while((l|0)!=0);n=8}}else n=8;while(0);do if((n|0)==8){l=j<<24>>24!=0;if(l&(m|0)<6){l=g+37|0;k=ih(e,l,0)|0;if(!k){n=14;break}bw(k|0,0,l|0)|0;l=k+36|0;c[k+24>>2]=l;b[k>>1]=h;b[k+2>>1]=i&255;gw(l|0,f|0,g|0)|0;a[k+(g+36)>>0]=0;jg(o,k);l=1}if(!k)n=14;else n=12}while(0);if((n|0)==12)if((c[k+16>>2]|0)==0?!((c[k+12>>2]|0)!=0|l):0)n=14;if((n|0)==14)k=0;return k|0}function Ph(b,d,e){b=b|0;d=d|0;e=e|0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();e=d;c[e>>2]=c[(c[b+4>>2]|0)+24>>2];e=Wc(15304,e)|0;c[b+20>>2]=1;a[b+25>>0]=1;Tg(c[b>>2]|0,e,-1,1,-1)|0;Sc(e);i=d;return}function Qh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if((a|0)<=(e|0)){e=c[3164]|0;if(e)jc[e&3]();Gf(b,d,0,0,0)|0;e=c[3166]|0;if(e)jc[e&3]()}return 0}function Rh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a:do if(d){e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;g=e-d&1073741823;f=c[b+20>>2]|0;e=f+-1|0;if((f|0)>0){h=e;f=(c[b+16>>2]|0)+(e<<4)|0;while(1){b=c[f>>2]|0;if(!b)e=0;else{e=b;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;e=e-b&1073741823}if((g|0)==(e|0)?($c(b,d)|0)==0:0){e=h;break a}e=h+-1|0;if((h|0)>0){h=e;f=f+-16|0}else break}}}else e=-1;while(0);return e|0}function Sh(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=b+20|0;i=c[q>>2]|0;if((i|0)>0){r=(e|0)==10;o=b+16|0;p=(f|0)==0;m=g;b=i;g=0;n=0;while(1){if((n|0)==(e|0)|r){j=c[(c[o>>2]|0)+(n<<4)+4>>2]|0;if(j){i=c[j+4>>2]|0;c[i+4>>2]=c[j>>2];if(!(a[i+20>>0]|0)){j=c[i>>2]|0;k=c[j+208>>2]|0;if(!k)k=0;else{if(p)i=0;else i=c[j+176>>2]|0;k=Pn(k,f,i,c[j+180>>2]|0,d[j+9>>0]|0,c[j+152>>2]|0,c[j+200>>2]|0,m,h)|0;b=c[q>>2]|0}}else k=6}else k=0;h=(k|0)==5;l=0;j=0;i=b;g=h?1:g;h=h?0:k}else{l=h;j=m;i=b;h=0}n=n+1|0;b=(h|0)==0;if(!((n|0)<(i|0)&b))break;else{m=j;h=l;b=i}}}else{b=1;g=0;h=0}return (b&(g|0)!=0?5:h)|0}function Th(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))ba();s=w;t=w+20|0;o=w+16|0;n=w+12|0;m=w+8|0;c[o>>2]=f;c[n>>2]=0;c[m>>2]=0;c[e>>2]=0;h=Hc()|0;do if(!h){if(!(1<<(f&7)&70)){c[s>>2]=130207;c[s+4>>2]=10788;Zc(21,13648,s);h=21;break}if((c[2187]|0)!=0&(f&32768|0)==0)l=(f&65536|0)==0?c[2188]|0:1;else l=0;if(!(f&262144)){if(c[2241]|0){f=f|131072;c[o>>2]=f}}else{f=f&-131073;c[o>>2]=f}f=f&-655129;c[o>>2]=f;v=mg(528,0)|0;a:do if(v){bw(v|0,0,528)|0;if(l)c[v+12>>2]=8;c[v+56>>2]=255;c[v+20>>2]=2;p=v+76|0;c[p>>2]=-264537850;q=v+16|0;c[q>>2]=v+456;k=v+88|0;l=11088;h=k+44|0;do{c[k>>2]=c[l>>2];k=k+4|0;l=l+4|0}while((k|0)<(h|0));c[v+132>>2]=0;a[v+63>>0]=1;a[v+67>>0]=-1;k=8920;r=c[k+4>>2]|0;l=v+40|0;c[l>>2]=c[k>>2];c[l+4>>2]=r;c[v+72>>2]=0;c[v+136>>2]=2147483647;c[v+24>>2]=9437264;l=v+428|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;r=v+308|0;c[r+0>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;c[r+12>>2]=0;Uh(v,11152,1,0,21,0)|0;Uh(v,11152,3,0,21,0)|0;Uh(v,11152,2,0,21,0)|0;Uh(v,13752,1,0,22,0)|0;Uh(v,13760,1,1,21,0)|0;r=v+65|0;if(!(a[r>>0]|0)){l=Zm(l,11152,s)|0;if(!l)l=0;else l=c[l+8>>2]|0;c[v+8>>2]=l;c[v+48>>2]=f;l=SnSn
8 function Pn(d,f,g,h,k,l,m,n,o){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;aa=i;i=i+160|0;if((i|0)>=(j|0))ba();O=aa+16|0;K=aa+152|0;M=aa+48|0;J=aa+40|0;N=aa+36|0;L=aa+32|0;R=aa+8|0;Q=aa;W=aa+28|0;_=aa+24|0;c[_>>2]=0;do if(!(a[d+46>>0]|0)){$=d+43|0;if((a[$>>0]|0)==0?(p=c[d+4>>2]|0,p=lc[c[(c[p>>2]|0)+56>>2]&31](p,1,1,10)|0,(p|0)!=0):0)break;Z=d+45|0;a[Z>>0]=1;a:do if(!f){t=0;X=11}else{r=d+4|0;p=(g|0)!=0;while(1){if(a[$>>0]|0)break;t=c[r>>2]|0;t=lc[c[(c[t>>2]|0)+56>>2]&31](t,0,1,10)|0;if(!(p&(t|0)==5)){X=9;break}if(!(hc[g&127](h)|0)){t=0;g=0;X=11;break a}}if((X|0)==9)if((t|0)==5){t=0;g=0;X=11;break}else if(t){Y=f;break}a[d+44>>0]=1;t=f;X=11}while(0);if((X|0)==11){Y=t;t=jq(d,_)|0}do if(!t){V=d+68|0;t=b[d+66>>1]|0;if((c[V>>2]|0)!=0?(U=t&65535,(U<<16&65536|U&65024|0)!=(l|0)):0){c[O>>2]=51863;c[O+4>>2]=10788;Zc(11,13600,O);q=11;break}S=t&65535;S=S<<16&65536|S&65024;U=d+32|0;T=(c[c[U>>2]>>2]|0)+96|0;w=c[V>>2]|0;b:do if((c[T>>2]|0)>>>0<w>>>0){H=(w+33|0)>>>12;I=H+1|0;l=w<<1;v=l+28+(H*20|0)|0;p=Pc(v)|0;c:do if(!p){t=7;p=0}else{bw(p|0,0,v|0)|0;v=p+4|0;c[v>>2]=I;l=Pc(w>>>0>4096?8192:l)|0;do if(l){G=p+8|0;u=0;while(1){t=Lo(d,u,J,L,N)|0;if(t){X=21;break}F=(c[L>>2]|0)+4|0;c[L>>2]=F;if((u|0)==(H|0)){E=c[N>>2]|0;t=E;E=w-E|0}else{t=c[N>>2]|0;E=(c[J>>2]|0)-F>>2}r=G+((c[v>>2]|0)*20|0)|0;D=r+(t<<1)|0;B=t+1|0;c[N>>2]=B;if((E|0)>0){y=0;do{b[r+(y+t<<1)>>1]=y;y=y+1|0}while((y|0)!=(E|0));c[O>>2]=0;c[K>>2]=0;z=M+0|0;y=z+104|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(y|0));A=0;do{c[O>>2]=1;z=r+(A+t<<1)|0;c[K>>2]=z;if(!(A&1)){x=1;y=0}else{y=0;do{kq(F,c[M+(y<<3)+4>>2]|0,c[M+(y<<3)>>2]|0,K,O,l);y=y+1|0}while((1<<y&A|0)!=0);x=c[O>>2]|0;z=c[K>>2]|0}c[M+(y<<3)+4>>2]=z;c[M+(y<<3)>>2]=x;A=A+1|0}while((A|0)!=(E|0));y=y+1|0;if((y|0)<13)X=34}else{c[O>>2]=0;c[K>>2]=0;z=M+0|0;y=z+104|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(y|0));y=1;X=34}if((X|0)==34){while(1){X=0;if(1<<y&E)kq(F,c[M+(y<<3)+4>>2]|0,c[M+(y<<3)>>2]|0,K,O,l);y=y+1|0;if((y|0)==13)break;else X=34}x=c[O>>2]|0}c[G+(u*20|0)+16>>2]=B;c[G+(u*20|0)+12>>2]=x;c[G+(u*20|0)+4>>2]=D;c[G+(u*20|0)+8>>2]=F;u=u+1|0;if((u|0)>=(I|0)){X=39;break}}if((X|0)==21){Sc(l);break}else if((X|0)==39){Sc(l);t=0;break c}}else{Sc(0);t=7}while(0);Sc(p)}while(0);if(!t){O=d+72|0;N=c[O>>2]|0;M=d+4|0;x=1;w=c[V>>2]|0;t=0;while(1){l=T+(x<<2)+4|0;r=c[l>>2]|0;d:do if(w>>>0>r>>>0){v=x+3|0;u=(g|0)!=0;while(1){if(a[$>>0]|0)break;t=c[M>>2]|0;t=lc[c[(c[t>>2]|0)+56>>2]&31](t,v,1,10)|0;if(!(u&(t|0)==5)){X=49;break}if(!(hc[g&127](h)|0)){g=0;t=5;break d}}if((X|0)==49){X=0;if((t|0)==5){g=0;t=5;break}else if(t){q=t;X=100;break b}}c[l>>2]=(x|0)==1?w:-1;if(!(a[$>>0]|0)){r=c[M>>2]|0;lc[c[(c[r>>2]|0)+56>>2]&31](r,v,1,9)|0;r=w;t=0}else{r=w;t=0}}else r=w;while(0);x=x+1|0;if((x|0)>=5){I=r;break}else w=r}e:do if((c[T>>2]|0)>>>0<I>>>0){t=(g|0)!=0;while(1){if(a[$>>0]|0)break;r=c[M>>2]|0;r=lc[c[(c[r>>2]|0)+56>>2]&31](r,3,1,10)|0;if(!(t&(r|0)==5)){s=r;X=58;break}if(!(hc[g&127](h)|0)){s=5;break e}}if((X|0)==58?(s|0)!=0:0)break;F=c[T>>2]|0;G=(k|0)!=0;if(G?(P=c[d+8>>2]|0,P=nc[c[(c[P>>2]|0)+20>>2]&127](P,k)|0,(P|0)!=0):0)s=P;else X=61;f:do if((X|0)==61){P=ow(N|0,0,S|0,0)|0;s=Q;c[s>>2]=P;c[s+4>>2]=C;s=c[M>>2]|0;s=nc[c[(c[s>>2]|0)+24>>2]&127](s,R)|0;if(!s){P=R;K=c[P+4>>2]|0;R=Q;L=c[R+4>>2]|0;if((K|0)<(L|0)|((K|0)==(L|0)?(c[P>>2]|0)>>>0<(c[R>>2]|0)>>>0:0)){R=c[M>>2]|0;Yb[c[(c[R>>2]|0)+40>>2]&63](R,5,Q)|0}B=p+4|0;D=S|24;E=d+8|0;t=c[B>>2]|0;g:do if((t|0)>0){s=0;while(1){A=c[p>>2]|0;z=-1;h:while(1){i:while(1){t=t+-1|0;x=p+(t*20|0)+8|0;l=c[x>>2]|0;r=c[p+(t*20|0)+20>>2]|0;j:do if((l|0)<(r|0)){w=c[p+(t*20|0)+12>>2]|0;y=c[p+(t*20|0)+16>>2]|0;while(1){u=e[w+(l<<1)>>1]|0;v=c[y+(u<<2)>>2]|0;if(v>>>0>A>>>0)break;l=l+1|0;c[x>>2]=l;if((l|0)>=(r|0))break j}if(v>>>0<z>>>0)break i}while(0);if((t|0)<=0){l=s;t=z;break h}}s=(c[p+(t*20|0)+24>>2]|0)+u|0;if((t|0)>0)z=v;else{l=s;t=v;break}}c[p>>2]=t;if((t|0)==-1)break g;if(!(l>>>0<=F>>>0|l>>>0>I>>>0|t>>>0>N>>>0)){s=ow(l+-1|0,0,D|0,0)|0;s=fw(s|0,C|0,56,0)|0;R=c[E>>2]|0;s=pc[c[(c[R>>2]|0)+8>>2]&31](R,m,S,s,C)|0;if(s)break f;s=ow(t+-1|0,0,S|0,0)|0;R=c[M>>2]|0;s=pc[c[(c[R>>2]|0)+12>>2]&31](R,m,S,s,C)|0;if(s)break f}t=c[B>>2]|0;if((t|0)<=0){X=66;break}else s=l}}else X=66;while(0);if((X|0)==66)c[p>>2]=-1;if((I|0)==(c[(c[c[U>>2]>>2]|0)+16>>2]|0)){s=ow(c[O>>2]|0,0,S|0,0)|0;X=c[M>>2]|0;s=Yb[c[(c[X>>2]|0)+16>>2]&63](X,s,C)|0;if((s|0)==0&G){s=c[M>>2]|0;s=nc[c[(c[s>>2]|0)+20>>2]&127](s,k)|0}if(s)break}c[T>>2]=I;s=0}}while(0);if(!(a[$>>0]|0)){X=c[M>>2]|0;lc[c[(c[X>>2]|0)+56>>2]&31](X,3,1,9)|0}}else s=t;while(0);s=(s|0)==5?0:s;X=88}else q=t}else{p=0;s=0;X=88}while(0);k:do if((X|0)==88)if((s|0)==0&(Y|0)!=0)if((c[T>>2]|0)>>>0>=(c[V>>2]|0)>>>0)if((Y|0)>1){_c(4,W);t=d+4|0;r=(g|0)!=0;while(1){if(a[$>>0]|0)break;s=c[t>>2]|0;s=lc[c[(c[s>>2]|0)+56>>2]&31](s,4,4,10)|0;if(!(r&(s|0)==5)){q=s;X=95;break}if(!(hc[g&127](h)|0)){q=5;X=100;break k}}if((X|0)==95?(q|0)!=0:0){X=100;break}if((Y|0)==3){To(d,c[W>>2]|0);q=c[d+8>>2]|0;q=Yb[c[(c[q>>2]|0)+16>>2]&63](q,0,0)|0}else q=0;if(!(a[$>>0]|0)){X=c[t>>2]|0;lc[c[(c[X>>2]|0)+56>>2]&31](X,4,4,9)|0;X=100}else X=100}else{q=0;X=100}else{q=5;X=100}else{q=s;X=100}while(0);if((X|0)==100)Sc(p);if((q|0)==0|(q|0)==5){if(n)c[n>>2]=c[V>>2];if(o)c[o>>2]=c[(c[c[U>>2]>>2]|0)+96>>2]}}else q=t;while(0);if(c[_>>2]|0){z=d+52|0;y=z+48|0;do{c[z>>2]=0;z=z+4|0}while((z|0)<(y|0))}p=d+44|0;if(a[p>>0]|0){if(!(a[$>>0]|0)){_=c[d+4>>2]|0;lc[c[(c[_>>2]|0)+56>>2]&31](_,0,1,9)|0}a[p>>0]=0;a[d+47>>0]=0}if(!(a[$>>0]|0)){$=c[d+4>>2]|0;lc[c[(c[$>>2]|0)+56>>2]&31]($,1,1,9)|0}a[Z>>0]=0;p=(q|0)!=0|(Y|0)==(f|0)?q:5}else p=8;while(0);i=aa;return p|0}function Qn(b,c,d,e,f){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=(c|0)<(e|0)?c:e;g=Vv(d,f,h)|0;a:do if(!g){b:do if(b){g=c-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[d+(g+h)>>0]|0)!=32)break b}if(!g){g=e-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[f+(g+h)>>0]|0)!=32)break b}if(!g){g=0;break a}}}while(0);g=c-e|0}while(0);return g|0}function Rn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Bc(c,e,(b|0)<(d|0)?b:d)|0;return ((a|0)==0?b-d|0:a)|0}function Sn
9 sn0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[b>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[f>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0<g>>>0)}else c=0;return c|0}function Kn(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+48|0;if((i|0)>=(j|0))ba();t=x+32|0;u=x+16|0;v=x;k=c[d>>2]|0;if((k|0)<0){c[d>>2]=0;c[d+4>>2]=-1;b[d+12>>1]=0;a[d+14>>0]=0;k=0}p=g;o=c[p+4>>2]|0;q=v;c[q>>2]=c[p>>2];c[q+4>>2]=o;q=d+8|0;c[q>>2]=h;o=f&255;p=(f|0)==254;do{n=b[d+(k<<4)+12>>1]|0;h=n&65535;g=37184+(h<<1)|0;a:do if((n&65535)>429)w=6;else{n=o;while(1){m=b[g>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){w=6;break a}m=n&255;k=l+m|0;if(k>>>0<=1496?(a[39336+k>>0]|0)==n<<24>>24:0){w=16;break}if(!(n<<24>>24))break;if((n&255)>=70){r=l;w=12;break}n=a[40840+m>>0]|0;if(!(n<<24>>24)){r=l;w=12;break}}if((w|0)==16){w=0;k=e[22184+(k<<1)>>1]|0;break}if(((w|0)==12?(w=0,s=r+70|0,(s|0)>-1):0)?(a[39336+s>>0]|0)==70:0){k=e[22184+(s<<1)>>1]|0;break}k=e[38048+(h<<1)>>1]|0}while(0);if((w|0)==6){w=0;k=e[38048+(h<<1)>>1]|0}if(k>>>0<642){w=18;break}if(k>>>0>=969){w=20;break}iq(d,k+-642|0);if(p)break;k=c[d>>2]|0}while((k|0)>-1);if((w|0)==18){gq(d,k,f,v);r=d+4|0;c[r>>2]=(c[r>>2]|0)+-1}else if((w|0)==20){c[u+0>>2]=c[v+0>>2];c[u+4>>2]=c[v+4>>2];c[u+8>>2]=c[v+8>>2];r=c[q>>2]|0;c[t>>2]=u;ph(r,20432,t);c[q>>2]=r;hq(d,o,v)}i=x;return}function Ln(b){b=b|0;var d=0;d=c[b>>2]|0;if((d|0)>=0){hq(b,a[b+(d<<4)+14>>0]|0,b+(d<<4)+16|0);c[b>>2]=(c[b>>2]|0)+-1}return}function Mn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[b>>2]|0)>0){d=0;do{Jk(a,c[b+(d<<4)+12>>2]|0);Ik(a,c[b+(d<<4)+16>>2]|0,1);ig(a,c[b+(d<<4)+8>>2]|0);d=d+1|0}while((d|0)<(c[b>>2]|0))}ig(a,b)}return}function Nn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[h>>2]|0;if(d){i=a+304|0;if((c[i>>2]|0)>0){f=0;do{e=c[d+(f<<2)>>2]|0;d=c[e+8>>2]|0;if((d|0)!=0?(g=c[(c[d>>2]|0)+b>>2]|0,(g|0)!=0):0)hc[g&127](d)|0;c[e+20>>2]=0;wn(e);f=f+1|0;d=c[h>>2]|0}while((f|0)<(c[i>>2]|0))}ig(a,d);c[i>>2]=0;c[h>>2]=0}return}function On(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[a+12>>2]|0))d=(c[a+16>>2]|0)==0?0:6;else d=6;else{h=b[a>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[a+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0}
13 :case 6:{if(!(c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0)){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}else ee=765;break}case 5:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;c[Cd>>2]=0;w=c[g+56>>2]|0;if(a[w+56>>0]|0){r=Sm(c[w+20>>2]|0,Cd)|0;ee=766;break e}r=w+36|0;s=c[r>>2]|0;S=s+4|0;c[r>>2]=c[S>>2];c[S>>2]=0;if(!((c[w+40>>2]|0)!=0|(s|0)==0))ig(he,s);c[Cd>>2]=(c[r>>2]|0)==0&1;r=0;ee=766;break}case 9:case 8:{ee=765;break}case 110:case 109:{x=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;Q=c[o+(p*20|0)+8>>2]|0;g=c[x>>2]|0;z=o+(p*20|0)+3|0;if(a[z>>0]&1)c[rb>>2]=(c[rb>>2]|0)+1;if((b[v+(Q*40|0)+8>>1]&16384)!=0?(Rd=Ng(v+(Q*40|0)|0)|0,(Rd|0)!=0):0){g=m;m=n;o=Rd;q=t;ee=1309;break c}B=c[x+56>>2]|0;R=v+(Q*40|0)+12|0;P=c[R>>2]|0;if(!B){if(!(a[z>>0]&16))w=0;else w=c[x+12>>2]|0;r=Em(g,c[v+(Q*40|0)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[o+(p*20|0)+12>>2]|0,w)|0;c[x+60>>2]=0;z=J;R=p;break e}z=P;w=((P|0)<0)<<31>>31;x=0;do{x=x+1|0;z=iw(z|0,w|0,7)|0;w=C}while(((z|0)!=0|(w|0)!=0)&(x|0)<9);s=P+8|0;F=x+P|0;K=B+4|0;x=c[K>>2]|0;do if(!x)r=0;else{if(!(c[B+40>>2]|0)){z=B+44|0;S=c[z>>2]|0;if((S|0)<=(x|0)?!((c[2265]|0)!=0?(S|0)>(c[B>>2]|0):0):0){r=0;break}}else{S=c[B+48>>2]|0;if(!((S|0)!=0&(S+s|0)>(x|0))){r=0;break}z=B+44|0}r=Km(B)|0;c[z>>2]=0;c[B+48>>2]=0}while(0);z=B+36|0;G=B+44|0;c[G>>2]=(c[G>>2]|0)+F;G=B+8|0;if((F|0)>(c[G>>2]|0))c[G>>2]=F;I=B+40|0;G=c[I>>2]|0;if(!G){w=mg(s,((s|0)<0)<<31>>31)|0;if(!w){g=m;m=n;o=7;q=t;ee=1309;break c}c[w+4>>2]=c[z>>2]}else{w=B+48|0;F=c[w>>2]|0;s=F+s|0;g=B+52|0;E=c[g>>2]|0;if((s|0)>(E|0)){F=E;do F=F<<1;while((F|0)<(s|0));S=c[K>>2]|0;F=(F|0)>(S|0)?S:F;F=(F|0)<(s|0)?s:F;G=ng(G,F,((F|0)<0)<<31>>31)|0;if(!G){g=m;m=n;o=7;q=t;ee=1309;break c}x=G+((c[z>>2]|0)-(c[I>>2]|0))|0;c[z>>2]=x;c[I>>2]=G;c[g>>2]=F;F=c[w>>2]|0}else x=c[z>>2]|0;c[w>>2]=F+(P+15&-8);c[G+(F+4)>>2]=x-G;w=G+F|0}gw(w+8|0,c[v+(Q*40|0)+16>>2]|0,c[R>>2]|0)|0;c[w>>2]=c[R>>2];c[z>>2]=w;z=J;R=p;break}case 112:{g=m;m=n;n=p;ee=801;break d}case 111:{w=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;g=c[w>>2]|0;c[vd>>2]=c[w+8>>2];b[jc>>1]=c[o+(p*20|0)+12>>2];a[kc>>0]=0;c[mc>>2]=v+((c[o+(p*20|0)+8>>2]|0)*40|0);r=ym(g,vd,0,0,0,Dd)|0;if(!(c[Dd>>2]|r))r=Fm(g)|0;c[w+60>>2]=0;z=J;R=p;break}case 116:case 115:case 114:case 113:{w=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;c[wd>>2]=c[w+8>>2];b[uc>>1]=c[o+(p*20|0)+16>>2];a[V>>0]=((G&255)<115)<<31>>31;c[W>>2]=v+((c[o+(p*20|0)+12>>2]|0)*40|0);S=Pd;c[S>>2]=0;c[S+4>>2]=0;gm(c[w>>2]|0,Pd);S=Pd;g=c[S>>2]|0;S=fw(g|0,c[S+4>>2]|0,-1,-1)|0;R=C;if(!(R>>>0>0|(R|0)==0&S>>>0>2147483646)){b[X>>1]=0;c[Y>>2]=he;c[aa>>2]=0;g=jm(c[w>>2]|0,0,g,1,nd)|0;if(!g){r=Gm(c[ca>>2]|0,c[da>>2]|0,wd,0)|0;if((b[X>>1]&9312)==0&(c[aa>>2]|0)==0)g=0;else{Mg(nd);g=0}}else r=0}else{c[ge>>2]=68730;c[ge+4>>2]=10788;Zc(11,13600,ge);g=11;r=0}if((((a[z>>0]&1)==0?r+1|0:0-r|0)|0)>0){z=J;R=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=g}else{z=J;R=p;r=g}break}case 117:{O=J+8|0;b[O>>1]=1;if((c[Wb>>2]|0)>((c[ea>>2]|0)+1|0)){g=m;m=n;q=t;ee=832;break c}L=c[o+(p*20|0)+12>>2]|0;K=c[(c[Td>>2]|0)+(L<<4)+4>>2]|0;P=o+(p*20|0)+4|0;F=c[P>>2]|0;z=K+4|0;s=c[z>>2]|0;c[s+4>>2]=c[K>>2];c[ge>>2]=0;do if(!(c[s+8>>2]|0)){r=$k(s,F,ge,0)|0;if(!r){r=Tm(K,F,0)|0;if(r){w=c[ge>>2]|0;if(!w){x=0;break}xg(c[w+68>>2]|0);x=0;break}if(F>>>0<=1){w=c[ge>>2]|0;ll(w,9);if(!w){r=0;x=0;break}xg(c[w+68>>2]|0);r=0;x=0;break}if(!(a[s+17>>0]|0)){w=c[ge>>2]|0;r=Um(c[w+52>>2]|0,w,c[w+72>>2]|0)|0;if(!w){x=0;break}xg(c[w+68>>2]|0);x=0;break}G=c[z>>2]|0;c[G+4>>2]=c[K>>2];G=c[(c[G+12>>2]|0)+56>>2]|0;G=d[G+53>>0]<<16|d[G+52>>0]<<24|d[G+54>>0]<<8|d[G+55>>0];z=c[ge>>2]|0;if((G|0)==(F|0)){r=Um(c[z+52>>2]|0,z,c[z+72>>2]|0)|0;if(z)xg(c[z+68>>2]|0);if(!r)x=0;else{x=0;break}}else{if(z)xg(c[z+68>>2]|0);r=$k(s,G,Pd,0)|0;if(r){x=0;break}z=c[Pd>>2]|0;r=Vm(s,z,1,0,F,0)|0;if(z)xg(c[z+68>>2]|0);if(r){x=0;break}c[Pd>>2]=0;r=$k(s,G,Pd,0)|0;z=c[Pd>>2]|0;if(r){if(!z){x=0;break}}else r=Um(c[z+52>>2]|0,z,c[z+72>>2]|0)|0;xg(c[z+68>>2]|0);if(!r)x=G;else{x=0;break}}E=((c[2514]|0)>>>0)/((c[s+32>>2]|0)>>>0)|0;D=E+1|0;F=s+36|0;while(1){z=G+-1|0;if((z|0)==(D|0)){G=z;continue}if(z>>>0<2)B=0;else{B=G+-3|0;B=B-((B>>>0)%(((((c[F>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;B=((B+1|0)==(E|0)?3:2)+B|0}if((B|0)==(z|0))G=z;else break}r=zg(K,4,z)|0}else x=0}else{r=262;x=0}while(0);b[O>>1]=4;S=J;c[S>>2]=x;c[S+4>>2]=((x|0)<0)<<31>>31;if((r|0)==0&(x|0)!=0){g=m;K=L;z=P;m=n;r=J;n=p;ee=865;break d}else{z=J;R=p}break}case 118:{c[gd>>2]=0;g=o+(p*20|0)+12|0;r=Tm(c[(c[Td>>2]|0)+(c[o+(p*20|0)+8>>2]<<4)+4>>2]|0,c[o+(p*20|0)+4>>2]|0,(c[g>>2]|0)!=0?gd:0)|0;g=c[g>>2]|0;if((g|0)!=0?(Fc=c[gd>>2]|0,c[rb>>2]=(c[rb>>2]|0)+Fc,(g|0)>0):0){z=v+(g*40|0)|0;R=z;R=fw(c[R>>2]|0,c[R+4>>2]|0,Fc|0,((Fc|0)<0)<<31>>31|0)|0;c[z>>2]=R;c[z+4>>2]=C;z=J;R=p}else{z=J;R=p}break}case 121:case 120:{c[sd>>2]=0;r=wm(c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)+4>>2]|0,sd,G<<24>>24==121?1:2)|0;R=c[sd>>2]|0;z=J;c[z>>2]=R;c[z+4>>2]=((R|0)<0)<<31>>31;z=J;R=p;break}case 119:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;r=c[g+56>>2]|0;if(r){g=m;m=n;G=J;n=p;ee=878;break d}r=c[g>>2]|0;z=J;R=p;r=Tm(c[r>>2]|0,c[r+60>>2]|0,0)|0;break}case 123:{z=J;R=p;r=Ym(he,c[o+(p*20|0)+4>>2]|0)|0;break}case 124:{g=m;m=n;r=J;n=p;ee=886;break d}case 122:{g=m;m=n;G=J;n=p;ee=881;break d}case 126:{g=m;m=n;r=J;n=p;ee=895;break d}case 125:{g=m;m=n;G=J;n=p;ee=887;break d}case 127:{g=m;m=n;r=J;ee=903;break d}case 128:{g=m;m=n;G=J;ee=947;break d}case 129:{s=c[o+(p*20|0)+4>>2]|0;r=v+(s*40|0)|0;s=v+(s*40|0)+8|0;g=b[s>>1]|0;do if(g&32){B=c[r>>2]|0;g=B+26|0;w=b[g>>1]|0;if(!(w&2)){if(!(w&1)){w=B+8|0;c[w>>2]=fn(c[w>>2]|0)|0;w=b[g>>1]|0}b[g>>1]=w&65535|2}z=B+8|0;x=c[z>>2]|0;if(!x){g=b[s>>1]|0;break}s=x;w=c[s>>2]|0;s=c[s+4>>2]|0;S=c[x+8>>2]|0;c[z>>2]=S;if(!S)Vk(B);r=c[o+(p*20|0)+12>>2]|0;g=v+(r*40|0)|0;r=v+(r*40|0)+8|0;if(!(b[r>>1]&9312)){ee=g;c[ee>>2]=w;c[ee+4>>2]=s;b[r>>1]=4;r=0;ee=19;break e}else{Vg(g,w,s);r=0;ee=19;break e}}while(0);if(!(g&9312))b[s>>1]=1;else rg(r);p=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=0;ee=19;break}case 130:{g=m;m=n;r=J;ee=966;break d}case 131:{g=m;m=n;r=J;n=p;ee=993;break d}case 132:{g=m;m=n;r=J;n=p;ee=1009;break d}case 134:{g=m;m=n;G=J;n=p;ee=1010;break d}case 135:{g=m;m=n;r=J;n=p;ee=1015;break d}case 136:{g=m;m=n;n=p;ee=1022;break d}case 137:{g=m;m=n;r=J;n=p;ee=1028;break d}case 138:{g=m;m=n;r=J;n=p;ee=1030;break d}case 139:{g=m;m=n;G=J;n=p;ee=1032;break d}case 140:{g=m;m=n;r=J;n=p;ee=1034;break d}case 141:{g=m;m=n;r=J;n=p;ee=1036;break d}case 10:{S=a[o+(p*20|0)+3>>0]|0;w=S&255;g=c[yb>>2]|0;if(S<<24>>24){r=0;s=v+((c[o+(p*20|0)+8>>2]|0)*40|0)|0;while(1){c[g+(r<<2)>>2]=s;r=r+1|0;if((r|0)>=(w|0))break;else s=s+40|0}}S=c[o+(p*20|0)+16>>2]|0;c[Da>>2]=S;R=c[o+(p*20|0)+12>>2]|0;c[Ea>>2]=v+(R*40|0);R=v+(R*40|0)+12|0;c[R>>2]=(c[R>>2]|0)+1;b[Fa>>1]=1;c[Ga>>2]=he;c[Ha>>2]=0;c[Tc>>2]=Jd;c[Ia>>2]=0;c[Ja>>2]=f;c[Ka>>2]=p;a[La>>0]=0;ic[c[S+16>>2]&63](Tc,w,g);if(!(c[Ia>>2]|0))r=0;else{c[ge>>2]=Og(Jd,1)|0;$g(fe,he,10344,ge);r=c[Ia>>2]|0}do if((a[La>>0]|0)!=0?(Jc=c[o+((p+-1|0)*20|0)+4>>2]|0,(Jc|0)!=0):0){g=v+(Jc*40|0)|0;s=v+(Jc*40|0)+8|0;if(!(b[s>>1]&9312)){S=g;c[S>>2]=1;c[S+4>>2]=0;b[s>>1]=4;break}else{Vg(g,1,0);break}}while(0);if((b[Fa>>1]&9312)==0&(c[Ha>>2]|0)==0){z=J;R=p}else{Mg(Jd);z=J;R=p}break}case 11:{c[Oc>>2]=0;c[Ma>>2]=-1;c[Na>>2]=-1;g=Sh(he,c[o+(p*20|0)+4>>2]|0,c[o+(p*20|0)+8>>2]|0,Na,Ma)|0;if((g|0)==5){c[Oc>>2]=1;g=0}r=0;s=v+((c[o+(p*20|0)+12>>2]|0)*40|0)|0;while(1){z=c[Oc+(r<<2)>>2]|0;x=((z|0)<0)<<31>>31;w=s+8|0;if(!(b[w>>1]&9312)){S=s;c[S>>2]=z;c[S+4>>2]=x;b[w>>1]=4}else Vg(s,z,x);r=r+1|0;if((r|0)==3){z=J;R=p;r=g;break}else s=s+40|0}break}case 142:{z=c[o+(p*20|0)+4>>2]|0;w=v+(z*40|0)|0;r=Uk(w,c[o+(p*20|0)+16>>2]|0)|0;if(r){c[ge>>2]=Og(w,1)|0;$g(fe,he,10344,ge)}Ul(w,ub)|0;s=e[v+(z*40|0)+8>>1]|0;if(s&18){g=c[v+(z*40|0)+12>>2]|0;if(s&16384)g=(c[w>>2]|0)+g|0;if((g|0)>(c[(c[v+(z*40|0)+32>>2]|0)+88>>2]|0)){g=m;m=n;q=t;ee=1316;break c}else{z=J;R=p}}else{z=J;R=p}break}case 12:{g=c[o+(p*20|0)+12>>2]|0;J=c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)+4>>2]|0;I=c[c[J+4>>2]>>2]|0;G=a[I+5>>0]|0;w=G&255;g=(g|0)==-1?w:g;do if((d[I+16>>0]|0)>2)g=w;else if((c[c[I+64>>2]>>2]|0)!=0?(S=I+72|0,R=c[S+4>>2]|0,(R|0)>0|(R|0)==0&(c[S>>2]|0)>>>0>0):0){g=w;break}while(0);if(!(a[I+15>>0]|0))x=c[I+168>>2]|0;else x=10360;s=(g|0)==5;if(s)if(x){z=x;while(1)if(!(a[z>>0]|0))break;else z=z+1|0;if(z-x&1073741823){z=c[c[I+60>>2]>>2]|0;if(!(a[I+4>>0]|0))if((c[z>>2]|0)>1?!((c[z+52>>2]|0)==0|(g|0)==(w|0)):0)ee=1077;else{g=w;r=0}else ee=1076}else{g=w;r=0}}else{g=w;r=0}else ee=1076;if((ee|0)==1076){ee=0;if((g|0)==(w|0)){g=w;r=0}else ee=1077}do if((ee|0)==1077){ee=0;z=G<<24>>24==5;if(z|s){if(!(a[ae>>0]|0)){g=m;o=s;m=n;q=t;ee=1080;break c}if((c[Wb>>2]|0)>1){g=m;o=s;m=n;q=t;ee=1080;break c}if(!z){if(G<<24>>24==4)on(I,2)|0}else{G=I+208|0;if(!(c[G>>2]|0)){c[Xc>>2]=0;r=bl(I,1)|0;if(r)break;r=c[I>>2]|0;r=lc[c[r+32>>2]&31](r,c[I+212>>2]|0,0,Xc)|0;if((r|0)==0&(c[Xc>>2]|0)!=0)r=ln(I)|0;if(r)break;if(c[G>>2]|0)ee=1088}else ee=1088;if((ee|0)==1088){ee=0;r=mn(I)|0;if(r)break;r=nn(c[G>>2]|0,d[I+9>>0]|0,c[I+152>>2]|0,c[I+200>>2]|0)|0;c[G>>2]=0;if(r)break}on(I,g)|0}r=Bg(J,s?2:1)|0}else r=0}while(0);g=on(I,(r|0)==0?g:w)|0;z=c[o+(p*20|0)+8>>2]|0;G=v+(z*40|0)|0;b[v+(z*40|0)+8>>1]=2562;if((g|0)==6){c[v+(z*40|0)+16>>2]=0;g=0}else{g=c[32216+(g<<2)>>2]|0;c[v+(z*40|0)+16>>2]=g;w=g;while(1)if(!(a[w>>0]|0))break;else w=w+1|0;g=w-g&1073741823}c[v+(z*40|0)+12>>2]=g;a[v+(z*40|0)+10>>0]=1;Ul(G,ub)|0;z=G;R=p;break}case 13:{if(!(a[ae>>0]|0)){g=m;m=n;q=t;ee=1101;break c}if((c[Oa>>2]|0)>1){g=m;m=n;q=t;ee=1103;break c}Q=c[Qb>>2]|0;L=c[sb>>2]|0;s=c[tb>>2]|0;g=c[Pa>>2]|0;c[Qb>>2]=Q&-2762753|2107392;c[Pa>>2]=0;I=c[(c[Td>>2]|0)+4>>2]|0;P=I+4|0;F=a[(c[c[P>>2]>>2]|0)+15>>0]|0;S=c[Rb>>2]|0;r=pn(he,fe,(a[Xb>>0]|0)==2?42432:42464)|0;G=c[Rb>>2]|0;if((G|0)>(S|0))w=(c[Td>>2]|0)+(G+-1<<4)|0;else w=0;i:do if(!r){O=c[(c[Td>>2]|0)+(G+-1<<4)+4>>2]|0;qn(O)|0;R=c[P>>2]|0;c[R+4>>2]=c[I>>2];R=(c[R+32>>2]|0)-(c[R+36>>2]|0)|0;r=pn(he,fe,42488)|0;if(!r){r=pn(he,fe,42528)|0;if(!r){r=ug(I,2)|0;if(!r){G=c[P>>2]|0;if((a[(c[G>>2]|0)+5>>0]|0)==5)c[Qa>>2]=0;if(!(tg(O,c[G+32>>2]|0,R,0)|0)){if(F<<24>>24==0?(tg(O,c[Qa>>2]|0,R,0)|0)!=0:0){r=7;break}if(a[ce>>0]|0){r=7;break}G=a[Ra>>0]|0;do if(G<<24>>24>-1)G=G<<24>>24;else{G=c[P>>2]|0;c[G+4>>2]=c[I>>2];if(!(a[G+17>>0]|0)){G=0;break}G=(a[G+18>>0]|0)==0?1:2}while(0);rn(O,G)|0;r=sn(he,fe,42536)|0;if(r)break;r=sn(he,fe,42688)|0;if(r)break;r=sn(he,fe,42792)|0;if(r)break;r=sn(he,fe,42912)|0;if(r)break;r=sn(he,fe,43112)|0;if(r)break;r=sn