Lines Matching refs:Jt
6 ;A=0;B=c[(e&p)+40>>2]|0;f=0;while(1){k=c[((c[(B&p)>>2]|0)&p)+20>>2]|0;if(!k){g=0;i=0}else{g=c[(k&p)>>2]|0;i=c[(z&p)>>2]|0;h=c[(y&p)>>2]|0;if((h|0)<(g|0)){i=c[(u&p)>>2]|0;c[(u&p)>>2]=i+g;i=i+1|0}else{c[(z&p)>>2]=i+g;c[(y&p)>>2]=h-g}bt(d,k,i,1)}h=B+12|0;if((c[(h&p)>>2]|0)>-1){q=xs(D)|0;zu(d,c[(h&p)>>2]|0,q,1,i)}else q=0;m=B+4|0;h=c[(m&p)>>2]|0;if(b[(h&o)+2>>1]&32){if((g|0)>0){l=0;k=c[(k&p)+4>>2]|0;while(1){h=cu(d,c[(k&p)>>2]|0)|0;l=l+1|0;j=(h|0)!=0;if(!((l|0)<(g|0)&(j^1)))break;else k=k+20|0}if(!j)C=15}else C=15;if((C|0)==15){C=0;h=c[((c[(d&p)>>2]|0)&p)+8>>2]|0}if(!f)if(!(c[(t&p)>>2]|0))f=0;else{f=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=f}xh(D,wh(D,36,f,0,0)|0,h,-4);h=c[(m&p)>>2]|0}xh(D,wh(D,10,0,i,c[(B&p)+8>>2]|0)|0,h,-5);h=c[(w&p)>>2]|0;if(h)a[(h+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=g;dt(d,i,g);dt(d,i,g);if((c[(y&p)>>2]|0)<(g|0)){c[(y&p)>>2]=g;c[(z&p)>>2]=i}if(q){i=c[(r&p)>>2]|0;h=~q;if((q|0)<0?(x=c[(i&p)+112>>2]|0,(x|0)!=0):0)c[(x+(h<<2)&p)>>2]=c[(s&p)>>2];c[(i&p)+88>>2]=(c[(s&p)>>2]|0)+-1;at(d)}A=A+1|0;if((A|0)>=(c[(v&p)>>2]|0))break;else B=B+16|0}if(f)i=wh(D,45,f,0,0)|0;else i=0}else i=0;at(d);f=e+36|0;if((c[(f&p)>>2]|0)>0){g=0;h=c[(e&p)+28>>2]|0;while(1){Rq(d,c[(h&p)+20>>2]|0,c[(h&p)+16>>2]|0);g=g+1|0;if((g|0)>=(c[(f&p)>>2]|0))break;else h=h+24|0}}a[(e&n)>>0]=0;at(d);if(i){f=c[(D&p)+32>>2]|0;if(f>>>0>i>>>0)c[((c[(D&p)+4>>2]|0)+(i*20|0)&p)+8>>2]=f;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=f+-1}return}function ft(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[(a&p)+8>>2]|0;e=b+44|0;if((c[(e&p)>>2]|0)>0){f=0;b=c[(b&p)+40>>2]|0;while(1){a=c[((c[(b&p)>>2]|0)&p)+20>>2]|0;if(!a)a=0;else a=c[(a&p)>>2]|0;g=c[(b&p)+4>>2]|0;xh(d,wh(d,142,c[(b&p)+8>>2]|0,a,0)|0,g,-5);f=f+1|0;if((f|0)>=(c[(e&p)>>2]|0))break;else b=b+16|0}}return}function gt(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,o=0,q=0,r=0,s=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r+4|0;q=r;m=c[(b&p)+8>>2]|0;c[(o&p)>>2]=0;c[(q&p)>>2]=0;if(!((m|0)==0|(e|0)==0)){s=d[(e&n)>>0]|0;h=s^1;a:do switch(s|0){case 75:{if(g){fu(b,e,f,f);break a}k=xs(m)|0;fu(b,e,f,k);h=c[(m&p)+24>>2]|0;f=~k;if((k|0)<0?(l=c[(h&p)+112>>2]|0,(l|0)!=0):0)c[(l+(f<<2)&p)>>2]=c[(m&p)+32>>2];c[(h&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;break}case 71:{l=xs(m)|0;Zu(b,c[(e&p)+12>>2]|0,l,g^16);h=b+100|0;c[(h&p)>>2]=(c[(h&p)>>2]|0)+1;gt(b,c[(e&p)+16>>2]|0,f,g);f=c[(m&p)+24>>2]|0;h=~l;if((l|0)<0?(k=c[(f&p)+112>>2]|0,(k|0)!=0):0)c[(k+(h<<2)&p)>>2]=c[(m&p)+32>>2];c[(f&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;bu(b);break}case 72:{gt(b,c[(e&p)+12>>2]|0,f,g);m=b+100|0;c[(m&p)>>2]=(c[(m&p)>>2]|0)+1;gt(b,c[(e&p)+16>>2]|0,f,g);bu(b);break}case 79:case 78:case 83:case 80:case 81:case 82:{s=e+12|0;l=$t(b,c[(s&p)>>2]|0,o)|0;k=e+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(s&p)>>2]|0,c[(k&p)>>2]|0,h,l,m,f,g);break}case 148:case 73:{g=e+12|0;l=$t(b,c[(g&p)>>2]|0,o)|0;k=e+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(g&p)>>2]|0,c[(k&p)>>2]|0,(a[(e&n)>>0]|0)==73?78:79,l,m,f,128);break}case 19:{Zu(b,c[(e&p)+12>>2]|0,f,g);break}case 77:case 76:{wh(m,h,$t(b,c[(e&p)+12>>2]|0,o)|0,f,0)|0;break}case 74:{_u(b,e,f,0,g);break}default:{if(mu(e)|0){wh(m,16,0,f,0)|0;break a}if(!($u(e)|0))wh(m,46,$t(b,e,o)|0,f,(g|0)!=0&1)|0}}while(0);_r(b,c[(o&p)>>2]|0);_r(b,c[(q&p)>>2]|0)}i=r;return}function ht(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;f=c[(a&p)+8>>2]|0;g=b+44|0;if((c[(g&p)>>2]|0)!=(0-(c[(b&p)+32>>2]|0)|0)?(wh(f,28,0,c[(b&p)+16>>2]|0,c[(b&p)+20>>2]|0)|0,(c[(g&p)>>2]|0)>0):0){h=0;e=c[(b&p)+40>>2]|0;while(1){b=e+12|0;do if((c[(b&p)>>2]|0)>-1){d=c[((c[(e&p)>>2]|0)&p)+20>>2]|0;if((d|0)!=0?(c[(d&p)>>2]|0)==1:0){d=Us(a,d,0,0)|0;xh(f,wh(f,57,c[(b&p)>>2]|0,0,0)|0,d,-6);break}th(a,34944,k);c[(b&p)>>2]=-1}while(0);h=h+1|0;if((h|0)>=(c[(g&p)>>2]|0))break;else e=e+16|0}}i=l;return}function it(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)>0){e=wh(a,138,b,0,-1)|0;wh(a,16,0,d,0)|0;b=c[(a&p)+32>>2]|0;if(b>>>0>e>>>0)c[((c[(a&p)+4>>2]|0)+(e*20|0)&p)+8>>2]=b;c[((c[(a&p)+24>>2]|0)&p)+88>>2]=b+-1}return}function jtjt(d,f,109,0,0)|0,(O|0)!=0):0)v=O;else if(!(mt(d,f,0,0)|0)){if(!(c[(f&p)+8>>2]|0)){v=1;break c}v=c[(d&p)+408>>2]|0;a[(((v|0)==0?d:v)&n)+20>>0]=1;At(d,f,h,k,0);v=1;break c}else v=0;ea=c[(d&p)+408>>2]|0;a[(((ea|0)==0?d:ea)&n)+20>>0]=1;rt(d,f,v,h,k,l,1,0,5,1);v=1;break}default:{v=2;ma=49}}while(0);if((ma|0)==49){Ft(d,v,f);v=0}y=na+24|0;x=c[(y&p)>>2]|0;w=~z;if((z|0)<0?(P=c[(x&p)+112>>2]|0,(P|0)!=0):0)c[(P+(w<<2)&p)>>2]=c[(na&p)+32>>2];u=na+32|0;c[(x&p)+88>>2]=(c[(u&p)>>2]|0)+-1;if(!A){w=0;A=0}else{w=wh(na,16,0,0,0)|0;u=c[(u&p)>>2]|0;if(u>>>0>A>>>0)c[((c[(na&p)+4>>2]|0)+(A*20|0)&p)+8>>2]=u;c[((c[(y&p)>>2]|0)&p)+88>>2]=u+-1}}else{w=0;A=0;v=0}D=c[(f&p)+8>>2]|0;if(D){ba=l+1|0;ca=d+60|0;da=d+56|0;ea=d+72|0;T=q<<24>>24==0;U=na+24|0;V=na+32|0;W=r<<24>>24==10;X=na+4|0;Y=ga+46|0;Z=ga+32|0;_=ga+4|0;$=m+1|0;aa=d+408|0;R=Q+24|0;S=ha&65535;z=r&255;y=f+36|0;x=d+92|0;H=0;u=0;C=-1;while(1){O=g+(u<<2)|0;do if(c[(O&p)>>2]|0){if(!(H<<24>>24)){wt(na,f,ba);H=1}P=u+k|0;r=xs(na)|0;N=D+36|0;if(c[(N&p)>>2]|0){wh(na,28,0,c[(O&p)>>2]|0,0)|0;c[(x&p)>>2]=ba;gt(d,c[(N&p)>>2]|0,r,16);c[(x&p)>>2]=0}Q=D+48|0;I=b[(Q&o)>>1]|0;L=I&65535;K=c[(ca&p)>>2]|0;J=c[(da&p)>>2]|0;if((J|0)<(L|0)){q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+L;q=q+1|0}else{c[(ca&p)>>2]=K+L;c[(da&p)>>2]=J-L;q=K}if(!(I<<16>>16))M=C;else{M=D+4|0;J=0;do{B=b[((c[(M&p)>>2]|0)+(J<<1)&o)>>1]|0;L=B<<16>>16;if(B<<16>>16>=0?B<<16>>16!=(b[(y&o)>>1]|0):0){K=J+q|0;L=ba+L|0;ma=81}else{L=J+q|0;if((C|0)!=(L|0)){K=L;C=(c[(N&p)>>2]|0)==0?L:-1;L=l;ma=81}}if((ma|0)==81){ma=0;wh(na,34,L,K,0)|0;I=b[(Q&o)>>1]|0}J=J+1|0;L=I&65535}while((J|0)<(L|0));M=C}wh(na,49,q,L,c[(O&p)>>2]|0)|0;dt(d,q,e[(Q&o)>>1]|0);N=(ga|0)==(D|0);if(ia&N&T){C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ja=c[(C&p)+112>>2]|0,(ja|0)!=0):0)c[(ja+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}G=a[(D&n)+50>>0]|0;F=G&255;if(!(G<<24>>24)){C=e[(Q&o)>>1]|0;dt(d,q,C);if((c[(da&p)>>2]|0)<(C|0)){c[(da&p)>>2]=C;c[(ca&p)>>2]=q}C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ka=c[(C&p)+112>>2]|0,(ka|0)!=0):0)c[(ka+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}if(W)O=G<<24>>24==10?2:F;else O=z;C=e[(D&o)+46>>1]|0;xh(na,wh(na,67,P,r,q)|0,C,-14);do if(!N){L=c[(ca&p)>>2]|0;K=c[(da&p)>>2]|0;if((K|0)<(ha|0)){L=c[(ea&p)>>2]|0;c[(ea&p)>>2]=L+ha;L=L+1|0;break}else{c[(ca&p)>>2]=L+ha;c[(da&p)>>2]=K-ha;break}}else L=q;while(0);do if(ia|(O|0)==5){if(!(a[(la&n)>>0]&32)){wh(na,112,P,L,0)|0;if(!ia)break;wh(na,79,L,r,m)|0;G=c[(X&p)>>2]|0;if(!G)break;a[(G+(((c[(V&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;break}do if(!N){if(!(b[(Y&o)>>1]|0))break;F=D+4|0;E=0;do{I=b[((c[(_&p)>>2]|0)+(E<<1)&o)>>1]|0;K=b[(Q&o)>>1]|0;d:do if(!(K<<16>>16))K=-1;else{G=c[(F&p)>>2]|0;J=K&65535;K=0;while(1){if((b[(G+(K<<1)&o)>>1]|0)==I<<16>>16)break d;K=K+1|0;if((K|0)>=(J|0)){K=-1;break}}}while(0);wh(na,47,P,K<<16>>16,E+L|0)|0;E=E+1|0}while((E|0)<(e[(Y&o)>>1]|0))}while(0);if(!ia)break;F=(a[(D&n)+51>>0]&3)==2?q:L;K=b[(Y&o)>>1]|0;if(!(K<<16>>16))break;J=(K&65535)+(c[(V&p)>>2]|0)|0;I=0;G=78;do{K=cr(d,c[((c[(Z&p)>>2]|0)+(I<<2)&p)>>2]|0)|0;C=(I|0)==((e[(Y&o)>>1]|0)+-1|0);J=C?r:J;G=C?79:G;xh(na,wh(na,G,$+(b[((c[(_&p)>>2]|0)+(I<<1)&o)>>1]|0)|0,J,I+F|0)|0,K,-4);K=c[(X&p)>>2]|0;if(K)a[(K+(((c[(V&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;I=I+1|0}while((I|0)<(e[(Y&o)>>1]|0))}while(0);if((O|0)==3|(O|0)==2|(O|0)==1)nu(d,O,D);else if((O|0)==4)wh(na,16,0,s,0)|0;else{C=c[(aa&p)>>2]|0;a[(((C|0)==0?d:C)&n)+20>>0]=1;if(!(c[(R&p)>>2]&262144))G=0;else G=jtJt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Oq(b)|0;i=b+72|0;h=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=h;b=mh(c[(b&p)>>2]|0,8,0)|0;if(b){i=b;c[(i&p)>>2]=e;c[(i&p)+4>>2]=f}xh(g,wh(g,26,0,h,0)|0,b,-13);iq(g,1);if(!(a[((c[(g&p)>>2]|0)&n)+65>>0]|0))Xg(c[(g&p)+16>>2]|0,d,-1,1,0)|0;wh(g,35,h,1,0)|0;return}function Kt(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))fa();g=h;d=c[(b&p)>>2]|0;e=d+16|0;f=c[((c[(e&p)>>2]|0)&p)+20>>2]|0;do if(!f)d=0;else{if((a[(d&n)+63>>0]|0)!=0?(a[(f&n)+8>>0]|0)==0:0){Ml(f);c[((c[(e&p)>>2]|0)&p)+20>>2]=0;Eg(d);d=0;break}th(b,32128,g);d=1}while(0);i=h;return d|0}function Lt(b){b=b|0;var e=0,f=0,g=0;if((a[(b&n)+63>>0]|0)!=0?(e=c[(b&p)+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[(b&p)+16>>2]|0;while(1){e=e+-1|0;b=c[(f&p)+4>>2]|0;if(b)to(b,c[(g&p)>>2]&28|d[(f&n)+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function Mt(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,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))fa();z=C;A=c[(g&p)+20>>2]|0;m=c[(g&p)+40>>2]|0;if((A|0)==1){v=b[(f&o)+36>>1]|0;l=v<<16>>16;if(v<<16>>16>-1)if((m|0)!=0?(dd(c[((c[(f&p)+4>>2]|0)+(l*24|0)&p)>>2]|0,m)|0)!=0:0){y=0;B=8}else k=0;else{y=0;B=8}}else if(k){l=mh(c[(d&p)>>2]|0,A<<2,0)|0;if(!l)k=1;else{c[(k&p)>>2]=l;y=l;B=8}}else{y=0;B=8}a:do if((B|0)==8){k=c[(f&p)+8>>2]|0;b:do if(k){v=(m|0)==0;x=(A|0)>0;u=f+4|0;w=(y|0)==0;c:while(1){do if((e[(k&o)+46>>1]|0)==(A|0)?(a[(k&n)+50>>0]|0)!=0:0){if(v)if((a[(k&n)+51>>0]&3)==2){B=16;break c}else break;d:do if(x){q=c[(k&p)+4>>2]|0;r=c[(u&p)>>2]|0;s=c[(k&p)+32>>2]|0;t=0;while(1){f=b[(q+(t<<1)&o)>>1]|0;m=c[(r+(f*24|0)&p)+16>>2]|0;if(dd(c[(s+(t<<2)&p)>>2]|0,(m|0)!=0?m:11152)|0){m=t;break d}m=c[(r+(f*24|0)&p)>>2]|0;l=0;while(1){f=l+1|0;if(!(dd(c[(g+(l<<3)&p)+40>>2]|0,m)|0)){f=l;B=23;break}if((f|0)<(A|0))l=f;else break}if((B|0)==23){B=0;if(!w)c[(y+(t<<2)&p)>>2]=c[(g+(f<<3)&p)+36>>2]}m=t+1|0;if((f|0)==(A|0)){m=t;break d}if((m|0)<(A|0))t=m;else break}}else m=0;while(0);if((m|0)==(A|0))break c}while(0);k=c[(k&p)+20>>2]|0;if(!k)break b}if((B|0)==16)if(!(w|x^1)){l=0;do{c[(y+(l<<2)&p)>>2]=c[(g+(l<<3)&p)+36>>2];l=l+1|0}while((l|0)!=(A|0))}c[(h&p)>>2]=k;k=0;break a}while(0);if(!(a[(d&n)+438>>0]|0)){v=c[(g&p)+8>>2]|0;c[(z&p)>>2]=c[(c[(g&p)>>2]&p)>>2];c[(z&p)+4>>2]=v;th(d,32008,z)}mg(c[(d&p)>>2]|0,y);k=1}while(0);i=C;return k|0}function Nt(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))fa();h=k;if(!(c[(d&p)+12>>2]|0)){c[(h&p)>>2]=0;l=c[(b&p)>>2]|0;g=d+4|0;d=c[(g&p)>>2]|0;Zr(l,c[(d+(e*24|0)&p)+4>>2]|0,a[(l&n)+62>>0]|0,a[(d+(e*24|0)&n)+21>>0]|0,h)|0;d=c[(h&p)>>2]|0;if(d)xh(b,-1,d,-8);if((a[((c[(g&p)>>2]|0)+(e*24|0)&n)+21>>0]|0)==69)wh(b,39,f,0,0)|0}i=k;return}function Ot(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&n)>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Sh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[(g&o)>>1]=e[(g&o)>>1]|f&255}return}function Pt(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,q=0,r=0,s=0,t=0,u=0,v=0;t=c[(d&p)+8>>2]|0;u=c[(e&p)+12>>2]|0;do if(i){l=e+36|0;if(!(c[(l&p)>>2]|0)){c[(i&p)>>2]=0;break}else{c[(i&p)>>2]=xs(t)|0;c[(d&p)+96>>2]=f;s=d+100|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;gt(d,c[(l&p)>>2]|0,c[(i&p)>>2]|0,16);break}}while(0);if((h|0)!=0?(a[(e&n)+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[(l&o)>>1]|0;q=l&65535;r=d+60|0;h=c[(r&p)>>2]|0;s=d+56|0;i=c[(s&p)>>2]|0;if((i|0)<(q|0)){h=d+72|0;m=c[(h&p)>>2]|0;c[(h&p)>>2]=m+q;m=m+1|0}else{c[(r&p)>>2]=h+q;c[(s&p)>>2]=i-q;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[(j&p)+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&p)>>2]|0)+(l<<1)&o)>>1]|0;if((b[((c[(i&p)>>2]|0)+(l<<1)&o)>>1]|0)!=h<<16>>16)v=21}else{h=b[((c[(k&p)>>2]|0)+(l<<1)&o)>>1]|0;v=21}if((v|0)==21){v=0;nt(t,u,f,h<<16>>16,l+m|0);Pq(t,39)|0}l=l+1|0}while((l|0)<(q|0))}if(g)wh(t,49,m,q,g)|0;dt(d,m,q);if((c[(s&p)>>2]|0)<(q|0)){c[(s&p)>>2]=q;c[(r&p)>>2]=m}return m|0}function Qt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[(a&p)+8>>2]|0;e=c[(d&p)+24>>2]|0;f=~b;if((b|0)<0?(g=c[(e&p)+112>>2]|0,(g|0)!=0):0)c[(g+(f<<2)&p)>>2]=c[(d&p)+32>>2];c[(e&p)+88>>2]=(c[(d&p)+32>>2]|0)+-1;bu(a)}return}function Rt(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))fa();g=h;e=c[(d&p)+16>>2]|0;a:do if((e|0)!=0?(f=c[(d&p)+64>>2]|0,(f|0)!=0):0){e=c[(e&p)+8>>2]|0;b:do if(e){while(1){if(!(dd(c[(e&p)>>2]|0,f)|0))break;e=c[(e&p)+20>>2]|0;if(!e)break b}c[(d&p)+68>>2]=e;e=0;break a}while(0);c[(g&p)>>2]=f;c[(g&p)+4>>2]=0;th(b,28104,g);a[(b&n)+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function St(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Tt(a,b)|0;if(b&1){e=St(c[(a&p)+12>>2]|0,b)|0;return e+d+(St(c[(a&p)+16>>2]|0,b)|0)|0}}else d=0;return d|0}
12 jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<<m;E=E+20|0;a[(E&n)>>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,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,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jtjt16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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,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;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<<Q;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;JtJt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<<Q;break a}case 9:{iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<<Q;if((U|0)!=0?!((w|0)==11|(w|0)==20):0){m=yh(T,3,31832)|0;k=T+32|0;if((c[(k&p)>>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;JtJt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(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))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<<a;a=a+1|0}while((a|0)<(d|0));c[(e&p)>>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(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,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<<g,js(a,g),n=yh(m,9,29624)|0,xh(m,n+1|0,c[(b&p)>>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<<d;vs(b,e,-1);break}}}while(0);i=m;return}function Tr(a,b,d){a=a|0;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))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;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))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;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,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return}