Home | History | Annotate | Download | only in sqlite3

Lines Matching refs:Lq

6 f((a[(c[i>>2]|0)+p>>0]|0)!=(a[(c[j>>2]|0)+p>>0]|0)){f=0;break a}m=c[(c[k>>2]|0)+(p<<2)>>2]|0;n=c[(c[l>>2]|0)+(p<<2)>>2]|0;o=(n|0)==0;if(!m){if(!o){f=0;break a}}else{if(o){f=0;break a}if($c(m,n)|0){f=0;break a}}p=p+1|0}while((p|0)<(f&65535|0))}f=(yu(c[e+36>>2]|0,c[d+36>>2]|0,-1)|0)==0&1}else f=0;while(0);return f|0}function At(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;do if(!(a[e+44>>0]&8))f=0;else{h=c[b+408>>2]|0;h=(h|0)==0?b:h;g=h+404|0;f=c[g>>2]|0;a:do if(!f)i=5;else while(1){if((c[f+4>>2]|0)==(e|0))break a;f=c[f>>2]|0;if(!f){i=5;break}}while(0);if((i|0)==5){f=ih(c[b>>2]|0,16,0)|0;if(!f){f=0;break}c[f>>2]=c[g>>2];c[g>>2]=f;c[f+4>>2]=e;c[f+8>>2]=d;b=h+72|0;g=c[b>>2]|0;c[f+12>>2]=g+2;c[b>>2]=g+3}f=c[f+12>>2]|0}while(0);return f|0}function Bt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;g=b[e+36>>1]|0;h=c[a>>2]|0;f=c[e>>2]|0;if(g<<16>>16>-1){g=c[(c[e+4>>2]|0)+((g<<16>>16)*24|0)>>2]|0;c[k>>2]=f;c[k+4>>2]=g;g=1555;f=qh(h,27824,k)|0}else{c[k>>2]=f;g=2579;f=qh(h,34408,k)|0}vs(a,g,d,f,-1,2);i=l;return}function Ct(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[g>>2]|0;d=hr(b,h,Ir(c[b>>2]|0,d,0,0)|0)|0;if(d){b=(c[d>>2]|0)+-1|0;h=c[d+4>>2]|0;c[h+(b*20|0)+16>>2]=e;b=h+(b*20|0)+13|0;a[b>>0]=a[b>>0]&-5|f<<2&4}c[g>>2]=d;return}function Dt(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=c[e>>2]|0;if(!(g+-1&g)){i=_((g|0)==0?1:g<<1,d)|0;a=no(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[f>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){bw(a+(_(g,d)|0)|0,0,d|0)|0;c[f>>2]=g;c[e>>2]=(c[e>>2]|0)+1}return a|0}function Et(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;c[h>>2]=0;b=c[a+12>>2]|0;if((b|0)!=0?(d=c[b+24>>2]|0,(d|0)>0):0){c[h>>2]=d;b=d}else b=0;d=c[a+16>>2]|0;if((d|0)!=0?(e=c[d+24>>2]|0,(e|0)>(b|0)):0)c[h>>2]=e;f=a+4|0;b=a+20|0;if(!(c[f>>2]&2048)){d=c[b>>2]|0;if(d){pu(d,h);b=c[b>>2]|0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;do{b=c[(c[e+(d*20|0)>>2]|0)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[f>>2]=c[f>>2]|b}}else As(c[b>>2]|0,h);c[a+24>>2]=(c[h>>2]|0)+1;i=k;return}function Ft(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Kq(b)|0;i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h;b=ih(c[b>>2]|0,8,0)|0;if(b){i=b;c[i>>2]=e;c[i+4>>2]=f}th(g,sh(g,26,0,h,0)|0,b,-13);eq(g,1);if(!(a[(c[g>>2]|0)+65>>0]|0))Tg(c[g+16>>2]|0,d,-1,1,0)|0;sh(g,35,h,1,0)|0;return}function Gt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;d=c[b>>2]|0;e=d+16|0;f=c[(c[e>>2]|0)+20>>2]|0;do if(!f)d=0;else{if((a[d+63>>0]|0)!=0?(a[f+8>>0]|0)==0:0){Il(f);c[(c[e>>2]|0)+20>>2]=0;Ag(d);d=0;break}ph(b,32128,g);d=1}while(0);i=h;return d|0}function Ht(b){b=b|0;var e=0,f=0,g=0;if((a[b+63>>0]|0)!=0?(e=c[b+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[b+16>>2]|0;while(1){e=e+-1|0;b=c[f+4>>2]|0;if(b)po(b,c[g>>2]&28|d[f+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function It(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var 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;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;x=c[g+20>>2]|0;m=c[g+40>>2]|0;if((x|0)==1){s=b[f+36>>1]|0;l=s<<16>>16;if(s<<16>>16>-1)if((m|0)!=0?($c(c[(c[f+4>>2]|0)+(l*24|0)>>2]|0,m)|0)!=0:0){v=0;y=8}else k=0;else{v=0;y=8}}else if(k){l=ih(c[d>>2]|0,x<<2,0)|0;if(!l)k=1;else{c[k>>2]=l;v=l;y=8}}else{v=0;y=8}a:do if((y|0)==8){k=c[f+8>>2]|0;b:do if(k){s=(m|0)==0;u=(x|0)>0;r=f+4|0;t=(v|0)==0;c:while(1){do if((e[k+46>>1]|0)==(x|0)?(a[k+50>>0]|0)!=0:0){if(s)if((a[k+51>>0]&3)==2){y=16;break c}else break;d:do if(u){n=c[k+4>>2]|0;o=c[r>>2]|0;p=c[k+32>>2]|0;q=0;while(1){f=b[n+(q<<1)>>1]|0;m=c[o+(f*24|0)+16>>2]|0;if($c(c[p+(q<<2)>>2]|0,(m|0)!=0?m:11152)|0){m=q;break d}m=c[o+(f*24|0)>>2]|0;l=0;while(1){f=l+1|0;if(!($c(c[g+(l<<3)+40>>2]|0,m)|0)){f=l;y=23;break}if((f|0)<(x|0))l=f;else break}if((y|0)==23){y=0;if(!t)c[v+(q<<2)>>2]=c[g+(f<<3)+36>>2]}m=q+1|0;if((f|0)==(x|0)){m=q;break d}if((m|0)<(x|0))q=m;else break}}else m=0;while(0);if((m|0)==(x|0))break c}while(0);k=c[k+20>>2]|0;if(!k)break b}if((y|0)==16)if(!(t|u^1)){l=0;do{c[v+(l<<2)>>2]=c[g+(l<<3)+36>>2];l=l+1|0}while((l|0)!=(x|0))}c[h>>2]=k;k=0;break a}while(0);if(!(a[d+438>>0]|0)){s=c[g+8>>2]|0;c[w>>2]=c[c[g>>2]>>2];c[w+4>>2]=s;ph(d,32008,w)}ig(c[d>>2]|0,v);k=1}while(0);i=z;return k|0}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!(c[d+12>>2]|0)){c[h>>2]=0;l=c[b>>2]|0;g=d+4|0;d=c[g>>2]|0;Vr(l,c[d+(e*24|0)+4>>2]|0,a[l+62>>0]|0,a[d+(e*24|0)+21>>0]|0,h)|0;d=c[h>>2]|0;if(d)th(b,-1,d,-8);if((a[(c[g>>2]|0)+(e*24|0)+21>>0]|0)==69)sh(b,39,f,0,0)|0}i=k;return}function Kt(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Oh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[g>>1]=e[g>>1]|f&255}return}function Lt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=c[d+8>>2]|0;r=c[e+12>>2]|0;do if(i){l=e+36|0;if(!(c[l>>2]|0)){c[i>>2]=0;break}else{c[i>>2]=ts(q)|0;c[d+96>>2]=f;p=d+100|0;c[p>>2]=(c[p>>2]|0)+1;ct(d,c[l>>2]|0,c[i>>2]|0,16);break}}while(0);if((h|0)!=0?(a[e+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[l>>1]|0;n=l&65535;o=d+60|0;h=c[o>>2]|0;p=d+56|0;i=c[p>>2]|0;if((i|0)<(n|0)){h=d+72|0;m=c[h>>2]|0;c[h>>2]=m+n;m=m+1|0}else{c[o>>2]=h+n;c[p>>2]=i-n;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[j+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[(c[k>>2]|0)+(l<<1)>>1]|0;if((b[(c[i>>2]|0)+(l<<1)>>1]|0)!=h<<16>>16)s=21}else{h=b[(c[k>>2]|0)+(l<<1)>>1]|0;s=21}if((s|0)==21){s=0;jt(q,r,f,h<<16>>16,l+m|0);Lq(q,39)|0}l=l+1|0}while((l|0)<(n|0))}if(g)sh(q,49,m,n,g)|0;$s(d,m,n);if((c[p>>2]|0)<(n|0)){c[p>>2]=n;c[o>>2]=m}return m|0}function Mt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[a+8>>2]|0;e=c[d+24>>2]|0;f=~b;if((b|0)<0?(g=c[e+112>>2]|0,(g|0)!=0):0)c[g+(f<<2)>>2]=c[d+32>>2];c[e+88>>2]=(c[d+32>>2]|0)+-1;Zt(a)}return}function Nt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[d+16>>2]|0;a:do if((e|0)!=0?(f=c[d+64>>2]|0,(f|0)!=0):0){e=c[e+8>>2]|0;b:do if(e){while(1){if(!($c(c[e>>2]|0,f)|0))break;e=c[e+20>>2]|0;if(!e)break b}c[d+68>>2]=e;e=0;break a}while(0);c[g>>2]=f;c[g+4>>2]=0;ph(b,28104,g);a[b+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function Ot(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Pt(a,b)|0;if(b&1){e=Ot(c[a+12>>2]|0,b)|0;return e+d+(Ot(c[a+16>>2]|0,b)|0)|0}}else d=0;return d|0}
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(b,d,e,f,g,h){b=b|0;d=d|0;e=e|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,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))ba();w=y;p=c[e>>2]|0;a:do if(d){n=d;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;o=n-d&1073741823;if((c[2189]|p&64|0)!=0&o>>>0>4?(Vv(d,14984,5)|0)==0:0){n=o+2|0;m=p|64;if(o){p=0;do{n=((a[d+p>>0]|0)==38&1)+n|0;p=p+1|0}while((p|0)<(o|0))}l=Pc(n)|0;if(l){do if((a[d+5>>0]|0)==47?(a[d+6>>0]|0)==47:0){n=7;while(1){s=a[d+n>>0]|0;if(s<<24>>24==0|s<<24>>24==47)break;n=n+1|0}if((n|0)==16){k=d+7|0;if(!(Vv(14992,k,9)|0)){n=0;p=16;k=0;break}}else if((n|0)==7){n=0;p=7;k=0;break}else k=d+7|0;c[w>>2]=n+-7;c[w+4>>2]=k;c[h>>2]=Wc(15008,w)|0;k=1;x=74;break a}else{n=0;p=5;k=0}while(0);b:while(1){u=l+(k+-1)|0;c:while(1){d:while(1){o=a[d+p>>0]|0;if(o<<24>>24==35|o<<24>>24==0)break b;q=p+1|0;if((o<<24>>24==37?(v=a[d+q>>0]|0,(a[10368+(v&255)>>0]&8)!=0):0)?(t=a[d+(p+2)>>0]|0,(a[10368+(t&255)>>0]&8)!=0):0){o=v;q=t;break}if(!n){p=q;x=38;break c}else if((n|0)==2){p=q;x=39;break c}else if((n|0)!=1){p=q;break c}if(!(o<<24>>24==38|o<<24>>24==61)){n=1;p=q;break c}if(!(a[u>>0]|0))p=q;else{p=q;x=36;break c}while(1){s=a[d+p>>0]|0;if(s<<24>>24==35|s<<24>>24==0)continue d;if((a[d+(p+-1)>>0]|0)==38)continue d;else p=p+1|0}}o=o<<24>>24;p=p+3|0;s=q<<24>>24;o=(0-(s>>>6&1)&9)+s&15|(0-(o>>>6&1)&9)+o<<4&240;if(o){x=30;break}q=(n|0)==0;while(1){o=a[d+p>>0]|0;if(o<<24>>24==35|o<<24>>24==0)continue c;if(q&o<<24>>24==63){n=0;continue c}if((n|0)==1){if(o<<24>>24==38|o<<24>>24==61){n=1;continue c}}else if((n|0)==2?o<<24>>24==38:0){n=2;continue c}p=p+1|0}}if((x|0)==30){x=0;o=o&255}else if((x|0)==36){x=0;if(o<<24>>24==38){a[l+k>>0]=0;o=0;n=1;k=k+1|0}else{o=0;n=2}}else if((x|0)==38){x=0;if(o<<24>>24==63)x=40;else n=0}else if((x|0)==39){x=0;if(o<<24>>24==38)x=40;else n=2}if((x|0)==40){x=0;o=0;n=1}a[l+k>>0]=o;k=k+1|0}if((n|0)==1){a[l+k>>0]=0;k=k+1|0}a[l+k>>0]=0;a[l+(k+1)>>0]=0;k=l;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;k=(k-l&1073741823)+1|0;n=a[l+k>>0]|0;if(n<<24>>24){v=l+k|0;e:while(1){o=v;while(1){k=o+1|0;if(!(n<<24>>24)){n=o;break}n=a[k>>0]|0;o=k}u=n-v&1073741823;n=v+(u+1)|0;o=n;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;t=o-n&1073741823;if((u|0)==5)if(!(Vv(15048,v,5)|0)){d=15056;r=393216;s=-393217;k=15048;x=58}else k=b;else if((u|0)==4)if(!(Vv(15096,v,4)|0)){d=15104;r=m&135;s=-136;k=15176;x=58}else k=b;else if((u|0)==3){k=(Vv(15040,v,3)|0)==0;k=k?n:b}else k=b;if((x|0)==58){x=0;p=c[d>>2]|0;if(!p){x=65;break}else o=0;while(1){q=p;while(1)if(!(a[q>>0]|0))break;else q=q+1|0;if((t|0)==(q-p&1073741823|0)?(Vv(n,p,t)|0)==0:0){p=o;break}o=o+1|0;p=c[d+(o<<3)>>2]|0;if(!p){x=65;break e}}p=c[d+(p<<3)+4>>2]|0;if(!p){x=65;break}if((p&-129|0)>(r|0)){x=67;break}m=p|s&m;k=b}v=v+(u+2+t)|0;n=a[v>>0]|0;if(!(n<<24>>24)){x=72;break a}else b=k}if((x|0)==65){c[w>>2]=k;c[w+4>>2]=n;c[h>>2]=Wc(15184,w)|0;k=1;x=74;break}else if((x|0)==67){c[w>>2]=k;c[w+4>>2]=n;c[h>>2]=Wc(15208,w)|0;k=3;x=74;break}}else{k=b;x=72}}else k=7}else{m=o;x=70}}else{m=0;x=70}while(0);if((x|0)==70){l=Pc(m+2|0)|0;if(!l)k=7;else{gw(l|0,d|0,m|0)|0;a[l+m>>0]=0;a[l+(m+1)>>0]=0;m=p&-65;k=b;x=72}}if((x|0)==72){s=Gc(k)|0;c[f>>2]=s;if(!s){c[w>>2]=k;c[h>>2]=Wc(15232,w)|0;k=1;x=74}else{k=0;x=75}}if((x|0)==74){Sc(l);l=0;x=75}if((x|0)==75){c[e>>2]=m;c[g>>2]=l}i=y;return k|0}function Tn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;do if(!d){d=mg(84,0)|0;if(!d)e=8;else{b=d+0|0;g=b+84|0;do{a[b>>0]=0;b=b+1|0}while((b|0)<(g|0));e=9}}else{f=c[d+4>>2]|0;c[f+4>>2]=c[d>>2];e=f+48|0;d=c[e>>2]|0;if(!d){d=mg(84,0)|0;if(!d){c[e>>2]=0;c[f+52>>2]=22;e=8;break}else{b=d+0|0;g=b+84|0;do{a[b>>0]=0;b=b+1|0}while((b|0)<(g|0));c[e>>2]=d;c[f+52>>2]=22;e=9;break}}else e=9}while(0);if((e|0)==8){a[b+65>>0]=1;d=0}else if((e|0)==9)if(!(a[d+76>>0]|0)){e=d+77|0;b=d+8|0;g=b+64|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(g|0));a[e>>0]=1}return d|0}function Un(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();if(e){k=b+428|0;h=Zm(k,e,m)|0;if(!h)g=0;else g=c[h+8>>2]|0;if((g|0)==0&(f|0)!=0){h=e;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=h-e&1073741823;f=h+61|0;g=ih(b,f,0)|0;if(g){bw(g|0,0,f|0)|0;f=g+60|0;c[g>>2]=f;a[g+4>>0]=1;c[g+20>>2]=f;a[g+24>>0]=2;c[g+40>>2]=f;a[g+44>>0]=3;gw(f|0,e|0,h|0)|0;a[g+(h+60)>>0]=0;h=Ek(k,c[g>>2]|0,g)|0;if(!h)l=10;else{a[b+65>>0]=1;ig(b,h);g=0}}else g=0}else l=10}else{g=c[b+8>>2]|0;l=10}if((l|0)==10)if(!g)g=0;else g=g+(((d&255)+-1|0)*20|0)|0;i=m;return g|0}function Vn(f,g,h){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,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))ba();y=A;m=A+48|0;q=A+24|0;v=A+8|0;n=(g|0)==1;t=n?13184:13208;c[m>>2]=t;c[m+4>>2]=13224;c[m+8>>2]=n?13064:12960;c[m+12>>2]=0;c[v>>2]=f;c[v+8>>2]=g;u=v+12|0;c[u>>2]=0;c[v+4>>2]=h;Xm(v,3,m,0)|0;m=c[u>>2]|0;a:do if(!m){w=f+16|0;m=Wh(f,t,c[(c[w>>2]|0)+(g<<4)>>2]|0)|0;if(m){s=m+44|0;a[s>>0]=d[s>>0]|1}l=c[w>>2]|0;x=l+(g<<4)+4|0;m=c[x>>2]|0;if(!m){if(!n){k=0;break}k=(c[l+28>>2]|0)+78|0;b[k>>1]=e[k>>1]|1;k=0;break}c[(c[m+4>>2]|0)+4>>2]=c[m>>2];do if(!(a[m+8>>0]|0)){m=ug(m,0)|0;if((m|0)==516)k=16344;else if(!m){m=c[x>>2]|0;s=1;break}else z=10;if((z|0)==10){k=m&255;if(k>>>0>26|(k|0)==2)k=16328;else k=c[15488+(k<<2)>>2]|0}c[y>>2]=k;$g(h,f,10344,y);k=m;z=38;break a}else s=0;while(0);sm(m,1,q);r=q+4|0;sm(c[x>>2]|0,2,r);o=q+8|0;sm(c[x>>2]|0,3,o);sm(c[x>>2]|0,4,q+12|0);n=q+16|0;sm(c[x>>2]|0,5,n);p=l+(g<<4)+12|0;m=c[p>>2]|0;c[m>>2]=c[q>>2];l=c[n>>2]|0;do if(l){if(!g){n=l&3;n=(n|0)==0?1:n&255;a[f+62>>0]=n;z=19;break}n=a[f+62>>0]|0;if((l|0)==(n&255|0))z=19;else{$g(h,f,13232,y);k=1}}else{n=(c[(c[w>>2]|0)+(g<<4)+12>>2]|0)+78|0;b[n>>1]=e[n>>1]|4;n=a[f+62>>0]|0;z=19}while(0);do if((z|0)==19){a[m+77>>0]=n;n=m+80|0;if(!(c[n>>2]|0)){m=c[o>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0;m=(m|0)==0?2e3:m;c[n>>2]=m;lq
11 function iq(f,g){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,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,ca=0,da=0,ea=0;ea=i;i=i+192|0;if((i|0)>=(j|0))ba();_=ea+48|0;Y=ea+24|0;X=ea+160|0;F=ea+156|0;P=ea+152|0;I=ea+148|0;S=ea+144|0;L=ea+140|0;E=ea+16|0;ca=ea;v=ea+128|0;u=ea+116|0;w=ea+96|0;l=ea+88|0;da=f+8|0;$=c[da>>2]|0;aa=c[f>>2]|0;c[ca+0>>2]=c[9286];c[ca+4>>2]=c[9287];c[ca+8>>2]=c[9288];a:do switch(g|0){case 5:{a[$+450>>0]=0;c[$+440>>2]=0;break}case 7:{a[$+450>>0]=2;c[$+440>>2]=0;break}case 6:{a[$+450>>0]=1;c[$+440>>2]=0;break}case 38:{_=c[f+(aa+-2<<4)+16>>2]|0;c[ca>>2]=_;c[ca+4>>2]=(c[$+504>>2]|0)-_+(c[$+508>>2]|0);break}case 39:{u=f+(aa<<4)+16|0;s=c[$>>2]|0;k=c[$+484>>2]|0;b:do if(k){t=k+38|0;if((b[t>>1]|0)>=(c[s+96>>2]|0)){c[_>>2]=c[k>>2];ph($,36528,_);break}r=Sq(s,u)|0;if(r){p=b[t>>1]|0;h=p<<16>>16;c:do if(p<<16>>16>0){q=a[9328+(d[r>>0]|0)>>0]|0;n=c[k+4>>2]|0;o=r+1|0;l=0;while(1){m=c[n+(l*24|0)>>2]|0;if(q<<24>>24==(a[9328+(d[m>>0]|0)>>0]|0)?($c(o,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break c}c[_>>2]=r;ph($,36552,_);ig(s,r);break b}else n=c[k+4>>2]|0;while(0);o=k+4|0;do if(!(h&7)){n=no(s,n,(h*24|0)+192|0,0)|0;if(!n){ig(s,r);break b}else{c[o>>2]=n;p=b[t>>1]|0;break}}while(0);_=p<<16>>16;Z=n+(_*24|0)|0;c[Z+0>>2]=0;c[Z+4>>2]=0;c[Z+8>>2]=0;c[Z+12>>2]=0;c[Z+16>>2]=0;c[Z+20>>2]=0;c[Z>>2]=r;a[n+(_*24|0)+21>>0]=65;a[n+(_*24|0)+22>>0]=1;b[t>>1]=(b[t>>1]|0)+1<<16>>16}}while(0);Y=u;Z=c[Y+4>>2]|0;_=ca;c[_>>2]=c[Y>>2];c[_+4>>2]=Z;c[$+324>>2]=0;break}case 22:{Pq($,0,f+(aa<<4)+16|0);break}case 23:{Pq($,1,f+(aa<<4)+16|0);break}case 8:{v=c[$>>2]|0;z=v+65|0;if(((a[z>>0]|0)==0?(a[$+18>>0]|0)==0:0)?(V=$+64|0,(c[V>>2]|0)==0):0){y=Kq($)|0;if(y){do{}while((Lq];h=c[ca>>2]|0;ur($,h)}if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,h,0,0)|0}else{c[ca>>2]=Vq($,132,0,0,20616+(c[f+(aa+-3<<4)+16>>2]<<3)|0)|0;Ck(c[$>>2]|0,c[f+(aa+-4<<4)+16>>2]|0)}while(0);c[ca+4>>2]=c[f+(aa+-4<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 211:{_=aa+-2|0;c[ca>>2]=Vq($,77,c[f+(_<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 212:{Y=aa+-2|0;Z=f+(aa<<4)+16|0;_=Vq($,73,c[f+(Y<<4)+16>>2]|0,c[Z>>2]|0,0)|0;c[ca>>2]=_;c[ca+4>>2]=c[f+(Y<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];tr($,c[Z>>2]|0,_,76);break}case 213:{Y=aa+-3|0;Z=f+(aa<<4)+16|0;_=Vq($,148,c[f+(Y<<4)+16>>2]|0,c[Z>>2]|0,0)|0;c[ca>>2]=_;c[ca+4>>2]=c[f+(Y<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];tr($,c[Z>>2]|0,_,77);break}case 215:case 214:{_=aa+-1|0;c[ca>>2]=Vq($,d[f+(_<<4)+14>>0]|0,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 216:{c[ca>>2]=Vq($,157,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 217:{c[ca>>2]=Vq($,158,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 220:{k=hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;l=aa+-4|0;h=Vq($,74,c[f+(l<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h)Jk(c[$>>2]|0,k);else c[h+20>>2]=k;if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,c[ca>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 116:{c[ca>>2]=116;break}case 121:{h=gr($,c[f+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}else{a[h+4>>0]=116;c[h+52>>2]=c[f+(aa+-4<<4)+16>>2];c[ca>>2]=h;break a}}case 122:{b[ca>>1]=1;break}case 124:case 123:{b[ca>>1]=0;break}case 243:case 125:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 242:case 236:case 161:case 154:case 126:{c[ca>>2]=0;break}case 127:{l=aa+-1|0;n=hr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(l<<4)+16>>2]|0)|0;c[ca>>2]=n;if(c[f+(aa<<4)+20>>2]|0)ir($,n,f+(aa<<4)+16|0,1);p=c[$>>2]|0;if(n){o=(c[n+4>>2]|0)+(((c[n>>2]|0)+-1|0)*20|0)+8|0;ig(p,c[o>>2]|0);m=c[f+(l<<4)+20>>2]|0;n=(c[f+(l<<4)+24>>2]|0)-m|0;if((m|0)!=0?(h=fw(n|0,((n|0)<0)<<31>>31|0,1,0)|0,h=ih(p,h,C)|0,(h|0)!=0):0){gw(h|0,m|0,n|0)|0;a[h+n>>0]=0}else h=0;c[o>>2]=h}break}case 133:{l=ih(c[$>>2]|0,80,0)|0;if(l){v=l+0|0;k=v+80|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0))}c[ca>>2]=l;break}case 134:{n=c[f+(aa<<4)+16>>2]|0;c[ca>>2]=n;if(n){l=c[n>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[n+(k*72|0)+44>>0]=a[n+((l+-2|0)*72|0)+44>>0]|0;l=k+-1|0;if((l|0)>0){$=k;k=l;l=$}else break}a[n+44>>0]=0}break}case 128:{Z=c[$>>2]|0;c[_>>2]=0;c[_+4>>2]=0;_=jr(Z,116,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-1<<4)+16>>2]|0,_)|0;break}case 132:{c[ca+4>>2]=0;break}case 129:{_=Vq($,116,0,0,f+(aa<<4)+16|0)|0;_=Vq($,122,Vq($,27,0,0,f+(aa+-2<<4)+16|0)|0,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-3<<4)+16>>2]|0,_)|0;break}case 136:{c[ca>>2]=0;break}case 137:{_=fr($,c[f+(aa+-6<<4)+16>>2]|0,f+(aa+-5<<4)+16|0,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;kr($,_,f+(aa+-2<<4)+16|0);break}case 135:{h=c[f+(aa+-1<<4)+16>>2]|0;c[ca>>2]=h;if((h|0)!=0?(t=c[h>>2]|0,(t|0)>0):0)a[h+((t+-1|0)*72|0)+44>>0]=c[f+(aa<<4)+16>>2];break}case 138:{c[ca>>2]=fr($,c[f+(aa+-6<<4)+16>>2]|0,0,0,f+(aa+-2<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 139:{l=f+(aa+-6<<4)+16|0;n=c[l>>2]|0;if((((n|0)==0?(c[f+(aa+-2<<4)+20>>2]|0)==0:0)?(c[f+(aa+-1<<4)+16>>2]|0)==0:0)?(c[f+(aa<<4)+16>>2]|0)==0:0){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}p=f+(aa+-4<<4)+16|0;k=c[p>>2]|0;o=c[k>>2]|0;if((o|0)==1){l=fr($,n,0,0,f+(aa+-2<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=l;if(l){X=(c[l>>2]|0)+-1|0;_=c[p>>2]|0;Z=_+16|0;c[l+(X*72|0)+16>>2]=c[Z>>2];Y=_+12|0;c[l+(X*72|0)+12>>2]=c[Y>>2];_=_+28|0;c[l+(X*72|0)+28>>2]=c[_>>2];c[Y>>2]=0;c[Z>>2]=0;c[_>>2]=0}zo(c[$>>2]|0,c[p>>2]|0);break a}if(k){m=o+-1|0;if((m|0)>0){n=o;while(1){a[k+(m*72|0)+44>>0]=a[k+((n+-2|0)*72|0)+44>>0]|0;n=m+-1|0;if((n|0)>0){_=m;m=n;n=_}else break}}a[k+44>>0]=0}_=gr($,0,k,0,0,0,0,512,0,0)|0;c[ca>>2]=fr($,c[l>>2]|0,0,0,f+(aa+-2<<4)+16|0,_,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 149:case 140:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 144:{c[ca>>2]=mr($,f+(aa+-1<<4)+16|0,0,0)|0;break}case 145:{c[ca>>2]=mr($,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0,0)|0;break}case 146:{c[ca>>2]=mr($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[ca>>2]=0;break}case 151:{c[ca>>2]=0;c[ca+4>>2]=1;break}case 143:{c[ca>>2]=1;break}case 142:{c[ca>>2]=lr(c[$>>2]|0,0,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0)|0;break}case 156:{h=hr($,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if(h)a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2];break}case 157:{h=hr($,0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if((h|0)!=0?(k=c[h+4>>2]|0,(k|0)!=0):0)a[k+12>>0]=c[f+(aa<<4)+16>>2];break}case 179:case 153:{c[ca>>2]=0;break}case 180:case 152:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 166:{c[ca>>2]=c[f+(aa<<4)+16>>2];c[ca+4>>2]=0;break}case 167:{c[ca>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+4>>2]=c[f+(aa<<4)+16>>2];break}case 168:{c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 169:{h=c[f+(aa+-5<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}_=f+(aa+-2<<4)+16|0;kr($,c[_>>2]|0,f+(aa+-1<<4)+16|0);nr($,c[_>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 235:case 162:case 155:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}default:{}}while(0);h=a[20912+(g<<1)>>0]|0;o=h&255;n=a[20913+(g<<1)>>0]|0;m=n&255;p=(c[f>>2]|0)-m|0;c[f>>2]=p;l=b[22184+((b[21568+(e[f+(aa-m<<4)+12>>1]<<1)>>1]|0)+o<<1)>>1]|0;k=l&65535;do if((l&65535)<642)if(!(n<<24>>24)){gq(f,k,o,ca);break}else{c[f>>2]=p+1;aa=1-m+aa|0;b[f+(aa<<4)+12>>1]=l;a[f+(aa<<4)+14>>0]=h;aa=f+(aa<<4)+16|0;c[aa+0>>2]=c[ca+0>>2];c[aa+4>>2]=c[ca+4>>2];c[aa+8>>2]=c[ca+8>>2];break}else{h=c[da>>2]|0;if((p|0)>-1)do Ln(f);while((c[f>>2]|0)>-1);c[da>>2]=h}while(0);i=ea;return}function jq(e,f){e=e|0;f=f|0;var g=0,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,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,ca=0,da=0;aa=i;i=i+64|0;if((i|0)>=(j|0))ba();$=aa+8|0;W=aa;n=aa+24|0;h=aa+16|0;l=tq(e,0,h)|0;do if(!l){if(c[h>>2]|0){l=$r(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){_=e+43|0;k=(a[_>>0]|0)==0;do if(!(a[e+46>>0]&2)){if(k?(m=e+4|0,Z=c[m>>2]|0,Yb[c[(c[Z>>2]|0)+40>>2]&63](Z,24,0)|0,m=c[m>>2]|0,m=lc[c[(c[m>>2]|0)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}Z=e+44|0;a[Z>>0]=1;k=tq(e,0,h)|0;if(!k){h=$r(e,f)|0;if(!h){h=0;g=0}else{Y=d[e+45>>0]|0;X=Y+1|0;Y=7-Y|0;if(!((a[_>>0]|0)==0?(g=c[e+4>>2]|0,g=lc[c[(c[g>>2]|0)+56>>2]&31](g,X,Y,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[l>>2]=0;l=l+4|0}while((l|0)<(k|0));Q=e+8|0;g=c[Q>>2]|0;g=nc[c[(c[g>>2]|0)+24>>2]&127](g,W)|0;a:do if(!g){R=W;P=c[R+4>>2]|0;b:do if((P|0)>0|(P|0)==0&(c[R>>2]|0)>>>0>32){g=c[Q>>2]|0;g=pc[c[(c[g>>2]|0)+8>>2]&31](g,n,32,0,0)|0;if(g)break a;m=d[n+3>>0]|0;k=d[n+9>>0]<<16|d[n+8>>0]<<24;g=d[n+10>>0]<<8;l=k|g|d[n+11>>0];if(((d[n+1>>0]<<16|d[n>>0]<<24|d[n+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(R=m&1,S=e+65|0,a[S>>0]=R,T=e+36|0,c[T>>2]=l,c[e+104>>2]=d[n+13>>0]<<16|d[n+12>>0]<<24|d[n+14>>0]<<8|d[n+15>>0],U=e+84|0,P=n+16|0,N=P,N=d[N>>0]|d[N+1>>0]<<8|d[N+2>>0]<<16|d[N+3>>0]<<24,P=P+4|0,P=d[P>>0]|d[P+1>>0]<<8|d[P+2>>0]<<16|d[P+3>>0]<<24,V=U,O=V,a[O>>0]=N,a[O+1>>0]=N>>8,a[O+2>>0]=N>>16,a[O+3>>0]=N>>24,V=V+4|0,a[V>>0]=P,a[V+1>>0]=P>>8,a[V+2>>0]=P>>16,a[V+3>>0]=P>>24,V=e+76|0,uq(R^1,n,24,0,V),(c[V>>2]|0)==(d[n+25>>0]<<16|d[n+24>>0]<<24|d[n+26>>0]<<8|d[n+27>>0]|0)):0){P=e+80|0;if((c[P>>2]|0)!=(d[n+29>>0]<<16|d[n+28>>0]<<24|d[n+30>>0]<<8|d[n+31>>0]|0)){l=0;g=0;break}if((d[n+5>>0]<<16|d[n+4>>0]<<24|d[n+6>>0]<<8|d[n+7>>0]|0)!=3007e3){c[$>>2]=49983;c[$+4>>2]=10788;Zc(14,14848,$);g=14;break a}t=l+24|0;R=Pc(t)|0;if(!R){g=7;break a}u=R+24|0;v=((t|0)<0)<<31>>31;n=fw(t|0,v|0,32,0)|0;m=C;O=W;N=c[O+4>>2]|0;c:do if(!((m|0)>(N|0)|((m|0)==(N|0)?n>>>0>(c[O>>2]|0)>>>0:0))){w=R+8|0;x=R+1|0;y=R+2|0;z=R+3|0;A=R+16|0;B=R+17|0;D=R+18|0;E=R+19|0;F=R+20|0;G=R+21|0;H=R+22|0;I=R+23|0;J=R+4|0;K=R+5|0;L=R+6|0;M=R+7|0;N=e+68|0;O=e+72|0;r=(k>>>16|g)&65535;s=e+66|0;o=32;k=0;l=0;p=0;q=1;while(1){g=c[Q>>2]|0;g=pc[c[(c[g>>2]|0)+8>>2]&31](g,R,t,o,k)|0;if(g){k=36;break}if(Vv(U,w,8)|0){g=p;k=37;break}k=d[x>>0]<<16|d[R>>0]<<24|d[y>>0]<<8|d[z>>0];if(!k){g=p;k=37;break}o=(a[S>>0]|0)==0&1;uq(o,R,8,V,V);uq(o,u,c[T>>2]|0,V,V);if((c[V>>2]|0)!=(d[B>>0]<<16|d[A>>0]<<24|d[D>>0]<<8|d[E>>0]|0)){g=p;k=37;break}if((c[P>>2]|0)!=(d[G>>0]<<16|d[F>>0]<<24|d[H>>0]<<8|d[I>>0]|0)){g=p;break c}o=d[K>>0]<<16|d[J>>0]<<24|d[L>>0]<<8|d[M>>0];g=Wo(e,q,k)|0;if(g){k=36;break}if(!o)g=p;else{c[N>>2]=q;c[O>>2]=o;b[s>>1]=r;l=c[V>>2]|0;g=c[P>>2]|0}k=fw(n|0,m|0,t|0,v|0)|0;o=C;p=W;ca=c[p+4>>2]|0;if((o|0)>(ca|0)|((o|0)==(ca|0)?k>>>0>(c[p>>2]|0)>>>0:0))break c;else{da=m;ca=n;n=k;m=o;p=g;q=q+1|0;k=da;o=ca}}if((k|0)==36){Sc(R);break a}else if((k|0)==37){Sc(R);break b}}else{l=0;g=0}while(0);Sc(R)}else{l=0;g=0}}else{l=0;g=0}while(0);c[e+76>>2]=l;c[e+80>>2]=g;Xo(e);k=c[c[e+32>>2]>>2]|0;c[k+96>>2]=0;c[k+100>>2]=0;g=k+104|0;c[g>>2]=-1;c[k+108>>2]=-1;c[k+112>>2]=-1;c[k+116>>2]=-1;k=e+68|0;l=c[k>>2]|0;if(l)c[g>>2]=l;if(!(c[e+72>>2]|0))g=0;else{g=c[e+100>>2]|0;c[$>>2]=c[k>>2];c[$+4>>2]=g;Zc(283,14888,$);g=0}}while(0);if(!(a[_>>0]|0)){W=c[e+4>>2]|0;lc[c[(c[W>>2]|0)+56>>2]&31](W,X,Y,9)|0}}c[f>>2]=1}}else{h=l;g=k}a[Z>>0]=0;if(!(a[_>>0]|0)){_=c[e+4>>2]|0;lc[c[(c[_>>2]|0)+56>>2]&31](_,0,1,9)|0}}else if(k){h=e+4|0;g=c[h>>2]|0;g=lc[c[(c[g>>2]|0)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[_>>0]|0)){h=c[h>>2]|0;lc[c[(c[h>>2]|0)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[e+52>>2]|0)!=3007e3){c[$>>2]=50909;c[$+4>>2]=10788;Zc(14,14848,$);g=14}}else g=l;while(0);i=aa;return g|0}function kq(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;p=c[h>>2]|0;q=c[g>>2]|0;k=(p|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;o=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(r=q+(m<<1)|0,(c[a+((e[j>>1]|0)<<2)>>2]|0)>>>0>=(c[a+((e[r>>1]|0)<<2)>>2]|0)>>>0):0){k=r;s=7;break}l=l+1|0;k=j}else{k=q+(m<<1)|0;s=7}while(0);if((s|0)==7){s=0;m=m+1|0}n=b[k>>1]|0;k=c[a+((n&65535)<<2)>>2]|0;j=o+1|0;b[i+(o<<1)>>1]=n;if((l|0)<(f|0))l=((c[a+((e[d+(l<<1)>>1]|0)<<2)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(p|0);n=(l|0)<(f|0);if(!(k|n))break;else o=j}}else j=0;c[g>>2]=d;c[h>>2]=j;gw(d|0,i|0,j<<1|0)|0;return}function lqLqeak e}A=A+1|0;if((A|0)<(x<<16>>16|0))y=y+24|0;else{q=A;break}}}else q=0;while(0);if((q|0)>=(x<<16>>16|0))break;b[(c[B>>2]|0)+(h<<1)>>1]=q;A=c[p>>2]|0;if(!A){A=c[(c[D>>2]|0)+(q*24|0)+16>>2]|0;A=(A|0)!=0?A:11152}else{y=c[A+8>>2]|0;if(!y)A=1;else{A=y;while(1)if(!(a[A>>0]|0))break;else A=A+1|0;A=(A-y&1073741823)+1|0}gw(z|0,y|0,A|0)|0;y=c[K>>2]|0;z=y+A|0;c[K>>2]=z;A=y}if((a[o>>0]|0)==0?(_q(f,A)|0)==0:0){h=0;r=0;T=134;break c}c[(c[g>>2]|0)+(h<<2)>>2]=A;a[(c[v>>2]|0)+h>>0]=w?a[p+12>>0]|0:0;if(!(a[(c[D>>2]|0)+(q*24|0)+20>>0]|0))a[E>>0]=a[E>>0]&-9;h=h+1|0;if((h|0)<(c[l>>2]|0))p=p+20|0;else break d}c[S>>2]=c[u>>2];c[S+4>>2]=r;ph(f,36184,S);a[f+17>>0]=1;h=0;r=0;T=134;break c}else h=0;while(0);do if(F){w=J+46|0;x=b[w>>1]|0;if(!(x<<16>>16))break;B=J+4|0;C=M+4|0;D=M+48|0;p=J+32|0;q=M+32|0;g=J+28|0;v=M+28|0;o=0;do{y=b[(c[B>>2]|0)+(o<<1)>>1]|0;r=c[C>>2]|0;A=e[G>>1]|0;z=r;while(1){if((A|0)<=0){T=92;break}if((b[z>>1]|0)==y<<16>>16){T=91;break}else{A=A+-1|0;z=z+2|0}}if((T|0)==91){T=0;b[D>>1]=(b[D>>1]|0)+-1<<16>>16}else if((T|0)==92){T=0;b[r+(h<<1)>>1]=y;c[(c[q>>2]|0)+(h<<2)>>2]=c[(c[p>>2]|0)+(o<<2)>>2];a[(c[v>>2]|0)+h>>0]=a[(c[g>>2]|0)+o>>0]|0;x=b[w>>1]|0;h=h+1|0}o=o+1|0}while((o|0)<(x&65535|0))}else{b[(c[M+4>>2]|0)+(h<<1)>>1]=-1;c[(c[M+32>>2]|0)+(h<<2)>>2]=11152}while(0);_p(M);o=f+484|0;g=c[o>>2]|0;if(!g){is(M);g=c[o>>2]|0}f:do if((u|0)==(g|0)){r=c[u+8>>2]|0;if(!r)break;y=b[G>>1]|0;z=M+4|0;A=M+32|0;while(1){if((b[r+46>>1]|0)==y<<16>>16){g:do if(!(y<<16>>16)){o=0;g=0}else{v=c[r+4>>2]|0;w=c[z>>2]|0;x=r+32|0;g=0;while(1){if((b[v+(g<<1)>>1]|0)!=(b[w+(g<<1)>>1]|0)){o=y;break g}o=c[(c[x>>2]|0)+(g<<2)>>2]|0;h=c[(c[A>>2]|0)+(g<<2)>>2]|0;if((o|0)!=(h|0)?($c(o,h)|0)!=0:0){o=y;break g}g=g+1|0;if((g|0)>=(y&65535|0)){o=y;break}}}while(0);if((g|0)==(o&65535|0))break}r=c[r+20>>2]|0;if(!r)break f}g=r+50|0;h=a[g>>0]|0;o=a[I>>0]|0;if(h<<24>>24==o<<24>>24){h=0;break c}if(!(h<<24>>24==10|o<<24>>24==10)){c[S>>2]=0;ph(f,36216,S);h=a[g>>0]|0}if(h<<24>>24!=10){h=0;T=134;break c}a[g>>0]=a[I>>0]|0;h=0;break c}while(0);h=U+145|0;do if(!(a[h>>0]|0)){if(c[f+64>>2]|0){T=126;break}if(!((a[N>>0]&32)==0|R)){T=126;break}r=f+72|0;o=(c[r>>2]|0)+1|0;c[r>>2]=o;r=Kq(f)|0;if(!r){h=0;r=0;T=134;break c}G=c[f+408>>2]|0;G=(G|0)==0?f:G;wr(f,s);F=G+328|0;c[F>>2]=c[F>>2]|1<<s;G=G+20|0;a[G>>0]=d[G>>0]|1;sh(r,120,s,o,0)|0;if(!n)g=0;else{g=c[c[Q>>2]>>2]|0;G=(c[f+504>>2]|0)-g+(c[f+508>>2]|0)|0;F=G+-1|0;G=(a[g+F>>0]|0)==59?F:G;c[S>>2]=(m|0)==0?10360:36288;c[S+4>>2]=G;c[S+8>>2]=g;g=qh(U,36264,S)|0}F=c[M>>2]|0;G=c[u>>2]|0;c[S>>2]=c[(c[O>>2]|0)+(s<<4)>>2];c[S+4>>2]=L;c[S+8>>2]=F;c[S+12>>2]=G;c[S+16>>2]=o;c[S+20>>2]=g;xr(f,36296,S);ig(U,g);if(!R)break;rs(f,M,o);zr(f,s);c[S>>2]=c[M>>2];Er(r,s,qh(U,36344,S)|0);sh(r,144,0,0,0)|0;T=126}else{if(Ek((c[H>>2]|0)+24|0,c[M>>2]|0,M)|0){a[P>>0]=1;h=0;r=0;T=134;break c}G=U+24|0;c[G>>2]=c[G>>2]|2;if(!R)break;c[M+40>>2]=c[U+140>>2];T=126}while(0);if((T|0)==126?!((a[h>>0]|0)!=0|(k|0)==0):0){h=0;r=0;T=134;break}h=c[u+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[h+50>>0]|0)==5)break;do{r=h+20|0;h=c[r>>2]|0;if(!h){h=0;break}}while((a[h+50>>0]|0)!=5);c[M+20>>2]=h;c[r>>2]=M;o=0;r=M;h=t;break a}while(0);c[M+20>>2]=h;c[u+8>>2]=M;o=0;r=M;h=t;break a}else{h=o;r=0;T=134}while(0);if((T|0)==134)if(!M){o=h;h=t;break}Fk(U,M);o=h;h=t}else{r=0;h=t}}else{r=0;h=0}while(0);Ck(U,o);Jk(U,l);zo(U,k);ig(U,h);i=V;return r|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[e+484>>2]|0;h=c[e>>2]|0;if(((g|0)!=0?(a[e+451>>0]|0)==0:0)?(b[(c[(c[(c[h+16>>2]|0)+(d[h+144>>0]<<4)+4>>2]|0)+4>>2]|0)+22>>1]&1)==0:0){h=g+24|0;g=hr(e,c[h>>2]|0,f)|0;c[h>>2]=g;if(c[e+324>>2]|0)ir(e,g,e+320|0,1)}else Ck(h,f);return}function Zq(d,e,f,g,h){d=d|0;e=e|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,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))ba();z=C;B=c[d>>2]|0;A=c[d+484>>2]|0;a:do if((A|0)!=0?(a[d+451>>0]|0)==0:0){w=(e|0)==0;do if(w){y=b[A+38>>1]|0;l=(y<<16>>16)+-1|0;if(y<<16>>16<1){k=0;break a}if(g)if((c[g>>2]|0)==1){l=1;k=13}else{c[z>>2]=c[(c[A+4>>2]|0)+(l*24|0)>>2];c[z+4>>2]=f;ph(d,35712,z);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[e>>2]|0;k=12;break}l=c[g>>2]|0;if((l|0)==(c[e>>2]|0))k=13;else{ph(d,35776,z);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;p=m;t=0;m=(l<<3)+37+(c[m>>2]|0)|0;y=l}else if((k|0)==13){p=f+4|0;m=(l<<3)+37+(c[p>>2]|0)|0;q=c[g>>2]|0;if((q|0)>0){r=c[g+4>>2]|0;s=0;do{o=c[r+(s*20|0)+4>>2]|0;if(!o)k=1;else{n=o;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;k=(n-o&1073741823)+1|0}m=k+m|0;s=s+1|0}while((s|0)<(q|0));t=1;y=l}else{t=1;y=l}}k=ih(B,m,((m|0)<0)<<31>>31)|0;if(k){bw(k|0,0,m|0)|0;c[k>>2]=A;x=A+16|0;c[k+4>>2]=c[x>>2];u=k+36|0;n=u+(y<<3)|0;v=k+8|0;c[v>>2]=n;gw(n|0,c[f>>2]|0,c[p>>2]|0)|0;a[n+(c[p>>2]|0)>>0]=0;ho(n);n=n+((c[p>>2]|0)+1)|0;c[k+20>>2]=y;b:do if(!w){if((y|0)>0){m=A+4|0;f=e+4|0;o=b[A+38>>1]|0;l=0;while(1){c:do if(o<<16>>16>0){s=c[m>>2]|0;r=c[(c[f>>2]|0)+(l*20|0)+4>>2]|0;q=0;while(1){p=q+1|0;if(!($c(c[s+(q*24|0)>>2]|0,r)|0)){p=q;break}if((p|0)<(o<<16>>16|0))q=p;else break c}c[u+(l<<3)>>2]=p}else p=0;while(0);if((p|0)>=(o<<16>>16|0))break;l=l+1|0;if((l|0)>=(y|0))break b}c[z>>2]=c[(c[f>>2]|0)+(l*20|0)+4>>2];ph(d,35872,z);break a}}else c[u>>2]=(b[A+38>>1]|0)+-1;while(0);if(t&(y|0)>0){o=g+4|0;p=0;while(1){m=c[(c[o>>2]|0)+(p*20|0)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[u+(p<<3)+4>>2]=n;gw(n|0,m|0,l|0)|0;a[n+l>>0]=0;p=p+1|0;if((p|0)==(y|0))break;else n=n+(l+1)|0}}a[k+24>>0]=0;a[k+25>>0]=h;a[k+26>>0]=h>>>8;l=Ek((c[A+68>>2]|0)+56|0,c[v>>2]|0,k)|0;if((l|0)==(k|0)){a[B+65>>0]=1;break}if(l){c[k+12>>2]=l;c[l+16>>2]=k}c[x>>2]=k;k=0}else k=0}else k=0;while(0);ig(B,k);Jk(B,e);Jk(B,g);i=C;return}function _q(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[b>>2]|0;f=a[e+62>>0]|0;g=a[e+145>>0]|0;e=Un(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[e+12>>2]|0)!=0:0)break;e=ss(b,f,e,d)|0}while(0);return e|0}function $q(e,f,g,h){e=e|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,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))ba();w=y;s=y+12|0;x=c[e>>2]|0;do if(!(a[x+65>>0]|0)){h=(h|0)!=0;if(h){r=x+68|0;a[r>>0]=(a[r>>0]|0)+1<<24>>24;v=Qr(e,g,f+8|0)|0;a[r>>0]=(a[r>>0]|0)+-1<<24>>24}else v=Qr(e,g,f+8|0)|0;if(!v){if(!h)break;vr(e,c[f+12>>2]|0);break}p=v+68|0;l=c[p>>2]|0;a:do if(l){h=c[x+20>>2]|0;if((h|0)>0){k=c[x+16>>2]|0;n=0;while(1){m=n+1|0;if((c[k+(n<<4)+12>>2]|0)==(l|0)){m=n;break a}if((m|0)<(h|0))n=m;else break}}else m=0}else m=-1e6;while(0);t=v+44|0;if((a[t>>0]&16)!=0?(dr(e,v)|0)!=0:0)break;n=(m|0)==1;u=n?13184:13208;h=c[(c[x+16>>2]|0)+(m<<4)>>2]|0;if(!(Oq(e,9,u,0,h)|0)){k=(g|0)!=0;do if(k){l=n?15:17;n=0}else{if(!(a[t>>0]&16)){l=n?13:11;n=0;break}n=v+60|0;while(1){n=c[n>>2]|0;if((c[n>>2]|0)==(x|0))break;else n=n+24|0}l=30;n=c[(c[n+4>>2]|0)+4>>2]|0}while(0);if((Oq(e,l,c[v>>2]|0,n,h)|0)==0?(Oq(e,9,c[v>>2]|0,0,h)|0)==0:0){n=c[v>>2]|0;if((Bc(n,25568,7)|0)==0?(Bc(n,35488,11)|0)!=0:0){c[w>>2]=n;ph(e,35504,w);break}h=v+12|0;l=(c[h>>2]|0)==0;if(k){if(l){c[w>>2]=n;ph(e,35536,w);break}}else if(!l){c[w>>2]=n;ph(e,35576,w);break}if(Kq(e)|0){q=e+408|0;l=c[q>>2]|0;l=(l|0)==0?e:l;wr(e,m);r=1<<m;k=l+328|0;c[k>>2]=c[k>>2]|r;l=l+20|0;a[l>>0]=d[l>>0]|1;yr(e,m,28544,c[v>>2]|0);l=c[e>>2]|0;k=l+24|0;b:do if(((c[k>>2]&524288|0)!=0?(a[t>>0]&16)==0:0)?(c[h>>2]|0)==0:0){o=Kq(e)|0;s=Zm((c[p>>2]|0)+56|0,c[v>>2]|0,s)|0;if((s|0)!=0?(c[s+8>>2]|0)!=0:0)n=0;else{n=c[v+16>>2]|0;if(!n)break;while(1){if(a[n+24>>0]|0)break;if(c[k>>2]&16777216)break;n=c[n+4>>2]|0;if(!n)break b}n=ts(o)|0;sh(o,135,1,n,0)|0}s=e+438|0;a[s>>0]=1;nr(e,us(l,f,0)|0,0);a[s>>0]=0;if(!(c[k>>2]&16777216)){sh(o,135,0,(c[o+32>>2]|0)+2|0,0)|0;vs(e,787,2,0,-2,4)}if(n){l=c[o+24>>2]|0;h=~n;do if((n|0)<0){n=c[l+112>>2]|0;if(!n)break;c[n+(h<<2)>>2]=c[o+32>>2]}while(0);c[l+88>>2]=(c[o+32>>2]|0)+-1}}while(0);o=c[e>>2]|0;p=o+16|0;l=c[p>>2]|0;h=Kq(e)|0;s=c[q>>2]|0;s=(s|0)==0?e:s;wr(e,m);q=s+328|0;c[q>>2]=c[q>>2]|r;s=s+20|0;a[s>>0]=d[s>>0]|1;if(a[t>>0]&16)sh(h,146,0,0,0)|0;n=ws(e,v)|0;if(n)do{Mr(e,n);n=c[n+32>>2]|0}while((n|0)!=0);l=l+(m<<4)|0;if(a[t>>0]&8){s=c[v>>2]|0;c[w>>2]=c[l>>2];c[w+4>>2]=s;xr(e,35608,w)}s=c[v>>2]|0;c[w>>2]=c[l>>2];c[w+4>>2]=u;c[w+8>>2]=s;xr(e,35656,w);if((g|0)==0?(a[t>>0]&16)==0:0)xs(e,v);if(a[t>>0]&16){s=c[v>>2]|0;th(h,sh(h,148,m,0,0)|0,s,0)}k=c[v>>2]|0;th(h,sh(h,124,m,0,0)|0,k,0);zr(e,m);h=c[(c[p>>2]|0)+(m<<4)+12>>2]|0;k=b[h+78>>1]|0;if(k&2){l=c[h+16>>2]|0;if(l){k=l;do{h=c[k+8>>2]|0;if(c[h+12>>2]|0){Hk(o,h);c[h+4>>2]=0;b[h+38>>1]=0}k=c[k>>2]|0}while((k|0)!=0);k=c[(c[p>>2]|0)+(m<<4)+12>>2]|0;h=k;k=b[k+78>>1]|0}b[h+78>>1]=k&65533}}}}}while(0);zo(x,f);i=y;return}function ar(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;h=c[b>>2]|0;do if((f|0)!=0?(c[f+4>>2]|0)!=0:0){if(a[h+145>>0]|0){ph(b,28488,k);f=b+64|0;c[f>>2]=(c[f>>2]|0)+1;f=-1;break}c[g>>2]=f;g=Sq(h,e)|0;f=Rh(h,g)|0;ig(h,g);if((f|0)<0){c[k>>2]=e;ph(b,28512,k);f=b+64|0;c[f>>2]=(c[f>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[h+144>>0]|0;c[g>>2]=e}i=m;return f|0}function br(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Dr(a,c[b>>2]|0)|0){b=1;break a}if(Gr(a,c[b+32>>2]|0)|0){b=1;break a}if(Cr(a,c[b+36>>2]|0)|0){b=1;break a}if(Dr(a,c[b+40>>2]|0)|0){b=1;break a}if(Cr(a,c[b+44>>2]|0)|0){b=1;break a}if(Dr(a,c[b+48>>2]|0)|0){b=1;break a}if(Cr(a,c[b+60>>2]|0)|0){b=1;break a}if(Cr(a,c[b+64>>2]|0)|0){b=1;break a}b=c[b+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function cr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=ih(d,72,0)|0,(h|0)!=0):0){c[h>>2]=Lr(d,c[f>>2]|0,g)|0;c[h+32>>2]=us(d,c[f+32>>2]|0,g)|0;c[h+36>>2]=Ir(d,c[f+36>>2]|0,g,0)|0;c[h+40>>2]=Lr(d,c[f+40>>2]|0,g)|0;c[h+44>>2]=Ir(d,c[f+44>>2]|0,g,0)|0;c[h+48>>2]=Lr(d,c[f+48>>2]|0,g)|0;a[h+4>>0]=a[f+4>>0]|0;j=cr(d,c[f+52>>2]|0,g)|0;c[h+52>>2]=j;if(j)c[j+56>>2]=h;c[h+56>>2]=0;c[h+60>>2]=Ir(d,c[f+60>>2]|0,g,0)|0;c[h+64>>2]=Ir(d,c[f+64>>2]|0,g,0)|0;c[h+8>>2]=0;c[h+12>>2]=0;b[h+6>>1]=(e[f+6>>1]|0)&65527;c[h+16>>2]=-1;c[h+20>>2]=-1;l=f+24|0;j=c[l+4>>2]|0;g=h+24|0;c[g>>2]=c[l>>2];c[g+4>>2]=j;g=c[f+68>>2]|0;if((g|0)!=0?(k=c[g>>2]<<4|8,i=ih(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){bw(i|0,0,k|0)|0;c[i>>2]=c[g>>2];if((c[g>>2]|0)>0){f=i+8|0;j=0;do{c[f+(j<<4)+8>>2]=cr(d,c[g+(j<<4)+16>>2]|0,0)|0;c[f+(j<<4)+4>>2]=Lr(d,c[g+(j<<4)+12>>2]|0,0)|0;c[f+(j<<4)>>2]=gh(d,c[g+(j<<4)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[g>>2]|0))}}else i=0;c[h+68>>2]=i}else h=0;return h|0}function dr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))ba();p=t;k=t+8|0;m=t+4|0;s=c[d>>2]|0;n=f+44|0;h=a[n>>0]|0;a:do if(!(h&16))q=11;else{g=c[f+60>>2]|0;if(g)do{if((c[g>>2]|0)==(s|0)){q=11;break a}g=c[g+24>>2]|0}while((g|0)!=0);g=f+56|0;h=Zm(s+308|0,c[c[g>>2]>>2]|0,k)|0;if((h|0)!=0?(l=c[h+8>>2]|0,(l|0)!=0):0){c[m>>2]=0;l=(vn(s,f,l,c[(c[l>>2]|0)+8>>2]|0,m)|0)==0;h=c[m>>2]|0;if(l){ig(s,h);h=a[n>>0]|0;q=11;break}else{c[p>>2]=h;ph(d,10344,p);ig(s,h);g=1;break}}c[p>>2]=c[c[g>>2]>>2];ph(d,28320,p);g=1}while(0);do if((q|0)==11)if((h&16)==0?(r=f+38|0,o=b[r>>1]|0,o<<16>>16<=0):0){if(o<<16>>16<0){c[p>>2]=c[f>>2];ph(d,26752,p);g=1;break}h=cr(s,c[f+12>>2]|0,0)|0;if(!h)g=1;else{o=s+250|0;n=a[o>>0]|0;q=d+68|0;p=c[q>>2]|0;ys(d,c[h+32>>2]|0);b[r>>1]=-1;a[o>>0]=0;m=s+284|0;l=c[m>>2]|0;c[m>>2]=0;g=js(d,h)|0;c[m>>2]=l;a[o>>0]=n;c[q>>2]=p;if(!g){b[r>>1]=0;g=1}else{d=g+38|0;b[r>>1]=b[d>>1]|0;q=g+4|0;c[f+4>>2]=c[q>>2];b[d>>1]=0;c[q>>2]=0;gg(s,g);g=(c[f+68>>2]|0)+78|0;b[g>>1]=e[g>>1]|0|2;g=0}Ik(s,h,1)}}else g=0;while(0);i=t;return g|0}
12 1560,-2);sh(Q,16,0,s,0)|0;n=c[E>>2]|0;q=~h;do if((h|0)<0){o=c[n+112>>2]|0;if(!o)break;c[o+(q<<2)>>2]=c[m>>2]}while(0);o=c[m>>2]|0;c[n+88>>2]=o+-1}if(o>>>0>u>>>0)c[(c[F>>2]|0)+(u*20|0)+8>>2]=o;c[n+88>>2]=o+-1;Mt(f,c[C>>2]|0);o=l}l=c[l+20>>2]|0;if(!l)break;else v=v+1|0}}sh(Q,9,c[A>>2]|0,H,0)|0;l=H+-1|0;k=c[m>>2]|0;if(k>>>0>l>>>0)c[(c[F>>2]|0)+(l*20|0)+8>>2]=k;c[(c[E>>2]|0)+88>>2]=k+-1;th(Q,sh(Q,97,0,2,0)|0,31592,-2);l=c[G>>2]|0;if(!l)break;else n=0;while(1){if((g|0)!=(l|0)){k=c[m>>2]|0;sh(Q,137,1,k+2|0,0)|0;sh(Q,24,0,0,0)|0;sh(Q,50,(c[B>>2]|0)+n|0,3,0)|0;sh(Q,79,n+8|0,k+8|0,3)|0;k=c[F>>2]|0;if(k)a[k+(((c[m>>2]|0)+-1|0)*20|0)+3>>0]=-112;sh(Q,37,1,-1,0)|0;z=c[l>>2]|0;th(Q,sh(Q,97,0,3,0)|0,z,0);sh(Q,94,3,2,7)|0;sh(Q,35,7,1,0)|0}l=c[l+20>>2]|0;if(!l)break;else n=n+1|0}}while(0);t=c[t>>2]|0}while((t|0)!=0);t=c[J>>2]|0}L=L+1|0}while((L|0)<(t|0))}else m=Q+32|0;l=uh(Q,3,31448)|0;m=c[m>>2]|0;if(m>>>0>l>>>0){c[(c[Q+4>>2]|0)+(l*20|0)+12>>2]=0-p;c[(c[Q+4>>2]|0)+(l*20|0)+8>>2]=m}c[(c[Q+24>>2]|0)+88>>2]=m+-1;th(Q,l+1|0,31624,-2);break a}case 23:{Ft(f,31016,0,0);break a}case 31:{if(!R){Ft(f,31032,d[T+64>>0]|0,0);break a}l=a[R>>0]|0;if((l+-48&255)>=3)if(!($c(R,31352)|0))l=1;else{l=($c(R,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[f>>2]|0)+64|0;if((d[m>>0]|0)==(l|0))break a;if(Gt(f)|0)break a;a[m>>0]=l;break a}case 4:if(!R){D=c[(c[z+(N<<4)+12>>2]|0)+80>>2]|0;Ft(f,30848,D,((D|0)<0)<<31>>31);break a}else{c[D>>2]=0;zn(R,D)|0;D=c[D>>2]|0;c[(c[z+(N<<4)+12>>2]|0)+80>>2]=D;lqlq