>0]=0}else q=0;Z=c[w+4>>2]|0;c[_>>2]=c[(c[t>>2]|0)+(n<<4)>>2];c[_+4>>2]=s?13184:13208;c[_+8>>2]=v;c[_+12>>2]=Z;c[_+16>>2]=q;xr($,30008,_);ig(x,q);zr($,n);c[_>>2]=v;Er(o,n,qh(x,30072,_)|0);if(!(a[p>>0]|0)){k=0;l=w;break}}l=Ek((c[(c[t>>2]|0)+(n<<4)+12>>2]|0)+40|0,v,w)|0;if(l){a[x+65>>0]=1;k=0;break}k=c[m>>2]|0;if((k|0)==(c[w+24>>2]|0)){k=Zm(k+8|0,c[w+4>>2]|0,_)|0;if(!k)k=0;else k=c[k+8>>2]|0;k=k+64|0;c[w+32>>2]=c[k>>2];c[k>>2]=w;k=0}else k=0}else{k=0;l=w}}else l=w;while(0);fg(x,l);Bk(x,k);break}case 265:{A=f+(aa+-7<<4)+16|0;z=aa+-6|0;B=f+(z<<4)+16|0;o=c[f+(aa+-5<<4)+16>>2]|0;D=aa+-4|0;y=c[f+(D<<4)+16>>2]|0;D=c[f+(D<<4)+20>>2]|0;E=c[f+(aa+-2<<4)+16>>2]|0;F=c[f+(aa<<4)+16>>2]|0;k=c[f+(aa+-8<<4)+16>>2]|0;G=c[$>>2]|0;w=(c[f+(aa+-10<<4)+16>>2]|0)!=0;do if(w)if(!(c[f+(z<<4)+20>>2]|0)){c[Y>>2]=A;if(!E){p=0;q=0;break}else{s=1;Z=483;break}}else{ph($,29664,_);p=0;q=0;break}else{s=ar($,A,B,Y)|0;if((s|0)>-1&(E|0)!=0)Z=483;else{p=0;q=0}}while(0);do if((Z|0)==483){h=G+65|0;if(!(a[h>>0]|0)){u=G+145|0;if((a[u>>0]|0)!=0&(s|0)!=1){Z=E+12|0;ig(G,c[Z>>2]|0);c[Z>>2]=0}t=Fr($,E)|0;if((a[u>>0]|0)==0?((t|0)!=0?(c[f+(z<<4)+20>>2]|0)==0:0):0)s=(c[t+68>>2]|0)==(c[(c[G+16>>2]|0)+28>>2]|0)?1:s;if((a[h>>0]|0)==0?(O=c[Y>>2]|0,Z=c[$>>2]|0,c[X>>2]=$,Z=c[Z+16>>2]|0,c[X+12>>2]=c[Z+(s<<4)>>2],c[X+4>>2]=c[Z+(s<<4)+12>>2],c[X+16>>2]=10720,c[X+20>>2]=O,c[X+8>>2]=(s|0)==1&1,(Gr(X,E)|0)==0):0){u=Fr($,E)|0;if(!u){if((a[G+144>>0]|0)!=1){p=0;q=0;break}a[G+146>>0]=1;p=0;q=0;break}if(a[u+44>>0]&16){ph($,29712,_);p=0;q=0;break}q=Sq(G,O)|0;if(q)if(!(Hr($,q)|0)){x=G+16|0;Z=Zm((c[(c[x>>2]|0)+(s<<4)+12>>2]|0)+40|0,q,P)|0;if((Z|0)!=0?(c[Z+8>>2]|0)!=0:0)if(!k){c[_>>2]=O;ph($,29760,_);p=0;break}else{wr($,s);p=0;break}v=c[u>>2]|0;if(!(Bc(v,25568,7)|0)){ph($,29792,_);p=$+64|0;c[p>>2]=(c[p>>2]|0)+1;p=0;break}r=c[u+12>>2]|0;if((r|0)!=0&(o|0)!=49){c[_>>2]=(o|0)==35?29872:29880;c[_+4>>2]=E;c[_+8>>2]=0;ph($,29832,_);p=0;break}n=(o|0)==49;if((r|0)==0&n){c[_>>2]=E;c[_+4>>2]=0;ph($,29888,_);p=0;break}m=u+68|0;u=c[m>>2]|0;i:do if(u){t=c[G+20>>2]|0;if((t|0)>0){k=c[x>>2]|0;l=0;while(1){h=l+1|0;if((c[k+(l<<4)+12>>2]|0)==(u|0)){h=l;break i}if((h|0)<(t|0))l=h;else break}}else h=0}else h=-1e6;while(0);u=c[x>>2]|0;k=c[u+(h<<4)>>2]|0;if(w)t=c[u+16>>2]|0;else t=k;u=(h|0)==1;if((Oq($,u|w?5:7,q,v,t)|0)==0?(Oq($,18,u?13184:13208,0,k)|0)==0:0){p=ih(G,36,0)|0;if(!p){p=0;break}v=p+0|0;k=v+36|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0));c[p>>2]=q;c[p+4>>2]=gh(G,c[E+16>>2]|0)|0;c[p+20>>2]=c[(c[x>>2]|0)+(s<<4)+12>>2];c[p+24>>2]=c[m>>2];a[p+8>>0]=y;a[p+9>>0]=n|(o|0)==35?1:2;c[p+12>>2]=Ir(G,F,1,0)|0;c[p+16>>2]=Jr(G,D)|0;c[$+488>>2]=p;q=0}else p=0}else p=0;else{p=0;q=0}}else{p=0;q=0}}else{p=0;q=0}}while(0);ig(G,q);zo(G,E);Dk(G,D);Ck(G,F);if(!(c[$+488>>2]|0))fg(G,p);if(!(c[f+(z<<4)+20>>2]|0)){Z=A;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break a}else{Z=B;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break a}}case 269:case 266:{c[ca>>2]=35;break}case 267:{c[ca>>2]=31;break}case 268:{c[ca>>2]=49;break}case 284:{l=c[$>>2]|0;k=c[f+(aa+-1<<4)+16>>2]|0;h=c[f+(aa<<4)+16>>2]|0;m=a[f+(aa+-5<<4)+16>>0]|0;n=Kr(l,110,f+(aa+-4<<4)+16|0)|0;if(n){c[n+24>>2]=Lr(l,k,1)|0;c[n+20>>2]=Ir(l,h,1,0)|0;a[n+1>>0]=m}Jk(l,k);Ck(l,h);c[ca>>2]=n;break}case 271:case 270:{c[ca>>2]=d[f+(aa<<4)+14>>0];c[ca+4>>2]=0;break}case 272:{c[ca>>2]=110;c[ca+4>>2]=c[f+(aa<<4)+16>>2];break}case 296:case 275:{c[ca>>2]=0;break}case 297:case 276:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 277:{_=f+(aa+-1<<4)+16|0;$=f+(aa+-2<<4)+16|0;c[(c[(c[$>>2]|0)+36>>2]|0)+32>>2]=c[_>>2];c[(c[$>>2]|0)+36>>2]=c[_>>2];c[ca>>2]=c[$>>2];break}case 278:{$=f+(aa+-1<<4)+16|0;_=c[$>>2]|0;c[_+36>>2]=_;c[ca>>2]=c[$>>2];break}case 282:{ph($,20736,_);break}case 280:{X=f+(aa<<4)+16|0;Y=c[X+4>>2]|0;Z=ca;c[Z>>2]=c[X>>2];c[Z+4>>2]=Y;ph($,20640,_);break}case 283:{ph($,20824,_);break}case 286:{h=c[$>>2]|0;k=c[f+(aa<<4)+16>>2]|0;l=Kr(h,109,f+(aa+-2<<4)+16|0)|0;if(l){c[l+20>>2]=Ir(h,k,1,0)|0;a[l+1>>0]=10}Ck(h,k);c[ca>>2]=l;break}case 287:{l=c[$>>2]|0;n=c[f+(aa<<4)+16>>2]|0;h=ih(l,40,0)|0;if(!h){Ik(l,n,1);h=0}else{v=h+0|0;k=v+40|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0));a[h>>0]=119;c[h+8>>2]=n;a[h+1>>0]=10}c[ca>>2]=h;break}case 285:{n=c[$>>2]|0;m=c[f+(aa+-1<<4)+16>>2]|0;l=c[f+(aa<<4)+16>>2]|0;k=a[f+(aa+-4<<4)+16>>0]|0;h=Kr(n,108,f+(aa+-2<<4)+16|0)|0;if(!h)Dk(n,m);else{c[h+8>>2]=cr(n,l,1)|0;c[h+28>>2]=m;a[h+1>>0]=k}Ik(n,l,1);c[ca>>2]=h;break}case 288:{h=Vq($,57,0,0,0)|0;c[ca>>2]=h;if(h)a[h+1>>0]=4;c[ca+4>>2]=c[f+(aa+-3<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 289:{h=Vq($,57,0,0,f+(aa+-1<<4)+16|0)|0;c[ca>>2]=h;if(h)a[h+1>>0]=c[f+(aa+-3<<4)+16>>2];c[ca+4>>2]=c[f+(aa+-5<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 290:{c[ca>>2]=1;break}case 292:{c[ca>>2]=3;break}case 293:{k=c[f+(aa<<4)+16>>2]|0;h=c[f+(aa+-1<<4)+16>>2]|0;t=c[$>>2]|0;do if((a[t+65>>0]|0)==0?(Cn($)|0)==0:0){u=c[k+12>>2]|0;s=c[k+16>>2]|0;r=t+20|0;if((c[r>>2]|0)>0){n=(u|0)==0;m=t+16|0;l=0;p=0;do{o=(l|0)<2^l;q=c[m>>2]|0;if(!(!n?($c(c[q+(o<<4)>>2]|0,u)|0)!=0:0)){q=Zm((c[q+(o<<4)+12>>2]|0)+40|0,s,I)|0;if(q){p=c[q+8>>2]|0;if(p)break}else p=0}l=l+1|0}while((l|0)<(c[r>>2]|0));if(p){Mr($,p);break}}if(!h){c[_>>2]=k;c[_+4>>2]=0;ph($,29600,_)}else vr($,u);a[$+17>>0]=1}while(0);zo(t,k);break}case 294:{_=c[f+(aa+-3<<4)+16>>2]|0;Nr($,24,29360,_,_,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 303:{Pr($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0);break}case 304:{w=c[f+(aa+-3<<4)+16>>2]|0;u=f+(aa<<4)+16|0;v=c[$>>2]|0;k=v+24|0;l=c[k>>2]|0;do if((a[v+65>>0]|0)==0?(U=Qr($,0,w+8|0)|0,(U|0)!=0):0){q=c[$>>2]|0;x=U+68|0;s=c[x>>2]|0;j:do if(s){r=c[q+20>>2]|0;if((r|0)>0){q=c[q+16>>2]|0;o=0;while(1){p=o+1|0;if((c[q+(o<<4)+12>>2]|0)==(s|0)){p=o;break j}if((p|0)<(r|0))o=p;else break}}else p=0}else p=-1e6;while(0);h=c[(c[v+16>>2]|0)+(p<<4)>>2]|0;c[k>>2]=c[k>>2]|2097152;n=Sq(v,u)|0;if(n){if((Wh(v,n,h)|0)==0?(Zp(v,n,h)|0)==0:0){if(Rr($,c[U>>2]|0)|0)break;if(Hr($,n)|0)break;q=c[U>>2]|0;if(c[U+12>>2]|0){c[_>>2]=q;ph($,26088,_);break}if(Oq($,26,h,q,0)|0)break;if(dr($,U)|0)break;if(!(a[U+44>>0]&16))m=0;else{q=c[U+60>>2]|0;k:do if(!q)q=0;else while(1){if((c[q>>2]|0)==(v|0))break k;q=c[q+24>>2]|0;if(!q){q=0;break}}while(0);m=(c[(c[c[q+8>>2]>>2]|0)+76>>2]|0)==0?0:q}q=Kq($)|0;if(!q)break;Z=(m|0)!=0;o=$+408|0;Y=c[o>>2]|0;Y=(Y|0)==0?$:Y;wr($,p);X=Y+328|0;c[X>>2]=c[X>>2]|1<>0]=d[Y>>0]|Z&1;zr($,p);if(Z){Y=$+72|0;Z=(c[Y>>2]|0)+1|0;c[Y>>2]=Z;th(q,sh(q,97,0,Z,0)|0,n,0);th(q,sh(q,152,Z,0,0)|0,m,-10);Z=c[o>>2]|0;a[((Z|0)==0?$:Z)+21>>0]=1}u=c[U>>2]|0;t=Jn(u,-1)|0;do if((c[k>>2]&524288|0)!=0?(Q=Zm((c[x>>2]|0)+56|0,u,S)|0,(Q|0)!=0):0){q=c[Q+8>>2]|0;if(!q)break;o=q;q=0;do{q=Sr(c[$>>2]|0,q,c[c[o>>2]>>2]|0)|0;o=c[o+12>>2]|0}while((o|0)!=0);if(!q)break;c[_>>2]=h;c[_+4>>2]=(p|0)==1?13184:13208;c[_+8>>2]=u;c[_+12>>2]=n;c[_+16>>2]=q;xr($,26120,_);ig(v,q)}while(0);c[_>>2]=h;c[_+4>>2]=(p|0)==1?13184:13208;c[_+8>>2]=n;c[_+12>>2]=n;c[_+16>>2]=n;c[_+20>>2]=n;c[_+24>>2]=n;c[_+28>>2]=t;c[_+32>>2]=u;xr($,26192,_);if(Wh(v,26576,h)|0){Z=c[U>>2]|0;c[_>>2]=h;c[_+4>>2]=n;c[_+8>>2]=Z;xr($,26592,_)}p=Tr($,U)|0;if(p){c[_>>2]=n;c[_+4>>2]=n;c[_+8>>2]=p;xr($,26656,_);ig(v,p)}do if(c[k>>2]&524288){p=Zm((c[x>>2]|0)+56|0,c[U>>2]|0,_)|0;if(!p)break;p=c[p+8>>2]|0;if(!p)break;do{o=c[p>>2]|0;if((o|0)!=(U|0))Ur($,o,c[o>>2]|0);p=c[p+12>>2]|0}while((p|0)!=0)}while(0);Ur($,U,n);break}c[_>>2]=n;ph($,26024,_)}else n=0}else n=0;while(0);zo(v,w);ig(v,n);c[k>>2]=l;break}case 295:{_=c[f+(aa<<4)+16>>2]|0;Nr($,25,29176,_,0,0,_);break}case 300:{Or($,0,0);break}case 302:{Pr($,0,0);break}case 301:{Or($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0);break}case 305:{v=c[$>>2]|0;if((c[$+64>>2]|0)==0?(J=v+65|0,(a[J>>0]|0)==0):0){l=c[$+484>>2]|0;q=c[l+68>>2]|0;l:do if(q){p=c[v+20>>2]|0;if((p|0)>0){o=c[v+16>>2]|0;m=0;while(1){n=m+1|0;if((c[o+(m<<4)+12>>2]|0)==(q|0)){x=m;break l}if((n|0)<(p|0))m=n;else{x=n;break}}}else x=0}else x=-1e6;while(0);h=c[(c[v+16>>2]|0)+(x<<4)>>2]|0;k=(c[l>>2]|0)+16|0;r=(b[l+38>>1]|0)+-1|0;p=c[l+4>>2]|0;q=c[p+(r*24|0)+4>>2]|0;w=Wh(v,k,h)|0;if(!(Oq($,26,h,c[w>>2]|0,0)|0)){if(!q)s=0;else s=(a[q>>0]|0)==101?0:q;if(a[p+(r*24|0)+23>>0]&1){ph($,25608,_);break a}if(c[l+8>>2]|0){ph($,25640,_);break a}u=v+24|0;if((c[u>>2]&524288|0)!=0?(c[l+16>>2]|0)!=0&(s|0)!=0:0){ph($,25672,_);break a}t=(s|0)!=0;if(!((a[p+(r*24|0)+20>>0]|0)==0|t)){ph($,25736,_);break a}do if(t){c[L>>2]=0;if(Vr(v,s,1,65,L)|0){a[J>>0]=1;break a}q=c[L>>2]|0;if(!q){ph($,25792,_);break a}else{Ih(q);break}}while(0);q=c[f+(aa<<4)+16>>2]|0;p=f+(aa<<4)+20|0;o=c[p>>2]|0;if((q|0)!=0?(R=fw(o|0,0,1,0)|0,R=ih(v,R,C)|0,(R|0)!=0):0){gw(R|0,q|0,o|0)|0;a[R+o>>0]=0;q=(c[p>>2]|0)+-1|0;p=c[u>>2]|0;m:do if((q|0)>0){q=R+q|0;do{Y=a[q>>0]|0;if(Y<<24>>24!=59?(a[10368+(Y&255)>>0]&1)==0:0)break m;a[q>>0]=0;q=q+-1|0}while(q>>>0>R>>>0)}while(0);c[u>>2]=c[u>>2]|2097152;Y=c[l+48>>2]|0;c[_>>2]=h;c[_+4>>2]=(x|0)==1?13184:13208;c[_+8>>2]=Y;c[_+12>>2]=R;c[_+16>>2]=Y+1;c[_+20>>2]=k;xr($,25840,_);ig(v,R);c[u>>2]=p}q=t?3:2;s=Kq($)|0;if(s){p=$+19|0;n=a[p>>0]|0;do if(n<<24>>24){_=n+-1<<24>>24;a[p>>0]=_;o=c[$+((_&255)<<2)+24>>2]|0;if(!(_<<24>>24)){p=c[$+72>>2]|0;Z=663;break}else{k=n+-2<<24>>24;a[p>>0]=k;k=c[$+((k&255)<<2)+24>>2]|0;break}}else{o=$+72|0;p=(c[o>>2]|0)+1|0;c[o>>2]=p;o=p;Z=663}while(0);if((Z|0)==663){k=p+1|0;c[$+72>>2]=k}sh(s,51,x,o,2)|0;m=s+96|0;c[m>>2]=c[m>>2]|1<>2]|0;p=s+32|0;if(n)a[n+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=-112;sh(s,52,x,2,k)|0;p=c[p>>2]|0;if(p>>>0>m>>>0)c[(c[l>>2]|0)+(m*20|0)+8>>2]=p;c[(c[s+24>>2]|0)+88>>2]=p+-1;Wr($,o);Wr($,k)}Ur($,w,c[w>>2]|0)}}break}case 306:{t=c[$>>2]|0;a[t+250>>0]=0;h=c[f+(aa<<4)+16>>2]|0;u=t+65|0;do if((a[u>>0]|0)==0?(N=Qr($,0,h+8|0)|0,(N|0)!=0):0){if(a[N+44>>0]&16){ph($,25400,_);break}if(c[N+12>>2]|0){ph($,25440,_);break}if(!(Rr($,c[N>>2]|0)|0)){p=c[N+68>>2]|0;n:do if(p){o=c[t+20>>2]|0;if((o|0)>0){n=c[t+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0)){m=q;break n}if((m|0)<(o|0))q=m;else break}}else m=0}else m=-1e6;while(0);s=ih(t,76,0)|0;if(s){v=s+0|0;k=v+76|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0));c[$+484>>2]=s;o=s+40|0;b[o>>1]=1;q=b[N+38>>1]|0;n=s+38|0;b[n>>1]=q;q=((((q<<16>>16)+-1|0)/8|0)*192|0)+192|0;p=ih(t,q,0)|0;if(p)bw(p|0,0,q|0)|0;q=s+4|0;c[q>>2]=p;c[_>>2]=c[N>>2];_=qh(t,25472,_)|0;c[s>>2]=_;p=c[q>>2]|0;if((p|0)==0|(_|0)==0){a[u>>0]=1;break}gw(p|0,c[N+4>>2]|0,(b[n>>1]|0)*24|0)|0;if((b[n>>1]|0)>0){p=0;do{_=c[q>>2]|0;Z=_+(p*24|0)|0;c[Z>>2]=gh(t,c[Z>>2]|0)|0;_=_+(p*24|0)+4|0;p=p+1|0;c[_+0>>2]=0;c[_+4>>2]=0;c[_+8>>2]=0;c[_+12>>2]=0}while((p|0)<(b[n>>1]|0))}c[s+68>>2]=c[(c[t+16>>2]|0)+(m<<4)+12>>2];c[s+48>>2]=c[N+48>>2];b[o>>1]=1;_=c[$+408>>2]|0;wr($,m);_=((_|0)==0?$:_)+328|0;c[_>>2]=c[_>>2]|1<>2]|0);q=c[$+484>>2]|0;if(q){h=c[$>>2]|0;p=c[q+68>>2]|0;o:do if(p){o=c[h+20>>2]|0;if((o|0)>0){m=c[h+16>>2]|0;l=0;while(1){n=l+1|0;if((c[m+(l<<4)+12>>2]|0)==(p|0)){n=l;break o}if((n|0)<(o|0))l=n;else break}}else n=0}else n=-1e6;while(0);l=q+44|0;a[l>>0]=d[l>>0]|16;c[q+52>>2]=0;Yr(h,q,Sq(h,k)|0);Yr(h,q,0);Yr(h,q,gh(h,c[q>>2]|0)|0);c[$+500>>2]=(c[k>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-(c[$+496>>2]|0);l=c[q+56>>2]|0;if(l)Oq($,29,c[q>>2]|0,c[l>>2]|0,c[(c[(c[$>>2]|0)+16>>2]|0)+(n<<4)>>2]|0)|0}break}case 322:{c[ca>>2]=0;break}case 324:case 323:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 325:{c[ca>>2]=_r($,0,f+(aa+-5<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;break}case 326:{c[ca>>2]=_r($,c[f+(aa+-7<<4)+16>>2]|0,f+(aa+-5<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;break}case 314:{Zr($);c[$+512>>2]=0;c[$+516>>2]=0;break}case 318:case 317:case 316:{l=$+512|0;k=c[l>>2]|0;h=c[f+(aa<<4)+16>>2]|0;if(!k){c[l>>2]=h;h=c[f+(aa<<4)+20>>2]|0}else h=h+(c[f+(aa<<4)+20>>2]|0)-k|0;c[$+516>>2]=h;break}case 13:{c[ca>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[ca>>2]=d[f+(aa<<4)+14>>0];break}case 18:case 17:{if((Oq($,22,37136,0,0)|0)==0?(y=Kq($)|0,(y|0)!=0):0)sh(y,3,1,0,0)|0;break}case 19:{if((Oq($,22,37120,0,0)|0)==0?(x=Kq($)|0,(x|0)!=0):0)sh(x,3,1,1,0)|0;break}case 74:{c[ca>>2]=c[f+(aa<<4)+16>>2];c[ca+4>>2]=255;break}case 76:{c[ca>>2]=7;break}case 75:{c[ca>>2]=c[f+(aa<<4)+16>>2]<<8;c[ca+4>>2]=65280;break}case 77:{c[ca>>2]=8;break}case 78:{c[ca>>2]=9;break}case 79:{c[ca>>2]=6;break}case 80:{c[ca>>2]=0;break}case 103:case 100:case 98:case 82:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 86:{c[ca+4>>2]=0;c[ca>>2]=0;break}case 71:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2]&~c[f+(aa<<4)+20>>2]|c[f+(aa<<4)+16>>2];break}case 73:case 72:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 93:{Wq($,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,0);break}case 94:{Xq($,0,0,0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 95:{Yq($,c[f+(aa+-2<<4)+16>>2]|0);break}case 87:{Z=f+(aa+-1<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 90:{c[$+324>>2]=0;break}case 104:{c[ca>>2]=4;break}case 105:{c[ca>>2]=5;break}case 106:{$q($,c[f+(aa<<4)+16>>2]|0,0,c[f+(aa+-1<<4)+16>>2]|0);break}case 109:{h=aa+-7|0;o=f+(aa+-3<<4)+16|0;n=f+(aa+-2<<4)+16|0;u=c[f+(aa<<4)+16>>2]|0;q=c[f+(aa+-6<<4)+16>>2]|0;p=c[f+(aa+-4<<4)+16>>2]|0;c[F>>2]=0;t=c[$>>2]|0;if((c[$+440>>2]|0)>0){ph($,35440,_);Ik(t,u,1);break a}Qq($,o,n,q,1,0,p);l=c[$+484>>2]|0;if((l|0)!=0?(c[$+64>>2]|0)==0:0){ar($,o,n,F)|0;q=c[l+68>>2]|0;p:do if(q){o=c[t+20>>2]|0;if((o|0)>0){n=c[t+16>>2]|0;m=0;while(1){p=m+1|0;if((c[n+(m<<4)+12>>2]|0)==(q|0)){p=m;break p}if((p|0)<(o|0))m=p;else break}}else p=0}else p=-1e6;while(0);_=c[F>>2]|0;Z=c[$>>2]|0;c[X>>2]=$;Z=c[Z+16>>2]|0;c[X+12>>2]=c[Z+(p<<4)>>2];c[X+4>>2]=c[Z+(p<<4)+12>>2];c[X+16>>2]=35480;c[X+20>>2]=_;c[X+8>>2]=(p|0)==1&1;if(br(X,u)|0){Ik(t,u,1);break a}c[l+12>>2]=cr(t,u,1)|0;Ik(t,u,1);if(a[t+65>>0]|0)break a;if(!(a[t+145>>0]|0))dr($,l)|0;n=$+504|0;m=c[n>>2]|0;n=c[n+4>>2]|0;_=Y;c[_>>2]=m;c[_+4>>2]=n;_=a[m>>0]|0;if(!(_<<24>>24==59|_<<24>>24==0)){m=m+n|0;c[Y>>2]=m}o=Y+4|0;c[o>>2]=0;p=c[f+(h<<4)+16>>2]|0;n=m-p|0;do{_=n;n=n+-1|0;l=p+n|0;if((_|0)<=0)break}while((a[10368+(d[l>>0]|0)>>0]&1)!=0);c[Y>>2]=l;c[o>>2]=1;Rq($,0,Y,0,0);break a}Ik(t,u,1);break}case 96:{Zq($,c[f+(aa+-6<<4)+16>>2]|0,f+(aa+-3<<4)+16|0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0);k=c[f+(aa<<4)+16>>2]|0;l=c[$+484>>2]|0;if((l|0)!=0?(n=c[l+16>>2]|0,(n|0)!=0):0)a[n+24>>0]=k;break}case 99:{c[ca>>2]=10;break}case 101:{a[ca>>0]=10;break}case 102:{a[ca>>0]=c[f+(aa<<4)+16>>2];break}case 110:{$q($,c[f+(aa<<4)+16>>2]|0,1,c[f+(aa+-1<<4)+16>>2]|0);break}case 111:{c[w+0>>2]=c[5124];c[w+4>>2]=c[5125];c[w+8>>2]=c[5126];c[w+12>>2]=c[5127];c[w+16>>2]=c[5128];_=f+(aa<<4)+16|0;er($,c[_>>2]|0,w)|0;Ik(c[$>>2]|0,c[_>>2]|0,1);break}case 112:{q=c[f+(aa<<4)+16>>2]|0;do if(q){c[q+68>>2]=c[f+(aa+-1<<4)+16>>2];l=c[q+52>>2]|0;if(l){m=128;n=1;o=q;p=0;while(1){c[o+56>>2]=p;Y=o+6|0;Z=e[Y>>1]|64;b[Y>>1]=Z;m=Z&m;if(!l)break;Z=l;l=c[l+52>>2]|0;n=n+1|0;p=o;o=Z}if(m){$=q+6|0;b[$>>1]=e[$>>1]|256;break}Z=c[(c[$>>2]|0)+104>>2]|0;if((Z|0)>0&(n|0)>(Z|0))ph($,20520,_)}}else Mn(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0);while(0);c[ca>>2]=q;break}case 120:{c[ca>>2]=gr($,c[f+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 118:{c[ca>>2]=gr($,c[f+(aa+-6<<4)+16>>2]|0,c[f+(aa+-5<<4)+16>>2]|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,b[f+(aa+-7<<4)+16>>1]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa<<4)+20>>2]|0)|0;break}case 119:case 113:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 114:{h=c[f+(aa<<4)+16>>2]|0;do if(h){if(c[h+52>>2]|0){c[l+4>>2]=0;h=gr($,0,fr($,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){Z=192;break}}_=c[f+(aa+-1<<4)+16>>2]|0;a[h+4>>0]=_;c[h+52>>2]=c[f+(aa+-2<<4)+16>>2];if((_|0)!=116)a[$+22>>0]=1}else Z=192;while(0);if((Z|0)==192){Ik(c[$>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,1);h=0}c[ca>>2]=h;break}case 160:case 158:{c[ca>>2]=0;break}case 159:{c[ca>>2]=1;break}case 165:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 172:{l=c[f+(aa+-7<<4)+16>>2]|0;if(l){Z=$+532|0;c[l+4>>2]=c[Z>>2];c[Z>>2]=l;a[$+449>>0]=1}m=f+(aa+-4<<4)+16|0;kr($,c[m>>2]|0,f+(aa+-3<<4)+16|0);n=f+(aa+-1<<4)+16|0;l=c[n>>2]|0;if(l){if((c[l>>2]|0)>(c[(c[$>>2]|0)+96>>2]|0)){c[_>>2]=20560;ph($,34544,_);l=c[n>>2]|0}}else l=0;or($,c[m>>2]|0,l,c[f+(aa<<4)+16>>2]|0,d[f+(aa+-5<<4)+16>>0]|0);break}case 176:{h=c[f+(aa+-6<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}pr($,c[f+(aa+-3<<4)+16>>2]|0,0,c[f+(aa+-2<<4)+16>>2]|0,d[f+(aa+-5<<4)+16>>0]|0);break}case 173:{_=hr($,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;ir($,_,f+(aa+-2<<4)+16|0,1);break}case 174:{_=hr($,0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;ir($,_,f+(aa+-2<<4)+16|0,1);break}case 175:{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}pr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,d[f+(aa+-4<<4)+16>>0]|0);break}case 181:{c[ca>>2]=qr(c[$>>2]|0,c[f+(aa+-2<<4)+16>>2]|0,f+(aa<<4)+16|0)|0;break}case 182:{c[ca>>2]=qr(c[$>>2]|0,0,f+(aa<<4)+16|0)|0;break}case 183:{$=f+(aa<<4)+16|0;c[ca+0>>2]=c[$+0>>2];c[ca+4>>2]=c[$+4>>2];c[ca+8>>2]=c[$+8>>2];break}case 177:{a[ca>>0]=a[f+(aa<<4)+16>>0]|0;break}case 178:{a[ca>>0]=5;break}case 184:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 191:case 190:case 185:{_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,d[f+(aa<<4)+14>>0]|0,0,0,_)|0;$=c[_>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[f+(aa<<4)+20>>2]|0);break}case 187:case 186:{_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,27,0,0,_)|0;$=c[_>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[f+(aa<<4)+20>>2]|0);break}case 188:{Z=f+(aa+-2<<4)+16|0;_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,122,Vq($,27,0,0,Z)|0,Vq($,27,0,0,_)|0,0)|0;c[ca+4>>2]=c[Z>>2];c[ca+8>>2]=(c[_>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 189:{Z=f+(aa+-4<<4)+16|0;_=f+(aa<<4)+16|0;c[ca>>2]=Vq($,122,Vq($,27,0,0,Z)|0,Vq($,122,Vq($,27,0,0,f+(aa+-2<<4)+16|0)|0,Vq($,27,0,0,_)|0,0)|0,0)|0;c[ca+4>>2]=c[Z>>2];c[ca+8>>2]=(c[_>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 192:{u=f+(aa<<4)+16|0;t=f+(aa<<4)+20|0;do if(((c[t>>2]|0)>>>0>1?(z=c[u>>2]|0,(a[z>>0]|0)==35):0)?((d[z+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[$+18>>0]|0)){c[_>>2]=u;ph($,20432,_);c[ca>>2]=0;break}o=Vq($,159,0,0,u)|0;c[ca>>2]=o;if(o)zn((c[u>>2]|0)+1|0,o+28|0)|0}else Z=298;while(0);q:do if((Z|0)==298?(M=Vq($,135,0,0,u)|0,c[ca>>2]=M,T=c[u>>2]|0,c[ca+4>>2]=T,c[ca+8>>2]=T+(c[t>>2]|0),T=c[$>>2]|0,(M|0)!=0):0){w=c[M+8>>2]|0;o=w+1|0;do if(a[o>>0]|0){v=(w|0)==0;if(v)x=0;else{q=w;while(1)if(!(a[q>>0]|0))break;else q=q+1|0;x=q-w&1073741823}r:do if((a[w>>0]|0)==63){Y=Ql(o,E,x+-1|0,1)|0;m=E;n=c[m>>2]|0;m=c[m+4>>2]|0;q=n&65535;b[M+32>>1]=q;o=c[T+124>>2]|0;Z=((o|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&n>>>0<1|(Y|0)!=0|((m|0)>(Z|0)|(m|0)==(Z|0)&n>>>0>o>>>0)){c[_>>2]=o;ph($,33296,_);q=0}o=$+440|0;Z=c[o>>2]|0;Y=((Z|0)<0)<<31>>31;if((m|0)>(Y|0)|(m|0)==(Y|0)&n>>>0>Z>>>0)c[o>>2]=n}else{o=c[$+444>>2]|0;s:do if((o|0)>0){n=c[$+472>>2]|0;q=0;l=0;while(1){m=c[n+(q<<2)>>2]|0;if((m|0)!=0?(Wv(m,w)|0)==0:0)break;l=l+1<<16>>16;q=l<<16>>16;if((q|0)>=(o|0)){Z=315;break s}}q=q+1&65535;o=M+32|0;b[o>>1]=q;if(q<<16>>16)break r}else Z=315;while(0);if((Z|0)==315)o=M+32|0;Z=$+440|0;q=(c[Z>>2]|0)+1|0;c[Z>>2]=q;q=q&65535;b[o>>1]=q}while(0);m=q<<16>>16;if(q<<16>>16>0){q=$+444|0;if((m|0)>(c[q>>2]|0)){o=$+472|0;n=no(T,c[o>>2]|0,m<<2,0)|0;if(!n)break q;c[o>>2]=n;Z=c[q>>2]|0;bw(n+(Z<<2)|0,0,m-Z<<2|0)|0;c[q>>2]=m}if((a[w>>0]|0)==63){o=m+-1|0;if(!(c[(c[$+472>>2]|0)+(o<<2)>>2]|0))q=0;else break}else{q=m+-1|0;o=q;q=c[(c[$+472>>2]|0)+(q<<2)>>2]|0}n=$+472|0;ig(T,q);if(!v?(p=fw(x|0,0,1,0)|0,p=ih(T,p,C)|0,(p|0)!=0):0){gw(p|0,w|0,x|0)|0;a[p+x>>0]=0}else p=0;c[(c[n>>2]|0)+(o<<2)>>2]=p}}else{Y=$+440|0;Z=(c[Y>>2]|0)+1|0;c[Y>>2]=Z;b[M+32>>1]=Z}while(0);if((c[$+64>>2]|0)==0?(c[$+440>>2]|0)>(c[T+124>>2]|0):0)ph($,33344,_)}while(0);$=c[u>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[t>>2]|0);break}case 196:{_=f+(aa+-3<<4)+16|0;c[ca>>2]=sr($,0,_)|0;c[ca+4>>2]=c[_>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 197:{_=f+(aa<<4)+16|0;c[ca>>2]=sr($,0,_)|0;$=c[_>>2]|0;c[ca+4>>2]=$;c[ca+8>>2]=$+(c[f+(aa<<4)+20>>2]|0);break}case 193:{Z=aa+-2|0;_=f+(aa<<4)+16|0;c[ca>>2]=rr($,c[f+(Z<<4)+16>>2]|0,_,1)|0;c[ca+4>>2]=c[f+(Z<<4)+20>>2];c[ca+8>>2]=(c[_>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 194:{c[ca>>2]=Vq($,38,c[f+(aa+-3<<4)+16>>2]|0,0,f+(aa+-1<<4)+16|0)|0;c[ca+4>>2]=c[f+(aa+-5<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 195:{l=f+(aa+-1<<4)+16|0;h=c[l>>2]|0;if(h){if((c[h>>2]|0)>(c[(c[$>>2]|0)+112>>2]|0)){c[_>>2]=f+(aa+-4<<4)+16;ph($,20576,_);h=c[l>>2]|0}}else h=0;_=f+(aa+-4<<4)+16|0;h=sr($,h,_)|0;c[ca>>2]=h;c[ca+4>>2]=c[_>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);if(!((h|0)==0?1:(b[f+(aa+-2<<4)+16>>1]|0)==0)){$=h+4|0;c[$>>2]=c[$>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{_=aa+-2|0;c[ca>>2]=Vq($,d[f+(aa+-1<<4)+14>>0]|0,c[f+(_<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 206:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;c[ca+8>>2]=0;break}case 207:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;c[ca+8>>2]=1;break}case 208:{l=aa+-2|0;_=aa+-1|0;h=sr($,hr($,hr($,0,c[f+(aa<<4)+16>>2]|0)|0,c[f+(l<<4)+16>>2]|0)|0,f+(_<<4)+16|0)|0;c[ca>>2]=h;if(c[f+(_<<4)+24>>2]|0){h=Vq($,19,h,0,0)|0;c[ca>>2]=h}c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];if(h){$=h+4|0;c[$>>2]=c[$>>2]|128}break}case 210:{_=aa+-1|0;c[ca>>2]=Vq($,d[f+(aa<<4)+14>>0]|0,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 209:{l=aa+-4|0;_=aa+-3|0;h=sr($,hr($,hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(l<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0,f+(_<<4)+16|0)|0;c[ca>>2]=h;if(c[f+(_<<4)+24>>2]|0){h=Vq($,19,h,0,0)|0;c[ca>>2]=h}c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];if(h){$=h+4|0;c[$>>2]=c[$>>2]|128}break}case 223:{l=f+(aa+-1<<4)+16|0;h=c[l>>2]|0;do if(h){if((c[h>>2]|0)==1){_=c[h+4>>2]|0;h=c[_>>2]|0;c[_>>2]=0;Jk(c[$>>2]|0,c[l>>2]|0);if(h){_=h+4|0;c[_>>2]=c[_>>2]&-769|512}c[ca>>2]=Vq($,(c[f+(aa+-3<<4)+16>>2]|0)!=0?78:79,c[f+(aa+-4<<4)+16>>2]|0,h,0)|0;break}h=Vq($,75,c[f+(aa+-4<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h){Jk(c[$>>2]|0,c[l>>2]|0);h=0}else{c[h+20>>2]=c[l>>2];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 lq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a+4>>2]|0;c[e+4>>2]=c[a>>2];a=c[(c[e>>2]|0)+204>>2]|0;c[a+16>>2]=b;e=c[2217]|0;d=c[a+40>>2]|0;if((b|0)>-1)a=b;else{b=ow(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[a+24>>2]|0)+(c[a+20>>2]|0)|0;a=mw(b|0,C|0,a|0,((a|0)<0)<<31>>31|0)|0}fc[e&15](d,a);return}function mq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[b+12>>2]|0)+136|0;e=g;f=c[e>>2]|0;e=c[e+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(Zg(c[c[(c[b>>2]|0)+32>>2]>>2]|0,g)|0)){e=g;f=c[e>>2]|0;e=c[e+4>>2]|0;h=5;break}else{e=g;c[e>>2]=0;c[e+4>>2]=0;e=d;c[e>>2]=0;c[e+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[g>>2]=f;c[g+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[d+42>>0]=1;e=0}else e=1}return e|0}function nq(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;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p;c[n>>2]=d;d=b;b=0;a:while(1){h=c[n>>2]|0;g=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;k=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;l=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;m=c[h>>2]|0;c[n>>2]=h+4;h=c[n>>2]|0;e=c[h>>2]|0;c[n>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[f>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){o=9;break}if((m|0)!=(a[f>>0]|0))break;c[e>>2]=d;d=f+1|0;b=b+1|0}if((o|0)==9){c[e>>2]=d;b=b+1|0}i=p;return b|0}function oq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,n=0.0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+64|0;if((i|0)>=(j|0))ba();s=u;q=u+56|0;r=u+52|0;f=u+48|0;o=u+44|0;p=u+40|0;c[s>>2]=2;c[s+4>>2]=0;c[s+8>>2]=24;c[s+12>>2]=58;c[s+16>>2]=f;c[s+20>>2]=2;c[s+24>>2]=0;c[s+28>>2]=59;c[s+32>>2]=0;c[s+36>>2]=o;do if((nq(b,s)|0)==2){m=b+5|0;if((a[m>>0]|0)==58){c[s>>2]=2;c[s+4>>2]=0;c[s+8>>2]=59;c[s+12>>2]=0;c[s+16>>2]=p;if((nq(b+6|0,s)|0)!=1){f=1;break}m=b+8|0;if((a[m>>0]|0)==46?(g=b+9|0,k=a[g>>0]|0,((k&255)+-48|0)>>>0<10):0){n=0.0;l=1.0;do{n=n*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[g>>0]|0}while(((k&255)+-48|0)>>>0<10);l=n/l}else{g=m;l=0.0}}else{c[p>>2]=0;g=m;l=0.0}a[e+42>>0]=0;a[e+41>>0]=1;c[e+20>>2]=c[f>>2];c[e+24>>2]=c[o>>2];h[e+32>>3]=l+ +(c[p>>2]|0);while(1){f=g+1|0;if(!(a[10368+(d[g>>0]|0)>>0]&1)){m=g;break}else g=f}b=e+28|0;c[b>>2]=0;g=a[m>>0]|0;if(g<<24>>24==43){k=1;t=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;t=16}else f=0;else{k=-1;t=14}if((t|0)==14){c[s>>2]=2;c[s+4>>2]=0;c[s+8>>2]=14;c[s+12>>2]=58;c[s+16>>2]=q;c[s+20>>2]=2;c[s+24>>2]=0;c[s+28>>2]=59;c[s+32>>2]=0;c[s+36>>2]=r;if((nq(f,s)|0)!=2){f=1;break}k=_(((c[q>>2]|0)*60|0)+(c[r>>2]|0)|0,k)|0;c[b>>2]=k;f=m+6|0;t=16}if((t|0)==16)while(1){g=a[f>>0]|0;if(!(a[10368+(g&255)>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[e+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=u;return f|0}function pq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,n=0,o=0.0,p=0;n=i;i=i+112|0;if((i|0)>=(j|0))ba();k=n+48|0;m=n;l=n+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[f>>2]=c[b>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));ko(k);lo(k);g=k+8|0;if(((c[g>>2]|0)+-1971|0)>>>0>66){c[g>>2]=2e3;c[k+12>>2]=1;c[k+16>>2]=1;c[k+20>>2]=0;c[k+24>>2]=0;h[k+32>>3]=0.0}else{f=k+32|0;h[f>>3]=+(~~(+h[f>>3]+.5)|0)}c[k+28>>2]=0;a[k+42>>0]=0;jo(k);b=k;f=c[b>>2]|0;b=c[b+4>>2]|0;g=mw(f|0,b|0,1e3,0)|0;g=fw(g|0,C|0,-413362496,0)|0;c[l>>2]=g;g=Rb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[d+20>>2]=1;a[d+25>>0]=1;Tg(c[d>>2]|0,20056,-1,1,-1)|0;c[e>>2]=1;f=0;g=0}else{k=c[g+4>>2]|0;l=c[g+8>>2]|0;d=c[g+12>>2]|0;p=(c[g+16>>2]|0)+1|0;o=+(c[g>>2]|0);c[m+8>>2]=(c[g+20>>2]|0)+1900;c[m+12>>2]=p;c[m+16>>2]=d;c[m+20>>2]=l;c[m+24>>2]=k;h[m+32>>3]=o;a[m+40>>0]=1;a[m+41>>0]=1;a[m+42>>0]=0;a[m+43>>0]=0;jo(m);c[e>>2]=0;g=m;g=$v(c[g>>2]|0,c[g+4>>2]|0,f|0,b|0)|0;f=C}C=f;i=n;return g|0}function qq(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,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();o=p+12|0;l=p;n=p+8|0;k=p+16|0;a[d>>0]=0;f=nc[c[(c[b>>2]|0)+24>>2]&127](b,l)|0;h=l;g=c[h>>2]|0;h=c[h+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=fw(g|0,h|0,-16,-1)|0;f=as(b,f,C,o)|0;if(!f){m=c[o>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=fw(c[f>>2]|0,c[f+4>>2]|0,-12,-1)|0;f=as(b,f,C,n)|0;if(!f){f=l;f=fw(c[f>>2]|0,c[f+4>>2]|0,-8,-1)|0;f=pc[c[(c[b>>2]|0)+8>>2]&31](b,k,8,f,C)|0;if(!f)if(!(Vv(k,14808,8)|0)){f=l;f=fw(c[f>>2]|0,c[f+4>>2]|0,-16,-1)|0;f=$v(f|0,C|0,m|0,0)|0;f=pc[c[(c[b>>2]|0)+8>>2]&31](b,d,m,f,C)|0;if(!f){g=c[n>>2]|0;h=0;while(1){e=a[d+h>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[n>>2]=f;if((g|0)==(e|0))f=m;else{c[o>>2]=0;f=0}a[d+f>>0]=0;f=0}}else f=0}}else f=0}}i=p;return f|0}function rq(a,b,d,e,f,g){a=a|0;b=b|0;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;s=i;i=i+16|0;if((i|0)>=(j|0))ba();l=s+8|0;q=s+4|0;o=s;r=a+72|0;h=r;k=c[h>>2]|0;h=c[h+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[a+148>>2]|0}else{m=fw(k|0,h|0,-1,-1)|0;k=c[a+148>>2]|0;m=mw(m|0,C|0,k|0,0)|0;m=fw(m|0,C|0,1,0)|0;m=ow(m|0,C|0,k|0,0)|0;n=C}p=r;c[p>>2]=m;c[p+4>>2]=n;p=a+148|0;k=fw(k|0,0,m|0,n|0)|0;h=C;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[b>>2]|0)?(n|0)==(c[b+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[k>>2]|0;e=pc[c[(c[e>>2]|0)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Vv(l,14808,8)|0))d=k;else{e=101;break}}l=c[d>>2]|0;e=fw(m|0,n|0,8,0)|0;e=as(l,e,C,f)|0;if(!e){f=c[d>>2]|0;e=fw(m|0,n|0,12,0)|0;e=as(f,e,C,a+48|0)|0;if(!e){f=c[d>>2]|0;e=fw(m|0,n|0,16,0)|0;e=as(f,e,C,g)|0;if(!e){h=r;k=c[h>>2]|0;h=c[h+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[d>>2]|0;e=fw(m|0,n|0,20,0)|0;e=as(g,e,C,o)|0;if(e)break;g=c[d>>2]|0;e=fw(m|0,n|0,24,0)|0;e=as(g,e,C,q)|0;if(e)break;d=c[q>>2]|0;if(!d){h=c[a+152>>2]|0;c[q>>2]=h}else h=d;d=c[o>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=Yk(a,q,-1)|0;c[p>>2]=d;h=r;k=c[h>>2]|0;h=c[h+4>>2]|0}else{d=c[p>>2]|0;e=0}m=fw(k|0,h|0,d|0,0)|0;n=r;c[n>>2]=m;c[n+4>>2]=C}}}}else e=101;while(0);i=s;return e|0}function sq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var 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;A=i;i=i+16|0;if((i|0)>=(j|0))ba();v=A+8|0;o=A+4|0;r=A;y=c[f+200>>2]|0;z=(k|0)!=0;n=c[(z?f+64|0:f+68|0)>>2]|0;q=g;q=as(n,c[q>>2]|0,c[q+4>>2]|0,o)|0;do if(!q){x=f+152|0;u=c[x>>2]|0;q=g;q=fw(c[q>>2]|0,c[q+4>>2]|0,4,0)|0;q=pc[c[(c[n>>2]|0)+8>>2]&31](n,y,u,q,C)|0;if(!q){B=c[x>>2]|0;p=(k<<2)+4+B|0;q=g;q=fw(p|0,((p|0)<0)<<31>>31|0,c[q>>2]|0,c[q+4>>2]|0)|0;p=C;u=g;c[u>>2]=q;c[u+4>>2]=p;u=c[o>>2]|0;if((u|0)!=0?(u|0)!=(((c[2514]|0)/(B|0)|0)+1|0):0)if(u>>>0<=(c[f+24>>2]|0)>>>0?($h(h,u)|0)==0:0){if(z){q=fw(q|0,p|0,-4,-1)|0;q=as(n,q,C,r)|0;if(q){m=q;break}if(!l){q=c[f+48>>2]|0;p=(c[x>>2]|0)+-200|0;if((p|0)>0)do{q=(d[y+p>>0]|0)+q|0;p=p+-200|0}while((p|0)>0);if((q|0)!=(c[r>>2]|0)){m=101;break}}}if((h|0)!=0?(m=Zh(h,u)|0,(m|0)!=0):0)break;r=(u|0)==1;if(r?(s=f+142|0,t=a[y+20>>0]|0,(b[s>>1]|0)!=(t&255|0)):0)b[s>>1]=t&255;if(!(c[f+208>>2]|0)){t=f+204|0;q=Yb[c[8744+132>>2]&63](c[(c[t>>2]|0)+40>>2]|0,u,0)|0;q=el(c[t>>2]|0,u,q)|0}else q=0;c[v>>2]=q;if(z)if(!(a[f+7>>0]|0)){t=g;h=c[t+4>>2]|0;p=f+80|0;s=c[p+4>>2]|0;p=(h|0)<(s|0)|((h|0)==(s|0)?(c[t>>2]|0)>>>0<=(c[p>>2]|0)>>>0:0)}else p=1;else if(!q)p=1;else p=(b[q+24>>1]&4)==0;o=c[f+60>>2]|0;n=c[o>>2]|0;do if(n){m=a[f+16>>0]|0;if((m&255)>3){if(!p){w=33;break}}else if(!(m<<24>>24==0&p)){w=33;break}p=c[x>>2]|0;m=ow(p|0,((p|0)<0)<<31>>31|0,u+-1|0,0)|0;m=pc[c[n+12>>2]&31](o,y,p,m,C)|0;p=f+32|0;if(u>>>0>(c[p>>2]|0)>>>0)c[p>>2]=u;p=c[f+88>>2]|0;if(p)Yo(p,u,y)}else w=33;while(0);if((w|0)==33)if((k|0)==0&(q|0)==0){t=f+20|0;a[t>>0]=d[t>>0]|2;m=vg(f,u,v,1)|0;a[t>>0]=d[t>>0]&253;if(m)break;q=c[v>>2]|0;m=q+24|0;b[m>>1]=e[m>>1]&65527;Po(q);m=0}else m=0;if(q){o=c[q+4>>2]|0;gw(o|0,y|0,c[x>>2]|0)|0;_b[c[f+196>>2]&31](q);do if(z){if((l|0)!=0?(t=g,h=c[t+4>>2]|0,u=f+80|0,s=c[u+4>>2]|0,(h|0)>(s|0)|((h|0)==(s|0)?(c[t>>2]|0)>>>0>(c[u>>2]|0)>>>0:0)):0)break;tl(q)}while(0);if(r){p=f+104|0;n=o+24|0;o=p+16|0;do{a[p>>0]=a[n>>0]|0;p=p+1|0;n=n+1|0}while((p|0)<(o|0))}kl(q)}}else m=0;else m=101}else m=q}else m=q;while(0);i=A;return m|0}function tq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[g>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Tc(c[j>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[g>>2]|0;bw(h+(k<<2)|0,0,i-k<<2|0)|0;c[j>>2]=h;c[g>>2]=i;k=5}}else{h=c[b+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[h>>2]|0)){if((a[b+43>>0]|0)!=2){g=c[b+4>>2]|0;g=pc[c[(c[g>>2]|0)+52>>2]&31](g,e,32768,d[b+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[g>>0]=d[g>>0]|2;g=0;break}g=mg(32768,0)|0;if(g)bw(g|0,0,32768)|0;c[(c[j>>2]|0)+(e<<2)>>2]=g;g=(c[(c[j>>2]|0)+(e<<2)>>2]|0)==0?7:0}else g=0;while(0);h=c[(c[j>>2]|0)+(e<<2)>>2]|0}c[f>>2]=h;return g|0}function uq(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;h=b+d|0;if(!e){g=0;d=0}else{g=c[e>>2]|0;d=c[e+4>>2]|0}if(!a)do{g=g+d+(jw(c[b>>2]|0)|0)|0;d=g+d+(jw(c[b+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0>>0);else do{g=g+d+(c[b>>2]|0)|0;d=g+d+(c[b+4>>2]|0)|0;b=b+8|0}while(b>>>0>>0);c[f>>2]=g;c[f+4>>2]=d;return}function vq(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,j=0,k=0;h=a+8|0;g=c[h>>2]|0;h=c[h+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=fw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=C,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0>>0)):0){i=$v(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[h>>2]|0;g=pc[c[(c[g>>2]|0)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=fw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=C;g=c[h>>2]|0;g=nc[c[(c[g>>2]|0)+20>>2]&127](g,c[a+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[a+4>>2]|0;g=pc[c[(c[f>>2]|0)+12>>2]&31](f,h,d,e,g)|0}return g|0}function wq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();h=l+8|0;k=l+4|0;g=l;c[h>>2]=0;c[k>>2]=0;c[g>>2]=0;f=a+68|0;d=c[f>>2]|0;if(d){Lo(a,(d+33|0)>>>12,h,k,g)|0;g=(c[f>>2]|0)-(c[g>>2]|0)|0;a=c[h>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[d>>1]|0|0)>(g|0))b[d>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[k>>2]|0)+(g+1<<2)|0;bw(d|0,0,a-d|0)|0}i=l;return}function xq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();e=g;h=a+204|0;f=Yb[c[8744+132>>2]&63](c[(c[h>>2]|0)+40>>2]|0,d,0)|0;f=el(c[h>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[f+26>>1]|0)==1){il(f);e=0;break}c[e>>2]=0;d=gl(c[a+208>>2]|0,c[f+20>>2]|0,e)|0;if(!d){d=hl(f,c[e>>2]|0)|0;if(!d){_b[c[a+196>>2]&31](f);d=0}}xg(f);e=d}while(0);d=c[a+88>>2]|0;if(d)do{c[d+16>>2]=1;d=c[d+44>>2]|0}while((d|0)!=0);i=g;return e|0}function yq(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,B=0,C=0,D=0;D=i;i=i+16|0;if((i|0)>=(j|0))ba();C=D;z=c[f+52>>2]|0;q=(c[z+36>>2]|0)+-4|0;v=g&65535;A=h&65535;u=A+v|0;B=c[f+56>>2]|0;if(b[z+22>>1]&4)bw(B+v|0,0,A|0)|0;y=d[f+6>>0]|0;z=y+1|0;n=z&65535;x=z&65535;if((a[B+(x+1)>>0]|0)==0?(a[B+x>>0]|0)==0:0){s=h&255;q=(h&65535)>>>8&255;r=u;p=0;o=0;x=23}else{s=n;x=6}a:do if((x|0)==6){while(1){x=0;m=s&65535;o=a[B+(m+1)>>0]|0;l=o&255;r=d[B+m>>0]<<8|l;n=s;s=r&65535;if(!(r>>>0>>0&(r|0)!=0)){p=o;t=r;break}if(r>>>0<(m+4|0)>>>0){x=8;break}else x=6}if((x|0)==8){c[C>>2]=54420;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}if(t>>>0>q>>>0){c[C>>2]=54423;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}k=h&255;q=(h&65535)>>>8&255;o=(s&65535)>>>8&255;do if((t+-1|0)>>>0<(u+3|0)>>>0)if(u>>>0>t>>>0){c[C>>2]=54434;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break a}else{r=(d[B+(t+2)>>0]<<8|d[B+(t+3)>>0])+t|0;q=r-v|0;s=q&255;q=(q&65535)>>>8&255;p=a[B+(t+1)>>0]|0;o=a[B+t>>0]|0;k=l-u&255;break}else{s=k;r=u;k=0}while(0);do if(m>>>0>z>>>0?(w=(d[B+(m+2)>>0]<<8|d[B+(m+3)>>0])+m|0,(w+3|0)>=(v|0)):0)if((v|0)<(w|0)){c[C>>2]=54447;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break a}else{q=r-m|0;g=n;s=q&255;q=(q&65535)>>>8&255;k=(k&255)+v-w&255;break}while(0);m=B+(y+7)|0;l=a[m>>0]|0;if((l&255)<(k&255)){c[C>>2]=54453;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break}else{a[m>>0]=(l&255)-(k&255);x=23;break}}while(0);b:do if((x|0)==23){k=g&65535;l=B+(y+5)|0;m=B+(y+6)|0;do if((k|0)==(d[l>>0]<<8|d[m>>0]|0))if((n&65535|0)==(z|0)){a[B+z>>0]=o;a[B+(y+2)>>0]=p;a[l>>0]=r>>>8;a[m>>0]=r;break}else{c[C>>2]=54460;c[C+4>>2]=10788;Zc(11,13600,C);k=11;break b}else{C=n&65535;a[B+C>>0]=(g&65535)>>>8;a[B+(C+1)>>0]=g;a[B+k>>0]=o;a[B+(k+1)>>0]=p;a[B+(k+2)>>0]=q;a[B+(k+3)>>0]=s}while(0);k=f+16|0;b[k>>1]=(e[k>>1]|0)+A;k=0}while(0);i=D;return k|0}function zq(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,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();r=u;q=d[b+6>>0]|0;t=c[b+56>>2]|0;p=c[(c[b+52>>2]|0)+36>>2]|0;l=p+-4|0;b=q+1|0;while(1){m=t+b|0;n=(d[m>>0]|0)<<8|(d[t+(b+1)>>0]|0);if(!n){b=0;break}if((n|0)>(l|0)|(n|0)<(b+4|0)){s=4;break}h=t+(n+2)|0;k=t+(n+3)|0;b=(d[h>>0]|0)<<8|(d[k>>0]|0);if((b|0)<(e|0))b=n;else{o=h;l=n;s=6;break}}a:do if((s|0)==4){c[r>>2]=54252;c[r+4>>2]=10788;Zc(11,13600,r);c[f>>2]=11;b=0}else if((s|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(p|0)){c[r>>2]=54275;c[r+4>>2]=10788;Zc(11,13600,r);c[f>>2]=11;b=0;break a}else{a[o>>0]=h>>>8;a[k>>0]=h;break}else{b=t+(q+7)|0;if((d[b>>0]|0)<=59){q=t+l|0;q=d[q>>0]|d[q+1>>0]<<8;a[m>>0]=q;a[m+1>>0]=q>>8;a[b>>0]=(d[b>>0]|0)+h;break}if(!g){b=0;break a}c[g>>2]=1;b=0;break a}while(0);b=t+(h+l)|0}while(0);i=u;return b|0}function Aq(f){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,C=0,D=0;D=i;i=i+16|0;if((i|0)>=(j|0))ba();B=D;y=c[f+56>>2]|0;A=d[f+6>>0]|0;u=e[f+14>>1]|0;v=b[f+18>>1]|0;q=v&65535;r=f+52|0;s=c[(c[r>>2]|0)+36>>2]|0;z=(q<<1)+u|0;t=s+-4|0;w=y+(A+5)|0;x=y+(A+6)|0;a:do if(v<<16>>16){p=s;v=0;h=y;k=0;while(1){m=(v<<1)+u|0;l=y+m|0;m=y+(m+1)|0;n=(d[l>>0]|0)<<8|(d[m>>0]|0);if((n|0)<(z|0)|(n|0)>(t|0)){C=3;break}o=(Hp(f,h+n|0)|0)&65535;g=p-o|0;if((g|0)<(z|0)|(o+n|0)>(s|0)){C=5;break}a[l>>0]=g>>>8;a[m>>0]=g;if(!k)if((g|0)==(n|0))k=0;else{k=c[(c[c[r>>2]>>2]|0)+200>>2]|0;h=(d[w>>0]|0)<<8|(d[x>>0]|0);gw(k+h|0,y+h|0,p-h|0)|0;h=k;C=9}else C=9;if((C|0)==9){C=0;gw(y+g|0,h+n|0,o|0)|0}v=v+1|0;if((v|0)>=(q|0)){C=11;break a}else p=g}if((C|0)==3){c[B>>2]=54184;c[B+4>>2]=10788;Zc(11,13600,B);g=11;break}else if((C|0)==5){c[B>>2]=54196;c[B+4>>2]=10788;Zc(11,13600,B);g=11;break}}else{g=s;C=11}while(0);if((C|0)==11){a[w>>0]=g>>>8;a[x>>0]=g;a[y+(A+1)>>0]=0;a[y+(A+2)>>0]=0;a[y+(A+7)>>0]=0;C=g-z|0;bw(y+z|0,0,C|0)|0;if((C|0)==(e[f+16>>1]|0|0))g=0;else{c[B>>2]=54221;c[B+4>>2]=10788;Zc(11,13600,B);g=11}}i=D;return g|0}function Bq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))ba();h=k;if((c[f>>2]|0)==0?(np(a,e,h),g=b[h+18>>1]|0,g<<16>>16!=0):0){g=g&65535;vp(c[a+52>>2]|0,(d[e+(g+1)>>0]|0)<<16|(d[e+g>>0]|0)<<24|(d[e+(g+2)>>0]|0)<<8|(d[e+(g+3)>>0]|0),3,c[a+72>>2]|0,f)}i=k;return}function Cq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[g>>2]|0)){h=c[b+52>>2]|0;j=c[b+56>>2]|0;l=c[f+56>>2]|0;i=d[b+6>>0]|0;k=(c[f+72>>2]|0)==1?100:0;m=d[j+(i+5)>>0]<<8|d[j+(i+6)>>0];gw(l+m|0,j+m|0,(c[h+36>>2]|0)-m|0)|0;gw(l+k|0,j+i|0,(e[b+18>>1]<<1)+(e[b+14>>1]|0)|0)|0;a[f>>0]=0;b=Xp(f)|0;if(b){c[g>>2]=b;break}if(a[h+17>>0]|0)c[g>>2]=Wp(f)|0}while(0);return}function Dq(f,g,h,i){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,t=0,u=0;q=d[f+6>>0]|0;t=c[f+56>>2]|0;m=c[f+52>>2]|0;o=c[m+36>>2]|0;n=t+o|0;j=c[f+64>>2]|0;m=c[(c[m>>2]|0)+200>>2]|0;p=t+(q+5)|0;r=t+(q+6)|0;s=(d[p>>0]|0)<<8|(d[r>>0]|0);gw(m+s|0,t+s|0,o-s|0)|0;s=t;if((g|0)>0){o=0;l=j;j=n;while(1){k=c[h+(o<<2)>>2]|0;if(k>>>0>t>>>0&k>>>0>>0)k=m+(k-s)|0;u=e[i+(o<<1)>>1]|0;j=j+(0-u)|0;gw(j|0,k|0,u|0)|0;k=j-s|0;a[l>>0]=k>>>8;a[l+1>>0]=k;o=o+1|0;if((o|0)==(g|0))break;else l=l+2|0}}else j=n;i=f+18|0;b[i>>1]=g;a[f+1>>0]=0;a[t+(q+1)>>0]=0;a[t+(q+2)>>0]=0;a[t+(q+3)>>0]=(e[i>>1]|0)>>>8;a[t+(q+4)>>0]=b[i>>1];i=j-s|0;a[p>>0]=i>>>8;a[r>>0]=i;a[t+(q+7)>>0]=0;return}function Eq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=c[a+56>>2]|0;p=r+(c[(c[a+52>>2]|0)+36>>2]|0)|0;n=r+((d[a+6>>0]|0)+8+(d[a+7>>0]|0))|0;a:do if((b|0)>0){o=r;q=0;h=0;l=0;m=0;while(1){j=c[f+(q<<2)>>2]|0;if(j>>>0>=n>>>0&j>>>0>>0){i=e[g+(q<<1)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)yq(a,l-o&65535,m&65535)|0;if(k>>>0>p>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}q=q+1|0;if((q|0)>=(b|0))break;else{l=j;m=i}}if(j)yq(a,j-r&65535,i&65535)|0}else h=0;while(0);return h|0}function Fq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,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;n=c[b+56>>2]|0;m=c[f>>2]|0;if(!(a[n+1>>0]|0))s=(a[n+2>>0]|0)!=0;else s=1;a:do if((h|0)>0){q=0;while(1){p=e[l+(q<<1)>>1]|0;if(s?(r=zq(b,p,t,0)|0,(r|0)!=0):0)o=r;else{o=m+(0-p)|0;if(o>>>0>>0){m=1;break a}else m=o}gw(o|0,c[k+(q<<2)>>2]|0,p|0)|0;p=o-n|0;a[g>>0]=p>>>8;a[g+1>>0]=p;q=q+1|0;if((q|0)>=(h|0)){u=9;break}else g=g+2|0}}else u=9;while(0);if((u|0)==9){c[f>>2]=m;m=0}i=v;return m|0}function Gq(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,p=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;e=c[a+44>>2]|0;h=a;f=c[h>>2]|0;h=c[h+4>>2]|0;a:do if(!e){m=a+40|0;e=c[m>>2]|0;g=((e|0)<0)<<31>>31;l=nw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=$v(c[k>>2]|0,c[k+4>>2]|0,f|0,h|0)|0;p=C;q=c[a+24>>2]|0;e=pc[c[(c[q>>2]|0)+8>>2]&31](q,c[a+36>>2]|0,(p|0)>(g|0)|(p|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[m>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[d>>2]=(c[a+36>>2]|0)+l;e=a;b=fw(c[e>>2]|0,c[e+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[e>>2]=b;c[e+4>>2]=C;e=0;break}e=a+16|0;f=c[e>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=ng(c[g>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[e>>2]=h;c[g>>2]=f}else f=c[a+28>>2]|0;h=a+28|0;gw(f|0,(c[a+36>>2]|0)+l|0,k|0)|0;l=a;l=fw(c[l>>2]|0,c[l+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[e>>2]=l;c[e+4>>2]=C;e=b-k|0;if((e|0)>0){g=e;do{f=c[m>>2]|0;f=(g|0)>(f|0)?f:g;e=Gq(a,f,n)|0;if(e)break a;gw((c[h>>2]|0)+(b-g)|0,c[n>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[d>>2]=c[h>>2];e=0}else{c[d>>2]=e+f;b=fw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[e>>2]=b;c[e+4>>2]=C;e=0}while(0);i=o;return e|0}function Hq(a){a=a|0;var b=0,d=0,e=0,f=0,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;z=i;i=i+64|0;if((i|0)>=(j|0))ba();w=z+44|0;y=z;x=z+40|0;u=a+8|0;t=c[u>>2]|0;u=c[u+4>>2]|0;v=a+4|0;p=c[v>>2]|0;Lp(c[a+48>>2]|0,y,c[(c[(c[a>>2]|0)+8>>2]|0)+12>>2]|0,t,u);o=p+8|0;p=p+12|0;q=y+24|0;r=y+16|0;s=a+16|0;while(1){f=c[(c[o>>2]|0)+4>>2]|0;g=c[p>>2]|0;h=c[g+(f*56|0)+20>>2]|0;if(!(c[g+(f*56|0)+24>>2]|0)){d=1;b=0;break}l=q;k=c[l>>2]|0;l=c[l+4>>2]|0;m=c[r>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=iw(b|0,e|0,7)|0;e=C}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=fw(k|0,l|0,h|0,n|0)|0;k=fw(k|0,C|0,m|0,((m|0)<0)<<31>>31|0)|0;d=fw(k|0,C|0,d|0,((d|0)<0)<<31>>31|0)|0;k=C;b=c[s>>2]|0;b=fw(b|0,((b|0)<0)<<31>>31|0,t|0,u|0)|0;e=C;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Mp(y,w,lm(w,h,n)|0);Mp(y,c[g+(f*56|0)+32>>2]|0,h);b=Sm(c[v>>2]|0,x)|0;if(b){d=0;break}}y=Np(y,a+56|0)|0;i=z;return (d?y:b)|0}function Iq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();f=d;c[f>>2]=e;e=Sk(a,13592,f)|0;ig(a,b);i=d;return e|0}function Jq(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;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;h=a[d>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[d>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[f+(l<<1)>>1]=bs(k,h)|0;d=(a[d>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[d>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[l>>0]=a[l>>0]&-69;a:do if(a[d>>0]|0){f=g+44|0;b:while(1){do if(!(Ch(13448,d,10352,0)|0)){if(Ch(13464,d,10352,0)|0){c[m>>2]=0;zn(d+3|0,m)|0;h=c[m>>2]|0;b[f>>1]=bs(h,((h|0)<0)<<31>>31)|0;break}if(Ch(13480,d,10352,0)|0)a[l>>0]=a[l>>0]|64}else a[l>>0]=a[l>>0]|4;while(0);while(1){h=a[d>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[k>>0]|0;d=k}}}while(0);i=n;return}function Kq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[f>>2]|0;if(!e){e=rh(d)|0;c[f>>2]=e;if(e)sh(e,155,0,0,0)|0;if((c[d+408>>2]|0)==0?(b[(c[d>>2]|0)+60>>1]&8)==0:0)a[d+23>>0]=1}return e|0}function Lq(b,d){b=b|0;d=d|0;var e=0;e=(c[b+32>>2]|0)+-1|0;if((e|0)>(c[(c[b+24>>2]|0)+88>>2]|0)?(a[(c[b+4>>2]|0)+(e*20|0)>>0]|0)==d<<24>>24:0){vh(b,e);e=1}else e=0;return e|0}function Mq(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Kq(d)|0;i=g+32|0;cs(d,f,c[i>>2]|0,(h|0)==55&1,c[g>>2]|0);if(!(a[g+44>>0]&32)){g=b[g+38>>1]|0;th(j,sh(j,h,e,c[i>>2]|0,f)|0,g,-14)}else{i=c[g+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[i+51>>0]&3)==2)break a;i=c[i+20>>2]|0;if(!i){i=0;break}}while(0);sh(j,h,e,c[i+40>>2]|0,f)|0;g=c[d+8>>2]|0;th(g,-1,ds(d,i)|0,-6)}return}function Nq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[d>>0]|0)==-97:0)sh(c[b+8>>2]|0,33,c[d+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=es(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[b+8>>2]|0,(f|0)!=0):0)sh(f,34,g,e,0)|0;return}function Oq(b,d,e,f,g){b=b|0;d=d|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();l=m;h=c[b>>2]|0;do if(((a[h+145>>0]|0)==0?(a[b+451>>0]|0)==0:0)?(k=c[h+284>>2]|0,(k|0)!=0):0){h=gc[k&7](c[h+288>>2]|0,d,e,f,g,c[b+492>>2]|0)|0;if((h|0)==0|(h|0)==2)break;else if((h|0)==1){ph(b,25216,l);c[b+12>>2]=23;h=1;break}else{ph(b,25232,l);c[b+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Pq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Sq(c[a>>2]|0,d)|0;do if(d){e=Kq(a)|0;if((e|0)!=0?(Oq(a,32,c[37088+(b<<2)>>2]|0,d,0)|0)==0:0){th(e,sh(e,2,b,0,0)|0,d,-1);break}ig(c[a>>2]|0,d)}while(0);return}function Qq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,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();r=v;p=v+4|0;u=c[e>>2]|0;f=ar(e,f,g,p)|0;a:do if((f|0)>=0){q=(h|0)!=0;if(q?(c[g+4>>2]|0)!=0&(f|0)!=1:0){ph(e,36976,r);break}t=q?1:f;g=c[p>>2]|0;q=g;f=c[q+4>>2]|0;p=e+496|0;c[p>>2]=c[q>>2];c[p+4>>2]=f;p=Sq(u,g)|0;if(p){b:do if((Hr(e,p)|0)==0?(o=(a[u+144>>0]|0)==1?1:h,s=u+16|0,n=c[(c[s>>2]|0)+(t<<4)>>2]|0,(Oq(e,18,(o|0)==1?13184:13208,0,n)|0)==0):0){h=(o|0)!=0;if(!k)f=h?4:2;else f=h?6:8;q=(l|0)!=0;if(!q?(Oq(e,f,p,0,n)|0)!=0:0)break;do if(!(a[e+451>>0]|0)){h=c[(c[s>>2]|0)+(t<<4)>>2]|0;if(Cn(e)|0)break b;if(!(Wh(u,p,h)|0)){if(!(Zp(u,p,h)|0))break;c[r>>2]=p;ph(e,37048,r);break b}if(!m){c[r>>2]=g;ph(e,37024,r);break b}else{wr(e,t);break b}}while(0);o=ih(u,76,0)|0;if(!o){a[u+65>>0]=1;c[e+12>>2]=7;s=e+64|0;c[s>>2]=(c[s>>2]|0)+1;break}n=o+0|0;h=n+76|0;do{a[n>>0]=0;n=n+1|0}while((n|0)<(h|0));c[o>>2]=p;b[o+36>>1]=-1;n=c[(c[s>>2]|0)+(t<<4)+12>>2]|0;c[o+68>>2]=n;b[o+40>>1]=1;b[o+28>>1]=200;c[e+484>>2]=o;if((a[e+18>>0]|0)==0?(Wv(p,26576)|0)==0:0)c[n+72>>2]=o;if(a[u+145>>0]|0)break a;g=Kq(e)|0;if(!g)break a;s=c[e+408>>2]|0;wr(e,t);n=1<>2]=c[s>>2]|n;if(q)sh(g,146,0,0,0)|0;o=e+72|0;f=c[o>>2]|0;p=f+1|0;c[e+384>>2]=p;q=f+2|0;c[e+388>>2]=q;f=f+3|0;c[o>>2]=f;sh(g,51,t,f,2)|0;o=g+96|0;c[o>>2]=c[o>>2]|n;o=sh(g,45,f,0,0)|0;sh(g,25,(c[u+24>>2]&32768|0)!=0?1:4,f,0)|0;sh(g,52,t,2,f)|0;sh(g,25,d[u+62>>0]|0,f,0)|0;sh(g,52,t,5,f)|0;h=g+32|0;n=c[h>>2]|0;if(n>>>0>o>>>0)c[(c[g+4>>2]|0)+(o*20|0)+8>>2]=n;c[(c[g+24>>2]|0)+88>>2]=n+-1;if(!(l|k))c[e+416>>2]=sh(g,121,t,q,0)|0;else sh(g,25,0,q,0)|0;fs(e,t);sh(g,74,0,p,0)|0;sh(g,28,0,f,0)|0;sh(g,75,0,f,p)|0;n=c[g+4>>2]|0;if(n)a[n+(((c[h>>2]|0)+-1|0)*20|0)+3>>0]=8;sh(g,61,0,0,0)|0;break a}while(0);ig(u,p)}}while(0);i=v;return}function Rq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var 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,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;O=i;i=i+176|0;if((i|0)>=(j|0))ba();J=O+80|0;G=O+168|0;D=O;E=O+136|0;F=O+112|0;K=c[f>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(L=K+65|0,(a[L>>0]|0)==0):0)?(M=f+484|0,N=c[M>>2]|0,(N|0)!=0):0){I=K+145|0;if(a[I>>0]|0)c[N+32>>2]=c[K+140>>2];b:do if(k&32){p=N+44|0;o=d[p>>0]|0;if(o&8){ph(f,36584,J);break a}if(!(o&4)){c[J>>2]=c[N>>2];ph(f,36640,J);break}a[p>>0]=o|32;q=c[f+8>>2]|0;p=c[f+416>>2]|0;if(p){if((p|0)<0)p=(c[q+32>>2]|0)+-1|0;if(!(a[(c[q>>2]|0)+65>>0]|0))p=(c[q+4>>2]|0)+(p*20|0)|0;else p=29120;a[p>>0]=120}p=c[f+420>>2]|0;if(p){if((p|0)<0)p=(c[q+32>>2]|0)+-1|0;if(!(a[(c[q>>2]|0)+65>>0]|0))o=(c[q+4>>2]|0)+(p*20|0)|0;else o=29120;a[o>>0]=16}o=N+36|0;if((b[o>>1]|0)>-1){p=hr(f,0,0)|0;if(!p)break;z=gh(c[f>>2]|0,c[(c[N+4>>2]|0)+((b[o>>1]|0)*24|0)>>2]|0)|0;A=c[p+4>>2]|0;c[A+4>>2]=z;a[A+12>>0]=a[f+448>>0]|0;p=Xq(f,0,0,0,p,d[N+45>>0]|0,0,0,0,0)|0;if(!p)break;u=p+51|0;a[u>>0]=a[u>>0]&-4|2;b[o>>1]=-1;u=b[p+46>>1]|0}else{p=c[N+8>>2]|0;c:do if(!p)p=0;else while(1){if((a[p+51>>0]&3)==2)break c;p=c[p+20>>2]|0;if(!p){p=0;break}}while(0);v=p+46|0;q=b[v>>1]|0;if((q&65535)>1){t=c[p+4>>2]|0;s=p+48|0;u=1;o=1;do{m=b[t+(u<<1)>>1]|0;r=o;n=t;while(1){if((r|0)<=0){C=36;break}if((b[n>>1]|0)==m<<16>>16){C=35;break}else{r=r+-1|0;n=n+2|0}}if((C|0)==35){C=0;b[s>>1]=(b[s>>1]|0)+-1<<16>>16}else if((C|0)==36){C=0;b[t+(o<<1)>>1]=m;q=b[v>>1]|0;o=o+1|0}u=u+1|0}while((u|0)<(q&65535|0))}else o=1;u=o&65535;b[v>>1]=u}r=p+51|0;q=a[r>>0]|32;a[r>>0]=q;A=u&65535;if(!(a[K+147>>0]|0)){if(u<<16>>16){q=c[p+4>>2]|0;o=c[N+4>>2]|0;n=0;do{a[o+((b[q+(n<<1)>>1]|0)*24|0)+20>>0]=1;n=n+1|0}while((n|0)<(A|0));q=a[r>>0]|0}a[r>>0]=q|8}c[p+40>>2]=c[N+32>>2];r=c[N+8>>2]|0;if(r){x=u<<16>>16==0;y=p+4|0;z=p+32|0;do{d:do if((a[r+51>>0]&3)!=2){do if(x)q=b[r+46>>1]|0;else{s=c[r+4>>2]|0;q=b[r+46>>1]|0;n=q&65535;m=c[y>>2]|0;w=0;o=0;do{t=b[m+(w<<1)>>1]|0;v=n;u=s;while(1){if((v|0)<=0){u=1;break}if((b[u>>1]|0)==t<<16>>16){u=0;break}else{v=v+-1|0;u=u+2|0}}o=u+o|0;w=w+1|0}while((w|0)<(A|0));n=r+46|0;if(!o)break;if(gs(K,r,(q&65535)+o|0)|0)break b;if(x)break d;t=b[n>>1]|0;w=r+4|0;m=r+32|0;v=t;u=0;t=t&65535;while(1){q=c[w>>2]|0;o=b[(c[y>>2]|0)+(u<<1)>>1]|0;v=v&65535;s=q;while(1){if((v|0)<=0){C=63;break}if((b[s>>1]|0)==o<<16>>16)break;else{v=v+-1|0;s=s+2|0}}if((C|0)==63){C=0;b[q+(t<<1)>>1]=o;c[(c[m>>2]|0)+(t<<2)>>2]=c[(c[z>>2]|0)+(u<<2)>>2];t=t+1|0}u=u+1|0;if((u|0)>=(A|0))break d;v=b[n>>1]|0}}while(0);b[r+48>>1]=q}while(0);r=c[r+20>>2]|0}while((r|0)!=0)}v=N+38|0;q=b[v>>1]|0;o=q<<16>>16;if((A|0)>=(o|0)){b[p+48>>1]=q;break}if((gs(K,p,o)|0)==0?(B=b[v>>1]|0,B<<16>>16>0):0){s=p+4|0;u=p+32|0;q=B;t=0;p=A;do{n=c[s>>2]|0;r=p;o=n;while(1){if((r|0)<=0){C=74;break}if((b[o>>1]|0)==(t|0))break;else{r=r+-1|0;o=o+2|0}}if((C|0)==74){C=0;b[n+(p<<1)>>1]=t;c[(c[u>>2]|0)+(p<<2)>>2]=11152;q=b[v>>1]|0;p=p+1|0}t=t+1|0}while((t|0)<(q<<16>>16|0))}}while(0);C=N+68|0;p=c[C>>2]|0;e:do if(p){o=c[K+20>>2]|0;if((o|0)>0){n=c[K+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0))break e;if((m|0)<(o|0))q=m;else{q=m;break}}}else q=0}else q=-1e6;while(0);n=c[N+24>>2]|0;f:do if(n){c[E+0>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;c[E+12>>2]=0;c[E+16>>2]=0;c[E+20>>2]=0;c[E+24>>2]=0;c[E+28>>2]=0;p=D+0|0;o=p+80|0;do{c[p>>2]=0;p=p+4|0}while((p|0)<(o|0));c[D>>2]=1;c[D+16>>2]=c[N>>2];c[D+24>>2]=N;c[D+48>>2]=-1;c[E>>2]=f;c[E+4>>2]=D;b[E+28>>1]=4;p=n+4|0;if((c[n>>2]|0)>0){o=0;do{if(hs(E,c[(c[p>>2]|0)+(o*20|0)>>2]|0)|0)break f;o=o+1|0}while((o|0)<(c[n>>2]|0))}}while(0);A=N+38|0;m=b[A>>1]|0;if(m<<16>>16>0){p=m<<16>>16;o=c[N+4>>2]|0;n=0;while(1){n=(d[o+22>>0]|0)+n|0;p=p+-1|0;if((p|0)<=0)break;else o=o+24|0}}else n=0;b[N+42>>1]=bs(((e[N+36>>1]|0)>>>15&65535)+n<<2,0)|0;n=c[N+8>>2]|0;if(n)do{is(n);n=c[n+20>>2]|0}while((n|0)!=0);if(!(a[I>>0]|0)){B=Kq(f)|0;if(!B)break;sh(B,61,0,0,0)|0;y=(c[N+12>>2]|0)==0;o=y?36672:36680;y=y?31232:35480;do if(!l){n=k<<24>>24==0?h:f+504|0;l=c[n>>2]|0;p=c[f+496>>2]|0;m=l-p|0;if((a[l>>0]|0)!=59)m=(c[n+4>>2]|0)+m|0;c[J>>2]=o;c[J+4>>2]=m;c[J+8>>2]=p;p=f+388|0;m=N;o=qh(K,36688,J)|0}else{p=f+388|0;sh(B,55,1,c[p>>2]|0,q)|0;o=c[B+4>>2]|0;if(o)a[o+(((c[B+32>>2]|0)+-1|0)*20|0)+3>>0]=4;c[f+68>>2]=2;a[F>>0]=14;c[F+4>>2]=1;a[F+1>>0]=0;c[F+8>>2]=0;c[F+12>>2]=0;er(f,l,F)|0;sh(B,61,1,0,0)|0;if(!(c[f+64>>2]|0)){m=js(f,l)|0;if(!m)break a;F=m+38|0;b[A>>1]=b[F>>1]|0;l=m+4|0;c[N+4>>2]=c[l>>2];b[F>>1]=0;c[l>>2]=0;gg(K,m)}z=N+4|0;w=b[A>>1]|0;if(w<<16>>16>0){s=w<<16>>16;t=0;o=0;u=c[z>>2]|0;while(1){m=c[u>>2]|0;n=0;while(1){r=a[m>>0]|0;if(!(r<<24>>24))break;else if(r<<24>>24==34)n=n+1|0;m=m+1|0;n=n+1|0}o=o+7+n|0;t=t+1|0;if((t|0)==(s|0))break;else u=u+24|0}r=o+2|0}else r=2;m=c[N>>2]|0;o=0;while(1){n=a[m>>0]|0;if(n<<24>>24==34)o=o+1|0;else if(!(n<<24>>24))break;m=m+1|0;o=o+1|0}u=o+r|0;x=(u|0)<50;r=x?10360:36880;v=x?20240:36888;x=x?33952:36896;u=((w<<16>>16)*6|0)+35+u|0;o=mg(u,((u|0)<0)<<31>>31)|0;if(!o){a[L>>0]=1;m=N;o=0;break}Yc(u,o,36904,J)|0;n=o;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;c[G>>2]=n-o&1073741823;ks(o,G,c[N>>2]|0);m=c[G>>2]|0;s=m+1|0;c[G>>2]=s;a[o+m>>0]=40;m=u-s|0;n=o+s|0;if((b[A>>1]|0)>0){w=0;t=c[z>>2]|0;while(1){Yc(m,n,r,J)|0;n=o+s|0;if(!n)n=0;else{r=n;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;n=r-n&1073741823}c[G>>2]=n+s;ks(o,G,c[t>>2]|0);n=c[36920+((a[t+21>>0]|0)+-65<<2)>>2]|0;r=n;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;s=r-n&1073741823;r=c[G>>2]|0;gw(o+r|0,n|0,s|0)|0;s=r+s|0;c[G>>2]=s;r=w+1|0;m=u-s|0;n=o+s|0;if((r|0)<(b[A>>1]|0)){w=r;t=t+24|0;r=v}else break}}c[J>>2]=x;Yc(m,n,10344,J)|0;m=N}while(0);n=K+16|0;k=c[m>>2]|0;F=c[p>>2]|0;l=c[f+384>>2]|0;c[J>>2]=c[(c[n>>2]|0)+(q<<4)>>2];c[J+4>>2]=(q|0)==1?13184:13208;c[J+8>>2]=y;c[J+12>>2]=k;c[J+16>>2]=k;c[J+20>>2]=F;c[J+24>>2]=o;c[J+28>>2]=l;xr(f,36704,J);ig(K,o);zr(f,q);if((a[N+44>>0]&8)!=0?(H=c[n>>2]|0,(c[(c[H+(q<<4)+12>>2]|0)+72>>2]|0)==0):0){c[J>>2]=c[H+(q<<4)>>2];xr(f,36792,J)}c[J>>2]=c[m>>2];Er(B,q,qh(K,36840,J)|0);if(!(a[I>>0]|0))break}else m=N;if(Ek((c[C>>2]|0)+8|0,c[m>>2]|0,N)|0){a[L>>0]=1;break}c[M>>2]=0;l=K+24|0;c[l>>2]=c[l>>2]|2;if(!(c[N+12>>2]|0)){l=c[f+496>>2]|0;c[N+48>>2]=(Jn(l,(c[((c[g>>2]|0)==0?h:g)>>2]|0)-l|0)|0)+13}}while(0);i=O;return}function Sq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[d>>2]|0;d=c[d+4>>2]|0;if((f|0)!=0?(e=fw(d|0,0,1,0)|0,e=ih(b,e,C)|0,(e|0)!=0):0){gw(e|0,f|0,d|0)|0;a[e+d>>0]=0}else e=0;ho(e)}return e|0}function Tq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;a:do if(b){g=a[b>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[9328+(k&255)>>0]|0|h<<8;b=b+1|0;if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1667785074){f=66;h=1667785074;g=b;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){o=a[b>>0]|0;k=o;f=65;h=1651273570;g=o<<24>>24==40?b:g}else l=14;else if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h&16777215|0)==6909556){f=68;break b}else l=5;if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[b>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[e>>0]=1,f<<24>>24<67):0){if(!g){a[e>>0]=5;break}b=a[g>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[g>>0]|0;if(!(b<<24>>24))break a}c[m>>2]=0;zn(g,m)|0;g=((c[m>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[m>>2]=g;a[e>>0]=g}}}else f=67;while(0);i=n;return f|0}function Uq(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;o=i;i=i+32|0;if((i|0)>=(j|0))ba();m=o;n=c[e>>2]|0;k=c[e+484>>2]|0;do if(k){h=(b[k+38>>1]|0)+-1|0;l=c[k+4>>2]|0;p=c[f>>2]|0;q=(d[n+145>>0]|0)+4|0;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;k=m+20|0;a[k>>0]=q;c[m>>2]=78;c[m+4>>2]=79;c[m+24>>2]=0;ns(m,p)|0;if(!(a[k>>0]|0)){c[m>>2]=c[l+(h*24|0)>>2];ph(e,36480,m);break}k=l+(h*24|0)+4|0;Ck(n,c[k>>2]|0);c[k>>2]=Ir(n,c[f>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;ig(n,c[l>>2]|0);h=c[f+4>>2]|0;k=(c[f+8>>2]|0)-h|0;if((h|0)!=0?(g=fw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=ih(n,g,C)|0,(g|0)!=0):0){gw(g|0,h|0,k|0)|0;a[g+k>>0]=0}else g=0;c[l>>2]=g}while(0);Ck(n,c[f>>2]|0);i=o;return}function Vq(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[a+64>>2]|0)==0:0)b=os(c[a>>2]|0,d,e)|0;else{b=jr(c[a>>2]|0,b,f,1)|0;ps(c[a>>2]|0,b,d,e)}if((b|0)!=0?(g=c[(c[a>>2]|0)+100>>2]|0,(g|0)<(c[b+24>>2]|0)):0){c[h>>2]=g;ph(a,27152,h)}i=k;return b|0}function Wq(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,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+16|0;if((i|0)>=(j|0))ba();z=A;x=c[e+484>>2]|0;do if((x|0)!=0?(a[e+451>>0]|0)==0:0){y=x+44|0;m=d[y>>0]|0;if(m&4){c[z>>2]=c[x>>2];ph(e,36376,z);break}v=m|4;a[y>>0]=v;w=(f|0)==0;if(w){m=(b[x+38>>1]|0)+-1|0;t=c[x+4>>2]|0;l=t+(m*24|0)+23|0;a[l>>0]=d[l>>0]|1;l=m;n=1;m=c[t+(m*24|0)+12>>2]|0}else{u=c[f>>2]|0;if((u|0)>0){r=f+4|0;s=x+4|0;q=b[x+38>>1]|0;t=0;m=0;do{a:do if(q<<16>>16>0){o=c[(c[r>>2]|0)+(t*20|0)+4>>2]|0;p=c[s>>2]|0;n=0;while(1){l=n+1|0;if(!($c(o,c[p+(n*24|0)>>2]|0)|0))break;if((l|0)<(q<<16>>16|0))n=l;else break a}l=p+(n*24|0)+23|0;a[l>>0]=d[l>>0]|1;l=n;m=c[p+(n*24|0)+12>>2]|0}else l=0;while(0);t=t+1|0}while((t|0)!=(u|0))}else{l=-1;m=0}n=(u|0)==1}if(n&(m|0)!=0?($c(m,11144)|0|k|0)==0:0){b[x+36>>1]=l;a[x+45>>0]=g;a[y>>0]=v|h<<3;if(w){f=0;break}a[e+448>>0]=a[(c[f+4>>2]|0)+12>>0]|0;break}if(h){ph(e,36424,z);break}m=c[e+8>>2]|0;l=(m|0)!=0;if(l)c[e+420>>2]=sh(m,156,0,0,0)|0;f=Xq(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(t=f+51|0,a[t>>0]=a[t>>0]&-4|2,l):0){f=c[e+420>>2]|0;l=c[m+32>>2]|0;if(l>>>0>f>>>0)c[(c[m+4>>2]|0)+(f*20|0)+8>>2]=l;c[(c[m+24>>2]|0)+88>>2]=l+-1;f=0}else f=0}while(0);Jk(c[e>>2]|0,f);i=A;return}function Xq(f,g,h,k,l,m,n,o,p,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var 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;V=i;i=i+144|0;if((i|0)>=(j|0))ba();S=V;B=V+112|0;u=V+88|0;Q=V+84|0;K=V+80|0;U=c[f>>2]|0;c[Q>>2]=0;c[K>>2]=0;P=U+65|0;a:do if(((a[P>>0]|0)==0?(a[f+451>>0]|0)==0:0)?(Cn(f)|0)==0:0){R=(k|0)!=0;b:do if(R){g=ar(f,g,h,Q)|0;if((g|0)<0){r=0;h=0;break a}if((a[U+145>>0]|0)==0?(r=Fr(f,k)|0,(c[h+4>>2]|0)==0&(r|0)!=0):0)g=(c[r+68>>2]|0)==(c[(c[U+16>>2]|0)+28>>2]|0)?1:g;h=c[Q>>2]|0;r=c[f>>2]|0;c[u>>2]=f;r=c[r+16>>2]|0;c[u+12>>2]=c[r+(g<<4)>>2];c[u+4>>2]=c[r+(g<<4)+12>>2];c[u+16>>2]=20632;c[u+20>>2]=h;r=(g|0)==1;c[u+8>>2]=r&1;Gr(u,k)|0;t=Qr(f,0,k+8|0)|0;if(!t){r=0;h=0;break a}if(r?(c[(c[U+16>>2]|0)+28>>2]|0)!=(c[t+68>>2]|0):0){c[S>>2]=c[t>>2];ph(f,35920,S);r=0;h=0;break a}if((a[t+44>>0]&32)!=0?(s=c[t+8>>2]|0,(s|0)!=0):0){r=s;while(1){if((a[r+51>>0]&3)==2){s=g;J=r;u=t;break b}r=c[r+20>>2]|0;if(!r){s=g;J=0;u=t;break}}}else{s=g;J=0;u=t}}else{u=c[f+484>>2]|0;if(!u){r=0;h=0;break a}g=c[u+68>>2]|0;if(g){r=c[U+20>>2]|0;if((r|0)>0){h=c[U+16>>2]|0;t=0;while(1){s=t+1|0;if((c[h+(t<<4)+12>>2]|0)==(g|0)){h=0;s=t;J=0;break b}if((s|0)<(r|0))t=s;else{h=0;J=0;break}}}else{h=0;s=0;J=0}}else{h=0;s=-1e6;J=0}}while(0);O=U+16|0;C=c[O>>2]|0;g=C+(s<<4)|0;x=c[u>>2]|0;if(((Bc(x,25568,7)|0)==0?(a[U+145>>0]|0)==0:0)?(Bc(x+7|0,35976,9)|0)!=0:0){c[S>>2]=x;ph(f,35992,S);r=0;h=0;break}if(c[u+12>>2]|0){ph(f,36024,S);r=0;h=0;break}N=u+44|0;if(a[N>>0]&16){ph(f,36056,S);r=0;h=0;break}D=(h|0)==0;if(!D){h=Sq(U,h)|0;if(!h){r=0;h=0;break}if(Hr(f,h)|0){r=0;break}if((a[U+145>>0]|0)==0?(Wh(U,h,0)|0)!=0:0){c[S>>2]=h;ph(f,36096,S);r=0;break}if(Zp(U,h,c[g>>2]|0)|0)if(!q){c[S>>2]=h;ph(f,36136,S);r=0;break}else{wr(f,s);r=0;break}else t=h}else{r=c[u+8>>2]|0;if(!r)t=1;else{t=1;do{t=t+1|0;r=c[r+20>>2]|0}while((r|0)!=0)}c[S>>2]=x;c[S+4>>2]=t;t=qh(U,36160,S)|0;if(!t){r=0;h=0;break}}g=c[g>>2]|0;r=(s|0)==1;L=r?13184:13208;if((Oq(f,18,L,0,g)|0)==0?(Oq(f,r?3:1,t,c[u>>2]|0,g)|0)==0:0){if(!l){l=hr(f,0,0)|0;if(!l){l=0;r=0;h=t;break}F=gh(c[f>>2]|0,c[(c[u+4>>2]|0)+(((b[u+38>>1]|0)+-1|0)*24|0)>>2]|0)|0;G=c[l+4>>2]|0;c[G+4>>2]=F;a[G+12>>0]=p}A=c[l>>2]|0;if((A|0)>0){x=c[l+4>>2]|0;v=0;g=0;do{r=c[x+(v*20|0)>>2]|0;if(r){h=c[r+8>>2]|0;if(!h)r=1;else{r=h;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;r=(r-h&1073741823)+1|0}g=r+g|0}v=v+1|0}while((v|0)<(A|0));h=g}else h=0;if(!t)r=0;else{g=t;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;r=g-t&1073741823}F=(J|0)!=0;if(F)g=e[J+46>>1]|0;else g=1;M=qs(U,A+g&65535,h+1+r|0,K)|0;c:do if(!(a[P>>0]|0)){E=c[K>>2]|0;c[M>>2]=E;I=r+1|0;z=E+I|0;c[K>>2]=z;gw(E|0,t|0,I|0)|0;c[M+12>>2]=u;I=M+50|0;a[I>>0]=m;E=M+51|0;a[E>>0]=a[E>>0]&-12|((m|0)!=0&1)<<3&255|D&1;H=M+24|0;c[H>>2]=c[(c[O>>2]|0)+(s<<4)+12>>2];g=c[l>>2]|0;G=M+46|0;b[G>>1]=g;if(o){c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[B+12>>2]=0;c[B+16>>2]=0;c[B+20>>2]=0;c[B+24>>2]=0;c[B+28>>2]=0;x=S+0|0;h=x+80|0;do{c[x>>2]=0;x=x+4|0}while((x|0)<(h|0));c[S>>2]=1;c[S+16>>2]=c[u>>2];c[S+24>>2]=u;c[S+48>>2]=-1;c[B>>2]=f;c[B+4>>2]=S;b[B+28>>1]=16;hs(B,o)|0;c[M+36>>2]=o;g=c[l>>2]|0}w=(d[(c[C+(s<<4)+12>>2]|0)+76>>0]|0)>3;d:do if((g|0)>0){D=u+4|0;C=u+38|0;B=M+4|0;o=U+145|0;g=M+32|0;v=M+28|0;h=0;p=c[l+4>>2]|0;while(1){r=c[p+4>>2]|0;x=b[C>>1]|0;e:do if(x<<16>>16>0){A=0;y=c[D>>2]|0;while(1){if(!($c(r,c[y>>2]|0)|0)){q=A;break 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<>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<>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}
function er(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,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,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0;za=i;i=i+240|0;if((i|0)>=(j|0))ba();oa=za;pa=za+220|0;ha=za+216|0;fa=za+196|0;ga=za+176|0;ra=za+164|0;sa=za+136|0;va=za+88|0;da=za+64|0;ja=za+32|0;xa=f+464|0;ya=c[xa>>2]|0;la=f+468|0;ua=c[la>>2]|0;c[la>>2]=ua+1;c[xa>>2]=ua;ua=c[f>>2]|0;a:do if((((g|0)!=0?(ma=ua+65|0,(a[ma>>0]|0)==0):0)?(k=f+64|0,(c[k>>2]|0)==0):0)?(Oq(f,21,0,0,0)|0)==0:0){A=va+0|0;z=A+48|0;do{c[A>>2]=0;A=A+4|0}while((A|0)<(z|0));ia=g+48|0;if((d[h>>0]|0)<9){Jk(ua,c[ia>>2]|0);c[ia>>2]=0;ca=g+6|0;b[ca>>1]=e[ca>>1]&65534}zs(f,g,0);c[sa+0>>2]=0;c[sa+4>>2]=0;c[sa+8>>2]=0;c[sa+12>>2]=0;c[sa+16>>2]=0;c[sa+20>>2]=0;c[sa+24>>2]=0;c[sa>>2]=c[ia>>2];ka=g+32|0;u=c[ka>>2]|0;t=c[g>>2]|0;b:do if(((c[k>>2]|0)==0?(a[ma>>0]|0)==0:0)?(qa=g+6|0,w=(e[qa>>1]|0)>>>2&1,ta=Kq(f)|0,(ta|0)!=0):0){if((c[t>>2]|0)>1?(a[h>>0]&-2)<<24>>24==10:0){ph(f,35368,oa);wa=444;break}na=g+52|0;t=c[na>>2]|0;c:do if(!t){o=f+460|0;n=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;Q=g+64|0;R=g+4|0;S=ua+60|0;T=ta+32|0;U=f+72|0;V=da+4|0;W=da+1|0;X=da+8|0;Y=da+12|0;Z=ta+4|0;_=ta+24|0;$=f+19|0;aa=f+56|0;ca=f+80|0;P=0;v=w;while(1){if((P|0)>=(c[u>>2]|0)){E=m;N=0;w=v;R=u;break c}K=c[u+(P*72|0)+28>>2]|0;do if(!K)w=P;else{M=u+(P*72|0)+32|0;x=c[M>>2]|0;if(x){if(a[u+(P*72|0)+45>>0]&4){w=P;break}sh(ta,17,c[u+(P*72|0)+36>>2]|0,x,0)|0;w=P;break}c[oa>>2]=0;As(g,oa);c[o>>2]=(c[o>>2]|0)+(c[oa>>2]|0);s=b[K+6>>1]&4;N=c[n>>2]|0;r=c[f>>2]|0;d:do if(!(b[r+60>>1]&1)){I=c[ka>>2]|0;q=c[I+(P*72|0)+48>>2]|0;H=I+(P*72|0)+28|0;L=c[H>>2]|0;p=s<<16>>16!=0;do if(p){if(v){wa=120;break d}if((c[I>>2]|0)>1){wa=120;break d}O=c[m>>2]|0;if((O|0)!=0?(c[O+4>>2]&2097152|0)!=0:0){wa=120;break d}E=c[g>>2]|0;do if(E){B=c[E>>2]|0;if((B|0)<=0)break;F=c[E+4>>2]|0;E=0;D=0;do{D=c[(c[F+(E*20|0)>>2]|0)+4>>2]|D;E=E+1|0}while((E|0)!=(B|0));if(D&2097152){wa=120;break d}}while(0);E=c[ia>>2]|0;if(!E)break;B=c[E>>2]|0;if((B|0)<=0)break;F=c[E+4>>2]|0;E=0;D=0;do{D=c[(c[F+(E*20|0)>>2]|0)+4>>2]|D;E=E+1|0}while((E|0)!=(B|0));if(D&2097152){wa=120;break d}}while(0);F=c[L+32>>2]|0;E=(c[L+60>>2]|0)==0;if(!E?(c[k>>2]|0)!=0:0){wa=120;break}if(c[L+64>>2]|0){wa=120;break}B=b[qa>>1]|0;D=(B&64)==0;if(!(D|E)){wa=120;break}if(!(c[F>>2]|0)){wa=120;break}A=b[L+6>>1]|0;if(A&1){wa=120;break}F=E|D^1;if(!F?(c[I>>2]|0)>1|(v|0)!=0:0){wa=120;break}E=B&1;if(E<<16>>16!=0&p){wa=120;break}y=c[ia>>2]|0;z=(y|0)==0;if(!z?(c[L+48>>2]|0)!=0:0){wa=120;break}G=(v|0)!=0;if(G?(c[L+48>>2]|0)!=0:0){wa=120;break}if(F){if(A&6144){wa=120;break}}else if(!((c[m>>2]|0)==0&E<<16>>16==0&(A&6144)==0)){wa=120;break}if((B&2048)!=0?(c[L+52>>2]|0)!=0:0){wa=120;break}O=I+(P*72|0)+44|0;if(a[O>>0]&32){wa=120;break}B=L+52|0;F=c[B>>2]|0;do if(F){if(!(E<<16>>16==0&(((c[L+48>>2]|0)!=0|G)^1))){wa=120;break d}if((c[I>>2]|0)!=1){wa=120;break d}e:do if(L){if(!(A&5))D=L;else{wa=120;break d}while(1){E=(F|0)==0;if(!E?(a[D+4>>0]|0)!=116:0){wa=120;break d}if((c[c[D+32>>2]>>2]|0)<1){wa=120;break d}if((c[c[L>>2]>>2]|0)!=(c[c[D>>2]>>2]|0)){wa=120;break d}if(E)break e;if(b[F+6>>1]&5){wa=120;break d}D=F;F=c[F+52>>2]|0}}while(0);if(z)break;D=c[y>>2]|0;if((D|0)<=0)break;F=c[y+4>>2]|0;E=0;do{if(!(b[F+(E*20|0)+16>>1]|0)){wa=120;break d}E=E+1|0}while((E|0)<(D|0))}while(0);x=I+(P*72|0)+16|0;c[n>>2]=c[x>>2];Oq(f,21,0,0,0)|0;c[n>>2]=N;F=c[B>>2]|0;f:do if(!F)wa=81;else{y=r+65|0;B=c[ia>>2]|0;A=c[k>>2]|0;z=c[Q>>2]|0;D=c[na>>2]|0;while(1){c[ia>>2]=0;c[ka>>2]=0;c[na>>2]=0;c[k>>2]=0;c[Q>>2]=0;E=cr(r,g,0)|0;c[Q>>2]=z;c[k>>2]=A;c[ia>>2]=B;c[ka>>2]=I;a[R>>0]=116;if(!E)E=D;else{c[E+52>>2]=D;if(D)c[D+56>>2]=E;c[E+56>>2]=g}c[na>>2]=E;if(a[y>>0]|0)break f;F=c[F+52>>2]|0;if(!F){wa=81;break}else D=E}}while(0);if((wa|0)==81){wa=0;J=c[H>>2]|0;B=I+(P*72|0)+12|0;ig(r,c[B>>2]|0);ig(r,c[x>>2]|0);D=I+(P*72|0)+20|0;ig(r,c[D>>2]|0);c[B>>2]=0;c[x>>2]=0;c[D>>2]=0;c[H>>2]=0;D=I+(P*72|0)+24|0;B=c[D>>2]|0;if(B){A=B+40|0;z=b[A>>1]|0;if(z<<16>>16==1){N=c[l>>2]|0;N=((N|0)==0?f:N)+524|0;c[B+72>>2]=c[N>>2];c[N>>2]=B}else b[A>>1]=z+-1<<16>>16;c[D>>2]=0}N=P+1|0;M=r+65|0;L=g;K=J;while(1){y=c[K+32>>2]|0;x=c[y>>2]|0;E=L+32|0;F=c[E>>2]|0;if(!F){F=lr(r,0,0,0)|0;c[E>>2]=F;if(!F)break;else w=0}else w=a[O>>0]|0;if((x|0)>1){F=Bs(r,F,x+-1|0,N)|0;c[E>>2]=F;if(a[M>>0]|0)break}if((x|0)>0){D=0;do{A=D+P|0;Dk(r,c[F+(A*72|0)+56>>2]|0);E=y+(D*72|0)+8|0;A=F+(A*72|0)+8|0;B=E+0|0;z=A+72|0;do{c[A>>2]=c[B>>2];A=A+4|0;B=B+4|0}while((A|0)<(z|0));A=E+0|0;z=A+72|0;do{c[A>>2]=0;A=A+4|0}while((A|0)<(z|0));D=D+1|0}while((D|0)!=(x|0))}a[F+(P*72|0)+44>>0]=w;E=c[L>>2]|0;F=c[E>>2]|0;if((F|0)>0){A=E+4|0;D=c[A>>2]|0;B=0;do{if(!(c[D+(B*20|0)+4>>2]|0)){F=gh(r,c[D+(B*20|0)+8>>2]|0)|0;ho(F);D=c[A>>2]|0;c[D+(B*20|0)+4>>2]=F;F=c[E>>2]|0}B=B+1|0}while((B|0)<(F|0));E=c[L>>2]|0}Cs(r,E,q,c[K>>2]|0);if(G){Cs(r,c[L+40>>2]|0,q,c[K>>2]|0);I=L+44|0;c[I>>2]=Ds(r,c[I>>2]|0,q,c[K>>2]|0)|0}F=K+48|0;E=c[F>>2]|0;do if(!E){E=c[L+48>>2]|0;if(!E)break;Cs(r,E,q,c[K>>2]|0)}else{D=c[E>>2]|0;if((D|0)>0){B=c[E+4>>2]|0;A=0;do{b[B+(A*20|0)+16>>1]=0;A=A+1|0}while((A|0)!=(D|0))}c[L+48>>2]=E;c[F>>2]=0}while(0);E=c[K+36>>2]|0;if(!E)D=0;else D=Ir(r,E,0,0)|0;F=L+36|0;E=c[F>>2]|0;if(p){I=L+44|0;c[I>>2]=E;c[F>>2]=D;H=Ds(r,E,q,c[K>>2]|0)|0;c[I>>2]=H;c[I>>2]=os(r,H,Ir(r,c[K+44>>2]|0,0,0)|0)|0;c[L+40>>2]=Lr(r,c[K+40>>2]|0,0)|0}else{I=Ds(r,E,q,c[K>>2]|0)|0;c[F>>2]=I;c[F>>2]=os(r,I,D)|0}E=L+6|0;b[E>>1]=e[E>>1]|e[K+6>>1]&1;E=K+60|0;D=c[E>>2]|0;if(D){c[L+60>>2]=D;c[E>>2]=0}L=c[L+52>>2]|0;if(!L)break;else K=c[K+52>>2]|0}Ik(r,J,1)}if(!(s<<16>>16)){w=-1;break}b[qa>>1]=e[qa>>1]|4;w=-1;v=1}else wa=120;while(0);g:do if((wa|0)==120){wa=0;do if((c[u>>2]|0)==1){if(b[S>>1]&256)break;A=c[T>>2]|0;O=A+1|0;N=(c[U>>2]|0)+1|0;c[U>>2]=N;w=u+(P*72|0)+36|0;c[w>>2]=N;sh(ta,20,N,0,O)|0;c[M>>2]=O;O=c[w>>2]|0;a[da>>0]=13;c[V>>2]=O;a[W>>0]=0;c[X>>2]=0;c[Y>>2]=0;a[u+(P*72|0)+46>>0]=c[la>>2];er(f,K,da)|0;O=K+24|0;O=bs(c[O>>2]|0,c[O+4>>2]|0)|0;b[(c[u+(P*72|0)+24>>2]|0)+28>>1]=O;O=u+(P*72|0)+45|0;a[O>>0]=a[O>>0]|4;c[u+(P*72|0)+40>>2]=c[X>>2];sh(ta,21,c[w>>2]|0,0,0)|0;w=c[T>>2]|0;if(w>>>0>A>>>0)c[(c[Z>>2]|0)+(A*20|0)+8>>2]=w;c[(c[_>>2]|0)+88>>2]=w+-1;a[$>>0]=0;c[aa>>2]=0;w=P;break g}while(0);z=(c[U>>2]|0)+1|0;c[U>>2]=z;B=u+(P*72|0)+36|0;c[B>>2]=z;z=sh(ta,25,0,z,0)|0;c[M>>2]=z+1;if(!(a[u+(P*72|0)+45>>0]&2)){O=Kq(f)|0;A=c[ca>>2]|0;c[ca>>2]=A+1;A=sh(O,44,A,0,0)|0}else A=0;O=c[u+(P*72|0)+48>>2]|0;a[da>>0]=12;c[V>>2]=O;a[W>>0]=0;c[X>>2]=0;c[Y>>2]=0;a[u+(P*72|0)+46>>0]=c[la>>2];er(f,K,da)|0;O=K+24|0;O=bs(c[O>>2]|0,c[O+4>>2]|0)|0;b[(c[u+(P*72|0)+24>>2]|0)+28>>1]=O;if(A){x=c[T>>2]|0;if(x>>>0>A>>>0)c[(c[Z>>2]|0)+(A*20|0)+8>>2]=x;c[(c[_>>2]|0)+88>>2]=x+-1}w=sh(ta,18,c[B>>2]|0,0,0)|0;if((c[T>>2]|0)>>>0>z>>>0)c[(c[Z>>2]|0)+(z*20|0)+4>>2]=w;a[$>>0]=0;c[aa>>2]=0;w=P}while(0);if(a[ma>>0]|0){wa=444;break b}c[oa>>2]=0;As(g,oa);c[o>>2]=(c[o>>2]|0)-(c[oa>>2]|0);u=c[ka>>2]|0;if((d[h>>0]|0)<9)break;c[sa>>2]=c[ia>>2]}while(0);t=c[na>>2]|0;if(!t)P=w+1|0;else{E=m;N=t;w=v;R=u;break}}}else{E=g+36|0;N=t;R=u}while(0);Q=c[g>>2]|0;y=c[E>>2]|0;l=g+40|0;t=c[l>>2]|0;F=g+44|0;da=c[F>>2]|0;m=b[qa>>1]|0;a[ra>>0]=m&1;if(N){L=c[f>>2]|0;c[pa+0>>2]=c[h+0>>2];c[pa+4>>2]=c[h+4>>2];c[pa+8>>2]=c[h+8>>2];c[pa+12>>2]=c[h+12>>2];c[pa+16>>2]=c[h+16>>2];h:do if(!(c[N+48>>2]|0)){u=N+60|0;if(c[u>>2]|0){k=d[g+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[oa>>2]=k;ph(f,35072,oa);m=0;k=1;wa=227;break}O=Kq(f)|0;q=a[pa>>0]|0;if(q<<24>>24==12){sh(O,57,c[pa+4>>2]|0,c[c[g>>2]>>2]|0,0)|0;q=c[O+4>>2]|0;if(q)a[q+(((c[O+32>>2]|0)+-1|0)*20|0)+3>>0]=8;a[pa>>0]=14;q=14}p=e[qa>>1]|0;if(p&256){m=0;k=Es(f,g,pa)|0;wa=227;break}if((c[c[g>>2]>>2]|0)!=(c[c[N>>2]>>2]|0)){Fs(f,g);m=0;k=1;wa=227;break}do if(!(p&2048)){if(c[ia>>2]|0){k=Hs(f,g,h)|0;break h}M=g+4|0;p=d[M>>0]|0;if((p|0)==116){s=g+8|0;q=N+8|0;c[q>>2]=c[s>>2];r=g+12|0;p=N+12|0;c[p>>2]=c[r>>2];aa=g+60|0;c[u>>2]=c[aa>>2];ca=g+64|0;c[N+64>>2]=c[ca>>2];n=c[la>>2]|0;k=er(f,N,pa)|0;c[aa>>2]=0;c[ca>>2]=0;if(k){m=0;wa=227;break h}c[na>>2]=0;q=c[q>>2]|0;c[s>>2]=q;c[r>>2]=c[p>>2];if(!q)t=0;else t=sh(O,46,q,0,0)|0;l=c[la>>2]|0;k=er(f,g,pa)|0;m=c[na>>2]|0;c[na>>2]=N;ca=N+24|0;o=g+24|0;q=o;ca=fw(c[q>>2]|0,c[q+4>>2]|0,c[ca>>2]|0,c[ca+4>>2]|0)|0;q=o;c[q>>2]=ca;c[q+4>>2]=C;q=c[u>>2]|0;do if(q){ca=(Is(q,ha)|0)!=0;q=c[ha>>2]|0;if(!(ca&(q|0)>0))break;ca=o;aa=c[ca+4>>2]|0;p=((q|0)<0)<<31>>31;if(!(aa>>>0>p>>>0|((aa|0)==(p|0)?(c[ca>>2]|0)>>>0>q>>>0:0)))break;ca=o;c[ca>>2]=q;c[ca+4>>2]=p}while(0);if(!t){t=M;s=n;q=l;break}o=c[O+32>>2]|0;if(o>>>0>t>>>0)c[(c[O+4>>2]|0)+(t*20|0)+8>>2]=o;c[(c[O+24>>2]|0)+88>>2]=o+-1;t=M;s=n;q=l;break}else if((p|0)==115|(p|0)==117){if(q<<24>>24==1)p=c[pa+4>>2]|0;else{o=f+68|0;p=c[o>>2]|0;c[o>>2]=p+1;c[g+16>>2]=sh(O,57,p,0,0)|0;o=g;while(1){q=c[o+56>>2]|0;if(!q)break;else o=q}ca=o+6|0;b[ca>>1]=e[ca>>1]|8}a[fa>>0]=1;c[fa+4>>2]=p;a[fa+1>>0]=0;c[fa+8>>2]=0;c[fa+12>>2]=0;v=c[la>>2]|0;k=er(f,N,fa)|0;if(k){m=0;wa=227;break h}u=(a[M>>0]|0)==117?2:1;c[na>>2]=0;s=g+60|0;r=c[s>>2]|0;c[s>>2]=0;q=g+64|0;o=c[q>>2]|0;c[q>>2]=0;a[fa>>0]=u;u=c[la>>2]|0;k=er(f,g,fa)|0;Jk(L,c[ia>>2]|0);m=c[na>>2]|0;c[na>>2]=N;c[ia>>2]=0;if((a[M>>0]|0)==115){aa=N+24|0;ca=g+24|0;$=ca;aa=fw(c[$>>2]|0,c[$+4>>2]|0,c[aa>>2]|0,c[aa+4>>2]|0)|0;c[ca>>2]=aa;c[ca+4>>2]=C}Ck(L,c[s>>2]|0);c[s>>2]=r;c[q>>2]=o;c[g+8>>2]=0;c[g+12>>2]=0;o=a[pa>>0]|0;if(o<<24>>24==9){o=g;while(1){n=c[o+52>>2]|0;if(!n)break;else o=n}Js(f,0,c[o>>2]|0)}else if(o<<24>>24==1){t=M;s=v;q=u;break}l=ts(O)|0;ca=ts(O)|0;Ks(f,g,l);sh(O,108,p,l,0)|0;t=O+32|0;s=c[t>>2]|0;Ls(f,g,c[g>>2]|0,p,0,0,pa,ca,l);r=O+24|0;q=c[r>>2]|0;o=~ca;do if((ca|0)<0){n=c[q+112>>2]|0;if(!n)break;c[n+(o<<2)>>2]=c[t>>2]}while(0);c[q+88>>2]=(c[t>>2]|0)+-1;sh(O,9,p,s,0)|0;o=c[r>>2]|0;n=~l;do if((l|0)<0){q=c[o+112>>2]|0;if(!q)break;c[q+(n<<2)>>2]=c[t>>2]}while(0);c[o+88>>2]=(c[t>>2]|0)+-1;sh(O,61,p,0,0)|0;t=M;s=v;q=u;break}else{o=f+68|0;x=c[o>>2]|0;c[o>>2]=x+2;c[g+16>>2]=sh(O,57,x,0,0)|0;o=g;while(1){n=c[o+56>>2]|0;if(!n)break;else o=n}v=x+1|0;s=o+6|0;b[s>>1]=e[s>>1]|8;a[ga>>0]=1;s=ga+4|0;c[s>>2]=x;a[ga+1>>0]=0;c[ga+8>>2]=0;c[ga+12>>2]=0;u=c[la>>2]|0;k=er(f,N,ga)|0;if(k){m=0;wa=227;break h}c[g+20>>2]=sh(O,57,v,0,0)|0;c[na>>2]=0;t=g+60|0;l=c[t>>2]|0;c[t>>2]=0;n=g+64|0;o=c[n>>2]|0;c[n>>2]=0;c[s>>2]=v;w=c[la>>2]|0;k=er(f,g,ga)|0;m=c[na>>2]|0;c[na>>2]=N;q=g+24|0;ca=q;aa=c[ca+4>>2]|0;r=N+24|0;s=c[r>>2]|0;r=c[r+4>>2]|0;if(aa>>>0>r>>>0|((aa|0)==(r|0)?(c[ca>>2]|0)>>>0>s>>>0:0)){ca=q;c[ca>>2]=s;c[ca+4>>2]=r}Ck(L,c[t>>2]|0);c[t>>2]=l;c[n>>2]=o;if((a[pa>>0]|0)==9){q=g;while(1){p=c[q+52>>2]|0;if(!p)break;else q=p}Js(f,0,c[q>>2]|0)}n=ts(O)|0;t=ts(O)|0;Ks(f,g,n);sh(O,108,x,n,0)|0;q=f+19|0;p=a[q>>0]|0;if(!(p<<24>>24)){ca=f+72|0;q=(c[ca>>2]|0)+1|0;c[ca>>2]=q}else{ca=p+-1<<24>>24;a[q>>0]=ca;q=c[f+((ca&255)<<2)+24>>2]|0}l=sh(O,101,x,q,0)|0;th(O,sh(O,68,v,t,q)|0,0,-14);Wr(f,q);Ls(f,g,c[g>>2]|0,x,0,0,pa,t,n);q=O+24|0;p=c[q>>2]|0;r=~t;do if((t|0)<0){s=c[p+112>>2]|0;if(!s)break;c[s+(r<<2)>>2]=c[O+32>>2]}while(0);s=O+32|0;c[p+88>>2]=(c[s>>2]|0)+-1;sh(O,9,x,l,0)|0;p=c[q>>2]|0;o=~n;do if((n|0)<0){q=c[p+112>>2]|0;if(!q)break;c[q+(o<<2)>>2]=c[s>>2]}while(0);c[p+88>>2]=(c[s>>2]|0)+-1;sh(O,61,v,0,0)|0;sh(O,61,x,0,0)|0;t=M;s=u;q=w;break}}else{Gs(f,g,pa);t=g+4|0;s=0;q=0;m=0;k=0}while(0);ca=a[t>>0]|0;Ms(f,ca&255,s,q,ca<<24>>24!=116&1);if(!(b[qa>>1]&8)){wa=227;break}r=c[c[g>>2]>>2]|0;s=Ns(L,r,1)|0;if(!s){k=7;wa=227;break}if((r|0)>0){l=L+8|0;n=s+20|0;o=0;while(1){ca=Os(f,g,o)|0;c[n>>2]=ca;if(!ca)c[n>>2]=c[l>>2];o=o+1|0;if((o|0)==(r|0))break;else n=n+4|0}}p=O+32|0;q=O+4|0;do{l=0;do{o=g+(l<<2)+16|0;n=c[o>>2]|0;if((n|0)<0)break;if((c[p>>2]|0)>>>0>n>>>0)c[(c[q>>2]|0)+(n*20|0)+8>>2]=r;c[s>>2]=(c[s>>2]|0)+1;th(O,n,s,-6);c[o>>2]=-1;l=l+1|0}while((l|0)<2);g=c[g+52>>2]|0}while((g|0)!=0);ca=(c[s>>2]|0)+-1|0;c[s>>2]=ca;if(ca){wa=227;break}Sc(s);wa=227}else{k=d[g+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[oa>>2]=k;ph(f,35024,oa);m=0;k=1;wa=227}while(0);if((wa|0)==227){c[h+8>>2]=c[pa+8>>2];c[h+12>>2]=c[pa+12>>2];Ik(L,m,1)}c[xa>>2]=ya;break a}if((m&5)==1){k=c[sa>>2]|0;if(!(Ps(k,Q,-1)|0)){b[qa>>1]=m&65534;t=Lr(ua,Q,0)|0;c[l>>2]=t;wa=232}}else wa=232;if((wa|0)==232)k=c[sa>>2]|0;if(!k)k=-1;else{ca=Qs(f,k,0,c[Q>>2]|0)|0;aa=f+68|0;k=c[aa>>2]|0;c[aa>>2]=k+1;c[sa+8>>2]=k;k=sh(ta,57,k,(c[c[sa>>2]>>2]|0)+1+(c[Q>>2]|0)|0,0)|0;th(ta,k,ca,-6)}O=sa+20|0;c[O>>2]=k;if((a[h>>0]|0)==12)sh(ta,57,c[h+4>>2]|0,c[Q>>2]|0,0)|0;na=ts(ta)|0;v=g+24|0;ca=v;c[ca>>2]=-1;c[ca+4>>2]=2147483647;Ks(f,g,na);if((c[g+8>>2]|0)==0?(ea=c[O>>2]|0,(ea|0)>-1):0){if(!(a[(c[ta>>2]|0)+65>>0]|0))k=(c[ta+4>>2]|0)+(ea*20|0)|0;else k=29120;a[k>>0]=58;ca=sa+24|0;a[ca>>0]=d[ca>>0]|1}if(!(b[qa>>1]&1))a[ra+1>>0]=0;else{ca=f+68|0;k=c[ca>>2]|0;c[ca>>2]=k+1;c[ra+4>>2]=k;ca=Qs(f,c[g>>2]|0,0,0)|0;k=sh(ta,57,k,0,0)|0;th(ta,k,ca,-6);c[ra+8>>2]=k;k=c[ta+4>>2]|0;if(k)a[k+(((c[ta+32>>2]|0)+-1|0)*20|0)+3>>0]=8;a[ra+1>>0]=3}if((w|0)==0&(t|0)==0){s=Rs(f,R,y,c[sa>>2]|0,c[g>>2]|0,(a[ra>>0]|0)!=0?1024:0,0)|0;if(!s){wa=444;break}q=Ss(b[s+32>>1]|0)|0;p=C;ca=v;aa=c[ca+4>>2]|0;if(p>>>0>>0|((p|0)==(aa|0)?q>>>0<(c[ca>>2]|0)>>>0:0)){ca=v;c[ca>>2]=q;c[ca+4>>2]=p}do if(a[ra>>0]|0){q=a[s+40>>0]|0;if(!(q<<24>>24))break;a[ra+1>>0]=q}while(0);q=c[sa>>2]|0;do if(!q)wa=257;else{ca=a[s+36>>0]|0;c[sa+4>>2]=ca;if((ca|0)!=(c[q>>2]|0))break;c[sa>>2]=0;wa=257}while(0);do if((wa|0)==257){o=c[O>>2]|0;if((o|0)<=-1)break;vh(ta,o)}while(0);Ls(f,g,Q,-1,sa,ra,h,c[s+48>>2]|0,c[s+52>>2]|0);Ts(s)}else{w=(t|0)!=0;do if(w){l=c[g>>2]|0;k=c[l>>2]|0;if((k|0)>0){l=c[l+4>>2]|0;while(1){b[l+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[t>>2]|0;if((k|0)>0){l=c[t+4>>2]|0;while(1){b[l+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ca=v;aa=c[ca+4>>2]|0;if(!(aa>>>0>0|(aa|0)==0&(c[ca>>2]|0)>>>0>100))break;ca=v;c[ca>>2]=100;c[ca+4>>2]=0}else{ca=v;c[ca>>2]=1;c[ca+4>>2]=0}while(0);M=(Ps(t,c[sa>>2]|0,-1)|0)==0;P=ts(ta)|0;c[ja+0>>2]=0;c[ja+4>>2]=0;c[ja+8>>2]=0;c[ja+12>>2]=0;c[ja+16>>2]=0;c[ja+20>>2]=0;c[ja+24>>2]=0;c[ja+28>>2]=0;c[ja>>2]=f;c[ja+4>>2]=R;c[ja+12>>2]=va;H=f+72|0;c[va+16>>2]=(c[H>>2]|0)+1;if(w)k=c[t>>2]|0;else k=0;v=va+12|0;c[v>>2]=k;c[va+24>>2]=t;Us(ja,Q);Us(ja,c[sa>>2]|0);if(da){c[oa+0>>2]=0;c[oa+4>>2]=0;c[oa+8>>2]=0;c[oa+12>>2]=0;c[oa+16>>2]=0;c[oa+20>>2]=0;c[oa>>2]=80;c[oa+4>>2]=81;c[oa+24>>2]=ja;ns(oa,da)|0}x=va+32|0;c[va+36>>2]=c[x>>2];o=va+44|0;k=c[o>>2]|0;if((k|0)>0){u=ja+28|0;l=va+40|0;m=b[u>>1]|0;n=0;do{b[u>>1]=m&65535|8;Us(ja,c[(c[(c[l>>2]|0)+(n<<4)>>2]|0)+20>>2]|0);m=e[u>>1]&65527;b[u>>1]=m;n=n+1|0;k=c[o>>2]|0}while((n|0)<(k|0))}c[va+20>>2]=c[H>>2];if(a[ma>>0]|0){wa=444;break}if(w){F=f+68|0;E=c[F>>2]|0;c[F>>2]=E+1;s=va+4|0;c[s>>2]=E;E=Qs(f,t,0,c[x>>2]|0)|0;r=sh(ta,58,c[s>>2]|0,c[v>>2]|0,0)|0;th(ta,r,E,-6);K=c[H>>2]|0;J=K+1|0;G=K+2|0;K=K+3|0;c[H>>2]=K;I=ts(ta)|0;N=(c[H>>2]|0)+1|0;c[H>>2]=N;L=ts(ta)|0;q=c[H>>2]|0;o=q+1|0;ca=c[t>>2]|0;aa=ca+q|0;p=aa+1|0;c[H>>2]=aa+ca;sh(ta,25,0,G,0)|0;sh(ta,25,0,J,0)|0;sh(ta,28,0,o,(c[t>>2]|0)+q|0)|0;sh(ta,17,N,L,0)|0;q=Rs(f,R,y,t,0,M?2304:256,0)|0;if(!q){wa=444;break}if((a[q+36>>0]|0)==(c[t>>2]|0)){u=0;k=0;v=0}else{if(!(a[ra>>0]|0))k=34824;else k=(b[qa>>1]&1)==0?34808:34824;Xs(f,k);A=c[t>>2]|0;k=c[x>>2]|0;if((k|0)>0){l=c[va+28>>2]|0;m=0;v=A;u=A;do{if((c[l+(m*24|0)+12>>2]|0)>=(v|0)){v=v+1|0;u=u+1|0}m=m+1|0}while((m|0)<(k|0));D=u}else D=A;B=f+60|0;u=c[B>>2]|0;y=f+56|0;k=c[y>>2]|0;if((k|0)<(D|0)){z=c[H>>2]|0;c[H>>2]=z+D;z=z+1|0}else{c[B>>2]=u+D;c[y>>2]=k-D;z=u}Ys(f);Zs(f,t,z,0);v=c[x>>2]|0;if((v|0)>0){m=va+28|0;w=0;u=A;do{k=c[m>>2]|0;if((c[k+(w*24|0)+12>>2]|0)>=(u|0)){l=u+z|0;v=_s(f,c[k+(w*24|0)>>2]|0,c[k+(w*24|0)+8>>2]|0,c[k+(w*24|0)+4>>2]|0,l,0)|0;if((l|0)!=(v|0))sh(ta,34,v,l,0)|0;v=c[x>>2]|0;u=u+1|0}w=w+1|0}while((w|0)<(v|0))}v=f+19|0;u=a[v>>0]|0;if(!(u<<24>>24)){u=(c[H>>2]|0)+1|0;c[H>>2]=u}else{u=u+-1<<24>>24;a[v>>0]=u;u=c[f+((u&255)<<2)+24>>2]|0}sh(ta,49,z,D,u)|0;sh(ta,109,c[s>>2]|0,u,0)|0;Wr(f,u);$s(f,z,D);if((c[y>>2]|0)<(D|0)){c[y>>2]=D;c[B>>2]=z}Ts(q);l=c[F>>2]|0;c[F>>2]=l+1;c[va+8>>2]=l;k=a[v>>0]|0;if(!(k<<24>>24)){k=(c[H>>2]|0)+1|0;c[H>>2]=k}else{k=k+-1<<24>>24;a[v>>0]=k;k=c[f+((k&255)<<2)+24>>2]|0}sh(ta,60,l,k,D)|0;sh(ta,106,c[s>>2]|0,P,0)|0;a[va+1>>0]=1;Ys(f);u=1;v=l}do if(M){if(b[ua+60>>1]&4)break;if((u|0)==0?(a[q+37>>0]|0)==0:0)break;c[sa>>2]=0;vh(ta,c[O>>2]|0)}while(0);x=ta+32|0;n=c[x>>2]|0;Ys(f);u=(u|0)!=0;if(u)sh(ta,100,c[s>>2]|0,k,v)|0;k=c[t>>2]|0;if((k|0)>0){l=t+4|0;m=0;do{if(u)sh(ta,47,v,m,m+p|0)|0;else{a[va>>0]=1;Nq(f,c[(c[l>>2]|0)+(m*20|0)>>2]|0,m+p|0)}m=m+1|0;k=c[t>>2]|0}while((m|0)<(k|0))}if(E)c[E>>2]=(c[E>>2]|0)+1;th(ta,sh(ta,42,o,p,k)|0,E,-6);k=c[x>>2]|0;ca=k+1|0;sh(ta,43,ca,0,ca)|0;t=c[t>>2]|0;sh(c[f+8>>2]|0,32,p,o,t)|0;$s(f,p,t);sh(ta,17,K,I,0)|0;sh(ta,137,G,P,0)|0;sh(ta,17,N,L,0)|0;t=c[x>>2]|0;if(t>>>0>k>>>0)c[(c[ta+4>>2]|0)+(k*20|0)+8>>2]=t;o=ta+24|0;c[(c[o>>2]|0)+88>>2]=t+-1;at(f,va);sh(ta,25,1,J,0)|0;if(u)sh(ta,5,c[s>>2]|0,n,0)|0;else{Ts(q);vh(ta,r)}sh(ta,17,K,I,0)|0;sh(ta,16,0,P,0)|0;m=c[x>>2]|0;sh(ta,25,1,G,0)|0;sh(ta,18,K,0,0)|0;k=c[o>>2]|0;l=~I;do if((I|0)<0){t=c[k+112>>2]|0;if(!t)break;c[t+(l<<2)>>2]=c[x>>2]}while(0);s=c[x>>2]|0;c[k+88>>2]=s+-1;sh(ta,137,J,s+2|0,0)|0;sh(ta,18,K,0,0)|0;bt(f,va);s=s+1|0;ct(f,da,s,16);Ls(f,g,c[g>>2]|0,-1,sa,ra,h,s,m);sh(ta,18,K,0,0)|0;s=c[o>>2]|0;r=~L;do if((L|0)<0){q=c[s+112>>2]|0;if(!q)break;c[q+(r<<2)>>2]=c[x>>2]}while(0);c[s+88>>2]=(c[x>>2]|0)+-1;dt(f,va);sh(ta,18,N,0,0)|0}else{do if(!(c[E>>2]|0)){r=c[g>>2]|0;if((c[r>>2]|0)!=1){wa=372;break}s=c[ka>>2]|0;if((c[s>>2]|0)!=1){wa=372;break}if(c[s+28>>2]|0){wa=372;break}x=c[s+24>>2]|0;s=c[c[r+4>>2]>>2]|0;w=x+44|0;if(a[w>>0]&16){wa=372;break}if((a[s>>0]|0)!=-101|(k|0)==0){wa=372;break}v=va+40|0;if(!(b[(c[(c[v>>2]|0)+4>>2]|0)+2>>1]&256)){wa=372;break}if((x|0)==0?1:(c[s+4>>2]&16|0)!=0){wa=372;break}s=c[f>>2]|0;k=c[x+68>>2]|0;i:do if(!k)r=-1e6;else{l=c[s+20>>2]|0;if((l|0)<=0){r=0;break}s=c[s+16>>2]|0;t=0;while(1){r=t+1|0;if((c[s+(t<<4)+12>>2]|0)==(k|0)){r=t;break i}if((r|0)<(l|0))t=r;else break}}while(0);t=f+68|0;n=c[t>>2]|0;c[t>>2]=n+1;t=x+32|0;k=c[t>>2]|0;wr(f,r);cs(f,r,c[t>>2]|0,0,c[x>>2]|0);t=c[x+8>>2]|0;j:do if(!(a[w>>0]&32)){s=0;wa=351}else{if(!t){l=1;m=0;t=0;break}else s=t;while(1){if((a[s+51>>0]&3)==2){wa=351;break j}s=c[s+20>>2]|0;if(!s){s=0;wa=351;break}}}while(0);do if((wa|0)==351){if(t){m=x+42|0;l=t;do{do if(!(a[l+51>>0]&4)){t=b[l+44>>1]|0;if(t<<16>>16>=(b[m>>1]|0))break;if(c[l+36>>2]|0)break;if((s|0)!=0?t<<16>>16>=(b[s+44>>1]|0):0)break;s=l}while(0);l=c[l+20>>2]|0}while((l|0)!=0)}if(!s){l=1;m=0;t=0;break}k=c[s+40>>2]|0;l=0;m=s;t=ds(f,s)|0}while(0);th(ta,sh(ta,54,n,k,r)|0,1,-14);if(t)th(ta,-1,t,-6);sh(ta,50,n,c[(c[v>>2]|0)+8>>2]|0,0)|0;sh(ta,61,n,0,0)|0;if((a[f+450>>0]|0)!=2){q=0;break}do if(l){s=c[x>>2]|0;r=10360;p=10360;q=c[f>>2]|0}else{if(a[w>>0]&32){ca=(a[m+51>>0]&3)!=2;q=c[f>>2]|0;s=c[x>>2]|0;r=ca?34920:10360;if(!ca){p=10360;break}}else{r=34920;s=c[x>>2]|0;q=c[f>>2]|0}p=c[m>>2]|0}while(0);c[oa>>2]=s;c[oa+4>>2]=r;c[oa+8>>2]=p;q=qh(q,34896,oa)|0;ca=c[f+8>>2]|0;th(ca,sh(ca,157,c[xa>>2]|0,0,0)|0,q,-1);q=0}else wa=372;while(0);if((wa|0)==372){do if((c[F>>2]|0)==0&(k|0)==1){q=c[c[va+40>>2]>>2]|0;s=c[q+20>>2]|0;if(!s){q=0;p=0;break}if((c[s>>2]|0)!=1){q=0;p=0;break}if((a[c[c[s+4>>2]>>2]>>0]|0)!=-100){q=0;p=0;break}q=c[q+8>>2]|0;if($c(q,18760)|0)if(!($c(q,18768)|0))p=2;else{q=0;p=0;break}else p=1;q=Lr(ua,s,0)|0;if(!q){q=0;break}if(a[ma>>0]|0)break;ca=c[q+4>>2]|0;a[ca+12>>0]=p<<24>>24!=1&1;a[c[ca>>2]>>0]=-102}else{q=0;p=0}while(0);dt(f,va);p=Rs(f,R,y,q,0,p&255,0)|0;if(!p){Jk(ua,q);wa=444;break}at(f,va);if((a[p+36>>0]|0)>0)sh(ta,16,0,c[p+52>>2]|0,0)|0;Ts(p);bt(f,va)}c[sa>>2]=0;ct(f,da,P,16);Ls(f,g,c[g>>2]|0,-1,0,0,h,P,P);Jk(ua,q);o=ta+24|0}q=c[o>>2]|0;p=~P;do if((P|0)<0){o=c[q+112>>2]|0;if(!o)break;c[o+(p<<2)>>2]=c[ta+32>>2]}while(0);c[q+88>>2]=(c[ta+32>>2]|0)+-1}if((a[ra+1>>0]|0)==3)Xs(f,34808);if(c[sa>>2]|0){u=sa+4|0;Xs(f,(c[u>>2]|0)>0?34840:34864);x=c[Q>>2]|0;s=f+8|0;E=c[s>>2]|0;F=ts(E)|0;D=ts(E)|0;n=c[sa>>2]|0;m=a[h>>0]|0;y=m&255;z=h+4|0;A=c[z>>2]|0;v=sa+16|0;t=c[v>>2]|0;if(t){sh(E,17,c[sa+12>>2]|0,t,0)|0;sh(E,16,0,F,0)|0;ca=c[v>>2]|0;t=c[E+24>>2]|0;k=~ca;do if((ca|0)<0){l=c[t+112>>2]|0;if(!l)break;c[l+(k<<2)>>2]=c[E+32>>2]}while(0);c[t+88>>2]=(c[E+32>>2]|0)+-1}B=c[sa+8>>2]|0;q=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){p=x;r=c[h+8>>2]|0;k=0}else{t=f+19|0;k=a[t>>0]|0;do if(k<<24>>24){ca=k+-1<<24>>24;a[t>>0]=ca;l=c[f+((ca&255)<<2)+24>>2]|0;if(!(ca<<24>>24)){k=l;t=c[f+72>>2]|0;break}else{r=k+-2<<24>>24;a[t>>0]=r;p=1;r=c[f+((r&255)<<2)+24>>2]|0;k=l;break k}}else{k=f+72|0;t=(c[k>>2]|0)+1|0;c[k>>2]=t;k=t}while(0);r=t+1|0;c[f+72>>2]=r;p=1}while(0);o=(c[n>>2]|0)-(c[u>>2]|0)|0;w=sa+24|0;if(!(a[w>>0]&1)){t=sh(E,107,B,F,0)|0;et(E,c[g+12>>2]|0,D);l=1;m=B}else{ca=f+72|0;m=(c[ca>>2]|0)+1|0;c[ca>>2]=m;ca=f+68|0;n=c[ca>>2]|0;c[ca>>2]=n+1;if(!(c[v>>2]|0))l=0;else{ca=Kq(f)|0;aa=f+80|0;l=c[aa>>2]|0;c[aa>>2]=l+1;l=sh(ca,44,l,0,0)|0}sh(E,60,n,m,p+1+o|0)|0;if(l){t=c[E+32>>2]|0;if(t>>>0>l>>>0)c[(c[E+4>>2]|0)+(l*20|0)+8>>2]=t;c[(c[E+24>>2]|0)+88>>2]=t+-1}t=sh(E,106,B,F,0)|0;et(E,c[g+12>>2]|0,D);sh(E,100,B,m,n)|0;l=0;m=n}u=t+1|0;if((p|0)>0){t=l+o|0;l=0;do{sh(E,47,m,t+l|0,l+r|0)|0;l=l+1|0}while((l|0)!=(p|0))}do if((y|0)==12|(y|0)==14){sh(E,74,A,k,0)|0;sh(E,75,A,r,k)|0;q=c[E+4>>2]|0;if(!q)break;a[q+(((c[E+32>>2]|0)+-1|0)*20|0)+3>>0]=8}else if((y|0)==11){th(E,sh(E,49,r,1,k)|0,h+1|0,1);$s(f,r,1);sh(E,110,A,k,0)|0}else if((y|0)!=10)if(q){ca=h+8|0;sh(E,35,c[ca>>2]|0,x,0)|0;$s(f,c[ca>>2]|0,x);break}else{sh(E,22,c[z>>2]|0,0,0)|0;break}else{sh(c[s>>2]|0,32,r,A,1)|0;$s(f,r,1)}while(0);if(k){Wr(f,r);Wr(f,k)}p=E+24|0;r=c[p>>2]|0;s=~D;do if((D|0)<0){q=c[r+112>>2]|0;if(!q)break;c[q+(s<<2)>>2]=c[E+32>>2]}while(0);s=E+32|0;c[r+88>>2]=(c[s>>2]|0)+-1;if(!(a[w>>0]&1))sh(E,9,B,u,0)|0;else sh(E,5,B,u,0)|0;o=c[sa+12>>2]|0;if(o)sh(E,18,o,0,0)|0;o=c[p>>2]|0;n=~F;do if((F|0)<0){m=c[o+112>>2]|0;if(!m)break;c[m+(n<<2)>>2]=c[s>>2]}while(0);c[o+88>>2]=(c[s>>2]|0)+-1}l=c[ta+24>>2]|0;m=~na;do if((na|0)<0){k=c[l+112>>2]|0;if(!k)break;c[k+(m<<2)>>2]=c[ta+32>>2]}while(0);c[l+88>>2]=(c[ta+32>>2]|0)+-1;c[xa>>2]=ya;if((a[h>>0]|0)!=9){k=0;break}Js(f,R,Q);k=0}else wa=444;while(0);if((wa|0)==444){c[xa>>2]=ya;k=1}ig(ua,c[va+28>>2]|0);ig(ua,c[va+40>>2]|0)}else k=1;while(0);i=za;return k|0}function fr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|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;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;o=c[a>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[m>>2]=l?34792:34800;ph(a,34752,m);p=9}else{b=lr(o,b,d,e)|0;if((b|0)!=0?(n=c[b>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[f+4>>2]|0)c[b+(l*72|0)+20>>2]=Sq(o,f)|0;c[b+(l*72|0)+28>>2]=g;c[b+(l*72|0)+52>>2]=h;c[b+(l*72|0)+56>>2]=k}else p=9}if((p|0)==9){Ck(o,h);Dk(o,k);Ik(o,g,1);b=0}i=q;return b|0}function gr(d,e,f,g,h,k,l,m,n,o){d=d|0;e=e|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+80|0;if((i|0)>=(j|0))ba();q=v+72|0;u=v;t=c[d>>2]|0;p=ih(t,72,0)|0;if(!p){r=u+0|0;s=r+72|0;do{c[r>>2]=0;r=r+4|0}while((r|0)<(s|0));p=u}else{r=p+0|0;s=r+72|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0))}if(!e){c[q>>2]=0;c[q+4>>2]=0;e=hr(d,0,jr(t,116,q,0)|0)|0}c[p>>2]=e;if(!f){f=ih(t,80,0)|0;if(f){r=f+0|0;s=r+80|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0))}}c[p+32>>2]=f;c[p+36>>2]=g;c[p+40>>2]=h;c[p+44>>2]=k;c[p+48>>2]=l;b[p+6>>1]=m;a[p+4>>0]=119;c[p+60>>2]=n;c[p+64>>2]=o;c[p+16>>2]=-1;c[p+20>>2]=-1;if(a[t+65>>0]|0){Ik(t,p,(p|0)!=(u|0)&1);p=0}i=v;return p|0}function hr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[b>>2]|0;if(!d){d=ih(g,8,0)|0;if(d){b=d;f=b;a[f>>0]=0;a[f+1>>0]=0;a[f+2>>0]=0;a[f+3>>0]=0;b=b+4|0;a[b>>0]=0;a[b+1>>0]=0;a[b+2>>0]=0;a[b+3>>0]=0;b=ih(g,20,0)|0;c[d+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[d>>2]|0;if(!(b+-1&b)){f=d+4|0;b=no(g,c[f>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[f>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[d>>2]|0;c[d>>2]=b+1;b=(c[d+4>>2]|0)+(b*20|0)|0;c[b+0>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;c[b+16>>2]=0;c[b>>2]=e}else if((f|0)==8){Ck(g,e);Jk(g,d);d=0}return d|0}function ir(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[d>>2]|0)+-1|0;g=c[d+4>>2]|0;h=c[e>>2]|0;d=c[e+4>>2]|0;if((h|0)!=0?(e=c[b>>2]|0,i=fw(d|0,0,1,0)|0,i=ih(e,i,C)|0,(i|0)!=0):0){gw(i|0,h|0,d|0)|0;a[i+d>>0]=0;c[g+(j*20|0)+4>>2]=i;if(!f)break;ho(i);break}c[g+(j*20|0)+4>>2]=0}while(0);return}function jr(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;q=i;i=i+16|0;if((i|0)>=(j|0))ba();m=q;c[m>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[f>>2]|0,(h|0)!=0):0)?(zn(h,m)|0)!=0:0){o=0;break}o=(c[f+4>>2]|0)+1|0}else o=0;while(0);l=o+48|0;n=ih(d,l,0)|0;if(n){bw(n|0,0,l|0)|0;a[n>>0]=e;b[n+34>>1]=-1;do if(k){if(!o){g=n+4|0;c[g>>2]=c[g>>2]|1024;c[n+8>>2]=c[m>>2];break}h=n+48|0;l=n+8|0;c[l>>2]=h;k=f+4|0;d=c[k>>2]|0;if(!d)h=48;else{gw(h|0,c[f>>2]|0,d|0)|0;h=(c[k>>2]|0)+48|0}a[n+h>>0]=0;if(((g|0)!=0&(o|0)>2?(g=a[c[f>>2]>>0]|0,p=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(ho(c[l>>2]|0),p):0){g=n+4|0;c[g>>2]=c[g>>2]|64}}while(0);c[n+24>>2]=1}i=q;return n|0}function kr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[d>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[e+4>>2]|0)==1?(c[e>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[f>>0]=a[f>>0]|1;break}c[d+(f*72|0)+72>>2]=Sq(c[b>>2]|0,e)|0}while(0);return}function lr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=ih(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(g|0));c[d+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Bs(b,d,1,c[d>>2]|0)|0;if(a[b+65>>0]|0){zo(b,d);d=0;break}h=(c[d>>2]|0)+-1|0;if(!f)g=0;else g=(c[f>>2]|0)==0?0:f;f=(g|0)==0;c[d+(h*72|0)+16>>2]=Sq(b,f?e:g)|0;c[d+(h*72|0)+12>>2]=Sq(b,f?0:e)|0}while(0);return d|0}function mr(a,b,e,f){a=a|0;b=b|0;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;q=i;i=i+32|0;if((i|0)>=(j|0))ba();o=q;m=q+16|0;c[m>>2]=b;c[m+4>>2]=e;c[m+8>>2]=f;l=b;n=1;g=0;a:while(1){if(!l)break;k=c[l+4>>2]|0;h=0;while(1){if((k|0)==(d[34625+(h*3|0)>>0]|0|0)?(Bc(c[l>>2]|0,34584+(d[34624+(h*3|0)>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){p=10;break a}}g=d[34626+(h*3|0)>>0]|0|g;if((h|0)>6){p=10;break}if((n|0)>=3)break;l=c[m+(n<<2)>>2]|0;n=n+1|0}if((p|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){ph(a,34696,o);g=1}}else{c[o>>2]=b;c[o+4>>2]=e;c[o+8>>2]=(f|0)==0?20377|0:20376;c[o+12>>2]=f;ph(a,34648,o);g=1}i=q;return g|0}function nr(e,f,g){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,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;Q=i;i=i+48|0;if((i|0)>=(j|0))ba();N=Q+36|0;O=Q+32|0;o=Q;c[N>>2]=0;c[O>>2]=0;P=c[e>>2]|0;if(((((c[e+64>>2]|0)==0?(a[P+65>>0]|0)==0:0)?(E=Fr(e,f)|0,(E|0)!=0):0)?(D=ft(e,E,109,0,0)|0,M=(c[E+12>>2]|0)!=0,(dr(e,E)|0)==0):0)?(q=(D|0)!=0,(gt(e,E,q&1)|0)==0):0){l=c[E+68>>2]|0;a:do if(l){k=c[P+20>>2]|0;if((k|0)>0){h=c[P+16>>2]|0;n=0;while(1){m=n+1|0;if((c[h+(n<<4)+12>>2]|0)==(l|0)){m=n;break a}if((m|0)<(k|0))n=m;else break}}else m=0}else m=-1e6;while(0);h=Oq(e,9,c[E>>2]|0,0,c[(c[P+16>>2]|0)+(m<<4)>>2]|0)|0;if((h|0)!=1){p=e+68|0;z=c[p>>2]|0;r=z+1|0;c[p>>2]=r;c[f+48>>2]=z;F=E+8|0;l=c[F>>2]|0;if(!l)n=0;else{k=r;n=0;do{k=k+1|0;c[p>>2]=k;n=n+1|0;l=c[l+20>>2]|0}while((l|0)!=0)}if(M){K=e+492|0;L=c[K>>2]|0;c[K>>2]=c[E>>2];K=e}else{K=0;L=0}I=Kq(e)|0;b:do if(I){J=e+18|0;if(!(a[J>>0]|0)){B=I+88|0;b[B>>1]=b[B>>1]|4}A=e+408|0;B=c[A>>2]|0;B=(B|0)==0?e:B;wr(e,m);y=B+328|0;c[y>>2]=c[y>>2]|1<>0]=d[B>>0]|1;if(M){ht(e,E,g,z);c[O>>2]=z;c[N>>2]=z};c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[o+16>>2]=0;c[o+20>>2]=0;c[o+24>>2]=0;c[o+28>>2]=0;c[o>>2]=e;c[o+4>>2]=f;if(!(hs(o,g)|0)){G=P+24|0;if(!(c[G>>2]&128))H=-1;else{B=e+72|0;H=(c[B>>2]|0)+1|0;c[B>>2]=H;sh(I,25,0,H,0)|0}B=E+44|0;do if((!((g|0)!=0|(h|0)!=0|q)?(a[B>>0]&16)==0:0)?(it(e,E,0,0)|0)==0:0){l=E+32|0;cs(e,m,c[l>>2]|0,1,c[E>>2]|0);if(!(a[B>>0]&32)){E=c[E>>2]|0;th(I,sh(I,118,c[l>>2]|0,m,H)|0,E,-2)}h=c[F>>2]|0;if(!h){h=0;break}do{sh(I,118,c[h+40>>2]|0,m,0)|0;h=c[h+20>>2]|0}while((h|0)!=0);h=0}else C=31;while(0);do if((C|0)==31){if(!(a[B>>0]&32)){s=e+72|0;w=(c[s>>2]|0)+1|0;c[s>>2]=w;sh(I,28,0,w,0)|0;s=0;x=0;h=0;u=1;m=0}else{m=c[F>>2]|0;c:do if(!m)m=0;else while(1){if((a[m+51>>0]&3)==2)break c;m=c[m+20>>2]|0;if(!m){m=0;break}}while(0);u=b[m+46>>1]|0;x=e+72|0;h=c[x>>2]|0;s=u<<16>>16;c[x>>2]=h+s;x=c[p>>2]|0;c[p>>2]=x+1;s=sh(I,57,x,s,0)|0;w=c[e+8>>2]|0;th(w,-1,ds(e,m)|0,-6);h=h+1|0;w=0}t=Rs(e,f,g,0,0,12,r)|0;if(!t){h=0;break b}r=t+60|0;q=c[r>>2]|0;r=c[r+4>>2]|0;v=a[t+38>>0]|0;if(c[G>>2]&128)sh(I,37,H,1,0)|0;y=(m|0)!=0;do if(y){if(u<<16>>16<=0){k=h;break}o=m+4|0;l=u<<16>>16;p=0;do{jt(I,E,z,b[(c[o>>2]|0)+(p<<1)>>1]|0,p+h|0);p=p+1|0}while((p|0)!=(l|0));k=h}else{l=e+72|0;k=_s(e,E,-1,z,(c[l>>2]|0)+1|0,0)|0;if((k|0)<=(c[l>>2]|0))break;c[l>>2]=k}while(0);o=v<<24>>24!=0;do if(!o)if(y){l=e+72|0;k=(c[l>>2]|0)+1|0;c[l>>2]=k;l=u<<16>>16;p=kt(I,m)|0;th(I,sh(I,49,h,l,k)|0,p,l);sh(I,110,x,k,0)|0;h=0;l=0;p=0;C=59;break}else{sh(I,128,w,k,0)|0;Ts(t);h=0;r=0;m=1;break}else{h=n+2|0;h=ih(P,h,((h|0)<0)<<31>>31)|0;if(!h){Ts(t);h=0;break b}C=n+1|0;bw(h|0,1,C|0)|0;a[h+C>>0]=0;if((q|0)>-1)a[h+(q-z)>>0]=0;if((r|0)>-1)a[h+(r-z)>>0]=0;if(s)vh(I,s);l=sh(I,16,0,0,0)|0;p=u;C=59}while(0);do if((C|0)==59){Ts(t);if(!o){r=0;m=p;break}m=ts(I)|0;sh(I,16,0,m,0)|0;n=c[I+32>>2]|0;if(n>>>0>l>>>0)c[(c[I+4>>2]|0)+(l*20|0)+8>>2]=n;c[(c[I+24>>2]|0)+88>>2]=n+-1;r=m;m=p}while(0);if(!M)lt(e,E,55,z,h,N,O)|0;do if(!o)if(y){l=sh(I,108,x,0,0)|0;sh(I,101,x,k,0)|0;break}else{l=sh(I,129,w,0,k)|0;break}else{n=c[N>>2]|0;if(!(a[h+(n-z)>>0]|0)){l=0;break}th(I,sh(I,68,n,r,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[B>>0]&16))nt(e,E,D,c[N>>2]|0,c[O>>2]|0,k,m,(a[J>>0]|0)==0&1,10,v);else{n=c[E+60>>2]|0;d:do if(!n)n=0;else while(1){if((c[n>>2]|0)==(P|0))break d;n=c[n+24>>2]|0;if(!n){n=0;break}}while(0);mt(e,E);th(I,sh(I,15,0,1,k)|0,n,-10);n=c[I+4>>2]|0;if(n)a[n+(((c[I+32>>2]|0)+-1|0)*20|0)+3>>0]=2;E=c[A>>2]|0;a[((E|0)==0?e:E)+21>>0]=1}do if(!o)if(y){sh(I,9,x,l+1|0,0)|0;n=c[I+32>>2]|0;if(n>>>0>l>>>0)c[(c[I+4>>2]|0)+(l*20|0)+8>>2]=n;c[(c[I+24>>2]|0)+88>>2]=n+-1;break}else{sh(I,16,0,l,0)|0;n=c[I+32>>2]|0;if(n>>>0>l>>>0)c[(c[I+4>>2]|0)+(l*20|0)+8>>2]=n;c[(c[I+24>>2]|0)+88>>2]=n+-1;break}else{m=c[I+24>>2]|0;l=~r;do if((r|0)<0){n=c[m+112>>2]|0;if(!n)break;c[n+(l<<2)>>2]=c[I+32>>2]}while(0);c[m+88>>2]=(c[I+32>>2]|0)+-1}while(0);if(M)break;if(a[B>>0]&16)break;if(!y)sh(I,61,c[N>>2]|0,0,0)|0;k=c[F>>2]|0;if(!k)break;else l=0;while(1){sh(I,61,(c[O>>2]|0)+l|0,0,0)|0;k=c[k+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[J>>0]|0)==0?(c[e+412>>2]|0)==0:0)ot(e);if((c[G>>2]&128|0)!=0?(a[J>>0]|0)==0:0){if(c[e+412>>2]|0)break;sh(I,35,H,1,0)|0;eq(I,1);if(a[(c[I>>2]|0)+65>>0]|0)break;Tg(c[I+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(K)c[K+492>>2]=L}else h=0}else h=0;zo(P,f);Ck(P,g);ig(P,h);i=Q;return}function or(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,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,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,fa=0,ga=0,ha=0,ia=0,ja=0;ja=i;i=i+64|0;if((i|0)>=(j|0))ba();Q=ja;V=ja+32|0;ca=ja+24|0;ea=ja+20|0;ia=c[e>>2]|0;a:do if(((c[e+64>>2]|0)==0?(a[ia+65>>0]|0)==0:0)?(ha=Fr(e,f)|0,(ha|0)!=0):0){m=c[e>>2]|0;o=c[ha+68>>2]|0;b:do if(o){p=c[m+20>>2]|0;if((p|0)>0){m=c[m+16>>2]|0;n=0;while(1){l=n+1|0;if((c[m+(n<<4)+12>>2]|0)==(o|0))break b;if((l|0)<(p|0))n=l;else{n=l;break}}}else n=0}else n=-1e6;while(0);da=ft(e,ha,110,g,ca)|0;$=(c[ha+12>>2]|0)!=0;if((dr(e,ha)|0)==0?(gt(e,ha,c[ca>>2]|0)|0)==0:0){X=e+68|0;Y=c[X>>2]|0;fa=Y+1|0;c[X>>2]=fa;o=f+48|0;c[o>>2]=Y;H=ha+44|0;r=c[ha+8>>2]|0;c:do if(!(a[H>>0]&32)){p=0;_=16}else{if(!r){t=ha+8|0;p=0;q=Y;s=0;break}else p=r;while(1){if((a[p+51>>0]&3)==2){_=16;break c}p=c[p+20>>2]|0;if(!p){p=0;_=16;break}}}while(0);if((_|0)==16){t=ha+8|0;if(!r){q=Y;s=0}else{l=(p|0)!=0;m=fa;q=Y;s=0;do{if((a[r+51>>0]&3)==2&l){c[o>>2]=m;q=m}m=m+1|0;c[X>>2]=m;s=s+1|0;r=c[r+20>>2]|0}while((r|0)!=0)}}ga=ha+38|0;l=ih(ia,s+2+((b[ga>>1]|0)+s<<2)|0,0)|0;if(l){F=b[ga>>1]|0;Z=l+(F<<2)|0;aa=l+(F+s<<2)|0;W=s+1|0;bw(aa|0,1,W|0)|0;a[aa+W>>0]=0;s=b[ga>>1]|0;if(s<<16>>16>0)bw(l|0,-1,(s<<16>>16>1?s<<16>>16<<2:4)|0)|0;c[V+0>>2]=0;c[V+4>>2]=0;c[V+8>>2]=0;c[V+12>>2]=0;c[V+16>>2]=0;c[V+20>>2]=0;c[V+24>>2]=0;c[V+28>>2]=0;c[V>>2]=e;c[V+4>>2]=f;d:do if((c[g>>2]|0)>0){B=g+4|0;A=ha+4|0;z=ia+16|0;C=(p|0)==0;D=ha+36|0;v=0;u=0;E=0;m=0;while(1){if(hs(V,c[(c[B>>2]|0)+(E*20|0)>>2]|0)|0)break a;x=b[ga>>1]|0;e:do if(x<<16>>16>0){s=c[A>>2]|0;y=c[B>>2]|0;o=c[y+(E*20|0)+4>>2]|0;r=0;while(1){w=r+1|0;if(!($c(c[s+(r*24|0)>>2]|0,o)|0))break;if((w|0)<(x<<16>>16|0))r=w;else{r=w;o=m;break e}}if((r|0)!=(b[D>>1]|0)){if(!C)v=(a[s+(r*24|0)+23>>0]&1)==0?v:1}else{u=1;m=c[y+(E*20|0)>>2]|0}c[l+(r<<2)>>2]=E;o=m}else{r=0;o=m}while(0);if((r|0)<(x<<16>>16|0)){m=c[ha>>2]|0;if((r|0)<0)s=12944;else s=c[(c[A>>2]|0)+(r*24|0)>>2]|0}else{o=c[B>>2]|0;m=c[o+(E*20|0)+4>>2]|0;if(!C)break;if(!(Xh(m)|0))break;m=c[ha>>2]|0;s=12944;u=1;r=-1;o=c[o+(E*20|0)>>2]|0}m=Oq(e,23,m,s,c[(c[z>>2]|0)+(n<<4)>>2]|0)|0;if((m|0)==2)c[l+(r<<2)>>2]=-1;else if((m|0)==1)break a;E=E+1|0;if((E|0)>=(c[g>>2]|0)){O=o;break d}else m=o}c[Q>>2]=m;ph(e,34496,Q);a[e+17>>0]=1;break a}else{v=0;u=0;O=0}while(0);U=(v&255)+(u&255)|0;R=U&255;z=f+64|0;c[z>>2]=0;c[z+4>>2]=0;U=U&255;z=it(e,ha,l,U)|0;m=c[t>>2]|0;if(m){w=(z|U|0)==0;x=e+72|0;y=0;while(1){f:do if(w?!((c[m+36>>2]|0)!=0|(m|0)==(p|0)):0){o=b[m+46>>1]|0;if(!(o<<16>>16))_=56;else{r=c[m+4>>2]|0;s=0;while(1){if((c[l+(b[r+(s<<1)>>1]<<2)>>2]|0)>-1){_=54;break f}s=s+1|0;if((s|0)>=(o&65535|0)){_=56;break}}}}else _=54;while(0);if((_|0)==54){_=0;o=(c[x>>2]|0)+1|0;c[x>>2]=o;if(!o)_=56;else r=y+1|0}if((_|0)==56){_=0;r=y+1|0;a[aa+r>>0]=0;o=0}c[l+(y+F<<2)>>2]=o;m=c[m+20>>2]|0;if(!m)break;else y=r}}S=Kq(e)|0;if(S){T=e+18|0;if(!(a[T>>0]|0)){P=S+88|0;b[P>>1]=b[P>>1]|4}E=e+408|0;P=c[E>>2]|0;P=(P|0)==0?e:P;wr(e,n);N=P+328|0;c[N>>2]=c[N>>2]|1<>0]=d[P>>0]|1;if(a[H>>0]&16){u=c[e+8>>2]|0;v=c[e>>2]|0;m=c[ha+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[m>>2]|0)==(v|0))break g;m=c[m+24>>2]|0;if(!m){m=0;break}}while(0);n=hr(e,0,pt(v,27,34536)|0)|0;t=(O|0)!=0;if(t)n=hr(e,n,Ir(v,O,0,0)|0)|0;if((b[ga>>1]|0)>0){o=g+4|0;q=ha+4|0;r=0;do{p=c[l+(r<<2)>>2]|0;if((p|0)>-1)p=Ir(v,c[(c[o>>2]|0)+(p*20|0)>>2]|0,0,0)|0;else p=pt(v,27,c[(c[q>>2]|0)+(r*24|0)>>2]|0)|0;n=hr(e,n,p)|0;r=r+1|0}while((r|0)<(b[ga>>1]|0))}q=gr(e,n,f,h,0,0,0,0,0,0)|0;s=c[X>>2]|0;c[X>>2]=s+1;f=t&1;sh(u,57,s,(b[ga>>1]|0)+(t?2:1)|0,0)|0;r=u+4|0;h=c[r>>2]|0;if(h)a[h+(((c[u+32>>2]|0)+-1|0)*20|0)+3>>0]=8;a[Q>>0]=14;c[Q+4>>2]=s;a[Q+1>>0]=0;c[Q+8>>2]=0;c[Q+12>>2]=0;er(e,q,Q)|0;h=e+72|0;p=c[h>>2]|0;n=p+1|0;aa=p+2|0;c[h>>2]=(b[ga>>1]|0)+aa;h=sh(u,108,s,0,0)|0;sh(u,47,s,0,n)|0;sh(u,47,s,f,aa)|0;if((b[ga>>1]|0)>0){p=p+3|0;o=0;do{aa=o;o=o+1|0;sh(u,47,s,o+f|0,p+aa|0)|0}while((o|0)<(b[ga>>1]|0))}mt(e,ha);th(u,sh(u,15,0,(b[ga>>1]|0)+2|0,n)|0,m,-10);m=c[r>>2]|0;if(!m)m=u+32|0;else{aa=u+32|0;a[m+(((c[aa>>2]|0)+-1|0)*20|0)+3>>0]=(k|0)==10?2:k&255;m=aa}aa=c[E>>2]|0;a[((aa|0)==0?e:aa)+21>>0]=1;sh(u,9,s,h+1|0,0)|0;m=c[m>>2]|0;if(m>>>0>h>>>0)c[(c[r>>2]|0)+(h*20|0)+8>>2]=m;c[(c[u+24>>2]|0)+88>>2]=m+-1;sh(u,61,s,0,0)|0;Ik(v,q,1);h=0;f=0;break}E=e+72|0;m=c[E>>2]|0;D=m+1|0;N=m+2|0;c[E>>2]=N;F=v<<24>>24!=0;G=(da|0)!=0;M=(z|0)!=0;if(F|G|M){n=(b[ga>>1]|0)+N|0;c[E>>2]=n;I=m+3|0}else{n=N;I=0}K=(U|0)!=0;if(K|G|M){L=n+1|0;c[E>>2]=L;n=L}else L=N;J=n+1|0;c[E>>2]=(b[ga>>1]|0)+n;if($){P=e+492|0;Q=c[P>>2]|0;c[P>>2]=c[ha>>2];ht(e,ha,h,q);P=e}else{P=0;Q=0}do if(!(hs(V,h)|0)){if(!(a[H>>0]&32)){sh(S,28,0,D,N)|0;v=Rs(e,f,h,0,0,4,fa)|0;if(!v)break;x=v+60|0;m=c[x>>2]|0;x=c[x+4>>2]|0;y=a[v+38>>0]|0;sh(S,103,q,N,0)|0;if(!(y<<24>>24))sh(S,128,D,N,0)|0;Ts(v);A=0;z=0;w=y&255;B=0}else{y=b[p+46>>1]|0;r=c[E>>2]|0;v=r+1|0;z=y<<16>>16;r=z+1+r|0;c[E>>2]=r;A=c[X>>2]|0;c[X>>2]=A+1;sh(S,28,0,v,0)|0;n=sh(S,57,A,z,0)|0;s=c[e+8>>2]|0;th(s,-1,ds(e,p)|0,-6);s=Rs(e,f,h,0,0,4,fa)|0;if(!s)break;x=s+60|0;m=c[x>>2]|0;x=c[x+4>>2]|0;o=a[s+38>>0]|0;B=o&255;if(y<<16>>16>0){y=p+4|0;w=0;do{jt(S,ha,q,b[(c[y>>2]|0)+(w<<1)>>1]|0,w+v|0);w=w+1|0}while((w|0)!=(z|0))}if(!(o<<24>>24)){y=kt(S,p)|0;th(S,sh(S,49,v,z,r)|0,y,z);sh(S,110,A,r,0)|0;y=0;v=r}else{vh(S,n);y=z}Ts(s);z=y;w=B;B=v}H=ia+24|0;do if(!(c[H>>2]&128))s=0;else{if(c[e+412>>2]|0){s=0;break}s=(c[E>>2]|0)+1|0;c[E>>2]=s;sh(S,25,0,s,0)|0}while(0);r=ts(S)|0;if(!$){h:do if((k|0)==5)bw(aa|0,1,W|0)|0;else{y=c[t>>2]|0;if(!y)break;while(1){if((a[y+50>>0]|0)==5)break;y=c[y+20>>2]|0;if(!y)break h}bw(aa|0,1,W|0)|0}while(0);do if(w){if((m|0)>-1)a[aa+(m-Y)>>0]=0;if((x|0)<=-1)break;a[aa+(x-Y)>>0]=0}while(0);lt(e,ha,55,Y,aa,0,0)|0}E=(w|0)!=0;do if(!E)if(!p){D=sh(S,129,D,r,N)|0;sh(S,70,q,D,N)|0;C=0;break}else{D=ts(S)|0;sh(S,108,A,r,0)|0;C=sh(S,101,A,B,0)|0;th(S,sh(S,68,q,D,B)|0,0,-14);break}else{if(!((a[aa+(q-Y)>>0]|0)==0|$))th(S,sh(S,68,q,r,B)|0,z,-14);sh(S,76,(p|0)!=0?B:N,r,0)|0;C=0;D=r}while(0);u=u<<24>>24==0;if(!u){Nq(e,O,L);sh(S,38,L,0,0)|0}do if(F|M|G){if(M)v=qt(e,ha)|0;else v=0;y=rt(e,da,g,0,3,ha,k)|0|v;if((b[ga>>1]|0)>0){x=(y|0)==-1;w=ha+4|0;v=0;do{do if(x)_=138;else{if((v|0)<32?(1<>2]|0)+(v*24|0)+23>>0]&1){_=138;break}sh(S,28,0,v+I|0,0)|0}while(0);if((_|0)==138){_=0;jt(S,ha,q,v,v+I|0)}v=v+1|0}while((v|0)<(b[ga>>1]|0))}if(!(u&(p|0)==0))break;sh(S,33,N,L,0)|0}while(0);v=rt(e,da,g,1,1,ha,k)|0;if((b[ga>>1]|0)>0){u=ha+36|0;m=g+4|0;o=0;do{i:do if((o|0)==(b[u>>1]|0))sh(S,28,0,o+J|0,0)|0;else{n=c[l+(o<<2)>>2]|0;if((n|0)>-1){Nq(e,c[(c[m>>2]|0)+(n*20|0)>>2]|0,o+J|0);break}do if(!((c[ca>>2]&1|0)==0|(o|0)>31)){if(1<>1]|0))}do if(c[ca>>2]&1){st(S,ha,J);tt(e,da,110,g,1,ha,N,k,D);if(!p)sh(S,70,q,D,N)|0;else th(S,sh(S,68,q,D,B)|0,z,-14);m=b[ga>>1]|0;if(m<<16>>16<=0)break;u=ha+36|0;v=0;do{do if((c[l+(v<<2)>>2]|0)<0){if((v|0)==(b[u>>1]|0))break;jt(S,ha,q,v,v+J|0);m=b[ga>>1]|0}while(0);v=v+1|0}while((v|0)<(m<<16>>16|0))}while(0);do if(!$){c[ea>>2]=0;ut(e,ha,Z,q,fa,L,N,R,k&255,D,ea);if(M)vt(e,ha,N,0,l,U);m=(c[ea>>2]|U|0)==0;do if(!m)if(!p){n=sh(S,70,q,0,N)|0;break}else{n=sh(S,68,q,0,B)|0;th(S,n,z,-14);break}else n=0;while(0);wt(e,ha,q,fa,Z);if(M|(K|(p|0)!=0))sh(S,95,q,0,0)|0;if(!m){m=c[S+32>>2]|0;if(m>>>0>n>>>0)c[(c[S+4>>2]|0)+(n*20|0)+8>>2]=m;c[(c[S+24>>2]|0)+88>>2]=m+-1}if(M){vt(e,ha,0,L,l,U);xt(e,ha,q,fa,L,Z,1,0,0);yt(e,ha,g,N,l,U);break}else{xt(e,ha,q,fa,L,Z,1,0,0);break}}while(0);do if(c[H>>2]&128){if(c[e+412>>2]|0)break;sh(S,37,s,1,0)|0}while(0);tt(e,da,110,g,2,ha,N,k,D);do if(!E){if(!p){sh(S,16,0,D,0)|0;break}o=c[S+24>>2]|0;n=~D;do if((D|0)<0){p=c[o+112>>2]|0;if(!p)break;c[p+(n<<2)>>2]=c[S+32>>2]}while(0);c[o+88>>2]=(c[S+32>>2]|0)+-1;sh(S,9,A,C,0)|0}while(0);o=c[S+24>>2]|0;n=~r;do if((r|0)<0){p=c[o+112>>2]|0;if(!p)break;c[p+(n<<2)>>2]=c[S+32>>2]}while(0);c[o+88>>2]=(c[S+32>>2]|0)+-1;n=c[t>>2]|0;if(n){o=0;do{p=o;o=o+1|0;if(a[aa+o>>0]|0)sh(S,61,p+fa|0,0,0)|0;n=c[n+20>>2]|0}while((n|0)!=0)}if((q|0)<(fa|0))sh(S,61,q,0,0)|0;do if(!(a[T>>0]|0)){if(c[e+412>>2]|0)break;ot(e)}while(0);if(!(c[H>>2]&128))break;if(c[e+412>>2]|0)break;if(a[T>>0]|0)break;sh(S,35,s,1,0)|0;eq(S,1);if(a[(c[S>>2]|0)+65>>0]|0)break;Tg(c[S+16>>2]|0,34520,-1,1,0)|0}while(0);if(P)c[P+492>>2]=Q}}}else l=0}else l=0;while(0);ig(ia,l);zo(ia,f);Jk(ia,g);Ck(ia,h);i=ja;return}function pr(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,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,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,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+96|0;if((i|0)>=(j|0))ba();$=la;ga=la+92|0;ia=la+88|0;I=la+68|0;V=la+64|0;L=la+32|0;_=la+28|0;c[ga>>2]=0;c[ia>>2]=0;ka=c[e>>2]|0;c[I+0>>2]=0;c[I+4>>2]=0;c[I+8>>2]=0;c[I+12>>2]=0;c[I+16>>2]=0;a:do if((c[e+64>>2]|0)==0?(K=ka+65|0,(a[K>>0]|0)==0):0){if(g)if((b[g+6>>1]&128)!=0?(c[g+52>>2]|0)==0:0){l=c[g>>2]|0;c[g>>2]=0;Ik(ka,g,1);g=0}else l=0;else{g=0;l=0}if((c[f+16>>2]|0)!=0?(ha=Fr(e,f)|0,(ha|0)!=0):0){r=c[ha+68>>2]|0;b:do if(r){q=c[ka+20>>2]|0;if((q|0)>0){p=c[ka+16>>2]|0;n=0;while(1){o=n+1|0;if((c[p+(n<<4)+12>>2]|0)==(r|0)){o=n;break b}if((o|0)<(q|0))n=o;else break}}else o=0}else o=-1e6;while(0);if((((Oq(e,18,c[ha>>2]|0,0,c[(c[ka+16>>2]|0)+(o<<4)>>2]|0)|0)==0?(da=ha+44|0,W=(d[da>>0]|0)>>>5&1,ca=ft(e,ha,108,0,V)|0,ea=(c[ha+12>>2]|0)!=0,(dr(e,ha)|0)==0):0)?(gt(e,ha,c[V>>2]|0)|0)==0:0)?(ja=Kq(e)|0,(ja|0)!=0):0){fa=e+18|0;if(!(a[fa>>0]|0)){aa=ja+88|0;b[aa>>1]=b[aa>>1]|4}aa=(g|0)!=0;Z=e+408|0;Y=c[Z>>2]|0;Y=(Y|0)==0?e:Y;wr(e,o);U=Y+328|0;c[U>>2]=c[U>>2]|1<>0]=d[Y>>0]|(aa|(ca|0)!=0)&1;Y=(h|0)==0;c:do if((((!((g|0)==0|Y^1)?(c[e+532>>2]|0)==0:0)?(c[g+68>>2]|0)==0:0)?(ws(e,ha)|0)==0:0)?(a[da>>0]&16)==0:0){if((k|0)==10){if((b[ha+36>>1]|0)>-1)r=d[ha+45>>0]|0;else r=10;v=(r|0)==10?2:r}else v=k;q=c[g+32>>2]|0;if((c[q>>2]|0)==1){if(c[q+28>>2]|0){X=117;break}if(c[g+36>>2]|0){X=117;break}if(c[g+48>>2]|0){X=117;break}if(c[g+40>>2]|0){X=117;break}if(c[g+60>>2]|0){X=117;break}if(c[g+52>>2]|0){X=117;break}if(b[g+6>>1]&1){X=117;break}r=c[g>>2]|0;if((c[r>>2]|0)!=1){X=117;break}if((a[c[c[r+4>>2]>>2]>>0]|0)!=116){X=117;break}u=Qr(e,0,q+8|0)|0;if((u|0)==0|(u|0)==(ha|0)){X=117;break}y=u+44|0;U=d[y>>0]|0;if(!((U&16|0)==0?(((d[da>>0]|0)>>>5&1^1)&255|0)==(U>>>5&1^1|0):0)){X=117;break}if(c[u+12>>2]|0){X=117;break}s=b[ha+38>>1]|0;if(s<<16>>16!=(b[u+38>>1]|0)){X=117;break}x=ha+36|0;if((b[x>>1]|0)!=(b[u+36>>1]|0)){X=117;break}if(s<<16>>16>0){n=c[ha+4>>2]|0;m=c[u+4>>2]|0;t=0;do{if((a[n+(t*24|0)+21>>0]|0)!=(a[m+(t*24|0)+21>>0]|0)){X=117;break c}r=c[n+(t*24|0)+16>>2]|0;q=c[m+(t*24|0)+16>>2]|0;p=(q|0)==0;if(!r){if(!p){X=117;break c}}else{if(p){X=117;break c}if($c(r,q)|0){X=117;break c}}if((a[n+(t*24|0)+20>>0]|0)!=0?(a[m+(t*24|0)+20>>0]|0)==0:0){X=117;break c}do if((t|0)>0){r=c[n+(t*24|0)+8>>2]|0;q=(r|0)==0;p=c[m+(t*24|0)+8>>2]|0;if(q^(p|0)==0){X=117;break c}if(q)break;if(Wv(r,p)|0){X=117;break c}}while(0);t=t+1|0}while((t|0)<(s<<16>>16|0))}B=ha+8|0;r=c[B>>2]|0;if(!r)q=0;else{s=c[u+8>>2]|0;if(!s){X=117;break}else q=0;do{q=(a[r+50>>0]|0)==0?q:1;p=s;while(1){if(zt(r,p)|0)break;p=c[p+20>>2]|0;if(!p){X=117;break c}}if(!p){X=117;break c}r=c[r+20>>2]|0}while((r|0)!=0)}r=c[ha+24>>2]|0;if((r|0)!=0?(Ps(c[u+24>>2]|0,r,-1)|0)!=0:0){X=117;break}p=c[e>>2]|0;r=c[p+24>>2]|0;if(!(r&524288)){if(r&128){X=117;break}}else if(!((c[ha+16>>2]|0)==0&(r&128|0)==0)){X=117;break}m=c[u+68>>2]|0;d:do if(!m)p=-1e6;else{s=c[p+20>>2]|0;if((s|0)<=0){p=0;break}r=c[p+16>>2]|0;n=0;while(1){p=n+1|0;if((c[r+(n<<4)+12>>2]|0)==(m|0)){p=n;break d}if((p|0)<(s|0))n=p;else break}}while(0);A=Kq(e)|0;wr(e,p);w=e+68|0;C=c[w>>2]|0;z=C+1|0;c[w>>2]=C+2;w=At(e,o,ha)|0;s=e+19|0;n=a[s>>0]|0;do if(!(n<<24>>24)){X=e+72|0;r=(c[X>>2]|0)+1|0;c[X>>2]=r;X=78}else{U=n+-1<<24>>24;a[s>>0]=U;r=c[e+((U&255)<<2)+24>>2]|0;if(!(U<<24>>24)){X=78;break}D=n+-2<<24>>24;a[s>>0]=D;E=r;D=c[e+((D&255)<<2)+24>>2]|0}while(0);if((X|0)==78){E=e+72|0;D=(c[E>>2]|0)+1|0;c[E>>2]=D;E=r}Mq(e,z,o,ha,55);if((b[x>>1]|0)<0)if((c[B>>2]|0)!=0|(q|0)!=0|(v+-1|0)>>>0>1)X=83;else F=0;else if((q|0)!=0|(v+-1|0)>>>0>1)X=83;else F=0;if((X|0)==83){t=sh(A,108,z,0,0)|0;s=sh(A,16,0,0,0)|0;r=c[A+32>>2]|0;if(r>>>0>t>>>0)c[(c[A+4>>2]|0)+(t*20|0)+8>>2]=r;c[(c[A+24>>2]|0)+88>>2]=r+-1;F=s}if(!(a[y>>0]&32)){Mq(e,C,p,u,54);q=sh(A,108,C,0,0)|0;do if((b[x>>1]|0)<=-1)if(!(c[B>>2]|0)){r=sh(A,74,z,D,0)|0;break}else{r=sh(A,103,C,D,0)|0;break}else{r=sh(A,103,C,D,0)|0;t=sh(A,70,z,0,D)|0;Bt(e,v,ha);s=c[A+32>>2]|0;if(s>>>0>t>>>0)c[(c[A+4>>2]|0)+(t*20|0)+8>>2]=s;c[(c[A+24>>2]|0)+88>>2]=s+-1;if((w|0)<=0)break;sh(c[e+8>>2]|0,136,w,D,0)|0}while(0);sh(A,102,C,E,0)|0;sh(A,75,z,E,D)|0;s=c[A+4>>2]|0;if(s)a[s+(((c[A+32>>2]|0)+-1|0)*20|0)+3>>0]=11;th(A,-1,c[ha>>2]|0,0);sh(A,9,C,r,0)|0;sh(A,61,C,0,0)|0;sh(A,61,z,0,0)|0}else{cs(e,o,c[ha+32>>2]|0,1,c[ha>>2]|0);cs(e,p,c[u+32>>2]|0,0,c[u>>2]|0);q=0}t=c[B>>2]|0;if(t){n=u+8|0;m=e+8|0;u=A+4|0;v=A+32|0;w=A+24|0;r=t;do{t=n;while(1){t=c[t>>2]|0;if(zt(r,t)|0)break;t=t+20|0}sh(A,54,C,c[t+40>>2]|0,p)|0;U=c[m>>2]|0;th(U,-1,ds(e,t)|0,-6);sh(A,55,z,c[r+40>>2]|0,o)|0;t=c[m>>2]|0;th(t,-1,ds(e,r)|0,-6);t=c[u>>2]|0;if(t)a[t+(((c[v>>2]|0)+-1|0)*20|0)+3>>0]=1;t=sh(A,108,C,0,0)|0;sh(A,101,C,E,0)|0;sh(A,110,z,E,1)|0;sh(A,9,C,t+1|0,0)|0;s=c[v>>2]|0;if(s>>>0>t>>>0)c[(c[u>>2]|0)+(t*20|0)+8>>2]=s;c[(c[w>>2]|0)+88>>2]=s+-1;sh(A,61,C,0,0)|0;sh(A,61,z,0,0)|0;r=c[r+20>>2]|0}while((r|0)!=0)}if(q){r=c[A+32>>2]|0;if(r>>>0>q>>>0)c[(c[A+4>>2]|0)+(q*20|0)+8>>2]=r;c[(c[A+24>>2]|0)+88>>2]=r+-1}Wr(e,D);Wr(e,E);if(!F){m=0;n=0;break}sh(A,24,0,0,0)|0;r=c[A+32>>2]|0;if(r>>>0>F>>>0)c[(c[A+4>>2]|0)+(F*20|0)+8>>2]=r;c[(c[A+24>>2]|0)+88>>2]=r+-1;sh(A,61,z,0,0)|0;X=117}else X=117}else X=117;while(0);do if((X|0)==117){P=At(e,o,ha)|0;O=e+72|0;q=c[O>>2]|0;T=q+1|0;U=ha+38|0;F=b[U>>1]|0;E=F<<16>>16;r=T+E|0;c[O>>2]=r;if(!(a[da>>0]&16))S=T;else{r=r+1|0;c[O>>2]=r;S=q+2|0}Q=S+1|0;R=(h|0)!=0;e:do if(R?(M=c[h+4>>2]|0,N=(M|0)>0,N):0){s=c[h>>2]|0;q=0;do{c[s+(q<<3)+4>>2]=-1;q=q+1|0}while((q|0)<(M|0));if(N){A=W<<24>>24!=0;z=ha+4|0;y=ha+36|0;q=1;x=0;s=-1;while(1){f:do if(F<<16>>16>0){w=c[h>>2]|0;p=c[w+(x<<3)>>2]|0;n=c[z>>2]|0;m=0;while(1){t=m+1|0;if(!($c(p,c[n+(m*24|0)>>2]|0)|0)){t=m;break}if((t|0)<(E|0))m=t;else break f}c[w+(x<<3)+4>>2]=t;q=(x|0)==(t|0)?q:0;s=(t|0)==(b[y>>1]|0)?x:s}else t=0;while(0);if((t|0)>=(E|0)){m=c[(c[h>>2]|0)+(x<<3)>>2]|0;if((Xh(m)|0)==0|A)break;else{q=0;t=x}}else t=s;x=x+1|0;if((x|0)>=(M|0)){B=t;break e}else s=t}c[$>>2]=f;c[$+4>>2]=0;c[$+8>>2]=m;ph(e,33368,$);a[e+17>>0]=1;m=0;break a}else{q=1;B=-1}}else{q=1;B=-1}while(0);g:do if(!aa){c[L+0>>2]=0;c[L+4>>2]=0;c[L+8>>2]=0;c[L+12>>2]=0;c[L+16>>2]=0;c[L+20>>2]=0;c[L+24>>2]=0;c[L+28>>2]=0;c[L>>2]=e;if(l){p=c[l>>2]|0;if((p|0)>0){r=l+4|0;q=0;while(1){if(hs(L,c[(c[r>>2]|0)+(q*20|0)>>2]|0)|0){g=0;m=0;break a}q=q+1|0;if((q|0)>=(p|0)){r=0;q=-1;o=0;X=169;break}}}else{M=B;L=0;N=-1;w=0}}else{M=B;p=0;L=0;N=-1;w=0}}else{r=r+1|0;c[O>>2]=r;D=ja+32|0;s=c[D>>2]|0;sh(ja,20,r,0,s+1|0)|0;a[I>>0]=13;E=I+4|0;c[E>>2]=r;a[I+1>>0]=0;C=I+8|0;c[C>>2]=q<<24>>24!=0?Q:0;c[I+12>>2]=b[U>>1];N=er(e,g,I)|0;C=c[C>>2]|0;if(N){m=0;break a}if(a[K>>0]|0){m=0;break a}sh(ja,21,r,0,0)|0;r=c[D>>2]|0;if(r>>>0>s>>>0)c[(c[ja+4>>2]|0)+(s*20|0)+8>>2]=r;F=ja+24|0;c[(c[F>>2]|0)+88>>2]=r+-1;p=c[c[g>>2]>>2]|0;h:do if(!ca){t=Kq(e)|0;q=c[t+32>>2]|0;i:do if(!(a[da>>0]&16))s=0;else{r=c[e>>2]|0;s=c[ha+60>>2]|0;if(!s){s=0;break}while(1){if((c[s>>2]|0)==(r|0))break i;s=c[s+24>>2]|0;if(!s){s=0;break}}}while(0);if((q|0)<=1){r=C;q=0;o=0;X=169;break g}n=(a[(c[t>>2]|0)+65>>0]|0)==0;w=t+4|0;v=ha+32|0;u=ha+8|0;m=1;while(1){if(n)t=(c[w>>2]|0)+(m*20|0)|0;else t=29120;r=a[t>>0]|0;do if(r<<24>>24==54){if((c[t+12>>2]|0)!=(o|0))break;r=c[t+8>>2]|0;if((r|0)==(c[v>>2]|0))break h;t=c[u>>2]|0;if(!t)break;do{if((r|0)==(c[t+40>>2]|0))break h;t=c[t+20>>2]|0}while((t|0)!=0)}else if(r<<24>>24==-107?(c[t+16>>2]|0)==(s|0):0)break h;while(0);m=m+1|0;if((m|0)>=(q|0)){r=C;q=0;o=0;X=169;break g}}}while(0);s=e+68|0;t=c[s>>2]|0;c[s>>2]=t+1;s=e+19|0;q=a[s>>0]|0;do if(!(q<<24>>24)){r=(c[O>>2]|0)+1|0;c[O>>2]=r;X=159}else{N=q+-1<<24>>24;a[s>>0]=N;r=c[e+((N&255)<<2)+24>>2]|0;if(!(N<<24>>24)){X=159;break}N=q+-2<<24>>24;a[s>>0]=N;s=c[e+((N&255)<<2)+24>>2]|0}while(0);if((X|0)==159){s=(c[O>>2]|0)+1|0;c[O>>2]=s}sh(ja,57,t,p,0)|0;o=sh(ja,22,c[E>>2]|0,0,0)|0;sh(ja,49,C,p,r)|0;sh(ja,74,t,s,0)|0;sh(ja,75,t,r,s)|0;sh(ja,16,0,o,0)|0;q=c[D>>2]|0;if(q>>>0>o>>>0)c[(c[ja+4>>2]|0)+(o*20|0)+8>>2]=q;c[(c[F>>2]|0)+88>>2]=q+-1;Wr(e,r);Wr(e,s);r=C;q=t;o=1;X=169}while(0);if((X|0)==169)if(Y&(p|0)>0){M=b[ha+36>>1]|0;L=r;N=q;w=o}else{M=B;L=r;N=q;w=o}if((a[da>>0]&16)!=0?(J=b[U>>1]|0,J<<16>>16>0):0){s=c[ha+4>>2]|0;q=J<<16>>16;o=0;r=0;do{r=((d[s+(o*24|0)+23>>0]|0)>>>1&1)+r|0;o=o+1|0}while((o|0)<(q|0))}else r=0;do if(Y&(p|0)!=0){r=(b[U>>1]|0)-r|0;if((p|0)==(r|0))break;c[$>>2]=f;c[$+4>>2]=0;c[$+8>>2]=r;c[$+12>>2]=p;ph(e,33400,$);m=0;break a}while(0);do if(R){r=c[h+4>>2]|0;if((p|0)==(r|0))break;c[$>>2]=p;c[$+4>>2]=r;ph(e,33456,$);m=0;break a}while(0);H=ka+24|0;if(!(c[H>>2]&128))n=0;else{n=(c[O>>2]|0)+1|0;c[O>>2]=n;sh(ja,25,0,n,0)|0}do if(ea)m=0;else{r=lt(e,ha,55,-1,0,ga,ia)|0;m=ih(ka,(r<<2)+4|0,0)|0;if(!m)break a;if((r|0)>0)q=0;else break;do{K=(c[O>>2]|0)+1|0;c[O>>2]=K;c[m+(q<<2)>>2]=K;q=q+1|0}while((q|0)!=(r|0))}while(0);J=w<<24>>24!=0;do if(J){K=sh(ja,108,N,0,0)|0;I=c[ja+32>>2]|0}else{if(!aa){I=0;K=0;break}K=sh(ja,22,c[I+4>>2]|0,0,0)|0;I=K}while(0);G=ts(ja)|0;do if(c[V>>2]&1){t=(b[U>>1]|0)+1|0;E=e+60|0;s=c[E>>2]|0;D=e+56|0;r=c[D>>2]|0;if((r|0)<(t|0)){F=c[O>>2]|0;c[O>>2]=F+t;F=F+1|0}else{c[E>>2]=t+s;c[D>>2]=r-t;F=s}if((M|0)<0)sh(ja,25,-1,F,0)|0;else{if(J)sh(ja,47,N,M,F)|0;else Nq(e,c[(c[l+4>>2]|0)+(M*20|0)>>2]|0,F);t=sh(ja,77,F,0,0)|0;sh(ja,25,-1,F,0)|0;s=c[ja+32>>2]|0;if(s>>>0>t>>>0)c[(c[ja+4>>2]|0)+(t*20|0)+8>>2]=s;c[(c[ja+24>>2]|0)+88>>2]=s+-1;sh(ja,38,F,0,0)|0}s=b[U>>1]|0;if(s<<16>>16>0){A=J|(l|0)!=0;q=h+4|0;r=F+1|0;t=l+4|0;x=e+8|0;y=ha+4|0;z=0;do{j:do if(Y)w=z;else{v=c[q>>2]|0;if((v|0)<=0){w=0;break}u=c[h>>2]|0;o=0;while(1){w=o+1|0;if((c[u+(o<<3)+4>>2]|0)==(z|0)){w=o;break j}if((w|0)<(v|0))o=w;else break}}while(0);do if(A){if(R?(w|0)>=(c[q>>2]|0):0){X=213;break}if(J){sh(ja,47,N,w,r+z|0)|0;break}else{V=c[(c[t>>2]|0)+(w*20|0)>>2]|0;o=r+z|0;u=c[x>>2]|0;Nq(e,V,o);s=(c[O>>2]|0)+1|0;c[O>>2]=s;sh(u,33,o,s,0)|0;a[V+38>>0]=a[V>>0]|0;a[V>>0]=-97;c[V+28>>2]=s;V=V+4|0;c[V>>2]=c[V>>2]&-4097;break}}else X=213;while(0);if((X|0)==213){X=0;Nq(e,c[(c[y>>2]|0)+(z*24|0)+4>>2]|0,r+z|0)}z=z+1|0;s=b[U>>1]|0}while((z|0)<(s<<16>>16|0))}if(!ea){st(ja,ha,F+1|0);s=b[U>>1]|0}tt(e,ca,108,0,1,ha,F+-1-(s<<16>>16)|0,k,G);s=(b[U>>1]|0)+1|0;$s(e,F,s);if((c[D>>2]|0)>=(s|0))break;c[D>>2]=s;c[E>>2]=F}while(0);do if(!ea){if(a[da>>0]&16)sh(ja,28,0,T,0)|0;k:do if((M|0)<=-1)if(!((a[da>>0]&16|W)<<24>>24)){sh(ja,74,c[ga>>2]|0,S,P)|0;F=1;break}else{sh(ja,28,0,S,0)|0;F=0;break}else{do if(J)sh(ja,47,N,M,S)|0;else{if(aa){sh(ja,33,M+L|0,S,0)|0;break}Nq(e,c[(c[l+4>>2]|0)+(M*20|0)>>2]|0,S);if(!(a[(c[ja>>2]|0)+65>>0]|0)){r=(c[ja+4>>2]|0)+(((c[ja+32>>2]|0)+-1|0)*20|0)|0;if(!r)break}else r=29120;if((a[r>>0]|0)!=28)break;if(a[da>>0]&16)break;a[r>>0]=74;c[r+4>>2]=c[ga>>2];c[r+8>>2]=S;c[r+12>>2]=P;F=1;break k}while(0);if(!(a[da>>0]&16)){r=sh(ja,77,S,0,0)|0;sh(ja,74,c[ga>>2]|0,S,P)|0;q=c[ja+32>>2]|0;if(q>>>0>r>>>0)c[(c[ja+4>>2]|0)+(r*20|0)+8>>2]=q;c[(c[ja+24>>2]|0)+88>>2]=q+-1}else sh(ja,76,S,(c[ja+32>>2]|0)+2|0,0)|0;sh(ja,38,S,0,0)|0;F=0}while(0);if((P|0)>0)sh(c[e+8>>2]|0,136,P,S,0)|0;if((b[U>>1]|0)>0){D=ha+36|0;E=ha+4|0;z=(p|0)==0;y=h+4|0;x=(L|0)==(Q|0);p=l+4|0;q=e+23|0;r=$+20|0;s=$+4|0;B=$+24|0;C=0;t=0;do{A=C+Q|0;l:do if((C|0)==(b[D>>1]|0))sh(ja,29,A,0,0)|0;else{m:do if(Y)if(!(a[(c[E>>2]|0)+(C*24|0)+23>>0]&2)){w=C-t|0;X=258;break}else{t=t+1|0;break}else{v=c[y>>2]|0;if((v|0)<=0){w=0;X=258;break}u=c[h>>2]|0;o=0;while(1){w=o+1|0;if((c[u+(o<<3)+4>>2]|0)==(C|0)){w=o;X=258;break m}if((w|0)<(v|0))o=w;else{X=258;break}}}while(0);do if((X|0)==258){X=0;if((w|0)<0|z)break;if(R?(w|0)>=(c[y>>2]|0):0)break;if(J){sh(ja,47,N,w,A)|0;break l}if(!aa){Nq(e,c[(c[p>>2]|0)+(w*20|0)>>2]|0,A);break l}if(x)break l;sh(ja,34,w+L|0,A,0)|0;break l}while(0);w=c[(c[E>>2]|0)+(C*24|0)+4>>2]|0;do if(a[q>>0]|0){c[$+0>>2]=0;c[$+4>>2]=0;c[$+8>>2]=0;c[$+12>>2]=0;c[$+16>>2]=0;c[$+20>>2]=0;a[r>>0]=1;c[$>>2]=78;c[s>>2]=79;c[B>>2]=0;ns($,w)|0;if(!(a[r>>0]|0))break;Ct(e,w,A,0);break l}while(0);Nq(e,w,A)}while(0);C=C+1|0}while((C|0)<(b[U>>1]|0))}if(!(a[da>>0]&16)){ut(e,ha,m,c[ga>>2]|0,c[ia>>2]|0,T,0,M>>>31&255^1,k&255,G,_);vt(e,ha,0,T,0,0);xt(e,ha,c[ga>>2]|0,c[ia>>2]|0,T,m,0,F,(c[_>>2]|0)==0&1);break}r=c[ha+60>>2]|0;n:do if(!r)r=0;else while(1){if((c[r>>2]|0)==(ka|0))break n;r=c[r+24>>2]|0;if(!r){r=0;break}}while(0);mt(e,ha);th(ja,sh(ja,15,1,(b[U>>1]|0)+2|0,T)|0,r,-10);q=c[ja+4>>2]|0;if(q)a[q+(((c[ja+32>>2]|0)+-1|0)*20|0)+3>>0]=(k|0)==10?2:k&255;$=c[Z>>2]|0;a[(($|0)==0?e:$)+21>>0]=1}while(0);if(c[H>>2]&128)sh(ja,37,n,1,0)|0;if(ca)tt(e,ca,108,0,2,ha,S+-1-(b[U>>1]|0)|0,k,G);r=ja+24|0;q=c[r>>2]|0;o=~G;do if((G|0)<0){p=c[q+112>>2]|0;if(!p)break;c[p+(o<<2)>>2]=c[ja+32>>2]}while(0);p=ja+32|0;c[q+88>>2]=(c[p>>2]|0)+-1;do if(J){sh(ja,9,N,I,0)|0;p=c[p>>2]|0;if(p>>>0>K>>>0)c[(c[ja+4>>2]|0)+(K*20|0)+8>>2]=p;c[(c[r>>2]|0)+88>>2]=p+-1;sh(ja,61,N,0,0)|0}else{if(!aa)break;sh(ja,16,0,I,0)|0;p=c[p>>2]|0;if(p>>>0>K>>>0)c[(c[ja+4>>2]|0)+(K*20|0)+8>>2]=p;c[(c[r>>2]|0)+88>>2]=p+-1}while(0);if((a[da>>0]&16)!=0|ea)break;o=c[ga>>2]|0;if((o|0)<(c[ia>>2]|0))sh(ja,61,o,0,0)|0;o=c[ha+8>>2]|0;if(!o)break;else p=0;while(1){sh(ja,61,(c[ia>>2]|0)+p|0,0,0)|0;o=c[o+20>>2]|0;if(!o)break;else p=p+1|0}}while(0);if((a[fa>>0]|0)==0?(c[e+412>>2]|0)==0:0)ot(e);if((((c[ka+24>>2]&128|0)!=0?(a[fa>>0]|0)==0:0)?(c[e+412>>2]|0)==0:0)?(sh(ja,35,n,1,0)|0,eq(ja,1),(a[(c[ja>>2]|0)+65>>0]|0)==0):0)Tg(c[ja+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);zo(ka,f);Jk(ka,l);Ik(ka,g,1);Dk(ka,h);ig(ka,m);i=la;return}function qr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h;if(!d){d=ih(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;g=g+4|0;a[g>>0]=0;a[g+1>>0]=0;a[g+2>>0]=0;a[g+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[d>>2]=Dt(b,c[d>>2]|0,8,d+4|0,f)|0;f=c[f>>2]|0;if((f|0)<0){Dk(b,d);d=0;break}else{b=Sq(b,e)|0;c[(c[d>>2]|0)+(f<<3)>>2]=b;break}}while(0);i=h;return d|0}function rr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[d+4>>2]|0)!=0?(f=jr(c[a>>2]|0,95,d,e)|0,(f|0)!=0):0){c[f+12>>2]=b;b=f+4|0;c[b>>2]=c[b>>2]|4352;b=f}return b|0}function sr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[a>>2]|0;d=jr(e,153,d,1)|0;if(!d){Jk(e,b);d=0}else{c[d+20>>2]=b;ur(a,d)}return d|0}function tr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[b>>2]|0;if((d|0)!=0&(e|0)!=0?(a[d>>0]|0)==101:0){a[e>>0]=f;f=e+16|0;Ck(b,c[f>>2]|0);c[f>>2]=0}return}function ur(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if((c[a+64>>2]|0)==0?(Et(b),d=c[(c[a>>2]|0)+100>>2]|0,(d|0)<(c[b+24>>2]|0)):0){c[e>>2]=d;ph(a,27152,e)}i=f;return}function vr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[a>>2]|0;i=d+20|0;e=c[i>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[g>>2]|0;do if(c[e+(f<<4)+4>>2]|0){if(!h?($c(b,c[e+(f<<4)>>2]|0)|0)!=0:0)break;wr(a,f);d=c[i>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function wr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[a+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[a>>2]|0;e=1<>2]|0,c[a>>2]=d|e,c[f+(b<<2)+336>>2]=c[c[(c[g+16>>2]|0)+(b<<4)+12>>2]>>2],(b|0)==1):0)Wk(f)|0;return}function xr(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,n=0,o=0;o=i;i=i+128|0;if((i|0)>=(j|0))ba();f=o+8|0;n=o;m=o+24|0;c[n>>2]=0;k=c[b>>2]|0;if((c[b+64>>2]|0)==0?(c[f>>2]=e,l=Sk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[d>>0]=(a[d>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[f>>0]=a[g>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(h|0));Hh(b,l,n)|0;ig(k,c[n>>2]|0);ig(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[f>>0]=a[g>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[d>>0]=(a[d>>0]|0)+-1<<24>>24}i=o;return}function yr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))ba();g=k;h=k+16|0;b=c[(c[(c[a>>2]|0)+16>>2]|0)+(b<<4)>>2]|0;f=1;do{c[g>>2]=f;Yc(24,h,33272,g)|0;if(Wh(c[a>>2]|0,h,b)|0){c[g>>2]=b;c[g+4>>2]=h;c[g+8>>2]=d;c[g+12>>2]=e;xr(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function zr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[e>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[f>>2]|0)+1|0;c[f>>2]=e}else{f=f+-1<<24>>24;a[e>>0]=f;e=c[b+((f&255)<<2)+24>>2]|0}f=c[b+8>>2]|0;sh(f,25,(c[c[(c[(c[b>>2]|0)+16>>2]|0)+(d<<4)+12>>2]>>2]|0)+1|0,e,0)|0;sh(f,52,d,1,e)|0;Wr(b,e);return}function Ar(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))ba();k=l;h=Kq(b)|0;f=b+19|0;g=a[f>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[g>>2]|0)+1|0;c[g>>2]=f}else{g=g+-1<<24>>24;a[f>>0]=g;f=c[b+((g&255)<<2)+24>>2]|0}sh(h,117,d,f,e)|0;g=c[b+408>>2]|0;a[((g|0)==0?b:g)+21>>0]=1;c[k>>2]=c[(c[(c[b>>2]|0)+16>>2]|0)+(e<<4)>>2];c[k+4>>2]=(e|0)==1?13184:13208;c[k+8>>2]=d;c[k+12>>2]=f;c[k+16>>2]=f;xr(b,33216,k);Wr(b,f);i=l;return}function Br(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var 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,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;U=i;i=i+96|0;if((i|0)>=(j|0))ba();D=U+24|0;t=U+80|0;n=U+64|0;x=U+16|0;q=U+60|0;r=U+56|0;L=U+52|0;K=U+48|0;w=U+44|0;A=U+40|0;B=U+36|0;C=U+32|0;u=U+8|0;p=U;T=c[f>>2]|0;Q=Kq(f)|0;do if((Q|0)!=0?(P=Q+88|0,b[P>>1]=b[P>>1]|16,P=f+72|0,c[P>>2]=2,N=ar(f,g,h,t)|0,(N|0)>=0):0){O=T+16|0;z=c[O>>2]|0;if((N|0)==1?(Wk(f)|0)!=0:0)break;S=Sq(T,c[t>>2]|0)|0;if(S){if(!l)R=Sq(T,k)|0;else{c[D>>2]=k;R=qh(T,30104,D)|0}y=h+4|0;if(!(c[y>>2]|0))I=0;else I=c[z+(N<<4)>>2]|0;a:do if(!(Oq(f,19,S,R,I)|0)){c[n>>2]=0;c[n+4>>2]=S;c[n+8>>2]=R;c[n+12>>2]=0;o=T+452|0;c[o>>2]=0;g=_f(T,I,14,n)|0;if(!g){k=c[n>>2]|0;if(!k)break;m=(c[P>>2]|0)+1|0;c[P>>2]=m;th(Q,sh(Q,97,0,m,0)|0,k,0);eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30112,-1,1,0)|0;sh(Q,35,m,1,0)|0;Sc(c[n>>2]|0);break}else if((g|0)==12){t=0;n=56;b:while(1){while(1){l=(t+n|0)/2|0;g=c[30120+(l*12|0)>>2]|0;k=$c(S,g)|0;if(!k){t=l;break b}if((k|0)<0){g=l;break}if((l|0)<(n|0))t=l+1|0;else break a}g=g+-1|0;if((t|0)>(g|0))break a;else n=g}if((a[30125+(t*12|0)>>0]&1)!=0?(Cn(f)|0)!=0:0)break;do switch(d[30124+(t*12|0)>>0]|0){case 25:{l=c[z+(N<<4)+4>>2]|0;if(R){m=(ei(R,1,0)|0)<<24>>24!=0&1;if((c[y>>2]|0)==0?(v=T+20|0,(c[v>>2]|0)>0):0){k=0;do{oo(c[(c[O>>2]|0)+(k<<4)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[v>>2]|0))}}else m=-1;D=oo(l,m)|0;Ft(f,30880,D,((D|0)<0)<<31>>31);break a}case 22:{wr(f,N);k=(c[P>>2]|0)+1|0;c[P>>2]=k;if((a[S>>0]&-33)<<24>>24==80)sh(Q,153,N,k,0)|0;else{c[D>>2]=0;if(R){zn(R,D)|0;m=c[D>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;sh(Q,154,N,k,m)|0}sh(Q,35,k,1,0)|0;eq(Q,1);if(a[(c[Q>>2]|0)+65>>0]|0)break a;Tg(c[Q+16>>2]|0,S,-1,1,-1)|0;break a}case 30:{if(!R)break a;h=Wh(T,R,I)|0;if(!h)break a;k=c[h+8>>2]|0;c:do if(!k)k=0;else while(1){if((a[k+51>>0]&3)==2)break c;k=c[k+20>>2]|0;if(!k){k=0;break}}while(0);eq(Q,6);c[P>>2]=6;wr(f,N);do if((((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31176,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0){Tg((c[Q+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[(c[Q>>2]|0)+65>>0]|0)break;Tg((c[Q+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[(c[Q>>2]|0)+65>>0]|0)break;Tg((c[Q+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);dr(f,h)|0;q=h+38|0;m=b[q>>1]|0;if(m<<16>>16<=0)break a;r=(k|0)==0;l=k+4|0;t=0;o=0;g=c[h+4>>2]|0;while(1){p=g+23|0;if(!(a[p>>0]&2)){sh(Q,25,t-o|0,1,0)|0;n=c[g>>2]|0;th(Q,sh(Q,97,0,2,0)|0,n,0);n=c[g+12>>2]|0;th(Q,sh(Q,97,0,3,0)|0,(n|0)==0?10360:n,0);sh(Q,25,(a[g+20>>0]|0)!=0&1,4,0)|0;n=c[g+8>>2]|0;if(!n)sh(Q,28,0,5,0)|0;else th(Q,sh(Q,97,0,5,0)|0,n,0);k=a[p>>0]&1;d:do if(k<<24>>24==0|r)n=(k^1)&255^1;else{n=b[q>>1]|0;if(n<<16>>16<1){n=1;break}m=c[l>>2]|0;p=n<<16>>16;k=1;while(1){n=k+1|0;if((b[m+(k+-1<<1)>>1]|0)==(t|0)){n=k;break d}if((k|0)<(p|0))k=n;else break}}while(0);sh(Q,25,n,6,0)|0;sh(Q,35,1,6,0)|0;m=b[q>>1]|0}else o=o+1|0;t=t+1|0;if((t|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 29:{if(!R){D=(d[z+(N<<4)+8>>0]|0)+-1|0;Ft(f,31104,D,((D|0)<0)<<31>>31);break a}if(!(a[T+63>>0]|0)){ph(f,31120,D);break a}else{a[z+(N<<4)+8>>0]=((ei(R,0,1)|0)&255)+1;Ht(T);break a}}case 21:{do if(R){if($c(R,30904)|0)if(!($c(R,30896)|0))k=0;else{M=66;break}else k=1;if(!(c[y>>2]|0)){p=c[T+20>>2]|0;if((p|0)>2){n=c[O>>2]|0;m=k&255;o=2;do{l=c[c[(c[n+(o<<4)+4>>2]|0)+4>>2]>>2]|0;do if(!(a[l+12>>0]|0)){D=c[l+208>>2]|0;if((D|0)!=0?(a[D+43>>0]|0)==2:0)break;a[l+4>>0]=m}while(0);o=o+1|0}while((o|0)<(p|0))}else m=k&255;a[T+66>>0]=m;M=74}else M=74}else M=66;while(0);if((M|0)==66)if(!(c[y>>2]|0))l=T+66|0;else{k=-1;M=74}if((M|0)==74){m=c[c[(c[z+(N<<4)+4>>2]|0)+4>>2]>>2]|0;do if((k|0)>-1?(a[m+12>>0]|0)==0:0){D=c[m+208>>2]|0;if((D|0)!=0?(a[D+43>>0]|0)==2:0)break;a[m+4>>0]=k}while(0);l=m+4|0}l=(a[l>>0]|0)==1?30904:30896;eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30920,-1,1,0)|0;th(Q,sh(Q,97,0,1,0)|0,l,0);sh(Q,35,1,1,0)|0;break a}case 19:{k=c[c[(c[z+(N<<4)+4>>2]|0)+4>>2]>>2]|0;D=x;c[D>>2]=-2;c[D+4>>2]=-1;if(R){fi(R,x)|0;m=x;l=c[m>>2]|0;m=c[m+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=x;c[l>>2]=-1;c[l+4>>2]=-1;l=-1;m=-1}D=k+160|0;c[D>>2]=l;c[D+4>>2]=m;k=c[k+208>>2]|0;if(k){D=k+16|0;c[D>>2]=l;c[D+4>>2]=m}}else{m=k+160|0;l=c[m>>2]|0;m=c[m+4>>2]|0}D=x;c[D>>2]=l;c[D+4>>2]=m;Ft(f,30952,l,m);break a}case 2:{if(!R){Ft(f,g,(c[30128+(t*12|0)>>2]&c[T+24>>2]|0)!=0&1,0);break a}l=c[30128+(t*12|0)>>2]|0;l=(a[T+63>>0]|0)==0?l&-524289:l;if(!((ei(R,1,0)|0)<<24>>24)){D=T+24|0;c[D>>2]=c[D>>2]&~l;if((l|0)==16777216){D=T+512|0;c[D>>2]=0;c[D+4>>2]=0}}else{D=T+24|0;c[D>>2]=c[D>>2]|l}sh(Q,144,0,0,0)|0;Ht(T);break a}case 28:{n=Kq(f)|0;eq(n,4);c[P>>2]=4;wr(f,N);if((((a[(c[n>>2]|0)+65>>0]|0)==0?(Tg(c[n+16>>2]|0,31232,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)?(Tg((c[n+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)?(Tg((c[n+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)Tg((c[n+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[(c[z+(N<<4)+12>>2]|0)+16>>2]|0;if(!l)break a;do{m=c[l+8>>2]|0;D=c[m>>2]|0;th(n,sh(n,97,0,1,0)|0,D,0);sh(n,28,0,2,0)|0;D=Ss(b[m+42>>1]|0)|0;sh(n,25,D,3,0)|0;D=Ss(b[m+28>>1]|0)|0;sh(n,25,D,4,0)|0;sh(n,35,1,4,0)|0;m=c[m+8>>2]|0;if(m)do{D=c[m>>2]|0;th(n,sh(n,97,0,2,0)|0,D,0);D=Ss(b[m+44>>1]|0)|0;sh(n,25,D,3,0)|0;D=Ss(b[c[m+8>>2]>>1]|0)|0;sh(n,25,D,4,0)|0;sh(n,35,1,4,0)|0;m=c[m+20>>2]|0}while((m|0)!=0);l=c[l>>2]|0}while((l|0)!=0);break}case 15:{if(!R)break a;p=Zp(T,R,I)|0;if(!p)break a;t=(c[30128+(t*12|0)>>2]|0)==0;q=p+46|0;D=t?3:6;o=b[(t?q:p+48|0)>>1]|0;r=o&65535;c[P>>2]=D;n=c[p+12>>2]|0;eq(Q,D);wr(f,N);if(((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31256,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!t?(a[(c[Q>>2]|0)+65>>0]|0)==0:0)?(Tg((c[Q+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(o<<16>>16))break a;m=p+4|0;l=p+28|0;k=p+32|0;p=n+4|0;n=0;do{D=b[(c[m>>2]|0)+(n<<1)>>1]|0;sh(Q,25,n,1,0)|0;o=D<<16>>16;sh(Q,25,o,2,0)|0;if(D<<16>>16<0)sh(Q,28,0,3,0)|0;else{D=c[(c[p>>2]|0)+(o*24|0)>>2]|0;th(Q,sh(Q,97,0,3,0)|0,D,0)}if(!t){sh(Q,25,d[(c[l>>2]|0)+n>>0]|0,4,0)|0;D=c[(c[k>>2]|0)+(n<<2)>>2]|0;th(Q,sh(Q,97,0,5,0)|0,D,0);sh(Q,25,(n|0)<(e[q>>1]|0)&1,6,0)|0}sh(Q,35,1,c[P>>2]|0,0)|0;n=n+1|0}while((n|0)<(r|0));break}case 5:{if(!R)break a;D=(ei(R,1,0)|0)<<24>>24!=0;C=D?32e3:19240;Mh(T,19248,2,1,C,40,0,0,0)|0;Mh(T,19248,3,1,C,40,0,0,0)|0;Mh(T,19232,2,1,10352,40,0,0,0)|0;Kt(T,19232,12);Kt(T,19248,D?12:4);break a}case 17:{g=a[S>>0]|0;x=(c[h>>2]|0)==0?-1:N;c[P>>2]=6;eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,31464,-1,1,0)|0;c[w>>2]=100;if(R){zn(R,w)|0;p=c[w>>2]|0;if((p|0)<1){c[w>>2]=100;p=100}}else p=100;sh(Q,25,p,1,0)|0;J=T+20|0;t=c[J>>2]|0;if((t|0)>0){I=(x|0)<0;m=Q+32|0;F=Q+4|0;E=Q+24|0;K=(g&-33)<<24>>24==81;L=0;do{if(I|(L|0)==(x|0)){wr(f,L);t=sh(Q,137,1,0,0)|0;sh(Q,24,0,0,0)|0;l=c[m>>2]|0;if(l>>>0>t>>>0)c[(c[F>>2]|0)+(t*20|0)+8>>2]=l;c[(c[E>>2]|0)+88>>2]=l+-1;k=(c[(c[O>>2]|0)+(L<<4)+12>>2]|0)+16|0;t=c[k>>2]|0;if(!t)g=0;else{g=0;do{l=c[t+8>>2]|0;if(!(a[l+44>>0]&32)){sh(Q,25,c[l+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[l+8>>2]|0;if(l)do{sh(Q,25,c[l+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[l+20>>2]|0}while((l|0)!=0);t=c[t>>2]|0}while((t|0)!=0)}z=c[P>>2]|0;t=g+8|0;c[P>>2]=(z|0)>(t|0)?z:t;sh(Q,127,2,g,1)|0;t=c[F>>2]|0;if(t)a[t+(((c[m>>2]|0)+-1|0)*20|0)+3>>0]=L;g=sh(Q,76,2,0,0)|0;c[D>>2]=c[(c[O>>2]|0)+(L<<4)>>2];t=qh(T,31480,D)|0;th(Q,sh(Q,97,0,3,0)|0,t,-1);sh(Q,32,2,4,1)|0;sh(Q,94,4,3,2)|0;sh(Q,35,2,1,0)|0;t=c[m>>2]|0;if(t>>>0>g>>>0)c[(c[F>>2]|0)+(g*20|0)+8>>2]=t;c[(c[E>>2]|0)+88>>2]=t+-1;t=c[k>>2]|0;if(!((t|0)==0|K))do{u=c[t+8>>2]|0;G=u+8|0;g=c[G>>2]|0;do if(g){e:do if(!(a[u+44>>0]&32))g=0;else while(1){if((a[g+51>>0]&3)==2)break e;g=c[g+20>>2]|0;if(!g){g=0;break}}while(0);l=sh(Q,137,1,0,0)|0;sh(Q,24,0,0,0)|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;Ys(f);lt(f,u,54,1,0,A,B)|0;sh(Q,25,0,7,0)|0;k=c[G>>2]|0;if(!k)l=8;else{l=0;while(1){sh(Q,25,0,l+8|0,0)|0;k=c[k+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}H=c[P>>2]|0;c[P>>2]=(H|0)>(l|0)?H:l;sh(Q,108,c[A>>2]|0,0,0)|0;H=sh(Q,37,7,1,0)|0;r=u+38|0;l=b[r>>1]|0;if(l<<16>>16>0){h=u+36|0;s=u+4|0;q=0;do{do if((q|0)!=(b[h>>1]|0)){if(!(a[(c[s>>2]|0)+(q*24|0)+20>>0]|0))break;jt(Q,u,c[A>>2]|0,q,3);l=c[F>>2]|0;if(l)a[l+(((c[m>>2]|0)+-1|0)*20|0)+3>>0]=-128;l=sh(Q,77,3,0,0)|0;sh(Q,37,1,-1,0)|0;n=c[(c[s>>2]|0)+(q*24|0)>>2]|0;c[D>>2]=c[u>>2];c[D+4>>2]=n;n=qh(T,31504,D)|0;th(Q,sh(Q,97,0,3,0)|0,n,-1);sh(Q,35,3,1,0)|0;n=sh(Q,137,1,0,0)|0;sh(Q,24,0,0,0)|0;o=c[m>>2]|0;if(o>>>0>l>>>0)c[(c[F>>2]|0)+(l*20|0)+8>>2]=o;l=o+-1|0;k=(c[E>>2]|0)+88|0;c[k>>2]=l;if(o>>>0>n>>>0)c[(c[F>>2]|0)+(n*20|0)+8>>2]=o;c[k>>2]=l;l=b[r>>1]|0}while(0);q=q+1|0}while((q|0)<(l<<16>>16|0))}l=c[G>>2]|0;if(l){w=u+4|0;v=0;o=0;k=-1;while(1){n=ts(Q)|0;if((g|0)!=(l|0)){k=Lt(f,l,c[A>>2]|0,0,0,C,o,k)|0;sh(Q,37,v+8|0,1,0)|0;u=e[l+48>>1]|0;n=sh(Q,69,(c[B>>2]|0)+v|0,n,k)|0;th(Q,n,u,-14);sh(Q,37,1,-1,0)|0;th(Q,sh(Q,97,0,3,0)|0,31528,-2);sh(Q,94,7,3,3)|0;th(Q,sh(Q,97,0,4,0)|0,31536,-2);sh(Q,94,4,3,3)|0;u=c[l>>2]|0;s=sh(Q,97,0,4,0)|0;th(Q,s,u,0);sh(Q,94,4,3,3)|0;sh(Q,35,3,1,0)|0;u=sh(Q,137,1,0,0)|0;sh(Q,24,0,0,0)|0;o=c[m>>2]|0;if(o>>>0>n>>>0)c[(c[F>>2]|0)+(n*20|0)+8>>2]=o;n=c[E>>2]|0;c[n+88>>2]=o+-1;if(a[l+50>>0]|0){h=ts(Q)|0;r=l+46|0;n=b[r>>1]|0;if(n<<16>>16){q=l+4|0;o=0;do{if(!(a[(c[w>>2]|0)+((b[(c[q>>2]|0)+(o<<1)>>1]|0)*24|0)+20>>0]|0)){sh(Q,76,o+k|0,h,0)|0;n=b[r>>1]|0}o=o+1|0}while((o|0)<(n&65535|0))}n=sh(Q,9,(c[B>>2]|0)+v|0,0,0)|0;sh(Q,16,0,h,0)|0;o=c[m>>2]|0;if(o>>>0>n>>>0)c[(c[F>>2]|0)+(n*20|0)+8>>2]=o;c[(c[E>>2]|0)+88>>2]=o+-1;n=e[r>>1]|0;th(Q,sh(Q,114,(c[B>>2]|0)+v|0,h,k)|0,n,-14);sh(Q,37,1,-1,0)|0;th(Q,sh(Q,97,0,3,0)|0,31560,-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;lq(c[z+(N<<4)+4>>2]|0,D);break a}case 32:{if(!R){if(!(c[2708]|0))break a;eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,31048,-1,1,0)|0;D=c[2708]|0;th(Q,sh(Q,97,0,1,0)|0,D,0);sh(Q,35,1,1,0)|0;break a}if((a[R>>0]|0)!=0?(C=c[T>>2]|0,C=(lc[c[C+32>>2]&31](C,R,1,r)|0)!=0,C|(c[r>>2]|0)==0):0){ph(f,31072,D);break a}if((d[T+64>>0]|0)<2)Gt(f)|0;Sc(c[2708]|0);if(!(a[R>>0]|0)){c[2708]=0;break a}else{c[D>>2]=R;c[2708]=Wc(10344,D)|0;break a}}case 24:{l=c[z+(N<<4)+4>>2]|0;if(R){c[D>>2]=0;zn(R,D)|0;D=c[D>>2]|0;c[T+72>>2]=D;if((tg(l,D,-1,0)|0)!=7)break a;a[T+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[(c[l+4>>2]|0)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Ft(f,30864,l,m);break a}case 9:{eq(Q,3);c[P>>2]=3;if(((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31288,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+80|0,31352,-1,1,0)|0;l=T+20|0;m=c[l>>2]|0;if((m|0)>0)n=0;else break a;do{if(c[(c[O>>2]|0)+(n<<4)+4>>2]|0){sh(Q,25,n,1,0)|0;k=c[(c[O>>2]|0)+(n<<4)>>2]|0;th(Q,sh(Q,97,0,2,0)|0,k,0);k=c[c[(c[(c[O>>2]|0)+(n<<4)+4>>2]|0)+4>>2]>>2]|0;if(!(a[k+15>>0]|0))k=c[k+168>>2]|0;else k=10360;th(Q,sh(Q,97,0,3,0)|0,k,0);sh(Q,35,1,3,0)|0;m=c[l>>2]|0}n=n+1|0}while((n|0)<(m|0));break}case 6:{eq(Q,2);c[P>>2]=2;if((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31288,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[T+436>>2]|0;if(!m)break a;else l=0;while(1){D=c[m+8>>2]|0;sh(Q,25,l,1,0)|0;D=c[D>>2]|0;th(Q,sh(Q,97,0,2,0)|0,D,0);sh(Q,35,1,2,0)|0;m=c[m>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!R)break a;k=Wh(T,R,I)|0;if(!k)break a;g=Kq(f)|0;n=c[k+16>>2]|0;if(!n)break a;eq(g,8);c[P>>2]=8;wr(f,N);do if((((a[(c[g>>2]|0)+65>>0]|0)==0?(Tg(c[g+16>>2]|0,31360,-1,1,0)|0,(a[(c[g>>2]|0)+65>>0]|0)==0):0)?(Tg((c[g+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[(c[g>>2]|0)+65>>0]|0)==0):0)?(Tg((c[g+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[(c[g>>2]|0)+65>>0]|0)==0):0){Tg((c[g+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[(c[g>>2]|0)+65>>0]|0)break;Tg((c[g+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[(c[g>>2]|0)+65>>0]|0)break;Tg((c[g+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[(c[g>>2]|0)+65>>0]|0)break;Tg((c[g+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[(c[g>>2]|0)+65>>0]|0)break;Tg((c[g+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);s=k+4|0;t=0;while(1){k=n+20|0;if((c[k>>2]|0)>0){m=n+25|0;l=n+26|0;q=n+8|0;h=0;do{r=c[n+(h<<3)+40>>2]|0;p=d[m>>0]|0;if((p|0)==8)o=32072;else if((p|0)==9)o=32088;else if((p|0)==6)o=32096;else if((p|0)==7)o=32056;else o=32112;p=d[l>>0]|0;if((p|0)==8)p=32072;else if((p|0)==9)p=32088;else if((p|0)==6)p=32096;else if((p|0)==7)p=32056;else p=32112;sh(g,25,t,1,0)|0;sh(g,25,h,2,0)|0;D=c[q>>2]|0;th(g,sh(g,97,0,3,0)|0,D,0);D=c[(c[s>>2]|0)+((c[n+(h<<3)+36>>2]|0)*24|0)>>2]|0;th(g,sh(g,97,0,4,0)|0,D,0);th(g,sh(g,(r|0)!=0?97:28,0,5,0)|0,r,0);th(g,sh(g,97,0,6,0)|0,p,0);th(g,sh(g,97,0,7,0)|0,o,0);th(g,sh(g,97,0,8,0)|0,31424,0);sh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[k>>2]|0))}n=c[n+4>>2]|0;if(!n)break;else t=t+1|0}break}case 16:{if(!R)break a;k=Wh(T,R,I)|0;if(!k)break a;n=Kq(f)|0;eq(n,5);c[P>>2]=5;wr(f,N);if(((((a[(c[n>>2]|0)+65>>0]|0)==0?(Tg(c[n+16>>2]|0,31288,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)?(Tg((c[n+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)?(Tg((c[n+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)?(Tg((c[n+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)Tg((c[n+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[k+8>>2]|0;if(!m)break a;else l=0;while(1){sh(n,25,l,1,0)|0;D=c[m>>2]|0;th(n,sh(n,97,0,2,0)|0,D,0);sh(n,25,(a[m+50>>0]|0)!=0&1,3,0)|0;D=c[31336+((a[m+51>>0]&3)<<2)>>2]|0;th(n,sh(n,97,0,4,0)|0,D,0);sh(n,25,(c[m+36>>2]|0)!=0&1,5,0)|0;sh(n,35,1,5,0)|0;m=c[m+20>>2]|0;if(!m)break;else l=l+1|0}break}case 11:{if(!R){if(Cn(f)|0)break a;eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,31784,-1,1,0)|0;sh(Q,97,0,1,0)|0;th(Q,-1,c[31632+(d[(c[f>>2]|0)+62>>0]<<3)>>2]|0,-2);sh(Q,35,1,1,0)|0;break a}k=c[(c[O>>2]|0)+12>>2]|0;if((b[k+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!($c(R,l)|0)){s=m;M=415;break}m=m+8|0;l=c[m>>2]|0}while((l|0)!=0);if((M|0)==415?(C=a[s+4>>0]|0,C=C<<24>>24==0?2:C,a[T+62>>0]=C,a[k+77>>0]=C,(c[s>>2]|0)!=0):0)break a;c[D>>2]=R;ph(f,31800,D);break a}case 0:{p=c[30128+(t*12|0)>>2]|0;C=Q+96|0;c[C>>2]=c[C>>2]|1<>2]|0)>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;l=m+1|0;c[D>>2]=0;zn(R,D)|0;k=c[k>>2]|0;if(k>>>0>l>>>0)c[(c[Q+4>>2]|0)+(l*20|0)+4>>2]=c[D>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;c[(c[Q+4>>2]|0)+(m*20|0)+8>>2]=p;break a}m=uh(Q,3,31848)|0;k=c[Q+32>>2]|0;if(k>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;m=m+1|0;if(k>>>0>m>>>0){c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;c[(c[Q+4>>2]|0)+(m*20|0)+12>>2]=p}eq(Q,1);if(a[(c[Q>>2]|0)+65>>0]|0)break a;Tg(c[Q+16>>2]|0,S,-1,1,-1)|0;break a}case 7:{eq(Q,1);c[P>>2]=1;if(!(a[(c[Q>>2]|0)+65>>0]|0)){Tg(c[Q+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{D=c[8648+(l<<2)>>2]|0;l=l+1|0;th(Q,sh(Q,97,0,1,0)|0,D,0);sh(Q,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[h>>2]|0)!=0?N:10;if(R)if($c(R,31880)|0)if(!($c(R,31888)|0))l=2;else{l=($c(R,31896)|0)==0;l=l?3:0}else l=1;else l=0;eq(Q,3);c[P>>2]=3;if(((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31912,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+80|0,31928,-1,1,0)|0;sh(Q,11,m,l,1)|0;sh(Q,35,1,3,0)|0;break a}case 26:{kf(T)|0;break a}case 34:{if(!R)l=c[T+216>>2]|0;else{c[D>>2]=0;zn(R,D)|0;l=c[D>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[T+216>>2]=m;c[T+220>>2]=l;l=m}if((l|0)==21){l=c[T+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Ft(f,31944,m,l);break a}case 27:{if((R|0)!=0?(fi(R,u)|0)==0:0){D=u;Lc(c[D>>2]|0,c[D+4>>2]|0)|0}C=(Hc()|0)==0;D=9032;Ft(f,31976,C?c[D>>2]|0:-1,C?c[D+4>>2]|0:-1);break a}case 33:{if((R|0)!=0?(B=(fi(R,p)|0)==0,D=p,C=c[D+4>>2]|0,B&((C|0)>-1|(C|0)==-1&(c[D>>2]|0)>>>0>4294967295)):0)c[T+132>>2]=0;D=c[T+132>>2]|0;Ft(f,31992,D,((D|0)<0)<<31>>31);break a}case 12:{g=c[P>>2]|0;E=g+1|0;F=g+5|0;G=g+6|0;c[P>>2]=G;H=Kq(f)|0;eq(H,4);if((((a[(c[H>>2]|0)+65>>0]|0)==0?(Tg(c[H+16>>2]|0,31232,-1,1,0)|0,(a[(c[H>>2]|0)+65>>0]|0)==0):0)?(Tg((c[H+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[(c[H>>2]|0)+65>>0]|0)==0):0)?(Tg((c[H+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[(c[H>>2]|0)+65>>0]|0)==0):0)Tg((c[H+16>>2]|0)+120|0,31440,-1,1,0)|0;wr(f,N);t=c[(c[(c[O>>2]|0)+(N<<4)+12>>2]|0)+16>>2]|0;if(!t)break a;r=(R|0)==0;h=f+68|0;s=H+32|0;A=H+4|0;B=H+24|0;C=g+2|0;D=g+3|0;x=g+4|0;q=f+8|0;while(1){if(r){y=c[t>>2]|0;z=c[t+8>>2]|0}else{y=0;z=oh(f,0,R,I)|0}if((z|0)!=0?(J=z+16|0,(c[J>>2]|0)!=0):0){cs(f,N,c[z+32>>2]|0,0,c[z>>2]|0);g=(b[z+38>>1]|0)+G|0;if((g|0)>(c[P>>2]|0))c[P>>2]=g;Mq(f,0,N,z,54);t=c[z>>2]|0;th(H,sh(H,97,0,E,0)|0,t,0);t=c[J>>2]|0;if(!t)g=1;else{g=1;do{l=Wh(T,c[t+8>>2]|0,I)|0;do if(l){c[L>>2]=0;cs(f,N,c[l+32>>2]|0,0,c[l>>2]|0);if(It(f,l,t,L,0)|0)break a;m=c[L>>2]|0;if(!m){Mq(f,g,N,l,54);break}else{sh(H,54,g,c[m+40>>2]|0,N)|0;w=c[q>>2]|0;th(w,-1,ds(f,m)|0,-6);break}}while(0);g=g+1|0;t=c[t+4>>2]|0}while((t|0)!=0)}if((c[h>>2]|0)<(g|0))c[h>>2]=g;p=sh(H,108,0,0,0)|0;g=c[J>>2]|0;if(g){w=z+36|0;v=1;while(1){u=g+8|0;t=Wh(T,c[u>>2]|0,I)|0;c[L>>2]=0;c[K>>2]=0;o=(t|0)!=0;do if(o){It(f,t,g,L,K)|0;l=c[L>>2]|0;m=ts(H)|0;if(!(o&(l|0)==0)){t=m;M=306;break}t=c[g+36>>2]|0;if((t|0)==(b[w>>1]|0))sh(H,103,0,G,0)|0;else{sh(H,47,0,t,G)|0;Jt(H,z,t,G);sh(H,76,G,m,0)|0;sh(H,38,G,(c[s>>2]|0)+3|0,0)|0}sh(H,70,v,0,G)|0;sh(H,16,0,m,0)|0;t=c[s>>2]|0;if(t>>>0>1)c[(c[A>>2]|0)+((t+-2|0)*20|0)+8>>2]=t;c[(c[B>>2]|0)+88>>2]=t+-1;t=m}else{t=ts(H)|0;l=0;M=306}while(0);do if((M|0)==306){M=0;n=g+20|0;m=c[n>>2]|0;if((m|0)>0){k=0;do{m=c[K>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;O=k+G|0;jt(H,z,0,c[m>>2]|0,O);sh(H,76,O,t,0)|0;k=k+1|0;m=c[n>>2]|0}while((k|0)<(m|0))}if(!o)break;k=kt(H,l)|0;l=c[n>>2]|0;th(H,sh(H,49,G,m,F)|0,k,l);th(H,sh(H,69,v,t,F)|0,0,-14)}while(0);sh(H,103,0,C,0)|0;l=c[u>>2]|0;th(H,sh(H,97,0,D,0)|0,l,0);sh(H,25,v+-1|0,x,0)|0;sh(H,35,E,4,0)|0;l=c[B>>2]|0;m=~t;do if((t|0)<0){t=c[l+112>>2]|0;if(!t)break;c[t+(m<<2)>>2]=c[s>>2]}while(0);c[l+88>>2]=(c[s>>2]|0)+-1;ig(T,c[K>>2]|0);g=c[g+4>>2]|0;if(!g)break;else v=v+1|0}}sh(H,9,0,p+1|0,0)|0;g=c[s>>2]|0;if(g>>>0>p>>>0)c[(c[A>>2]|0)+(p*20|0)+8>>2]=g;c[(c[B>>2]|0)+88>>2]=g+-1}if(!y)break;else t=y}break}case 10:{n=1<>2]=c[C>>2]|n;if(R){c[D>>2]=0;zn(R,D)|0;k=c[D>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;D=c[f+408>>2]|0;wr(f,N);D=((D|0)==0?f:D)+328|0;c[D>>2]=c[D>>2]|n;sh(Q,25,k,1,0)|0;sh(Q,52,N,3,1)|0;c[(c[z+(N<<4)+12>>2]|0)+80>>2]=k;lq(c[z+(N<<4)+4>>2]|0,k);break a}eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30848,-1,1,0)|0;c[P>>2]=(c[P>>2]|0)+2;k=uh(Q,9,30808)|0;l=c[Q+32>>2]|0;if(l>>>0>k>>>0)c[(c[Q+4>>2]|0)+(k*20|0)+4>>2]=N;m=k+1|0;if(l>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;m=k+6|0;if(l>>>0<=m>>>0)break a;c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=2e3;break a}case 1:{k=c[z+(N<<4)+4>>2]|0;if(!R){m=c[k+4>>2]|0;c[m+4>>2]=c[k>>2];if(!(a[m+17>>0]|0)){m=0;l=0}else{l=(a[m+18>>0]|0)==0;m=l?1:2;l=l?0:0}Ft(f,30976,m,l);break a}if($c(R,32192)|0)if($c(R,31880)|0)if(!($c(R,32200)|0))m=2;else{c[D>>2]=0;zn(R,D)|0;m=c[D>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[T+67>>0]=m;o=m+-1|0;if(!((rn(k,m)|0)==0&o>>>0<2))break a;l=uh(Q,6,30992)|0;n=c[Q+32>>2]|0;if(n>>>0>l>>>0)c[(c[Q+4>>2]|0)+(l*20|0)+4>>2]=N;k=l+1|0;if(n>>>0>k>>>0)c[(c[Q+4>>2]|0)+(k*20|0)+4>>2]=N;k=l+2|0;m=l+4|0;if(n>>>0>k>>>0)c[(c[Q+4>>2]|0)+(k*20|0)+8>>2]=m;if(n>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=o;m=l+5|0;if(n>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;D=Q+96|0;c[D>>2]=c[D>>2]|1<>2]|0,!(D|(m|0)<1)):0)){c[q>>2]=2147483647;m=2147483647}l=c[f+408>>2]|0;wr(f,N);l=((l|0)==0?f:l)+328|0;c[l>>2]=c[l>>2]|1<>2]|0;if(l>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+8>>2]=l;c[(c[Q+24>>2]|0)+88>>2]=l+-1;break a}case 18:{eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30936,-1,1,0)|0;f:do if(R){k=R;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;m=k-R&1073741823;k=0;while(1){if(!(Bc(R,c[32216+(k<<2)>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){M=91;break f}}if((k|0)!=-1)n=N;else M=91}else M=91;while(0);if((M|0)==91)if(!(c[y>>2]|0)){c[y>>2]=1;k=-1;n=0}else{k=-1;n=N}m=c[T+20>>2]|0;if((m|0)>0){l=Q+96|0;do{m=m+-1|0;do if(c[(c[O>>2]|0)+(m<<4)+4>>2]|0){if((m|0)!=(n|0)?(c[y>>2]|0)!=0:0)break;c[l>>2]=c[l>>2]|1<0)}sh(Q,35,1,1,0)|0;break a}default:{if(!R)l=c[T+492>>2]|0;else{c[D>>2]=0;zn(R,D)|0;l=c[D>>2]|0;D=(l|0)>0;l=D?l:0;c[T+444>>2]=D?74:0;c[T+448>>2]=D?T:0;c[o>>2]=0;c[T+492>>2]=l}Ft(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[n>>2]|0;if(k){c[D>>2]=k;ph(f,10344,D);Sc(c[n>>2]|0)}D=f+64|0;c[D>>2]=(c[D>>2]|0)+1;c[f+12>>2]=g;break}}while(0);ig(T,S);ig(T,R)}}while(0);i=U;return}function Cr(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;a:do if(!d)d=0;else{f=d;while(1){if((a[f>>0]|0)==-121){d=c[b>>2]|0;if(!(a[(c[d>>2]|0)+145>>0]|0))break;a[f>>0]=101}d=c[f+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Dr(b,c[e>>2]|0)|0){d=1;break a}}else if(br(b,c[e>>2]|0)|0){d=1;break a}if(Cr(b,c[f+16>>2]|0)|0){d=1;break a}f=c[f+12>>2]|0;if(!f){d=0;break a}}c[g>>2]=c[b+16>>2];ph(d,29984,g);d=1}while(0);i=h;return d|0}function Dr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[b>>2]|0)>0:0){d=0;e=c[b+4>>2]|0;while(1){if(Cr(a,c[e>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[b>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Er(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;th(a,sh(a,122,b,0,0)|0,d,-1);d=c[(c[a>>2]|0)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[e>>2]|0;a=0;do{b=b|1<>2]=b}return}function Fr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Qr(a,0,e)|0;d=d+24|0;gg(c[a>>2]|0,c[d>>2]|0);c[d>>2]=f;if(f){d=f+40|0;b[d>>1]=(b[d>>1]|0)+1<<16>>16}e=(Nt(a,e)|0)==0;return (e?f:0)|0}function Gr(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))ba();m=n;a:do if((b|0)!=0?(f=c[a+12>>2]|0,(c[b>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[g>>2]|0)){e=l+4|0;d=c[e>>2]|0;if((d|0)!=0?($c(d,f)|0)!=0:0)break;ig(c[c[a>>2]>>2]|0,d);c[e>>2]=0;c[l>>2]=c[h>>2]}if(br(a,c[l+20>>2]|0)|0){d=1;break a}if(Cr(a,c[l+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[b>>2]|0)){d=0;break a}else l=l+72|0}b=c[a>>2]|0;l=c[a+20>>2]|0;c[m>>2]=c[a+16>>2];c[m+4>>2]=l;c[m+8>>2]=d;ph(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Hr(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))ba();e=f;g=c[b>>2]|0;if((((a[g+145>>0]|0)==0?(a[b+18>>0]|0)==0:0)?(c[g+24>>2]&2048|0)==0:0)?(Bc(d,25568,7)|0)==0:0){c[e>>2]=d;ph(b,28440,e);b=1}else b=0;i=f;return b|0}function Ir(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,n=0,o=0,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();u=v;do if(d){r=e&1;t=(f|0)!=0;if(t){g=c[f>>2]|0;p=32768}else{g=Ot(d,e)|0;g=ih(b,g,((g|0)<0)<<31>>31)|0;p=0}c[u>>2]=g;if(g){l=(r|0)==0;if(!l)if(!(c[d+12>>2]|0))o=(c[d+20>>2]|0)==0?16396:8220;else o=8220;else o=48;q=o&60;s=d+4|0;m=c[s>>2]|0;if((m&1024|0)==0?(h=c[d+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;n=(k-h&1073741823)+1|0}else n=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;gw(g|0,d|0,k|0)|0;bw(g+k|0,0,48-k|0)|0}else gw(g|0,d|0,q|0)|0;m=g+4|0;h=o&24576|p|c[m>>2]&-122881;c[m>>2]=h;if(n){h=g+q|0;c[g+8>>2]=h;gw(h|0,c[d+8>>2]|0,n|0)|0;h=c[m>>2]|0}k=c[s>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[g+20>>2]=Lr(b,c[h>>2]|0,r)|0;break}else{c[g+20>>2]=cr(b,c[h>>2]|0,r)|0;break}}while(0);h=c[m>>2]|0;if(!(h&24576)){if(c[s>>2]&16384)break;c[g+12>>2]=Ir(b,c[d+12>>2]|0,0,0)|0;c[g+16>>2]=Ir(b,c[d+16>>2]|0,0,0)|0;break}r=Pt(d,e)|0;c[u>>2]=(c[u>>2]|0)+r;if(h&8192){c[g+12>>2]=Ir(b,c[d+12>>2]|0,1,u)|0;c[g+16>>2]=Ir(b,c[d+16>>2]|0,1,u)|0}if(t)c[f>>2]=c[u>>2]}}else g=0;while(0);i=v;return g|0}function Jr(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=ih(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[d+4>>2]=c[g>>2];e=ih(a,c[g>>2]<<3,0)|0;c[d>>2]=e;if(!e){ig(a,d);d=0;break}if((c[g>>2]|0)>0){f=0;while(1){h=c[b>>2]|0;c[e+(f<<3)>>2]=gh(a,c[h+(f<<3)>>2]|0)|0;c[e+(f<<3)+4>>2]=c[h+(f<<3)+4>>2];f=f+1|0;if((f|0)>=(c[g>>2]|0))break a;e=c[d>>2]|0}}}else d=0;while(0);return d|0}function Kr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[f>>2]|0)+40|0;b=ih(b,g,0)|0;if(b){bw(b|0,0,g|0)|0;g=b+40|0;gw(g|0,c[e>>2]|0,c[f>>2]|0)|0;c[b+12>>2]=g;c[b+16>>2]=c[f>>2];a[b>>0]=d}return b|0}function Lr(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=ih(b,8,0)|0,(f|0)!=0):0){g=c[d>>2]|0;c[f>>2]=g;if(!(e&1)){h=c[d>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=ih(b,g*20|0,0)|0;c[f+4>>2]=g;if(!g){ig(b,f);f=0;break}if((c[d>>2]|0)>0){i=0;h=c[d+4>>2]|0;while(1){c[g>>2]=Ir(b,c[h>>2]|0,e,0)|0;c[g+4>>2]=gh(b,c[h+4>>2]|0)|0;c[g+8>>2]=gh(b,c[h+8>>2]|0)|0;a[g+12>>0]=a[h+12>>0]|0;j=g+13|0;k=a[j>>0]|0;a[j>>0]=k&-2;a[j>>0]=a[h+13>>0]&2|k&-4;c[g+16>>2]=c[h+16>>2];i=i+1|0;if((i|0)>=(c[d>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Mr(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))ba();k=o;l=c[a>>2]|0;f=c[b+20>>2]|0;a:do if(f){e=c[l+20>>2]|0;if((e|0)>0){d=c[l+16>>2]|0;h=0;while(1){g=h+1|0;if((c[d+(h<<4)+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=Zm((c[b+24>>2]|0)+8|0,c[b+4>>2]|0,k)|0;if(!d)f=0;else f=c[d+8>>2]|0;d=c[(c[l+16>>2]|0)+(g<<4)>>2]|0;e=(g|0)==1;if((((Oq(a,e?14:16,c[b>>2]|0,c[f>>2]|0,d)|0)==0?(Oq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Kq(a)|0,(m|0)!=0):0)?(n=c[a+408>>2]|0,wr(a,g),n=((n|0)==0?a:n)+328|0,c[n>>2]=c[n>>2]|1<>2]|0,0),th(m,n+4|0,10720,-2),zr(a,g),sh(m,61,0,0,0)|0,n=c[b>>2]|0,th(m,sh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[n>>2]|0)<3):0)c[n>>2]=3;i=o;return}function Nr(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,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();m=s;q=c[d>>2]|0;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;c[m+24>>2]=0;c[m+28>>2]=0;c[m>>2]=d;do if(h)if((a[h>>0]|0)!=27)if(!(hs(m,h)|0)){r=5;break}else{r=13;break}else{a[h>>0]=97;r=5;break}else r=5;while(0);a:do if((r|0)==5){do if(k)if((a[k>>0]|0)!=27)if(!(hs(m,k)|0))break;else{r=13;break a}else{a[k>>0]=97;break}while(0);do if(l)if((a[l>>0]|0)!=27)if(!(hs(m,l)|0))break;else{r=13;break a}else{a[l>>0]=97;break}while(0);if(g){if((a[g>>0]|0)==97)g=c[g+8>>2]|0;else g=0;if(Oq(d,e,g,0,0)|0)break}p=Kq(d)|0;m=d+60|0;g=c[m>>2]|0;n=d+56|0;o=c[n>>2]|0;if((o|0)<4){o=d+72|0;g=c[o>>2]|0;c[o>>2]=g+4;g=g+1|0}else{c[m>>2]=g+4;c[n>>2]=o+-4}Nq(d,h,g);Nq(d,k,g+1|0);Nq(d,l,g+2|0);if(p){g=g+3|0;sh(p,1,0,g-(b[f>>1]|0)|0,g)|0;g=c[p+4>>2]|0;if(g)a[g+(((c[p+32>>2]|0)+-1|0)*20|0)+3>>0]=b[f>>1];th(p,-1,f,-5);sh(p,144,(e|0)==24&1,0,0)|0}}while(0);if((r|0)==13){f=d+64|0;c[f>>2]=(c[f>>2]|0)+1}Ck(q,h);Ck(q,k);Ck(q,l);i=s;return}function Or(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))ba();l=m;g=m+4|0;h=c[b>>2]|0;a:do if(!(Cn(b)|0)){if(!d){Qt(b,0);break}if(!((e|0)!=0?(c[e>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Sq(c[b>>2]|0,d)|0;if(!f)break a;if(!(Un(h,a[h+62>>0]|0,f,0)|0)){ig(h,f);break}else{Qt(b,f);ig(h,f);break a}}while(0);d=ar(b,d,e,g)|0;if((d|0)>=0?(k=Sq(h,c[g>>2]|0)|0,(k|0)!=0):0){e=c[(c[h+16>>2]|0)+(d<<4)>>2]|0;f=Wh(h,k,e)|0;if(f){Rt(b,f,0);ig(h,k);break}e=Zp(h,k,e)|0;ig(h,k);if(!e){ph(b,28872,l);break}else{f=c[b+408>>2]|0;wr(b,d);f=((f|0)==0?b:f)+328|0;c[f>>2]=c[f>>2]|1<=(j|0))ba();f=h;g=c[a>>2]|0;if(!(Cn(a)|0)){do if(!b){b=g+20|0;e=c[b>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){St(a,d);e=c[b>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[d+4>>2]|0){e=ar(a,b,d,f)|0;if((e|0)<=-1)break;e=c[(c[g+16>>2]|0)+(e<<4)>>2]|0;b=Sq(g,c[f>>2]|0)|0;if(!b)break;d=Zp(g,b,e)|0;if(!d){e=oh(a,0,b,e)|0;if(e)Tt(a,e,0)}else Tt(a,c[d+12>>2]|0,d);ig(g,b);break}d=Sq(g,b)|0;e=Rh(g,d)|0;ig(g,d);if((e|0)>-1){St(a,e);break}d=Sq(g,b)|0;if(d){e=Zp(g,d,0)|0;if(!e){e=oh(a,0,d,0)|0;if(e)Tt(a,e,0)}else Tt(a,c[e+12>>2]|0,e);ig(g,d)}}while(0);e=Kq(a)|0;if(e)sh(e,144,0,0,0)|0}i=h;return}function Qr(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>>2]|0;if(!f)e=d+4|0;else{i=c[a>>2]|0;g=c[i+20>>2]|0;i=c[i+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[i+(h<<4)+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 oh(a,b,c[d+8>>2]|0,c[e>>2]|0)|0}function Rr(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))ba();f=g;if(d){e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Bc(d,25568,7)|0)==0:0){c[f>>2]=d;ph(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Sr(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))ba();e=f;if(!b){c[e>>2]=d;a=qh(a,25992,e)|0}else{c[e>>2]=b;c[e+4>>2]=d;e=qh(a,26e3,e)|0;ig(a,b);a=e}i=f;return a|0}function Tr(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))ba();g=h;e=c[a>>2]|0;f=c[(c[e+16>>2]|0)+28>>2]|0;if((c[b+68>>2]|0)!=(f|0)?(d=ws(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[b+20>>2]|0)==(f|0))d=Sr(e,d,c[b>>2]|0)|0;b=c[b+32>>2]|0}while((b|0)!=0);if(d){b=c[a>>2]|0;c[g>>2]=d;b=qh(b,25968,g)|0;ig(c[a>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Ur(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,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;o=Kq(a)|0;if(o){e=c[a>>2]|0;h=c[b+68>>2]|0;a:do if(h){k=c[e+20>>2]|0;if((k|0)>0){f=c[e+16>>2]|0;g=0;while(1){e=g+1|0;if((c[f+(g<<4)+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=ws(a,b)|0;if(e)do{f=c[a>>2]|0;l=c[e+20>>2]|0;b:do if(l){m=c[f+20>>2]|0;if((m|0)>0){k=c[f+16>>2]|0;h=0;while(1){f=h+1|0;if((c[k+(h<<4)+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>>2]|0;th(o,sh(o,126,f,0,0)|0,m,0);e=c[e+32>>2]|0}while((e|0)!=0);e=c[b>>2]|0;th(o,sh(o,124,g,0,0)|0,e,0);e=c[a>>2]|0;c[n>>2]=d;e=qh(e,25952,n)|0;if((e|0)!=0?(Er(o,g,e),p=Tr(a,b)|0,(p|0)!=0):0)Er(o,1,p)}i=q;return}
function ch(f){f=f|0;var g=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.0,z=0,A=0.0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,gc=0,jc=0,kc=0,mc=0,oc=0,qc=0,rc=0,sc=0,tc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Ic=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Tc=0,Uc=0,Vc=0,Wc=0,Xc=0,Yc=0,ad=0,bd=0,ed=0,fd=0,gd=0,hd=0,id=0,jd=0,kd=0,ld=0,md=0,nd=0,od=0,pd=0,qd=0,rd=0,sd=0,td=0,ud=0,vd=0,wd=0,xd=0,yd=0,zd=0,Ad=0,Bd=0,Cd=0,Dd=0,Ed=0,Fd=0,Gd=0,Hd=0,Id=0,Jd=0,Kd=0,Ld=0,Md=0,Nd=0,Od=0,Pd=0,Qd=0,Rd=0,Sd=0,Td=0,Ud=0,Vd=0,Wd=0,Xd=0,Yd=0,Zd=0,_d=0,$d=0,ae=0,be=0,ce=0,de=0,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0;ke=i;i=i+1040|0;if((i|0)>=(j|0))ba();ge=ke+400|0;Qc=ke+792|0;fd=ke+392|0;ad=ke+788|0;Pd=ke+320|0;jd=ke+784|0;md=ke+780|0;nd=ke+280|0;Kd=ke+680|0;Yc=ke+240|0;Nd=ke+200|0;Xc=ke+676|0;Uc=ke+672|0;Ld=ke+160|0;Rc=ke+644|0;qd=ke+152|0;Gd=ke+112|0;hd=ke+640|0;Id=ke+636|0;Vc=ke+632|0;rd=ke+628|0;xd=ke+624|0;td=ke+604|0;yd=ke+600|0;ld=ke+596|0;ud=ke+576|0;Pc=ke+840|0;zd=ke+572|0;Md=ke+104|0;Ad=ke+568|0;bd=ke+564|0;ed=ke+96|0;Od=ke+88|0;Bd=ke+560|0;Cd=ke+556|0;Dd=ke+552|0;vd=ke+532|0;wd=ke+512|0;gd=ke+508|0;sd=ke+504|0;Wc=ke+488|0;Jd=ke+48|0;Tc=ke+456|0;Oc=ke+444|0;Hd=ke+8|0;pd=ke+440|0;Fd=ke+412|0;Ed=ke;wc=f+4|0;o=c[wc>>2]|0;he=c[f>>2]|0;Gc=a[he+62>>0]|0;Kc=f+8|0;v=c[Kc>>2]|0;je=he+32|0;l=je;m=c[l>>2]|0;l=c[l+4>>2]|0;ie=f+80|0;a:do if((c[ie>>2]|0)==7){u=he+65|0;v=f+44|0;n=m;g=0;p=0;m=0;ee=1317}else{c[ie>>2]=0;$d=f+136|0;c[$d>>2]=0;c[$d+4>>2]=0;$d=f+20|0;c[$d>>2]=0;c[he+452>>2]=0;zc=he+240|0;b:do if(!(c[zc>>2]|0)){Zd=he+292|0;if(c[Zd>>2]|0){n=c[f+124>>2]|0;g=he+300|0;u=c[g>>2]|0;if(!n)vc=g;else{vc=g;u=(n>>>0)%(u>>>0)|0}}else{vc=he+300|0;u=0}de=f+76|0;ce=he+65|0;Vd=he+296|0;pb=f+176|0;qb=f+184|0;rb=f+92|0;sb=he+80|0;tb=he+84|0;ub=Gc&255;vb=Gc<<24>>24==1;wb=he+88|0;xb=f+60|0;Wd=f+144|0;be=f+86|0;fe=f+44|0;yb=f+12|0;zb=Rc+4|0;Ab=Rc+16|0;Bb=Rc+12|0;Cb=Rc+25|0;Db=Rc+20|0;Eb=f+200|0;Fb=f+56|0;Xd=f+72|0;Gb=Gd+16|0;Hb=Gd+8|0;Ib=Gd+24|0;Jb=f+87|0;Yd=he+156|0;Kb=he+500|0;Lb=he+496|0;ae=he+63|0;Mb=he+488|0;Nb=he+504|0;Ob=he+512|0;Pb=he+70|0;Qb=he+24|0;Rb=he+20|0;Td=he+16|0;Sb=he+4|0;Ud=f+88|0;Tb=f+104|0;Ub=f+152|0;Vb=f+160|0;Wb=he+152|0;Xb=he+64|0;_b=td+4|0;$b=td+6|0;ac=td+8|0;bc=ud+4|0;cc=ud+8|0;dc=he+212|0;ec=he+208|0;gc=f+116|0;jc=vd+4|0;kc=vd+6|0;mc=vd+8|0;oc=Yc+8|0;qc=Yc+32|0;rc=Yc+24|0;sc=Yc+16|0;tc=Yc+12|0;uc=wd+4|0;V=wd+6|0;W=wd+8|0;X=nd+8|0;Y=nd+32|0;aa=nd+24|0;ca=nd+12|0;da=nd+16|0;ea=he+164|0;fa=Wc+8|0;ga=Wc+4|0;ha=he+145|0;ia=Wc+12|0;ja=Pd+4|0;ka=Pd+12|0;la=Pd+16|0;ma=Pd+20|0;na=Pd+24|0;oa=Pd+28|0;pa=Pd+8|0;qa=Pd+40|0;ra=Pd+44|0;sa=Pd+48|0;ta=Pd+52|0;ua=Pd+56|0;va=Pd+60|0;wa=Pd+64|0;xa=Pd+65|0;ya=he+128|0;za=f+28|0;Aa=f+36|0;Ba=f+32|0;Ca=f+196|0;Da=Tc+4|0;Ea=Tc+8|0;Fa=Jd+8|0;Ga=Jd+32|0;Ha=Jd+24|0;Ia=Tc+20|0;Ja=Tc+12|0;Ka=Tc+16|0;La=Tc+24|0;Ma=Oc+8|0;Na=Oc+4|0;Oa=he+148|0;Pa=he+176|0;Qa=he+72|0;Ra=he+67|0;Sa=Qc+20|0;Ta=Qc+24|0;Ua=Qc+4|0;Va=Qc+16|0;Wa=he+304|0;Xa=he+328|0;Ya=Hd+32|0;Za=Hd+8|0;_a=Hd+24|0;$a=he+308|0;ab=Fd+20|0;bb=he+69|0;_d=f+168|0;cb=nd+4|0;db=nd+8|0;eb=nd+12|0;fb=nd+16|0;gb=nd+20|0;hb=nd+24|0;ib=nd+25|0;jb=he+180|0;kb=Ld+32|0;lb=Ld+8|0;mb=Ld+12|0;nb=Ld+16|0;ob=Ld+24|0;T=0;U=0;g=0;r=0;p=c[de>>2]|0;t=0;c:while(1){n=m;d:while(1){if(a[ce>>0]|0){u=ce;v=fe;m=t;ee=1317;break a}m=g+1|0;if(!(a[o+(p*20|0)+2>>0]&2))J=r;else{r=c[o+(p*20|0)+8>>2]|0;g=v+(r*40|0)|0;r=v+(r*40|0)+8|0;if(b[r>>1]&9312)rg(g);b[r>>1]=4;J=g}z=o+(p*20|0)|0;G=a[z>>0]|0;r=G&255;e:do switch(r|0){case 20:{g=m;m=n;ee=24;break d}case 21:{g=m;m=n;r=J;ee=25;break d}case 22:{g=m;m=n;r=J;ee=26;break d}case 23:{g=m;m=n;r=J;n=p;ee=27;break d}case 24:{g=m;m=n;r=J;n=p;ee=28;break d}case 29:{g=m;m=n;n=p;ee=65;break d}case 30:{g=m;m=n;r=J;n=p;ee=66;break d}case 28:{g=m;m=n;r=J;n=p;ee=60;break d}case 32:{g=m;m=n;n=p;ee=72;break d}case 17:{g=m;m=n;r=J;ee=22;break d}case 18:{g=m;m=n;r=J;ee=23;break d}case 25:{g=m;m=n;r=J;n=p;ee=44;break d}case 26:{g=m;m=n;r=J;n=p;ee=45;break d}case 133:{g=m;m=n;r=J;n=p;ee=46;break d}case 97:{a[z>>0]=27;z=o+(p*20|0)+16|0;s=c[z>>2]|0;if(!s)g=0;else{g=s;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-s&1073741823}w=o+(p*20|0)+4|0;c[w>>2]=g;if(vb)r=0;else{r=Tg(J,s,-1,1,0)|0;if((r|0)==18){g=m;m=n;q=t;ee=1316;break c}if(Ul(J,ub)|0){u=ce;v=fe;g=m;m=t;ee=1317;break a}c[J+24>>2]=0;g=J+8|0;b[g>>1]=e[g>>1]|2048;g=o+(p*20|0)+1|0;if((a[g>>0]|0)==-1)ig(he,c[z>>2]|0);a[g>>0]=-1;s=c[J+16>>2]|0;c[z>>2]=s;g=c[J+12>>2]|0;c[w>>2]=g}if((g|0)>(c[wb>>2]|0)){g=m;m=n;q=t;ee=1316;break c}else ee=57;break}case 31:{g=m;m=n;r=J;n=p;ee=67;break d}case 34:{g=m;m=n;n=p;ee=79;break d}case 35:{g=m;m=n;q=t;ee=80;break c}case 33:{g=m;m=n;ee=74;break d}case 94:{g=m;m=n;ee=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=z;m=n;n=p;ee=112;break d}case 27:{s=c[o+(p*20|0)+16>>2]|0;g=c[o+(p*20|0)+4>>2]|0;r=0;ee=57;break}case 16:{p=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=0;ee=19;break}case 36:{g=m;m=n;G=J;n=p;ee=166;break d}case 1:{S=a[o+(p*20|0)+3>>0]|0;z=S&255;x=c[yb>>2]|0;g=v+((c[o+(p*20|0)+12>>2]|0)*40|0)|0;c[Rc>>2]=g;if(S<<24>>24){w=0;g=v+((c[o+(p*20|0)+8>>2]|0)*40|0)|0;while(1){c[x+(w<<2)>>2]=g;if((b[g+8>>1]&4096)!=0?(Rl(g)|0)!=0:0){u=ce;v=fe;g=m;m=t;ee=1317;break a}w=w+1|0;if((w|0)>=(z|0))break;else g=g+40|0}g=c[Rc>>2]|0}S=c[o+(p*20|0)+16>>2]|0;c[zb>>2]=S;c[Ab>>2]=p;c[Bb>>2]=f;R=g+8|0;b[R>>1]=e[R>>1]&48640|1;a[Cb>>0]=0;R=je;c[R>>2]=n;c[R+4>>2]=l;ic[c[S+12>>2]&63](Rc,z,x);l=je;n=c[l>>2]|0;l=c[l+4>>2]|0;if(!(a[Cb>>0]|0))g=0;else{if(!(c[Db>>2]|0))g=0;else{c[ge>>2]=Og(c[Rc>>2]|0,1)|0;$g(fe,he,10344,ge);g=c[Db>>2]|0}am(f,p,c[o+(p*20|0)+4>>2]|0)}Ul(c[Rc>>2]|0,ub)|0;s=c[Rc>>2]|0;w=e[s+8>>1]|0;if(w&18){r=c[s+12>>2]|0;if(w&16384)r=(c[s>>2]|0)+r|0;if((r|0)>(c[(c[s+32>>2]|0)+88>>2]|0)){g=m;m=n;q=t;ee=1316;break c}else{z=J;R=p;r=g}}else{z=J;R=p;r=g}break}case 88:case 87:case 86:case 85:{g=m;E=z;m=n;n=p;ee=184;break d}case 39:{g=m;m=n;G=J;n=p;ee=208;break d}case 37:{g=m;m=n;r=J;n=p;ee=202;break d}case 38:{g=m;m=n;G=J;n=p;ee=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;F=G;m=n;r=J;ee=213;break d}case 40:{S=c[o+(p*20|0)+4>>2]|0;g=v+(S*40|0)|0;if(!(b[v+(S*40|0)+8>>1]&16384))r=0;else r=Ng(g)|0;cm(g,c[o+(p*20|0)+8>>2]&255,Gc);z=J;R=p;break}case 41:{g=m;m=n;r=J;n=p;ee=248;break d}case 42:{g=m;m=n;r=J;n=p;ee=249;break d}case 43:{g=m;m=n;r=J;ee=256;break d}case 71:case 72:{g=m;m=n;n=p;ee=261;break d}case 76:{g=m;m=n;r=J;n=p;ee=286;break d}case 19:{g=m;m=n;n=p;ee=268;break d}case 96:{g=m;m=n;n=p;ee=273;break d}case 44:{g=m;m=n;r=J;n=p;ee=278;break d}case 46:case 45:{g=m;m=n;r=J;n=p;ee=281;break d}case 77:{g=m;m=n;r=J;n=p;ee=288;break d}case 47:{g=m;m=n;r=J;ee=290;break d}case 48:{g=m;m=n;r=J;n=p;ee=368;break d}case 49:{g=m;m=n;ee=371;break d}case 50:{B=c[c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]>>2]|0;f:do if(c[B+60>>2]|0){g=mm(B)|0;if(!g){K=B+76|0;I=B+44|0;w=B+72|0;s=0;r=0;g:while(1){z=b[K>>1]|0;G=c[B+(z<<16>>16<<2)+120>>2]|0;if(!(a[G+5>>0]|0)){if(!(a[G+2>>0]|0)){s=fw(e[G+18>>1]|0,0,s|0,r|0)|0;r=C}}else{s=fw(e[G+18>>1]|0,0,s|0,r|0)|0;r=C;while(1){if(!(z<<16>>16))break g;if(G){xg(c[G+68>>2]|0);z=b[K>>1]|0}z=z+-1<<16>>16;b[K>>1]=z;b[I>>1]=0;a[w>>0]=d[w>>0]&249;G=z<<16>>16;x=B+(G<<1)+78|0;F=b[x>>1]|0;G=c[B+(G<<2)+120>>2]|0;if((F&65535)<(e[G+18>>1]|0)){z=F;break}}b[x>>1]=z+1<<16>>16;G=b[K>>1]|0;z=G;G=c[B+(G<<16>>16<<2)+120>>2]|0}z=b[B+(z<<16>>16<<1)+78>>1]|0;x=c[G+56>>2]|0;if(z<<16>>16==(b[G+18>>1]|0)){g=d[G+6>>0]|0;g=nm(B,d[x+(g+9)>>0]<<16|d[x+(g+8)>>0]<<24|d[x+(g+10)>>0]<<8|d[x+(g+11)>>0])|0}else{g=(z&65535)<<1;S=c[G+64>>2]|0;g=(d[S+g>>0]<<8|d[S+(g|1)>>0])&e[G+20>>1];g=nm(B,d[x+(g+1)>>0]<<16|d[x+g>>0]<<24|d[x+(g+2)>>0]<<8|d[x+(g+3)>>0])|0}if(g){s=0;r=0;break f}}g=mm(B)|0}else{s=0;r=0}}else{g=0;s=0;r=0}while(0);z=J;c[z>>2]=s;c[z+4>>2]=r;z=J;R=p;r=g;break}case 2:{O=c[o+(p*20|0)+4>>2]|0;s=c[o+(p*20|0)+16>>2]|0;if(!O){g=m;m=n;r=J;n=p;ee=446;break d}w=c[Mb>>2]|0;if(!w){o=s;g=m;m=n;q=t;ee=460;break c}else g=0;while(1){if(!($c(c[w>>2]|0,s)|0)){G=g;break}w=c[w+24>>2]|0;if(!w){o=s;g=m;m=n;q=t;ee=460;break c}else g=g+1|0}K=(O|0)==1;if((c[Yd>>2]|0)>0&K){g=m;m=n;q=t;ee=462;break c}I=w+24|0;if(!(c[I>>2]|0)){x=(a[Pb>>0]|0)!=0;if(x&K){g=pm(f,1)|0;if(g)break a;a[ae>>0]=1;if((Nl(f)|0)==5){g=p;ee=467;break c}a[Pb>>0]=0;x=1;r=c[ie>>2]|0}else ee=469}else{x=0;ee=469}if((ee|0)==469){ee=0;s=(c[Lb>>2]|0)-G+-1|0;if((O|0)==2){z=(c[Qb>>2]|0)>>>1&1;if((c[Rb>>2]|0)>0){G=z^1;F=0;while(1){E=El(c[(c[Td>>2]|0)+(F<<4)+4>>2]|0,516,G)|0;F=F+1|0;if(E){g=m;m=n;q=E;ee=1318;break c}g=c[Rb>>2]|0;if((F|0)>=(g|0)){ee=475;break}}}}else{g=c[Rb>>2]|0;z=0;ee=475}if((ee|0)==475){ee=0;if((g|0)>0){B=0;do{G=qm(c[(c[Td>>2]|0)+(B<<4)+4>>2]|0,O,s)|0;B=B+1|0;if(G){g=m;m=n;q=G;ee=1318;break c}}while((B|0)<(c[Rb>>2]|0))}}if(!z){G=s;r=0}else{z=c[Sb>>2]|0;if(z)do{S=z+88|0;b[S>>1]=b[S>>1]|8;z=c[z+52>>2]|0}while((z|0)!=0);Ag(he);c[Qb>>2]=c[Qb>>2]|2;G=s;r=0}}z=c[Mb>>2]|0;if((z|0)!=(w|0))do{c[Mb>>2]=c[z+24>>2];ig(he,z);c[Lb>>2]=(c[Lb>>2]|0)+-1;z=c[Mb>>2]|0}while((z|0)!=(w|0));if(K){c[Mb>>2]=c[I>>2];ig(he,w);if(x){z=J;R=p;break e}else{g=m;z=O;m=n;x=G;r=J;n=p;ee=486;break d}}else{S=w+8|0;R=c[S+4>>2]|0;Q=Nb;c[Q>>2]=c[S>>2];c[Q+4>>2]=R;Q=w+16|0;R=c[Q+4>>2]|0;S=Ob;c[S>>2]=c[Q>>2];c[S+4>>2]=R;if(x){z=J;R=p;break e}else{z=O;g=m;m=n;x=G;r=J;n=p;ee=488;break d}}}case 3:{q=t;ee=489;break c}case 4:{w=o+(p*20|0)+8|0;g=c[w>>2]|0;if((g|0)!=0?(c[Qb>>2]&33554432|0)!=0:0){g=m;m=n;q=8;ee=1318;break c}F=o+(p*20|0)+4|0;G=c[(c[Td>>2]|0)+(c[F>>2]<<4)+4>>2]|0;if(!G){r=0;w=0;g=0}else{z=ug(G,g)|0;if((z|0)==5){g=p;ee=508;break c}else if(z){g=m;m=n;q=z;ee=1318;break c}do if((c[w>>2]|0)!=0?(b[Ud>>1]&32)!=0:0){if((a[ae>>0]|0)!=0?(c[Wb>>2]|0)<=1:0){g=0;break}g=c[Tb>>2]|0;if(!g){g=(c[Kb>>2]|0)+1|0;c[Kb>>2]=g;g=(c[Lb>>2]|0)+g|0;c[Tb>>2]=g}g=om(he,0,g+-1|0)|0;if(!g){g=c[Tb>>2]|0;S=c[G+4>>2]|0;c[S+4>>2]=c[G>>2];g=dl(c[S>>2]|0,g)|0}S=Nb;R=c[S+4>>2]|0;Q=Ub;c[Q>>2]=c[S>>2];c[Q+4>>2]=R;Q=Ob;R=c[Q+4>>2]|0;S=Vb;c[S>>2]=c[Q>>2];c[S+4>>2]=R}else g=0;while(0);r=c[G+4>>2]|0;c[r+4>>2]=c[G>>2];r=c[(c[r+12>>2]|0)+56>>2]|0;r=d[r+41>>0]<<16|d[r+40>>0]<<24|d[r+42>>0]<<8|d[r+43>>0];w=c[(c[(c[Td>>2]|0)+(c[F>>2]<<4)+12>>2]|0)+4>>2]|0}if(a[o+(p*20|0)+3>>0]|0){if((r|0)!=(c[o+(p*20|0)+12>>2]|0)){g=m;o=F;m=n;q=t;ee=522;break c}if((w|0)!=(c[o+(p*20|0)+16>>2]|0)){g=m;o=F;m=n;q=t;ee=522;break c}else{z=J;R=p;r=g}}else{z=J;R=p;r=g}break}case 53:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;if((g|0)!=0?(c[g+28>>2]|0)==(c[o+(p*20|0)+8>>2]|0):0){w=o+(p*20|0)+3|0;r=0;ee=548}else ee=536;break}case 51:{g=m;m=n;r=J;n=p;ee=525;break d}case 52:{x=o+(p*20|0)+4|0;w=c[x>>2]|0;g=c[Td>>2]|0;z=c[o+(p*20|0)+12>>2]|0;s=v+(z*40|0)|0;r=Rg(s)|0;S=s;c[S>>2]=r;c[S+4>>2]=C;z=v+(z*40|0)+8|0;b[z>>1]=e[z>>1]&48640|4;z=o+(p*20|0)+8|0;r=zg(c[g+(w<<4)+4>>2]|0,c[z>>2]|0,r)|0;z=c[z>>2]|0;if((z|0)==1){c[c[g+(w<<4)+12>>2]>>2]=c[s>>2];c[Qb>>2]=c[Qb>>2]|2}else if((z|0)==2)a[(c[g+(w<<4)+12>>2]|0)+76>>0]=c[s>>2];if((c[x>>2]|0)==1){g=c[Sb>>2]|0;if(g)do{S=g+88|0;b[S>>1]=b[S>>1]|8;g=c[g+52>>2]|0}while((g|0)!=0);b[Ud>>1]=b[Ud>>1]&-9;z=J;R=p}else{z=J;R=p}break}case 55:case 54:{ee=536;break}case 57:case 56:{w=tm(f,c[o+(p*20|0)+4>>2]|0,c[o+(p*20|0)+8>>2]|0,-1,1)|0;if(!w){u=ce;v=fe;g=m;m=t;ee=1317;break a}a[w+25>>0]=1;G=w+27|0;a[G>>0]=a[G>>0]|1;g=w+4|0;F=o+(p*20|0)+3|0;r=vm(c[he>>2]|0,0,he,g,d[F>>0]|5,1054)|0;do if(!r){r=ug(c[g>>2]|0,1)|0;if(!r){x=c[o+(p*20|0)+16>>2]|0;z=c[g>>2]|0;if(!x){r=um(z,1,1,0,c[w>>2]|0)|0;a[G>>0]=a[G>>0]|4;break}r=wm(z,rd,d[F>>0]|2)|0;if(!r){c[w+8>>2]=x;r=um(c[g>>2]|0,c[rd>>2]|0,1,x,c[w>>2]|0)|0}a[G>>0]=a[G>>0]&-5}}while(0);a[G>>0]=((a[F>>0]|0)!=8&1)<<3&255|a[G>>0]&-9;z=J;R=p;break}case 58:{g=m;m=n;ee=558;break d}case 60:{g=m;m=n;r=J;ee=568;break d}case 61:{g=m;m=n;r=J;n=p;ee=570;break d}case 59:{g=m;m=n;r=J;n=p;ee=566;break d}case 65:case 64:case 63:case 62:{g=m;w=r;m=n;r=J;n=p;ee=571;break d}case 66:{g=m;m=n;r=J;n=p;ee=596;break d}case 69:case 68:case 67:{g=m;I=z;m=n;r=J;ee=597;break d}case 73:{g=m;m=n;r=J;n=p;ee=624;break d}case 70:{S=c[o+(p*20|0)+12>>2]|0;g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;r=c[g>>2]|0;c[zd>>2]=0;S=v+(S*40|0)|0;R=c[S>>2]|0;S=c[S+4>>2]|0;r=ym(r,0,R,S,0,zd)|0;s=g+48|0;c[s>>2]=R;c[s+4>>2]=S;a[g+25>>0]=0;c[g+60>>2]=0;a[g+26>>0]=0;s=c[zd>>2]|0;if(s)p=(c[o+(p*20|0)+8>>2]|0)+-1|0;c[g+12>>2]=s;z=J;R=p;break}case 74:{K=Md;c[K>>2]=0;c[K+4>>2]=0;c[Ad>>2]=0;K=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;g=c[K>>2]|0;if(!g){r=0;s=0;g=0}else{s=K+27|0;do if(!(a[s>>0]&2)){z=Dm(g,Ad)|0;if(z){g=m;m=n;q=z;ee=1318;break c}if(c[Ad>>2]|0){S=Md;c[S>>2]=1;c[S+4>>2]=0;break}gm(c[K>>2]|0,Md);r=Md;g=c[r>>2]|0;r=c[r+4>>2]|0;if((g|0)==-1&(r|0)==2147483647){a[s>>0]=a[s>>0]|2;break}else{R=fw(g|0,r|0,1,0)|0;S=Md;c[S>>2]=R;c[S+4>>2]=C;break}}while(0);G=c[o+(p*20|0)+12>>2]|0;if(G){g=c[pb>>2]|0;if(!g)z=v;else{while(1){w=c[g+4>>2]|0;if(!w)break;else g=w}z=c[g+16>>2]|0}F=z+(G*40|0)|0;x=Rg(F)|0;g=C;S=F;c[S>>2]=x;c[S+4>>2]=g;S=z+(G*40|0)+8|0;b[S>>1]=e[S>>1]&48640|4;if((x|0)==-1&(g|0)==2147483647){g=m;m=n;q=13;ee=1318;break c}if(a[s>>0]&2){g=m;m=n;q=13;ee=1318;break c}w=Md;r=c[w>>2]|0;w=c[w+4>>2]|0;z=fw(x|0,g|0,1,0)|0;x=C;if((w|0)<(x|0)|(w|0)==(x|0)&r>>>0>>0){w=Md;c[w>>2]=z;c[w+4>>2]=x;w=x}else z=r;S=F;c[S>>2]=z;c[S+4>>2]=w}h:do if(!(a[s>>0]&2))g=0;else{r=0;while(1){_c(8,Md);S=Md;S=fw(c[S>>2]|0,c[S+4>>2]&1073741823|0,1,0)|0;g=C;R=Md;c[R>>2]=S;c[R+4>>2]=g;g=ym(c[K>>2]|0,0,S,g,0,Ad)|0;if(c[Ad>>2]|g)break h;r=r+1|0;if((r|0)>=100){g=m;m=n;q=13;ee=1318;break c}}}while(0);a[K+26>>0]=0;c[K+60>>2]=0;s=Md;r=c[s>>2]|0;s=c[s+4>>2]|0}z=J;c[z>>2]=r;c[z+4>>2]=s;z=J;R=p;r=g;break}case 84:case 75:{g=m;z=G;m=n;r=J;n=p;ee=647;break d}case 95:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;r=Fm(c[g>>2]|0)|0;c[g+60>>2]=0;if((((r|0)==0?(Dc=c[dc>>2]|0,(Dc|0)!=0):0)?(Ec=c[o+(p*20|0)+16>>2]|0,(Ec|0)!=0):0)?(a[g+27>>0]&4)!=0:0){S=g+48|0;Zb[Dc&1](c[ec>>2]|0,9,c[(c[Td>>2]|0)+(a[g+24>>0]<<4)>>2]|0,Ec,c[S>>2]|0,c[S+4>>2]|0)}if(!(c[o+(p*20|0)+8>>2]&1)){z=J;R=p}else{c[rb>>2]=(c[rb>>2]|0)+1;z=J;R=p}break}case 98:{g=m;m=n;r=J;n=p;ee=671;break d}case 99:{g=m;m=n;r=J;n=p;ee=672;break d}case 100:{r=c[o+(p*20|0)+8>>2]|0;z=v+(r*40|0)|0;g=c[(c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0)+56>>2]|0;if(!(a[g+56>>0]|0)){w=c[g+36>>2]|0;g=w;w=w+8|0}else{S=c[g+20>>2]|0;w=c[(c[S+8>>2]|0)+4>>2]|0;S=c[S+12>>2]|0;g=S+(w*56|0)+20|0;w=c[S+(w*56|0)+32>>2]|0}g=c[g>>2]|0;if(!(bh(z,g)|0)){c[v+(r*40|0)+12>>2]=g;S=v+(r*40|0)+8|0;b[S>>1]=e[S>>1]&48640|16;gw(c[v+(r*40|0)+16>>2]|0,w|0,g|0)|0;r=0}else r=7;c[(c[(c[Fb>>2]|0)+(c[o+(p*20|0)+12>>2]<<2)>>2]|0)+60>>2]=0;R=p;break}case 102:case 101:{s=c[o+(p*20|0)+8>>2]|0;G=v+(s*40|0)|0;x=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;z=c[x>>2]|0;x=x+27|0;if(a[x>>0]&4){hm(z,bd);g=c[bd>>2]|0;if(g>>>0>(c[wb>>2]|0)>>>0){g=m;m=n;q=t;ee=1316;break c}}else{gm(z,ed);Q=ed;g=c[Q>>2]|0;Q=c[Q+4>>2]|0;S=c[wb>>2]|0;R=((S|0)<0)<<31>>31;if((Q|0)>(R|0)|(Q|0)==(R|0)&g>>>0>S>>>0){g=m;m=n;q=t;ee=1316;break c}c[bd>>2]=g}if(bh(G,g>>>0>32?g:32)|0){u=ce;v=fe;g=m;m=t;ee=1317;break a}c[v+(s*40|0)+12>>2]=g;w=v+(s*40|0)+8|0;b[w>>1]=e[w>>1]&48640|16;w=c[bd>>2]|0;g=c[v+(s*40|0)+16>>2]|0;if(!(a[x>>0]&4))r=Hm(z,0,w,g,0)|0;else r=zh(z,0,w,g)|0;a[v+(s*40|0)+10>>0]=1;z=G;R=p;break}case 103:{r=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;s=r+25|0;if(a[s>>0]|0){g=m;m=n;r=J;n=p;ee=700;break d}do if(!(a[r+26>>0]|0)){g=c[r+32>>2]|0;if(g){S=c[g>>2]|0;r=nc[c[(c[S>>2]|0)+48>>2]&127](g,Od)|0;Im(f,S);break}if((a[(c[r>>2]|0)+73>>0]|0)!=1){z=fm(r)|0;if(z){g=m;m=n;q=z;ee=1318;break c}if(a[s>>0]|0){g=m;m=n;r=J;n=p;ee=708;break d}}gm(c[r>>2]|0,Od);r=0}else{R=r+48|0;S=c[R+4>>2]|0;r=Od;c[r>>2]=c[R>>2];c[r+4>>2]=S;r=0}while(0);S=Od;R=c[S+4>>2]|0;z=J;c[z>>2]=c[S>>2];c[z+4>>2]=R;z=J;R=p;break}case 108:{ee=715;break}case 104:{g=m;m=n;r=J;n=p;ee=711;break d}case 107:case 106:{c[gc>>2]=(c[gc>>2]|0)+1;ee=715;break}case 105:{R=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;r=c[R>>2]|0;c[Bd>>2]=0;r=Dm(r,Bd)|0;S=c[Bd>>2]|0;a[R+25>>0]=S;a[R+26>>0]=0;c[R+60>>2]=0;R=c[o+(p*20|0)+8>>2]|0;z=J;R=(R|0)>0&(S|0)!=0?R+-1|0:p;break}case 7: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(he,fe,43232)|0;if(r)break;r=pn(he,fe,43392)|0;if(!r)G=0;else break;do{r=d[43576+G>>0]|0;sm(I,r,ad);r=zg(O,r,(d[43576+(G|1)>>0]|0)+(c[ad>>2]|0)|0)|0;G=G+2|0;if(r)break i}while((G|0)<10);E=c[P>>2]|0;c[E+4>>2]=c[I>>2];G=c[O>>2]|0;K=O+4|0;F=c[K>>2]|0;c[F+4>>2]=G;E=c[(c[E>>2]|0)+60>>2]|0;D=c[E>>2]|0;if(D){S=c[F+32>>2]|0;S=ow(c[F+44>>2]|0,0,S|0,((S|0)<0)<<31>>31|0)|0;r=fd;c[r>>2]=S;c[r+4>>2]=C;r=Yb[c[D+40>>2]&63](E,11,fd)|0;r=(r|0)==12?0:r;if(r)break;G=c[O>>2]|0}S=Qc+0|0;D=S+48|0;do{c[S>>2]=0;S=S+4|0}while((S|0)<(D|0));c[Sa>>2]=G;c[Ta>>2]=O;c[Ua>>2]=I;c[Va>>2]=1;cd(Qc,2147483647)|0;r=dd(Qc)|0;if(r){z=c[c[(c[Ua>>2]|0)+4>>2]>>2]|0;if(a[z+15>>0]|0)break;if(a[z+12>>0]|0)break;tn(z);break}r=(c[P>>2]|0)+22|0;b[r>>1]=e[r>>1]&65533;r=qn(O)|0;if(r)break;G=c[K>>2]|0;c[G+4>>2]=c[O>>2];if(!(a[G+17>>0]|0))B=0;else B=(a[G+18>>0]|0)==0?1:2;rn(I,B)|0;r=tg(I,c[(c[K>>2]|0)+32>>2]|0,R,1)|0}else r=7}}}}while(0);c[Qb>>2]=Q;c[sb>>2]=L;c[tb>>2]=s;c[Pa>>2]=g;tg(I,-1,-1,1)|0;a[ae>>0]=1;if(w){S=w+4|0;Il(c[S>>2]|0);c[S>>2]=0;c[w+12>>2]=0}Ag(he);z=J;R=p;break}case 143:{S=c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)+4>>2]|0;F=c[S+4>>2]|0;c[F+4>>2]=c[S>>2];if(!(a[F+17>>0]|0)){g=m;m=n;r=J;ee=1157;break d}B=F+44|0;E=c[B>>2]|0;x=F+12|0;z=c[(c[x>>2]|0)+56>>2]|0;z=d[z+37>>0]<<16|d[z+36>>0]<<24|d[z+38>>0]<<8|d[z+39>>0];D=Al(F,E,z)|0;if(E>>>0>>0){g=m;m=n;q=t;ee=1145;break c}if(!z){g=m;m=n;r=J;ee=1157;break d}G=F+8|0;w=c[G>>2]|0;do if(w){z=w;do{if(z){ee=1150;break}z=c[2]|0}while((z|0)!=0);if((ee|0)==1150){ee=0;r=Bl(z,0,0)|0;if(r)break;w=c[G>>2]|0}if(w){do{S=w+72|0;a[S>>0]=d[S>>0]&251;w=c[w+8>>2]|0}while((w|0)!=0);ee=1154}else ee=1154}else ee=1154;while(0);if((ee|0)==1154){ee=0;r=Cl(F,D,E,0)|0;if(!r){r=Cg(c[(c[x>>2]|0)+68>>2]|0)|0;S=c[(c[x>>2]|0)+56>>2]|0;R=c[B>>2]|0;a[S+28>>0]=R>>>24;a[S+29>>0]=R>>>16;a[S+30>>0]=R>>>8;a[S+31>>0]=R}}if((r|0)==101){g=m;m=n;r=J;ee=1157;break d}else{z=J;R=p}break}case 145:{g=c[o+(p*20|0)+12>>2]|0;if((g&255|0)==0?(c[Qb>>2]&16384|0)!=0:0){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}z=c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)+4>>2]|0;x=c[o+(p*20|0)+8>>2]|0;if(!(a[z+9>>0]|0)){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}w=g+1&255;s=z+4|0;c[(c[s>>2]|0)+4>>2]=c[z>>2];r=Zk(z,x,w)|0;if(!r){g=m;m=n;r=J;n=p;ee=1166;break d}if((r&255|0)!=6){g=m;m=n;o=r;q=t;ee=1309;break c}c[ge>>2]=c[o+(p*20|0)+16>>2];$g(fe,he,42224,ge);z=J;R=p;break}case 144:{g=m;m=n;r=J;n=p;ee=1158;break d}case 146:{G=c[o+(p*20|0)+16>>2]|0;r=c[Wa>>2]|0;w=(r|0)>0;if(w?(c[Xa>>2]|0)==0:0){r=6;ee=1188}else ee=1179;j:do if((ee|0)==1179){ee=0;if(!G){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}g=G+8|0;s=(c[c[g>>2]>>2]|0)+56|0;if(c[s>>2]|0){if(w){z=c[Xa>>2]|0;x=0;do{if((c[z+(x<<2)>>2]|0)==(G|0)){r=0;ee=1188;break j}x=x+1|0}while((x|0)<(r|0))}r=un(he)|0;if(!r){r=hc[c[s>>2]&127](c[g>>2]|0)|0;if(!r){r=c[Wa>>2]|0;c[Wa>>2]=r+1;c[(c[Xa>>2]|0)+(r<<2)>>2]=G;r=G+12|0;c[r>>2]=(c[r>>2]|0)+1;r=0}}else ee=1188}else r=0}while(0);if((ee|0)==1188){ee=0;if(!G){z=J;R=p;break e}g=G+8|0}Im(f,c[g>>2]|0);z=J;R=p;break}case 147:{S=Hd+0|0;D=S+40|0;do{c[S>>2]=0;S=S+4|0}while((S|0)<(D|0));c[Ya>>2]=he;g=Wg(Hd,v+((c[o+(p*20|0)+8>>2]|0)*40|0)|0)|0;r=Og(Hd,1)|0;k:do if(r){w=Wh(he,r,c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)>>2]|0)|0;g=c[c[w+56>>2]>>2]|0;r=Zm($a,g,Uc)|0;if((r|0)!=0?(Lc=c[r+8>>2]|0,(Lc|0)!=0):0){g=vn(he,w,Lc,c[(c[Lc>>2]|0)+4>>2]|0,fe)|0;if(g)break;w=w+60|0;g=c[w>>2]|0;if(!g){g=0;break}while(1){if((c[g>>2]|0)==(he|0))break;g=c[g+24>>2]|0;if(!g){g=0;break k}}g=un(he)|0;if(g)break;g=c[w>>2]|0;l:do if(!g)g=0;else while(1){if((c[g>>2]|0)==(he|0))break l;g=c[g+24>>2]|0;if(!g){g=0;break}}while(0);S=c[Wa>>2]|0;c[Wa>>2]=S+1;c[(c[Xa>>2]|0)+(S<<2)>>2]=g;g=g+12|0;c[g>>2]=(c[g>>2]|0)+1;g=0;break}c[ge>>2]=g;c[fe>>2]=qh(he,28320,ge)|0;g=1}while(0);if((b[Za>>1]&9312)==0&(c[_a>>2]|0)==0){z=J;R=p;r=g}else{Mg(Hd);z=J;R=p;r=g}break}case 148:{c[ea>>2]=(c[ea>>2]|0)+1;g=Wh(he,c[o+(p*20|0)+16>>2]|0,c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)>>2]|0)|0;m:do if((g|0)!=0?(Mc=g+60|0,Nc=c[Mc>>2]|0,(Nc|0)!=0):0){r=Nc;do{if((c[(c[r+8>>2]|0)+4>>2]|0)>0){r=6;break m}r=c[r+24>>2]|0}while((r|0)!=0);g=Kk(he,g)|0;s=g+8|0;r=hc[c[(c[c[g+4>>2]>>2]|0)+20>>2]&127](c[s>>2]|0)|0;if(!r){c[s>>2]=0;c[Mc>>2]=0;wn(g);r=0}}else r=0;while(0);c[ea>>2]=(c[ea>>2]|0)+-1;z=J;R=p;break}case 149:{g=m;m=n;r=J;n=p;ee=1213;break d}case 150:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;z=c[o+(p*20|0)+12>>2]|0;x=v+(z*40|0)|0;if(a[g+25>>0]|0){g=m;m=n;r=J;n=p;ee=1226;break d}S=g+32|0;r=c[c[S>>2]>>2]|0;R=c[r>>2]|0;c[Fd+0>>2]=0;c[Fd+4>>2]=0;c[Fd+8>>2]=0;c[Fd+12>>2]=0;c[Fd+16>>2]=0;c[Fd+20>>2]=0;c[Fd+24>>2]=0;c[Fd>>2]=x;w=v+(z*40|0)+8|0;b[w>>1]=e[w>>1]&48640|1;S=Yb[c[R+44>>2]&63](c[S>>2]|0,Fd,c[o+(p*20|0)+8>>2]|0)|0;Im(f,r);r=c[ab>>2]|0;r=(r|0)==0?S:r;Ul(x,ub)|0;w=e[w>>1]|0;if(w&18){g=c[v+(z*40|0)+12>>2]|0;if(w&16384)g=(c[x>>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 14:{x=c[o+(p*20|0)+12>>2]|0;z=x+1|0;D=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;G=c[D+32>>2]|0;F=c[G>>2]|0;E=c[F>>2]|0;B=c[v+(z*40|0)>>2]|0;x=c[v+(x*40|0)>>2]|0;w=c[yb>>2]|0;if((B|0)>0){g=0;do{S=g;g=g+1|0;c[w+(S<<2)>>2]=v+((g+z|0)*40|0)}while((g|0)!=(B|0))}r=pc[c[E+32>>2]&31](G,x,c[o+(p*20|0)+16>>2]|0,B,w)|0;Im(f,F);if((r|0)==0?(hc[c[E+40>>2]&127](G)|0)!=0:0)p=(c[o+(p*20|0)+8>>2]|0)+-1|0;a[D+25>>0]=0;z=J;R=p;break}case 151:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;if(a[g+25>>0]|0){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}g=g+32|0;s=c[g>>2]|0;S=c[s>>2]|0;r=c[S>>2]|0;s=hc[c[r+36>>2]&127](s)|0;Im(f,S);if((s|0)==0?(hc[c[r+40>>2]&127](c[g>>2]|0)|0)!=0:0){r=0;ee=19;break e}p=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=s;ee=19;break}case 15:{D=o+(p*20|0)+16|0;g=c[(c[D>>2]|0)+8>>2]|0;if(!g){g=m;m=n;o=6;q=t;ee=1309;break c}w=c[g>>2]|0;if(!w){g=m;m=n;o=6;q=t;ee=1309;break c}F=c[o+(p*20|0)+8>>2]|0;B=w+52|0;z=c[B>>2]|0;if(!z){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}E=a[bb>>0]|0;G=c[yb>>2]|0;if((F|0)>0){z=0;x=v+((c[o+(p*20|0)+12>>2]|0)*40|0)|0;while(1){c[G+(z<<2)>>2]=x;z=z+1|0;if((z|0)==(F|0))break;else x=x+40|0}z=c[B>>2]|0}x=o+(p*20|0)+3|0;a[bb>>0]=a[x>>0]|0;r=lc[z&31](g,F,G,Ed)|0;a[bb>>0]=E;Im(f,g);if(!r){if(c[o+(p*20|0)+4>>2]|0){l=Ed;n=c[l>>2]|0;l=c[l+4>>2]|0;S=je;c[S>>2]=n;c[S+4>>2]=l}}else if((r&255|0)==19?(a[(c[D>>2]|0)+16>>0]|0)!=0:0){g=a[x>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}a[be>>0]=g;z=J;R=p;break e}c[rb>>2]=(c[rb>>2]|0)+1;z=J;R=p;break}case 152:{g=c[(c[o+(p*20|0)+16>>2]|0)+8>>2]|0;r=c[o+(p*20|0)+4>>2]|0;s=v+(r*40|0)|0;if(((b[v+(r*40|0)+8>>1]&2)!=0?(a[v+(r*40|0)+10>>0]|0)!=1:0)?(Sd=xn(s,1)|0,(Sd|0)!=0):0){g=m;m=n;o=Sd;q=t;ee=1309;break c}r=nc[c[(c[g>>2]|0)+76>>2]&127](g,c[v+(r*40|0)+16>>2]|0)|0;Im(f,g);b[Ud>>1]=b[Ud>>1]&-9;z=J;R=p;break}case 153:{g=m;m=n;r=J;n=p;ee=1257;break d}case 155:{g=m;m=n;ee=1264;break d}case 154:{g=m;m=n;G=J;n=p;ee=1258;break d}default:{g=m;m=n;Q=v;w=o;R=T;S=U;r=J;n=p;break d}}while(0);n:do if((ee|0)==57){ee=0;w=J+8|0;b[w>>1]=2562;c[J+16>>2]=s;c[J+12>>2]=g;a[J+10>>0]=Gc;if((a[o+(p*20|0)+3>>0]|0)!=0?(S=v+((c[o+(p*20|0)+12>>2]|0)*40|0)|0,!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)):0){b[w>>1]=2576;z=J;R=p}else{z=J;R=p}}else if((ee|0)==536){if(b[Ud>>1]&8){g=m;m=n;o=516;q=t;ee=1309;break c}z=c[o+(p*20|0)+8>>2]|0;F=c[o+(p*20|0)+12>>2]|0;g=c[Td>>2]|0;E=c[g+(F<<4)+4>>2]|0;if(G<<24>>24==55){g=a[(c[g+(F<<4)+12>>2]|0)+76>>0]|0;if((g&255)<(d[Jb>>0]|0)){a[Jb>>0]=g;G=1}else G=1}else G=0;w=o+(p*20|0)+3|0;if(a[w>>0]&4){S=v+(z*40|0)|0;g=Rg(S)|0;c[S>>2]=g;c[S+4>>2]=C;S=v+(z*40|0)+8|0;b[S>>1]=e[S>>1]&48640|4;if((g|0)<2){g=m;m=n;o=t;ee=542;break c}else B=g}else B=z;r=o+(p*20|0)+1|0;z=a[r>>0]|0;if(z<<24>>24==-6){x=c[o+(p*20|0)+16>>2]|0;z=(e[x+8>>1]|0)+(e[x+6>>1]|0)|0}else if(z<<24>>24==-14){z=c[o+(p*20|0)+16>>2]|0;x=0}else{z=0;x=0}g=tm(f,c[o+(p*20|0)+4>>2]|0,z,F,1)|0;if(!g){u=ce;v=fe;g=m;m=t;ee=1317;break a}a[g+25>>0]=1;S=g+27|0;a[S>>0]=a[S>>0]|8;c[g+28>>2]=B;ee=um(E,B,G,x,c[g>>2]|0)|0;c[g+8>>2]=x;a[S>>0]=((a[r>>0]|0)!=-6&1)<<2&255|a[S>>0]&-5;r=ee;ee=548}else if((ee|0)==715){ee=0;H=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;x=c[H+56>>2]|0;do if(!x){r=c[H>>2]|0;g=mm(r)|0;if(!g)if(!(a[r+73>>0]|0)){w=1;g=0}else{w=0;g=Rm(r)|0}else w=1;a[H+26>>0]=0;c[H+60>>2]=0;a[H+25>>0]=w;if(!w){z=J;R=p;r=g;break n}}else{do if(!(a[x+56>>0]|0)){g=x+36|0;if(!(c[g>>2]|0)){g=0;ee=756}else{g=Jm(x+64|0,g)|0;ee=755}}else{g=Km(x)|0;if(!g){S=x+59|0;o:do if(!(a[S>>0]|0)){r=0;g=0}else{I=0;w=0;p:while(1){R=x+(I<<6)+64|0;c[ge>>2]=0;Q=x+(I<<6)+92|0;z=c[Q>>2]|0;G=((z|0)<0)<<31>>31;do if((z|0)>16){F=16;E=0;B=0;while(1){F=ew(F|0,E|0,4)|0;E=C;D=B+1|0;if(!((E|0)<(G|0)|(E|0)==(G|0)&F>>>0>>0)){E=B;break}else B=D}P=Pd;c[P>>2]=0;c[P+4>>2]=0;if((z|0)<17){ee=726;break}r=Mm(16)|0;c[ge>>2]=r;G=(r|0)==0;F=c[Q>>2]|0;if(!((F|0)>0&(G^1))){g=G?7:0;break}L=(E|0)>0;P=0;O=0;do{c[nd>>2]=0;g=F-P|0;g=Lm(R,(g|0)<16?g:16,Pd,nd)|0;if(g){ee=747;break p}g=Nm(R,c[nd>>2]|0,md)|0;do if(L){F=1;G=1;do{G=G<<4;F=F+1|0}while((F|0)!=(D|0));if(!g){K=1;F=r}else{G=c[md>>2]|0;ee=743;break}while(1){s=(c[F+12>>2]|0)+((((O|0)/(G|0)|0|0)%16|0)*56|0)+48|0;F=c[s>>2]|0;if(!F){F=Mm(16)|0;if(!F){g=7;ee=738;break}g=Nm(R,F,s)|0;if(g){ee=738;break}F=c[s>>2]|0}F=c[F+4>>2]|0;K=K+1|0;if((K|0)>=(D|0)){ee=740;break}else G=(G|0)/16|0}if((ee|0)==738){G=c[md>>2]|0;ee=743;break}else if((ee|0)==740){G=c[md>>2]|0;ee=742;break}}else{G=c[md>>2]|0;if(!g){F=r;ee=742}else ee=743}while(0);if((ee|0)==742){ee=0;c[(c[F+12>>2]|0)+(((O|0)%16|0)*56|0)+48>>2]=G;g=0}else if((ee|0)==743){ee=0;Om(G)}O=O+1|0;P=P+16|0;F=c[Q>>2]|0}while((P|0)<(F|0)&(g|0)==0)}else{ee=Pd;c[ee>>2]=0;c[ee+4>>2]=0;ee=726}while(0);if((ee|0)==726){ee=0;g=Lm(R,z,Pd,ge)|0;r=c[ge>>2]|0}I=I+1|0;if(g){ee=746;break}if((I|0)>=(d[S>>0]|0)){g=0;break o}else w=r}if((ee|0)==746)Pm(r);else if((ee|0)==747)Pm(r);Pm(w);r=0}while(0);if(!g){g=Qm(x+64|0,r)|0;c[x+20>>2]=r;if(!g){g=0;ee=755;break}else r=0}Pm(r);ee=755}else ee=756}while(0);if((ee|0)==755){ee=0;a[H+25>>0]=0;z=J;R=p;r=g;break n}else if((ee|0)==756){ee=0;a[H+25>>0]=1;break}}while(0);z=J;R=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=g}else if((ee|0)==765){r=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;c[Cd>>2]=c[o+(p*20|0)+12>>2];g=r;r=nc[c[o+(p*20|0)+16>>2]&127](c[r>>2]|0,Cd)|0;ee=766}while(0);do if((ee|0)==548){ee=0;a[(c[g>>2]|0)+74>>0]=d[w>>0]&3;z=J;R=p}else if((ee|0)==766){c[g+60>>2]=0;g=g+25|0;if(!(c[Cd>>2]|0)){a[g>>0]=0;ee=(c[o+(p*20|0)+8>>2]|0)+-1|0;p=f+(d[o+(p*20|0)+3>>0]<<2)+108|0;c[p>>2]=(c[p>>2]|0)+1;p=ee;ee=19;break}else{a[g>>0]=1;ee=19;break}}while(0);if((ee|0)==19){ee=0;if(c[zc>>2]|0){q=fe;g=m;m=t;break b}g=c[Zd>>2]|0;if(!((g|0)==0|m>>>0>>0)){u=c[vc>>2]|0;if(!(hc[g&127](c[Vd>>2]|0)|0)){u=u+m-((m>>>0)%(u>>>0)|0)|0;z=J;R=p}else{g=m;o=9;m=t;ee=1311;break a}}else{z=J;R=p}}p=R+1|0;if(!r){g=m;r=z}else{g=m;o=r;m=t;ee=1311;break a}}q:switch(ee|0){case 22:{ee=0;Q=c[o+(p*20|0)+4>>2]|0;b[v+(Q*40|0)+8>>1]=4;Q=v+(Q*40|0)|0;c[Q>>2]=p;c[Q+4>>2]=((p|0)<0)<<31>>31;Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+8>>2]|0)+-1|0;break}case 23:{ee=0;Q=c[o+(p*20|0)+4>>2]|0;n=c[v+(Q*40|0)>>2]|0;b[v+(Q*40|0)+8>>1]=128;Q=v;w=o;R=T;S=U;break}case 24:{ee=0;n=c[o+(p*20|0)+4>>2]|0;r=v+(n*40|0)|0;w=(c[o+(p*20|0)+12>>2]|0)+-1|0;Q=r;c[Q>>2]=w;c[Q+4>>2]=((w|0)<0)<<31>>31;b[v+(n*40|0)+8>>1]=4;n=c[o+(p*20|0)+8>>2]|0;Q=v;w=o;R=T;S=U;n=(n|0)==0?p:n+-1|0;break}case 25:{ee=0;Q=c[o+(p*20|0)+4>>2]|0;n=(c[o+((c[v+(Q*40|0)>>2]|0)*20|0)+8>>2]|0)+-1|0;b[v+(Q*40|0)+8>>1]=128;Q=v;w=o;R=T;S=U;break}case 26:{ee=0;Q=c[o+(p*20|0)+4>>2]|0;b[v+(Q*40|0)+8>>1]=4;Q=v+(Q*40|0)|0;n=c[Q>>2]|0;c[Q>>2]=p;c[Q+4>>2]=((p|0)<0)<<31>>31;Q=v;w=o;R=T;S=U;break}case 27:{ee=0;if(!(b[v+((c[o+(n*20|0)+12>>2]|0)*40|0)+8>>1]&1)){Q=v;w=o;R=T;S=U}else ee=28;break}case 44:{ee=0;w=c[o+(n*20|0)+4>>2]|0;Q=r;c[Q>>2]=w;c[Q+4>>2]=((w|0)<0)<<31>>31;Q=v;w=o;R=T;S=U;break}case 45:{ee=0;R=c[o+(n*20|0)+16>>2]|0;w=c[R+4>>2]|0;Q=r;c[Q>>2]=c[R>>2];c[Q+4>>2]=w;Q=v;w=o;R=T;S=U;break}case 46:{ee=0;b[r+8>>1]=8;h[r>>3]=+h[c[o+(n*20|0)+16>>2]>>3];Q=v;w=o;R=T;S=U;break}case 60:{ee=0;G=(c[o+(n*20|0)+12>>2]|0)-(c[o+(n*20|0)+8>>2]|0)|0;w=(c[o+(n*20|0)+4>>2]|0)!=0?257:1;b[r+8>>1]=w;if((G|0)>0){s=G;x=r;do{p=x+48|0;x=x+40|0;if(!(b[p>>1]&9312))b[p>>1]=1;else rg(x);b[p>>1]=w;s=s+-1|0}while((s|0)>0);Q=v;w=o;R=T;S=U;r=r+(G*40|0)|0}else{Q=v;w=o;R=T;S=U}break}case 65:{ee=0;r=c[o+(n*20|0)+4>>2]|0;Q=v+(r*40|0)+8|0;b[Q>>1]=e[Q>>1]&65406|1;Q=v;w=o;R=T;S=U;r=v+(r*40|0)|0;break}case 66:{ee=0;Tg(r,c[o+(n*20|0)+16>>2]|0,c[o+(n*20|0)+4>>2]|0,0,0)|0;a[r+10>>0]=Gc;Q=v;w=o;R=T;S=U;break}case 67:{ee=0;z=(c[o+(n*20|0)+4>>2]|0)+-1|0;x=c[xb>>2]|0;s=x+(z*40|0)|0;p=e[x+(z*40|0)+8>>1]|0;if(p&18){w=c[x+(z*40|0)+12>>2]|0;if(p&16384)w=(c[s>>2]|0)+w|0;if((w|0)>(c[(c[x+(z*40|0)+32>>2]|0)+88>>2]|0)){p=n;q=t;ee=1316;break c}}Vl(r,s,2048);Q=v;w=o;R=T;S=U;break}case 72:{ee=0;p=c[o+(n*20|0)+12>>2]|0;s=c[o+(n*20|0)+8>>2]|0;G=p+s|0;r=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;s=v+(s*40|0)|0;while(1){Wl(s,r);p=p+-1|0;if(!p)break;else{r=r+40|0;s=s+40|0}}Q=v;w=o;R=T;S=U;r=v+(G*40|0)|0;break}case 74:{ee=0;n=c[o+(p*20|0)+12>>2]|0;r=v+((c[o+(p*20|0)+4>>2]|0)*40|0)|0;G=v+((c[o+(p*20|0)+8>>2]|0)*40|0)|0;while(1){Vl(G,r,4096);if((b[G+8>>1]&4096)!=0?(Rl(G)|0)!=0:0){u=ce;v=fe;n=m;m=t;ee=1317;break a}if(!n){Q=v;w=o;R=T;S=U;r=G;n=p;break q}n=n+-1|0;r=r+40|0;G=G+40|0}}case 79:{ee=0;r=v+((c[o+(n*20|0)+8>>2]|0)*40|0)|0;Vl(r,v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0,4096);Q=v;w=o;R=T;S=U;break}case 94:{ee=0;H=c[o+(p*20|0)+4>>2]|0;G=v+(H*40|0)|0;I=c[o+(p*20|0)+8>>2]|0;F=v+(I*40|0)|0;J=c[o+(p*20|0)+12>>2]|0;r=v+(J*40|0)|0;E=v+(H*40|0)+8|0;B=b[E>>1]|0;D=v+(I*40|0)+8|0;z=b[D>>1]|0;if((z|B)&1){n=v+(J*40|0)+8|0;if(!(b[n>>1]&9312)){b[n>>1]=1;Q=v;w=o;R=T;S=U;n=p;break}else{rg(r);Q=v;w=o;R=T;S=U;n=p;break}}if(B&16384){if(Ng(G)|0){u=ce;v=fe;n=m;m=t;ee=1317;break a}z=b[D>>1]|0}if((z&16384)!=0?(Ng(F)|0)!=0:0){u=ce;v=fe;n=m;m=t;ee=1317;break a}if((b[E>>1]&18)==0?(Zl(G,Gc,0)|0)!=0:0){u=ce;v=fe;n=m;m=t;ee=1317;break a}if((b[D>>1]&18)==0?(Zl(F,Gc,0)|0)!=0:0){u=ce;v=fe;n=m;m=t;ee=1317;break a}B=v+(H*40|0)+12|0;x=v+(I*40|0)+12|0;w=(c[x>>2]|0)+(c[B>>2]|0)|0;if((w|0)>(c[wb>>2]|0)){q=t;ee=1316;break c}n=(J|0)==(I|0);if(ah(r,w+2|0,n&1)|0){u=ce;v=fe;n=m;m=t;ee=1317;break a}s=v+(J*40|0)+8|0;b[s>>1]=e[s>>1]&48640|2;z=v+(J*40|0)+16|0;if(!n)gw(c[z>>2]|0,c[v+(I*40|0)+16>>2]|0,c[x>>2]|0)|0;gw((c[z>>2]|0)+(c[x>>2]|0)|0,c[v+(H*40|0)+16>>2]|0,c[B>>2]|0)|0;a[(c[z>>2]|0)+w>>0]=0;a[(c[z>>2]|0)+(w+1)>>0]=0;b[s>>1]=e[s>>1]|512;c[v+(J*40|0)+12>>2]=w;a[v+(J*40|0)+10>>0]=Gc;Q=v;w=o;R=T;S=U;n=p;break}case 112:{ee=0;K=c[o+(n*20|0)+4>>2]|0;L=v+(K*40|0)|0;Q=_l(L)|0;J=c[o+(n*20|0)+8>>2]|0;O=v+(J*40|0)|0;R=_l(O)|0;S=c[o+(n*20|0)+12>>2]|0;r=v+(S*40|0)|0;r:do if(!((b[v+(J*40|0)+8>>1]|b[v+(K*40|0)+8>>1])&1)){s:do if(!((Q&4&R)<<16>>16))J=0;else{p=L;z=c[p>>2]|0;p=c[p+4>>2]|0;D=O;w=c[D>>2]|0;D=c[D+4>>2]|0;G=d[P>>0]|0;t:do if((G|0)==89){if((p|0)>-1|(p|0)==-1&z>>>0>4294967295){K=$v(-1,2147483647,w|0,D|0)|0;J=C;if(((D|0)>0|(D|0)==0&w>>>0>0)&((J|0)<(p|0)|(J|0)==(p|0)&K>>>0>>0)){J=1;break s}}else if((D|0)<0?(J=$v(1,-2147483648,w|0,D|0)|0,I=C,K=fw(z|0,p|0,1,0)|0,s=C,(I|0)>(s|0)|(I|0)==(s|0)&J>>>0>K>>>0):0){J=1;break s}w=fw(w|0,D|0,z|0,p|0)|0;p=C}else if((G|0)==90){if((z|0)==0&(p|0)==-2147483648){if((D|0)>-1|(D|0)==-1&w>>>0>4294967295){J=1;break s}p=D^-2147483648;break}if((p|0)<0|(p|0)==0&z>>>0<1){K=$v(0,0,z|0,p|0)|0;s=C;J=$v(-1,2147483647,w|0,D|0)|0;I=C;if(((D|0)>0|(D|0)==0&w>>>0>0)&((I|0)<(s|0)|(I|0)==(s|0)&J>>>0>>0)){J=1;break s}}else if((D|0)<0?(J=$v(1,-2147483648,w|0,D|0)|0,I=C,K=$v(1,0,z|0,p|0)|0,s=C,(I|0)>(s|0)|(I|0)==(s|0)&J>>>0>K>>>0):0){J=1;break s}w=$v(w|0,D|0,z|0,p|0)|0;p=C}else if((G|0)==91){J=mw(w|0,D|0,0,1)|0;s=C;F=nw(w|0,D|0,0,1)|0;G=C;I=mw(z|0,p|0,0,1)|0;x=C;H=nw(z|0,p|0,0,1)|0;K=C;E=fw(w|0,D|0,-1,0)|0;le=C;B=fw(z|0,p|0,-1,0)|0;me=C;B=me>>>0<1|(me|0)==1&B>>>0<4294967295;do if(le>>>0<1|(le|0)==1&E>>>0<4294967295)if(B){w=ow(w|0,D|0,z|0,p|0)|0;p=C;break t}else{E=ow(I|0,x|0,F|0,G|0)|0;D=C;break}else{if(!B){J=1;break s}E=ow(H|0,K|0,J|0,s|0)|0;D=C}while(0);J=fw(E|0,D|0,-2147483648,0)|0;s=C;if(s>>>0>0|(s|0)==0&J>>>0>4294967295){J=1;break s}G=ow(H|0,K|0,F|0,G|0)|0;F=C;if((F|0)>-1|(F|0)==-1&G>>>0>4294967295){K=$v(-1,2147483647,0,E|0)|0;J=C;if(((D|0)>0|(D|0)==0&E>>>0>0)&((J|0)<(F|0)|(J|0)==(F|0)&K>>>0>>0)){J=1;break s}}else if((D|0)<0?(J=$v(1,-2147483648,0,E|0)|0,p=C,K=fw(G|0,F|0,1,0)|0,s=C,(p|0)>(s|0)|(p|0)==(s|0)&J>>>0>K>>>0):0){J=1;break s}w=fw(0,E|0,G|0,F|0)|0;p=C}else if((G|0)==92){if((z|0)==0&(p|0)==0)break r;if((z|0)==-1&(p|0)==-1&((w|0)==0&(D|0)==-2147483648)){J=1;break s}w=mw(w|0,D|0,z|0,p|0)|0;p=C}else{if((z|0)==-1){if((p|0)==-1){z=1;p=0}}else if((z|0)==0?(p|0)==0:0)break r;w=nw(w|0,D|0,z|0,p|0)|0;p=C}while(0);Q=r;c[Q>>2]=w;c[Q+4>>2]=p;Q=v+(S*40|0)+8|0;b[Q>>1]=e[Q>>1]&48640|4;Q=v;w=o;R=T;S=U;break q}while(0);A=+Qg(L);y=+Qg(O);z=d[P>>0]|0;if((z|0)==89)y=A+y;else if((z|0)==90)y=y-A;else if((z|0)==91)y=A*y;else if((z|0)==92){if(A==0.0)break;y=y/A}else{B=~~A>>>0;z=+N(A)>=1.0?(A>0.0?~~+$(+M(A/4294967296.0),4294967295.0)>>>0:~~+Z((A-+(~~A>>>0))/4294967296.0)>>>0):0;F=~~y>>>0;G=+N(y)>=1.0?(y>0.0?~~+$(+M(y/4294967296.0),4294967295.0)>>>0:~~+Z((y-+(~~y>>>0))/4294967296.0)>>>0):0;if(!B){if(!z)break}else if((B|0)==-1?(z|0)==-1:0){B=1;z=0}P=nw(F|0,G|0,B|0,z|0)|0;y=+(P>>>0)+4294967296.0*+(C|0)}h[ge>>3]=y;h[Pd>>3]=+h[ge>>3];if(!(+h[ge>>3]!=+h[Pd>>3])){h[r>>3]=y;S=v+(S*40|0)+8|0;b[S>>1]=e[S>>1]&48640|8;if(((R|Q)&8)!=0|J<<24>>24!=0){Q=v;w=o;R=T;S=U;break q}$l(r);Q=v;w=o;R=T;S=U;break q}}while(0);p=v+(S*40|0)+8|0;if(!(b[p>>1]&9312)){b[p>>1]=1;Q=v;w=o;R=T;S=U;break}else{rg(r);Q=v;w=o;R=T;S=U;break}}case 166:{ee=0;p=c[o+(n*20|0)+4>>2]|0;if(p){r=v+(p*40|0)|0;p=v+(p*40|0)+8|0;if(!(b[p>>1]&9312)){Q=r;c[Q>>2]=0;c[Q+4>>2]=0;b[p>>1]=4;Q=v;w=o;R=T;S=U;r=G;break}else{Vg(r,0,0);Q=v;w=o;R=T;S=U;r=G;break}}else{Q=v;w=o;R=T;S=U;r=G}break}case 184:{ee=0;z=c[o+(n*20|0)+4>>2]|0;w=c[o+(n*20|0)+8>>2]|0;s=c[o+(n*20|0)+12>>2]|0;r=v+(s*40|0)|0;if((b[v+(w*40|0)+8>>1]|b[v+(z*40|0)+8>>1])&1){p=v+(s*40|0)+8|0;if(!(b[p>>1]&9312)){b[p>>1]=1;Q=v;w=o;R=T;S=U;break}else{rg(r);Q=v;w=o;R=T;S=U;break}}x=Rg(v+(w*40|0)|0)|0;J=C;G=Rg(v+(z*40|0)|0)|0;F=C;w=a[E>>0]|0;z=w&255;do if(w<<24>>24==86){x=G|x;p=F|J}else if(w<<24>>24!=85)if(!((G|0)==0&(F|0)==0)){if((F|0)<0){w=175-z&255;z=$v(0,0,G|0,F|0)|0;if((F|0)>-1|(F|0)==-1&G>>>0>4294967232){F=C;ee=194}}else{z=G;ee=194}if((ee|0)==194){ee=0;if(!((F|0)>0|(F|0)==0&z>>>0>63)){if(w<<24>>24==87){x=ew(x|0,J|0,z|0)|0;p=C;break}x=iw(x|0,J|0,z|0)|0;p=C;if((J|0)>=0)break;S=$v(64,0,z|0,F|0)|0;S=ew(-1,-1,S|0)|0;x=S|x;p=C|p;break}}if((J|0)>-1|(J|0)==-1&x>>>0>4294967295){x=0;p=0}else{p=(w<<24>>24!=87)<<31>>31;x=p;p=((p|0)<0)<<31>>31}}else p=J;else{x=G&x;p=F&J}while(0);Q=r;c[Q>>2]=x;c[Q+4>>2]=p;Q=v+(s*40|0)+8|0;b[Q>>1]=e[Q>>1]&48640|4;Q=v;w=o;R=T;S=U;break}case 202:{ee=0;w=c[o+(n*20|0)+4>>2]|0;Q=v+(w*40|0)|0;R=Rg(Q)|0;w=v+(w*40|0)+8|0;b[w>>1]=e[w>>1]&48640|4;w=c[o+(n*20|0)+8>>2]|0;w=fw(R|0,C|0,w|0,((w|0)<0)<<31>>31|0)|0;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;break}case 203:{ee=0;r=c[o+(n*20|0)+4>>2]|0;w=v+(r*40|0)+8|0;p=b[w>>1]|0;if(!(p&4)){bm(v+(r*40|0)|0,67,Gc);p=b[w>>1]|0;if(!(p&4)){B=c[o+(n*20|0)+8>>2]|0;if(!B){p=n;q=20;ee=1318;break c}Q=v;w=o;R=T;S=U;r=G;n=B+-1|0;break}}b[w>>1]=p&48640|4;Q=v;w=o;R=T;S=U;r=G;break}case 208:{ee=0;p=c[o+(n*20|0)+4>>2]|0;r=v+(p*40|0)+8|0;if(!(b[r>>1]&4)){Q=v;w=o;R=T;S=U;r=G}else{Q=v+(p*40|0)|0;h[Q>>3]=+Qg(Q);b[r>>1]=e[r>>1]&48640|8;Q=v;w=o;R=T;S=U;r=G}break}case 213:{ee=0;L=c[o+(p*20|0)+4>>2]|0;J=v+(L*40|0)|0;H=c[o+(p*20|0)+12>>2]|0;s=v+(H*40|0)|0;L=v+(L*40|0)+8|0;I=b[L>>1]|0;H=v+(H*40|0)+8|0;K=b[H>>1]|0;E=I&65535;w=K&65535;D=o+(p*20|0)+3|0;G=d[D>>0]|0;do if(!((K|I)&1)){G=G&71;if(G>>>0>66){if((E&14|0)==2){nh(J,0);x=b[H>>1]|0}else x=K;if((x&14)==2){nh(s,0);G=I;B=K}else{G=I;B=K}}else if((G|0)==66){if((E&2|0)!=0|(E&12|0)==0){F=K;G=I}else{Zl(J,Gc,1)|0;F=b[H>>1]|0;G=(e[L>>1]&65024|E&511)&65535}S=F&65535;if((S&2|0)!=0|(S&12|0)==0)B=K;else{Zl(s,Gc,1)|0;B=(e[H>>1]&65024|w&511)&65535}}else{G=I;B=K}if(b[L>>1]&16384){Ng(J)|0;G=G&49151}if(b[H>>1]&16384){Ng(s)|0;B=B&49151}if(a[ce>>0]|0){u=ce;v=fe;n=m;m=t;ee=1317;break a}S=dm(s,J,c[o+(p*20|0)+16>>2]|0)|0;F=a[z>>0]|0;n=p;z=S}else{if(G&128){G=I;B=K;n=p;z=(I&1&K)<<16>>16!=0&(w&256|0)==0&1^1;break}if(G&32){r=c[o+(p*20|0)+8>>2]|0;Q=v+(r*40|0)+8|0;b[Q>>1]=e[Q>>1]&48640|1;Q=v;w=o;R=T;S=U;r=v+(r*40|0)|0;n=p;break q}if(!(G&16)){Q=v;w=o;R=T;S=U;n=p;break q}Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+8>>2]|0)+-1|0;break q}while(0);switch(F&255|0){case 79:{z=(z|0)==0&1;break}case 78:{z=(z|0)!=0&1;break}case 82:{z=z>>>31;break}case 81:{z=(z|0)<1&1;break}case 80:{z=(z|0)>0&1;break}default:z=z>>>31^1}if(!(a[D>>0]&32)){if(z)n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{S=c[o+(n*20|0)+8>>2]|0;r=v+(S*40|0)|0;S=v+(S*40|0)+8|0;b[S>>1]=e[S>>1]&48640|4;S=r;c[S>>2]=z;c[S+4>>2]=0}b[L>>1]=G;b[H>>1]=B;Q=v;w=o;R=T;S=U;break}case 248:{ee=0;Q=v;w=o;R=c[o+(n*20|0)+16>>2]|0;S=U;break}case 249:{ee=0;s=(a[o+(n*20|0)+3>>0]&1)==0?0:T;D=c[o+(n*20|0)+12>>2]|0;E=c[o+(n*20|0)+16>>2]|0;F=c[o+(n*20|0)+4>>2]|0;G=c[o+(n*20|0)+8>>2]|0;if((D|0)>0){w=(s|0)==0;p=E+16|0;B=0;while(1){if(w)x=B;else x=c[s+(B<<2)>>2]|0;z=a[(c[p>>2]|0)+B>>0]|0;x=dm(v+((x+F|0)*40|0)|0,v+((x+G|0)*40|0)|0,c[E+(B<<2)+20>>2]|0)|0;B=B+1|0;if(x)break;if((B|0)>=(D|0)){Q=v;w=o;R=0;S=0;break q}}Q=v;w=o;R=0;S=z<<24>>24==0?x:0-x|0}else{Q=v;w=o;R=0;S=U}break}case 256:{ee=0;if((U|0)<0){Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+4>>2]|0)+-1|0;break}if(!U){Q=v;w=o;R=T;S=0;n=(c[o+(p*20|0)+8>>2]|0)+-1|0;break}else{Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+12>>2]|0)+-1|0;break}}case 261:{ee=0;p=c[o+(n*20|0)+4>>2]|0;if(!(b[v+(p*40|0)+8>>1]&1)){r=Rg(v+(p*40|0)|0)|0;r=(r|0)!=0|(C|0)!=0?3:0}else r=6;p=c[o+(n*20|0)+8>>2]|0;if(!(b[v+(p*40|0)+8>>1]&1)){p=Rg(v+(p*40|0)|0)|0;p=((p|0)!=0|(C|0)!=0)&1}else p=2;p=a[((a[z>>0]|0)==72?41680:41696)+(p+r)>>0]|0;r=c[o+(n*20|0)+12>>2]|0;G=v+(r*40|0)|0;if(p<<24>>24==2){Q=v+(r*40|0)+8|0;b[Q>>1]=e[Q>>1]&48640|1;Q=v;w=o;R=T;S=U;r=G;break}else{Q=G;c[Q>>2]=p&255;c[Q+4>>2]=0;Q=v+(r*40|0)+8|0;b[Q>>1]=e[Q>>1]&48640|4;Q=v;w=o;R=T;S=U;r=G;break}}case 268:{ee=0;p=c[o+(n*20|0)+4>>2]|0;r=c[o+(n*20|0)+8>>2]|0;G=v+(r*40|0)|0;r=v+(r*40|0)+8|0;if(!(b[r>>1]&9312))b[r>>1]=1;else rg(G);if(!(b[v+(p*40|0)+8>>1]&1)){b[r>>1]=4;w=Rg(v+(p*40|0)|0)|0;Q=G;c[Q>>2]=(w|0)==0&(C|0)==0&1;c[Q+4>>2]=0;Q=v;w=o;R=T;S=U;r=G}else{Q=v;w=o;R=T;S=U;r=G}break}case 273:{ee=0;p=c[o+(n*20|0)+4>>2]|0;r=c[o+(n*20|0)+8>>2]|0;G=v+(r*40|0)|0;r=v+(r*40|0)+8|0;if(!(b[r>>1]&9312))b[r>>1]=1;else rg(G);if(!(b[v+(p*40|0)+8>>1]&1)){b[r>>1]=4;w=Rg(v+(p*40|0)|0)|0;Q=G;c[Q>>2]=~w;c[Q+4>>2]=~C;Q=v;w=o;R=T;S=U;r=G}else{Q=v;w=o;R=T;S=U;r=G}break}case 278:{ee=0;p=(c[Eb>>2]|0)+(c[o+(n*20|0)+4>>2]|0)|0;if(!(a[p>>0]|0)){a[p>>0]=1;Q=v;w=o;R=T;S=U;break}else{Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0;break}}case 281:{ee=0;p=c[o+(n*20|0)+4>>2]|0;if(!(b[v+(p*40|0)+8>>1]&1)){p=+Qg(v+(p*40|0)|0)!=0.0;p=(p^(a[z>>0]|0)==46)&1}else p=c[o+(n*20|0)+12>>2]|0;if(!p){Q=v;w=o;R=T;S=U}else{Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}break}case 286:{ee=0;if(!(b[v+((c[o+(n*20|0)+4>>2]|0)*40|0)+8>>1]&1)){Q=v;w=o;R=T;S=U}else{Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}break}case 288:{ee=0;if(!(b[v+((c[o+(n*20|0)+4>>2]|0)*40|0)+8>>1]&1)){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 290:{ee=0;R=c[o+(p*20|0)+8>>2]|0;x=c[o+(p*20|0)+12>>2]|0;B=v+(x*40|0)|0;Q=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;I=c[Q+80>>2]|0;w=c[Q>>2]|0;if(!(a[Q+26>>0]|0)){if((w|0)!=0?(a[w+73>>0]|0)!=1:0){Qd=fm(Q)|0;ee=295}}else{Qd=em(Q)|0;ee=295}if((ee|0)==295?(ee=0,(Qd|0)!=0):0){q=Qd;ee=1318;break c}J=Q+60|0;z=c[Xd>>2]|0;u:do if((c[J>>2]|0)==(z|0)){z=b[Q+22>>1]|0;if((z&65535|0)>(R|0))ee=350;else{F=Q+72|0;ee=318}}else{do if(a[Q+25>>0]|0){if(!w){G=c[Q+16>>2]|0;D=c[v+(G*40|0)+12>>2]|0;c[Q+68>>2]=D;c[Q+64>>2]=D;G=c[v+(G*40|0)+16>>2]|0;s=Q+76|0;c[s>>2]=G;break}n=v+(x*40|0)+8|0;if(!(b[n>>1]&9312)){b[n>>1]=1;break u}else{rg(B);break u}}else{if(!(a[Q+27>>0]&4)){gm(w,qd);F=e[w+40>>1]|0;G=c[w+32>>2]|0;c[Q+76>>2]=G;z=c[qd>>2]|0;c[Q+64>>2]=z}else{z=Q+64|0;hm(w,z);F=e[w+40>>1]|0;G=c[w+32>>2]|0;c[Q+76>>2]=G;z=c[z>>2]|0}c[Q+68>>2]=z>>>0>F>>>0?F:z;if(z>>>0>(c[wb>>2]|0)>>>0){q=t;ee=1316;break c}s=Q+76|0;z=c[Xd>>2]|0;D=F}while(0);c[J>>2]=z;z=a[G>>0]|0;if(z<<24>>24>-1){E=z&255;c[hd>>2]=E;G=1}else{G=im(G,hd)|0;E=c[hd>>2]|0}F=Q+72|0;c[F>>2]=G&255;b[Q+22>>1]=0;c[I>>2]=E;if(E>>>0>98307){q=t;ee=313;break c}if(E>>>0>(c[Q+64>>2]|0)>>>0){q=t;ee=313;break c}if(D>>>0>>0){c[s>>2]=0;c[Q+68>>2]=0;z=0;ee=318}else{z=0;ee=318}}while(0);do if((ee|0)==318){ee=0;G=c[F>>2]|0;E=c[I>>2]|0;if(G>>>0>>0){P=Q+76|0;D=c[P>>2]|0;if(!D){S=Gd+0|0;D=S+40|0;do{c[S>>2]=0;S=S+4|0}while((S|0)<(D|0));G=jm(w,0,c[I>>2]|0,((d[Q+27>>0]|0)>>>2&1^1)&255,Gd)|0;if(G){o=G;q=t;ee=1309;break c}z=Q+22|0;O=z;z=b[z>>1]|0;G=c[F>>2]|0;E=c[I>>2]|0;L=c[Gb>>2]|0}else{O=Q+22|0;L=D}s=z&65535;K=c[I+(s<<2)>>2]|0;c[hd>>2]=K;n=L+E|0;G=L+G|0;while(1){D=a[G>>0]|0;if(D<<24>>24>-1){J=D&255;c[Id>>2]=J;G=G+1|0}else{G=G+((im(G,Id)|0)&255)|0;J=c[Id>>2]|0}c[Q+(s<<2)+84>>2]=J;if(J>>>0>11)D=(J+-12|0)>>>1;else D=d[34336+J>>0]|0;J=K+D|0;c[hd>>2]=J;if(J>>>0>>0){G=J;D=s;ee=331;break}D=s+1|0;c[I+(D<<2)>>2]=J;if((s|0)<(R|0)&G>>>0>>0){K=J;s=D}else break}if((ee|0)==331){ee=0;J=G;G=L+(E+1)|0}b[O>>1]=D;c[F>>2]=G-L;if(!(c[P>>2]|0)){if(!((b[Hb>>1]&9312)==0&(c[Ib>>2]|0)==0))Mg(Gd);b[Hb>>1]=1}if(G>>>0>=n>>>0){if(G>>>0>n>>>0){q=t;ee=343;break c}if((J|0)==(c[Q+64>>2]|0))z=J;else{q=t;ee=343;break c}}else z=c[Q+64>>2]|0;if(J>>>0>z>>>0){q=t;ee=343;break c}z=b[O>>1]|0}if((z&65535|0)<=(R|0)){if((a[o+(p*20|0)+1>>0]|0)==-8){Vl(B,c[o+(p*20|0)+16>>2]|0,2048);n=v+(x*40|0)+8|0;break}n=v+(x*40|0)+8|0;if(!(b[n>>1]&9312)){b[n>>1]=1;break}else{rg(B);break}}else ee=350}while(0);if((ee|0)==350){ee=0;n=v+(x*40|0)+8|0;if(b[n>>1]&9312)rg(B);G=c[Q+(R<<2)+84>>2]|0;c[Id>>2]=G;do if((c[Q+68>>2]|0)>>>0<(c[I+(R+1<<2)>>2]|0)>>>0){S=a[o+(p*20|0)+3>>0]|0;if(!((S&255)>63?G>>>0>11&(G&1|0)==0|S<<24>>24<0:0)){if(G>>>0>11)z=(G+-12|0)>>>1;else z=d[34336+G>>0]|0;if(z){z=jm(w,c[I+(R<<2)>>2]|0,z,((d[Q+27>>0]|0)>>>2&1^1)&255,B)|0;if(z){o=z;q=t;ee=1309;break c}km(c[v+(x*40|0)+16>>2]|0,G,B)|0;b[n>>1]=e[n>>1]&61439;break}}km(G>>>0<14?qd:0,G,B)|0}else km((c[Q+76>>2]|0)+(c[I+(R<<2)>>2]|0)|0,G,B)|0;while(0);a[v+(x*40|0)+10>>0]=Gc}w=e[n>>1]|0;if((w&4096|0)!=0?(xc=v+(x*40|0)+16|0,yc=c[xc>>2]|0,(yc|0)!=0):0){s=c[v+(x*40|0)+12>>2]|0;if(bh(B,s+2|0)|0){u=ce;v=fe;n=m;m=t;ee=1317;break a}gw(c[xc>>2]|0,yc|0,s|0)|0;a[(c[xc>>2]|0)+s>>0]=0;a[(c[xc>>2]|0)+(s+1)>>0]=0;b[n>>1]=w&18|512;Q=v;w=o;R=T;S=U;n=p}else{Q=v;w=o;R=T;S=U;n=p}break}case 368:{ee=0;s=c[o+(n*20|0)+16>>2]|0;p=a[s>>0]|0;if(!(p<<24>>24)){Q=v;w=o;R=T;S=U}else{w=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;while(1){s=s+1|0;bm(w,p,Gc);p=a[s>>0]|0;if(!(p<<24>>24)){Q=v;w=o;R=T;S=U;break}else w=w+40|0}}break}case 371:{ee=0;R=c[o+(p*20|0)+4>>2]|0;z=c[o+(p*20|0)+16>>2]|0;S=v+(R*40|0)|0;R=v+((R+-1+(c[o+(p*20|0)+8>>2]|0)|0)*40|0)|0;x=a[Jb>>0]|0;Q=c[o+(p*20|0)+12>>2]|0;r=v+(Q*40|0)|0;if(z){w=a[z>>0]|0;n=S;while(1){z=z+1|0;bm(n,w,Gc);w=a[z>>0]|0;if(!(w<<24>>24))break;else n=n+40|0}}L=(x&255)>3;J=0;s=0;O=0;n=0;I=R;while(1){K=b[I+8>>1]|0;F=K&65535;v:do if(!(F&1)){do if(!(F&4)){if(F&8){G=7;ee=388;break v}G=c[I+12>>2]|0;if(F&16384)G=(c[I>>2]|0)+G|0;G=(G<<1)+12|F>>>1&1}else{F=I;G=c[F>>2]|0;F=c[F+4>>2]|0;E=aw(G|0,F|0,63)|0;E=E^G;D=C^F;if(D>>>0<0|(D|0)==0&E>>>0<128){if(!((G&1|0)==(G|0)&0==(F|0)&L)){G=1;ee=388;break v}G=E+8|0;break}if(D>>>0<0|(D|0)==0&E>>>0<32768){G=2;ee=388;break v}if(D>>>0<0|(D|0)==0&E>>>0<8388608){G=3;ee=388;break v}if(D>>>0<0|(D|0)==0&E>>>0<2147483648){G=4;ee=388;break v}G=D>>>0<32768|(D|0)==32768&E>>>0<0?5:6;ee=388;break v}while(0);c[I+28>>2]=G;if(G>>>0>11){F=G;G=(G+-12|0)>>>1}else ee=391}else{G=0;ee=388}while(0);if((ee|0)==388){c[I+28>>2]=G;ee=391}if((ee|0)==391){ee=0;F=G;G=d[34336+G>>0]|0}do if(K&16384)if((J|0)==0&(s|0)==0){K=c[I>>2]|0;G=G-K|0;K=K+n|0;break}else{Ng(I)|0;K=n;break}else K=n;while(0);J=fw(G|0,((G|0)<0)<<31>>31|0,J|0,s|0)|0;s=C;if(F>>>0<128)G=1;else{E=0;G=0;do{G=G+1|0;F=iw(F|0,E|0,7)|0;E=C}while(((F|0)!=0|(E|0)!=0)&(G|0)<9)}G=G+O|0;I=I+-40|0;if(I>>>0>>0){D=G;break}else{O=G;n=K}}if((D|0)<127)F=D+1|0;else{F=D;E=((D|0)<0)<<31>>31;G=0;do{G=G+1|0;F=iw(F|0,E|0,7)|0;E=C}while(((F|0)!=0|(E|0)!=0)&(G|0)<9);D=G+D|0;F=D;E=((D|0)<0)<<31>>31;z=0;do{z=z+1|0;F=iw(F|0,E|0,7)|0;E=C}while(((F|0)!=0|(E|0)!=0)&(z|0)<9);F=((G|0)<(z|0)&1)+D|0}G=((F|0)<0)<<31>>31;n=fw(F|0,G|0,J|0,s|0)|0;L=C;P=c[wb>>2]|0;O=((P|0)<0)<<31>>31;if((L|0)>(O|0)|(L|0)==(O|0)&n>>>0>P>>>0){q=t;ee=1316;break c}if(bh(r,n)|0){u=ce;v=fe;n=m;m=t;ee=1317;break a}I=c[v+(Q*40|0)+16>>2]|0;if(F>>>0<128){a[I>>0]=F;s=1;J=S}else{s=(lm(I,F,G)|0)&255;J=S}while(1){E=c[J+28>>2]|0;if(E>>>0<128){a[I+s>>0]=E;G=1}else G=(lm(I+s|0,E,0)|0)&255;s=G+s|0;G=I+F|0;if(!(E>>>0<8&(E|0)!=0))if(E>>>0>11){z=c[J+12>>2]|0;gw(G|0,c[J+16>>2]|0,z|0)|0}else z=0;else{G=J;if(E>>>0>11)z=(E+-12|0)>>>1;else z=d[34336+E>>0]|0;D=c[G>>2]|0;G=c[G+4>>2]|0;E=z;while(1){E=E+-1|0;a[I+(E+F)>>0]=D;D=iw(D|0,G|0,8)|0;if(!E)break;else G=C}}J=J+40|0;if(J>>>0>R>>>0)break;else F=z+F|0}c[v+(Q*40|0)+12>>2]=n;n=v+(Q*40|0)+8|0;b[n>>1]=16;if(K){c[r>>2]=K;b[n>>1]=16400}a[v+(Q*40|0)+10>>0]=1;Q=v;w=o;R=T;S=U;n=p;break}case 446:{ee=0;if((c[Yd>>2]|0)>0){q=t;ee=447;break c}if(!s)w=0;else{p=s;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;w=p-s&1073741823}z=om(he,0,(c[Lb>>2]|0)+(c[Kb>>2]|0)|0)|0;if(z){p=n;q=z;ee=1318;break c}p=ih(he,w+33|0,0)|0;if(!p){Q=v;w=o;R=T;S=U}else{S=p+32|0;c[p>>2]=S;gw(S|0,s|0,w+1|0)|0;if(!(a[ae>>0]|0))c[Lb>>2]=(c[Lb>>2]|0)+1;else{a[ae>>0]=0;a[Pb>>0]=1}c[p+24>>2]=c[Mb>>2];c[Mb>>2]=p;Q=Nb;w=c[Q+4>>2]|0;R=p+8|0;c[R>>2]=c[Q>>2];c[R+4>>2]=w;R=Ob;w=c[R+4>>2]|0;Q=p+16|0;c[Q>>2]=c[R>>2];c[Q+4>>2]=w;Q=v;w=o;R=T;S=U}break}case 486:{c[Lb>>2]=(c[Lb>>2]|0)+-1;ee=488;break}case 525:{ee=0;sm(c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+4>>2]|0,c[o+(n*20|0)+12>>2]|0,Vc);w=c[Vc>>2]|0;Q=r;c[Q>>2]=w;c[Q+4>>2]=((w|0)<0)<<31>>31;Q=v;w=o;R=T;S=U;break}case 558:{ee=0;r=tm(f,c[o+(p*20|0)+4>>2]|0,c[o+(p*20|0)+8>>2]|0,-1,1)|0;if(!r){u=ce;v=fe;n=m;m=t;ee=1317;break a}w=c[o+(p*20|0)+16>>2]|0;z=r+8|0;c[z>>2]=w;x=c[o+(p*20|0)+12>>2]|0;w=e[w+6>>1]<<2;n=w+148|0;s=ih(he,n,0)|0;if(!s){o=r;q=t;ee=560;break c}bw(s|0,0,n|0)|0;c[r+56>>2]=s;S=s+128|0;c[s+28>>2]=S;gw(S|0,c[z>>2]|0,w+20|0)|0;c[s+140>>2]=0;if(x)b[s+134>>1]=x;n=c[Td>>2]|0;r=c[(c[(c[n+4>>2]|0)+4>>2]|0)+32>>2]|0;c[s+12>>2]=r;a[s+59>>0]=1;a[s+57>>0]=0;c[s+24>>2]=he;c[s+72>>2]=s;if(((a[Xb>>0]|0)!=2?(Ac=c[2242]|0,c[s>>2]=_(Ac,r)|0,S=c[(c[n+12>>2]|0)+80>>2]|0,S=(S|0)<(Ac|0)?Ac:S,Ac=((r|0)<0)<<31>>31,S=ow(S|0,((S|0)<0)<<31>>31|0,r|0,Ac|0)|0,R=C,c[s+4>>2]=(R|0)<0|(R|0)==0&S>>>0<536870912?S:536870912,(c[2234]|0)==0):0)?(c[s+52>>2]=r,S=mg(r,Ac)|0,c[s+40>>2]=S,(S|0)==0):0){o=7;q=t;ee=1309;break c}else{Q=v;w=o;R=T;S=U;r=J;n=p}break}case 566:{ee=0;Q=(c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0)+40|0;S=Q;R=c[S>>2]|0;S=c[S+4>>2]|0;P=fw(R|0,S|0,1,0)|0;c[Q>>2]=P;c[Q+4>>2]=C;if((R|0)==0&(S|0)==0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 568:{ee=0;n=tm(f,c[o+(p*20|0)+4>>2]|0,c[o+(p*20|0)+12>>2]|0,-1,0)|0;if(!n){u=ce;v=fe;n=m;m=t;ee=1317;break a}a[n+25>>0]=1;c[n+16>>2]=c[o+(p*20|0)+8>>2];Q=n+27|0;a[Q>>0]=a[Q>>0]|4;Q=v;w=o;R=T;S=U;n=p;break}case 570:{ee=0;Q=o+(n*20|0)+4|0;xm(f,c[(c[Fb>>2]|0)+(c[Q>>2]<<2)>>2]|0);c[(c[Fb>>2]|0)+(c[Q>>2]<<2)>>2]=0;Q=v;w=o;R=T;S=U;break}case 571:{ee=0;J=c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0;a[J+25>>0]=0;if(!(a[J+27>>0]&4)){S=c[o+(n*20|0)+16>>2]|0;c[td>>2]=c[J+8>>2];b[_b>>1]=S;a[$b>>0]=(w<<1&2^2)+255;S=c[o+(n*20|0)+12>>2]|0;p=v+(S*40|0)|0;c[ac>>2]=p;if(b[v+(S*40|0)+8>>1]&16384)Ng(p)|0;z=ym(c[J>>2]|0,td,0,0,0,xd)|0;if(z){p=n;q=z;ee=1318;break c}}else{z=c[o+(n*20|0)+12>>2]|0;x=v+(z*40|0)|0;z=v+(z*40|0)+8|0;if((b[z>>1]&14)==2)nh(x,0);G=Rg(x)|0;F=C;z=e[z>>1]|0;do if(!(z&4)){if(!(z&8)){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0;break q}y=+h[x>>3];A=+(G>>>0)+4294967296.0*+(F|0);if(y>31)+w|0;break}else{w=(y>A&(w&1|0)==0&1)+w|0;break}}while(0);z=ym(c[J>>2]|0,0,G,F,0,xd)|0;S=J+48|0;c[S>>2]=G;c[S+4>>2]=F;if(z){p=n;q=z;ee=1318;break c}}a[J+26>>0]=0;c[J+60>>2]=0;p=c[xd>>2]|0;do if((w|0)>63){if((p|0)>=0?!((p|0)==0&(w|0)==65):0){c[xd>>2]=0;Q=v;w=o;R=T;S=U;break q}c[xd>>2]=0;s=zm(c[J>>2]|0,xd)|0;if(!s)ee=593;else{p=n;q=s;ee=1318;break c}}else{if((p|0)<=0?!((p|0)==0&(w|0)==62):0){p=(a[(c[J>>2]|0)+73>>0]|0)!=1&1;c[xd>>2]=p;break}c[xd>>2]=0;s=Am(c[J>>2]|0,xd)|0;if(!s)ee=593;else{p=n;q=s;ee=1318;break c}}while(0);if((ee|0)==593){ee=0;p=c[xd>>2]|0}if(!p){Q=v;w=o;R=T;S=U}else{Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}break}case 596:{ee=0;Q=c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0;a[Q+25>>0]=0;R=Rg(v+((c[o+(n*20|0)+8>>2]|0)*40|0)|0)|0;w=Q+48|0;c[w>>2]=R;c[w+4>>2]=C;a[Q+26>>0]=1;Q=v;w=o;R=T;S=U;break}case 597:{ee=0;K=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;w=c[o+(p*20|0)+12>>2]|0;G=v+(w*40|0)|0;c[ld>>2]=0;s=o+(p*20|0)+16|0;z=c[s>>2]|0;n=K+8|0;x=c[n>>2]|0;w:do if((z|0)>0){c[ud>>2]=x;z=z&65535;b[bc>>1]=z;c[cc>>2]=G;if(!(z<<16>>16))w=ud;else{w=G;x=0;while(1){if(b[w+(x*40|0)+8>>1]&16384){Ng(w+(x*40|0)|0)|0;z=b[bc>>1]|0}x=x+1|0;if((x|0)>=(z&65535|0)){w=ud;break w}w=c[cc>>2]|0}}}else{z=Bm(x,Pc,191,ld)|0;if(!z){u=ce;v=fe;n=m;m=t;ee=1317;break a}if(b[v+(w*40|0)+8>>1]&16384)Ng(G)|0;Cm(c[n>>2]|0,c[v+(w*40|0)+12>>2]|0,c[v+(w*40|0)+16>>2]|0,z);w=z}while(0);a[w+6>>0]=0;x:do if((a[I>>0]|0)==67?(Bc=b[w+4>>1]|0,Bc<<16>>16!=0):0){z=c[w+8>>2]|0;x=0;while(1){if(b[z+(x*40|0)+8>>1]&1)break;x=x+1|0;if((x|0)>=(Bc&65535|0)){J=p;n=p;break x}}J=p;n=(c[o+(p*20|0)+8>>2]|0)+-1|0}else{J=p;n=p}while(0);z=ym(c[K>>2]|0,w,0,0,0,yd)|0;if(!(c[s>>2]|0))ig(he,c[ld>>2]|0);if(z){p=n;o=z;q=t;ee=1309;break c}p=c[yd>>2]|0;c[K+12>>2]=p;p=(p|0)==0;a[K+25>>0]=p&1^1;a[K+26>>0]=0;c[K+60>>2]=0;if((a[I>>0]|0)==69){if(!p){Q=v;w=o;R=T;S=U;break}Q=v;w=o;R=T;S=U;n=(c[o+(J*20|0)+8>>2]|0)+-1|0;break}else{if(p){Q=v;w=o;R=T;S=U;break}Q=v;w=o;R=T;S=U;n=(c[o+(J*20|0)+8>>2]|0)+-1|0;break}}case 624:{ee=0;Q=(c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0)+40|0;w=Q;R=c[w>>2]|0;w=c[w+4>>2]|0;S=fw(R|0,w|0,1,0)|0;c[Q>>2]=S;c[Q+4>>2]=C;Q=r;c[Q>>2]=R;c[Q+4>>2]=w;Q=v;w=o;R=T;S=U;break}case 647:{ee=0;F=c[o+(n*20|0)+8>>2]|0;p=c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0;w=c[o+(n*20|0)+12>>2]|0;if(z<<24>>24==75){D=v+(w*40|0)|0;B=c[D>>2]|0;D=c[D+4>>2]|0}else{B=w;D=((w|0)<0)<<31>>31}E=o+(n*20|0)+3|0;G=a[E>>0]|0;if(G&1)c[rb>>2]=(c[rb>>2]|0)+1;if(G&2){m=je;c[m>>2]=B;c[m+4>>2]=D;m=B;l=D}z=b[v+(F*40|0)+8>>1]|0;if(z&1){c[v+(F*40|0)+16>>2]=0;c[v+(F*40|0)+12>>2]=0}if(!(G&16))x=0;else x=c[p+12>>2]|0;if(!(z&16384))z=0;else z=c[v+(F*40|0)>>2]|0;z=Em(c[p>>2]|0,0,B,D,c[v+(F*40|0)+16>>2]|0,c[v+(F*40|0)+12>>2]|0,z,(G&255)>>>3&1,x)|0;a[p+26>>0]=0;c[p+60>>2]=0;if(z){p=n;o=z;q=t;ee=1309;break c}w=c[dc>>2]|0;if((w|0)!=0?(Cc=c[o+(n*20|0)+16>>2]|0,(Cc|0)!=0):0){Zb[w&1](c[ec>>2]|0,(a[E>>0]&4)!=0?23:18,c[(c[Td>>2]|0)+(a[p+24>>0]<<4)>>2]|0,Cc,B,D);Q=v;w=o;R=T;S=U}else{Q=v;w=o;R=T;S=U}break}case 671:{ee=0;Q=c[rb>>2]|0;c[sb>>2]=Q;c[tb>>2]=(c[tb>>2]|0)+Q;c[rb>>2]=0;Q=v;w=o;R=T;S=U;break}case 672:{ee=0;G=c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0;F=c[o+(n*20|0)+12>>2]|0;E=c[o+(n*20|0)+16>>2]|0;w=c[G+56>>2]|0;x=w+32|0;z=c[x>>2]|0;G=c[G+8>>2]|0;if(!z){z=Bm(G,0,0,jd)|0;c[x>>2]=z;if(!z){p=n;o=7;q=t;ee=1309;break c}b[z+4>>1]=E}if(!(a[w+56>>0]|0)){w=c[w+36>>2]|0;x=w;w=w+8|0}else{S=c[w+20>>2]|0;w=c[(c[S+8>>2]|0)+4>>2]|0;S=c[S+12>>2]|0;x=S+(w*56|0)+20|0;w=c[S+(w*56|0)+32>>2]|0}Cm(G,c[x>>2]|0,w,z);y:do if((E|0)>0){w=c[z+8>>2]|0;p=0;while(1){if(b[w+(p*40|0)+8>>1]&1)break y;p=p+1|0;if((p|0)>=(E|0)){ee=682;break}}}else ee=682;while(0);if((ee|0)==682){ee=0;if(!(Gm(c[v+(F*40|0)+12>>2]|0,c[v+(F*40|0)+16>>2]|0,z,0)|0)){Q=v;w=o;R=T;S=U;break}}Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0;break}case 700:{ee=0;b[r+8>>1]=1;Q=v;w=o;R=T;S=U;break}case 708:{ee=0;b[r+8>>1]=1;Q=v;w=o;R=T;S=U;break}case 711:{ee=0;p=c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0;a[p+25>>0]=1;c[p+60>>2]=0;p=c[p>>2]|0;if(!p){Q=v;w=o;R=T;S=U}else{Q=p+56|0;Sc(c[Q>>2]|0);c[Q>>2]=0;a[p+73>>0]=0;Q=v;w=o;R=T;S=U}break}case 801:{ee=0;p=c[(c[Fb>>2]|0)+(c[o+(n*20|0)+4>>2]<<2)>>2]|0;r=c[p>>2]|0;s=J+8|0;b[s>>1]=1;if((a[r+73>>0]|0)!=1?(q=fm(p)|0,(q|0)!=0):0){p=n;ee=1318;break c}if(!(a[p+25>>0]|0)){p=Pd;c[p>>2]=0;c[p+4>>2]=0;gm(r,Pd);b[oc>>1]=0;c[qc>>2]=he;c[rc>>2]=0;p=jm(r,0,c[Pd>>2]|0,1,Yc)|0;do if(!p){p=c[sc>>2]|0;r=a[p>>0]|0;if(r<<24>>24>-1){z=r&255;c[nd>>2]=z}else{im(p,nd)|0;z=c[nd>>2]|0}if(!(z>>>0<3?1:(z|0)>(c[tc>>2]|0))){w=(c[sc>>2]|0)+(z+-1)|0;p=a[w>>0]|0;if(p<<24>>24>-1){p=p&255;c[Kd>>2]=p}else{im(w,Kd)|0;p=c[Kd>>2]|0}if(!((p+-1|0)>>>0>8|(p|0)==7)){if(p>>>0>11)w=(p+-12|0)>>>1;else w=d[34336+p>>0]|0;r=c[tc>>2]|0;if(r>>>0>=(w+z|0)>>>0){km((c[sc>>2]|0)+(r-w)|0,p,Nd)|0;p=Nd;w=c[p>>2]|0;p=c[p+4>>2]|0;if((b[oc>>1]&9312)==0&(c[rc>>2]|0)==0){B=0;break}Mg(Yc);B=0;break}}}if(!((b[oc>>1]&9312)==0&(c[rc>>2]|0)==0))Mg(Yc);c[ge>>2]=68698;c[ge+4>>2]=10788;Zc(11,13600,ge);B=11;w=0;p=0}else{B=p;w=0;p=0}while(0);if(B){p=n;q=B;ee=1318;break c}Q=J;c[Q>>2]=w;c[Q+4>>2]=p;b[s>>1]=4;Q=v;w=o;R=T;S=U;r=J}else{Q=v;w=o;R=T;S=U;r=J}break}case 865:{ee=0;s=c[z>>2]|0;z=c[(c[Td>>2]|0)+(K<<4)+12>>2]|0;w=c[z+16>>2]|0;if(w)do{p=(c[w+8>>2]|0)+32|0;if((c[p>>2]|0)==(x|0))c[p>>2]=s;w=c[w>>2]|0}while((w|0)!=0);p=c[z+32>>2]|0;if(p)do{w=(c[p+8>>2]|0)+40|0;if((c[w>>2]|0)==(x|0))c[w>>2]=s;p=c[p>>2]|0}while((p|0)!=0);Q=v;w=o;R=T;S=U;t=K+1&255;break}case 878:{ee=0;Wm(he,r);Q=v;w=o;R=T;S=U;r=G;break}case 881:{ee=0;S=c[o+(n*20|0)+4>>2]|0;c[Wc>>2]=he;c[fa>>2]=S;c[ga>>2]=fe;r=c[o+(n*20|0)+16>>2]|0;c[ge>>2]=c[(c[Td>>2]|0)+(S<<4)>>2];c[ge+4>>2]=(S|0)==1?13184:13208;c[ge+8>>2]=r;r=qh(he,42048,ge)|0;if(!r){p=n;q=t;ee=882;break c}a[ha>>0]=1;c[ia>>2]=0;p=Me(he,r,22,Wc,0)|0;p=(p|0)==0?c[ia>>2]|0:p;ig(he,r);a[ha>>0]=0;if(!p){Q=v;w=o;R=T;S=U;r=G}else{o=p;p=n;q=t;ee=884;break c}break}case 886:{ee=0;gg(he,Ek((c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+12>>2]|0)+8|0,c[o+(n*20|0)+16>>2]|0,0)|0);c[Qb>>2]=c[Qb>>2]|2;Q=v;w=o;R=T;S=U;break}case 887:{ee=0;z=Ek((c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+12>>2]|0)+24|0,c[o+(n*20|0)+16>>2]|0,0)|0;if(z){p=(c[z+12>>2]|0)+8|0;r=c[p>>2]|0;z:do if((r|0)==(z|0))c[p>>2]=c[z+20>>2];else{do{if(!r)break z;p=r+20|0;r=c[p>>2]|0}while((r|0)!=(z|0));c[p>>2]=c[z+20>>2]}while(0);Fk(he,z)}c[Qb>>2]=c[Qb>>2]|2;Q=v;w=o;R=T;S=U;r=G;break}case 895:{ee=0;z=Ek((c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+12>>2]|0)+40|0,c[o+(n*20|0)+16>>2]|0,0)|0;if(!z){Q=v;w=o;R=T;S=U}else{p=c[z+20>>2]|0;if((p|0)==(c[z+24>>2]|0)){p=Zm(p+8|0,c[z+4>>2]|0,ge)|0;if(!p)p=0;else p=c[p+8>>2]|0;s=p+64|0;while(1){S=c[s>>2]|0;p=S+32|0;if((S|0)==(z|0))break;else s=p}c[s>>2]=c[p>>2]}fg(he,z);c[Qb>>2]=c[Qb>>2]|2;Q=v;w=o;R=T;S=U}break}case 903:{ee=0;K=c[o+(p*20|0)+8>>2]|0;n=ih(he,(K<<2)+4|0,0)|0;if(!n){u=ce;v=fe;n=m;m=t;ee=1317;break a}x=c[o+(p*20|0)+12>>2]|0;I=c[o+(p*20|0)+4>>2]|0;H=v+(I*40|0)|0;if((K|0)>0){z=0;do{S=Rg(v+((z+I|0)*40|0)|0)|0;c[n+(z<<2)>>2]=S;z=z+1|0}while((z|0)!=(K|0));z=K}else z=0;c[n+(z<<2)>>2]=0;F=c[(c[Td>>2]|0)+(d[o+(p*20|0)+3>>0]<<4)+4>>2]|0;P=v+(x*40|0)|0;S=c[P>>2]|0;O=c[F+4>>2]|0;c[O+4>>2]=c[F>>2];F=c[O>>2]|0;s=c[(c[F+204>>2]|0)+12>>2]|0;c[Pd>>2]=O;c[ja>>2]=F;F=c[O+44>>2]|0;c[ka>>2]=F;c[la>>2]=S;c[ma+0>>2]=0;c[ma+4>>2]=0;c[ma+8>>2]=0;c[ma+12>>2]=0;c[ma+16>>2]=0;do if(!F){x=0;z=0}else{G=(F>>>3)+1|0;E=mg(G,0)|0;if(!E){c[pa>>2]=0;x=0;z=1;break}bw(E|0,0,G|0)|0;c[pa>>2]=E;L=O+32|0;G=(((c[2514]|0)>>>0)/((c[L>>2]|0)>>>0)|0)+1|0;if(G>>>0<=F>>>0){S=E+(G>>>3)|0;a[S>>0]=d[S>>0]|1<<(G&7)}c[ra>>2]=Kd;c[sa>>2]=Kd;c[qa>>2]=0;c[ta>>2]=0;c[ua>>2]=100;c[va>>2]=1e9;a[xa>>0]=0;a[wa>>0]=2;c[oa>>2]=43592;z=c[(c[O+12>>2]|0)+56>>2]|0;_m(Pd,1,d[z+33>>0]<<16|d[z+32>>0]<<24|d[z+34>>0]<<8|d[z+35>>0],d[z+37>>0]<<16|d[z+36>>0]<<24|d[z+38>>0]<<8|d[z+39>>0]);c[oa>>2]=0;z=c[la>>2]|0;if(!((K|0)<1|(z|0)==0)){D=O+17|0;E=0;do{F=n+(E<<2)|0;G=c[F>>2]|0;if(G){if((a[D>>0]|0)!=0&(G|0)>1){$m(Pd,G,1,0);G=c[F>>2]|0}c[oa>>2]=43608;an(Pd,G,0,0)|0;c[oa>>2]=0;z=c[la>>2]|0}E=E+1|0}while(!((E|0)>=(K|0)|(z|0)==0))}if(!((c[ka>>2]|0)==0|(z|0)==0)){B=O+17|0;z=O+36|0;J=1;do{E=J>>>3;G=a[(c[pa>>2]|0)+E>>0]|0;D=1<<(J&7);do if(!(G&255&D)){if(J>>>0<2)F=0;else{F=J+-2|0;F=F-((F>>>0)%(((((c[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;F=((F+1|0)==(((c[2514]|0)>>>0)/((c[L>>2]|0)>>>0)|0|0)?3:2)+F|0}if((F|0)==(J|0)?(a[B>>0]|0)!=0:0)break;c[ge>>2]=J;bn(Pd,43632,ge);G=a[(c[pa>>2]|0)+E>>0]|0}while(0);do if(G&255&D){if(J>>>0<2)G=0;else{G=J+-2|0;G=G-((G>>>0)%(((((c[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;G=((G+1|0)==(((c[2514]|0)>>>0)/((c[L>>2]|0)>>>0)|0|0)?3:2)+G|0}if((G|0)!=(J|0))break;if(!(a[B>>0]|0))break;c[ge>>2]=J;bn(Pd,43656,ge)}while(0);J=J+1|0}while(!((c[la>>2]|0)==0?1:J>>>0>(c[ka>>2]|0)>>>0))}z=c[(c[(c[O>>2]|0)+204>>2]|0)+12>>2]|0;if((s|0)!=(z|0)){c[ge>>2]=s;c[ge+4>>2]=z;bn(Pd,43696,ge)}Sc(c[pa>>2]|0);if(c[na>>2]|0){cn(qa);x=0;z=(c[ma>>2]|0)+1|0;break}z=c[ma>>2]|0;if(!z)cn(qa);x=pg(qa)|0}while(0);ig(he,n);S=P;S=$v(c[S>>2]|0,c[S+4>>2]|0,z|0,((z|0)<0)<<31>>31|0)|0;w=P;c[w>>2]=S;c[w+4>>2]=C;w=v+(I*40|0)+8|0;if(!(b[w>>1]&9312))b[w>>1]=1;else rg(H);if(z){if(!x){u=ce;v=fe;n=m;m=t;ee=1317;break a}Tg(H,x,-1,1,1)|0}Ul(H,ub)|0;Q=v;w=o;R=T;S=U;n=p;break}case 947:{ee=0;s=c[o+(p*20|0)+4>>2]|0;n=v+(s*40|0)|0;r=c[o+(p*20|0)+8>>2]|0;s=v+(s*40|0)+8|0;if((b[s>>1]&32)==0?(dn(n),(b[s>>1]&32)==0):0){u=ce;v=fe;n=m;m=t;ee=1317;break a}Q=v+(r*40|0)|0;en(c[n>>2]|0,c[Q>>2]|0,c[Q+4>>2]|0);Q=v;w=o;R=T;S=U;r=G;n=p;break}case 966:{ee=0;w=c[o+(p*20|0)+4>>2]|0;P=v+(w*40|0)|0;O=v+((c[o+(p*20|0)+12>>2]|0)*40|0)|0;L=c[o+(p*20|0)+16>>2]|0;w=v+(w*40|0)+8|0;if((b[w>>1]&32)==0?(dn(P),(b[w>>1]&32)==0):0){u=ce;v=fe;n=m;m=t;ee=1317;break a}if(L){J=c[P>>2]|0;H=O;K=c[H>>2]|0;H=c[H+4>>2]|0;s=J+28|0;if((c[s>>2]|0)!=(L|0)){n=J+8|0;G=c[n>>2]|0;if(G){F=J+20|0;I=J+26|0;if(!(b[I>>1]&1))G=fn(G)|0;E=c[F>>2]|0;A:do if(!E){id=G;od=F;ee=978}else{while(1){F=E+12|0;D=c[F>>2]|0;if(!D)break;B=E+8|0;gn(D,ge,Pd);c[F>>2]=0;G=hn(c[ge>>2]|0,G)|0;E=c[B>>2]|0;if(!E){id=G;od=B;ee=978;break A}}c[F>>2]=jn(G)|0}while(0);if((ee|0)==978?(ee=0,Hc=kn(J)|0,c[od>>2]=Hc,(Hc|0)!=0):0){S=Hc;c[S>>2]=0;c[S+4>>2]=0;c[Hc+8>>2]=0;c[Hc+12>>2]=jn(id)|0}c[n>>2]=0;c[J+12>>2]=0;b[I>>1]=e[I>>1]|1}c[s>>2]=L}z=c[J+20>>2]|0;B:do if(z){C:while(1){x=c[z+12>>2]|0;if(x)do{w=x;B=c[w>>2]|0;w=c[w+4>>2]|0;if((w|0)<(H|0)|(w|0)==(H|0)&B>>>0>>0)x=x+8|0;else{if(!((w|0)>(H|0)|(w|0)==(H|0)&B>>>0>K>>>0))break C;x=x+12|0}x=c[x>>2]|0}while((x|0)!=0);z=c[z+8>>2]|0;if(!z)break B}Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+8>>2]|0)+-1|0;break q}while(0);if((L|0)>-1)z=O;else{Q=v;w=o;R=T;S=U;n=p;break}}else z=O;Q=z;en(c[P>>2]|0,c[Q>>2]|0,c[Q+4>>2]|0);Q=v;w=o;R=T;S=U;n=p;break}case 993:{ee=0;s=c[o+(n*20|0)+16>>2]|0;F=c[o+(n*20|0)+12>>2]|0;J=v+(F*40|0)|0;if((a[o+(n*20|0)+3>>0]|0)!=0?(Ic=c[s+20>>2]|0,kd=c[pb>>2]|0,(kd|0)!=0):0){w=kd;while(1){if((c[w+28>>2]|0)==(Ic|0)){Q=v;w=o;R=T;S=U;break q}w=c[w+4>>2]|0;if(!w){p=n;break}}}else p=n;n=c[qb>>2]|0;if((n|0)>=(c[ya>>2]|0)){q=t;ee=998;break c}B=v+(F*40|0)+8|0;if(!(b[B>>1]&64)){z=s+12|0;x=c[z>>2]|0;w=x+(c[s+8>>2]|0)|0;o=s+16|0;x=(x<<2)+80+(c[o>>2]|0)+(w*40|0)|0;G=ih(he,x,((x|0)<0)<<31>>31)|0;if(!G){u=ce;v=fe;n=m;m=t;ee=1317;break a}bw(G|0,0,x|0)|0;if(!((b[B>>1]&9312)==0?(c[v+(F*40|0)+24>>2]|0)==0:0))Mg(J);b[B>>1]=64;c[J>>2]=G;c[G>>2]=f;c[G+60>>2]=w;c[G+64>>2]=c[z>>2];c[G+44>>2]=p;c[G+16>>2]=c[Kc>>2];c[G+52>>2]=c[za>>2];c[G+24>>2]=c[Fb>>2];c[G+40>>2]=c[Aa>>2];c[G+8>>2]=c[wc>>2];c[G+48>>2]=c[Ba>>2];c[G+28>>2]=c[s+20>>2];c[G+20>>2]=c[Eb>>2];c[G+56>>2]=c[Ca>>2];v=G+80|0;n=v+(w*40|0)|0;if((v|0)!=(n|0))do{b[v+8>>1]=128;c[v+32>>2]=he;v=v+40|0}while((v|0)!=(n|0));n=c[qb>>2]|0;v=G}else{o=s+16|0;v=c[J>>2]|0}c[qb>>2]=n+1;c[v+4>>2]=c[pb>>2];Q=v+32|0;c[Q>>2]=m;c[Q+4>>2]=l;c[v+68>>2]=c[rb>>2];c[v+72>>2]=c[(c[f>>2]|0)+80>>2];c[rb>>2]=0;c[pb>>2]=v;Q=v+40|0;c[Kc>>2]=Q;R=c[v+60>>2]|0;c[za>>2]=R;S=c[v+64>>2]&65535;c[Aa>>2]=S;R=Q+((R+1|0)*40|0)|0;c[Fb>>2]=R;w=c[s>>2]|0;c[wc>>2]=w;c[Ba>>2]=c[s+4>>2];S=R+(S<<2)|0;c[Eb>>2]=S;R=c[o>>2]|0;c[Ca>>2]=R;bw(S|0,0,R|0)|0;R=T;S=U;n=-1;break}case 1009:{ee=0;Q=c[pb>>2]|0;Vl(r,(c[Q+16>>2]|0)+(((c[(c[Q+8>>2]|0)+((c[Q+44>>2]|0)*20|0)+4>>2]|0)+(c[o+(n*20|0)+4>>2]|0)|0)*40|0)|0,4096);Q=v;w=o;R=T;S=U;break}case 1010:{ee=0;if(c[Qb>>2]&16777216){w=c[o+(n*20|0)+8>>2]|0;Q=Ob;w=fw(c[Q>>2]|0,c[Q+4>>2]|0,w|0,((w|0)<0)<<31>>31|0)|0;Q=Ob;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;r=G;break}p=c[o+(n*20|0)+8>>2]|0;r=((p|0)<0)<<31>>31;if(!(c[o+(n*20|0)+4>>2]|0)){w=Wd;w=fw(c[w>>2]|0,c[w+4>>2]|0,p|0,r|0)|0;Q=Wd;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;r=G;break}else{w=Nb;w=fw(c[w>>2]|0,c[w+4>>2]|0,p|0,r|0)|0;Q=Nb;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;r=G;break}}case 1015:{ee=0;if(!(c[o+(n*20|0)+4>>2]|0)){S=Wd;if(!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)){Q=v;w=o;R=T;S=U;break}S=Ob;if(!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)){Q=v;w=o;R=T;S=U;break}Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0;break}else{S=Nb;if(!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)){Q=v;w=o;R=T;S=U;break}S=Ob;if(!((c[S>>2]|0)==0&(c[S+4>>2]|0)==0)){Q=v;w=o;R=T;S=U;break}Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0;break}}case 1022:{ee=0;p=c[pb>>2]|0;if(!p)s=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;else{while(1){r=c[p+4>>2]|0;if(!r)break;else p=r}s=(c[p+16>>2]|0)+((c[o+(n*20|0)+4>>2]|0)*40|0)|0}R=Rg(s)|0;S=s;c[S>>2]=R;c[S+4>>2]=C;S=s+8|0;b[S>>1]=e[S>>1]&48640|4;S=c[o+(n*20|0)+8>>2]|0;R=v+(S*40|0)|0;p=Rg(R)|0;r=C;c[R>>2]=p;c[R+4>>2]=r;S=v+(S*40|0)+8|0;b[S>>1]=e[S>>1]&48640|4;S=s;R=c[S+4>>2]|0;if((R|0)<(r|0)|((R|0)==(r|0)?(c[S>>2]|0)>>>0>>0:0)){Q=s;c[Q>>2]=p;c[Q+4>>2]=r;Q=v;w=o;R=T;S=U;r=J}else{Q=v;w=o;R=T;S=U;r=J}break}case 1028:{ee=0;S=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;R=c[S+4>>2]|0;if((R|0)>0|(R|0)==0&(c[S>>2]|0)>>>0>0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 1030:{ee=0;Q=c[o+(n*20|0)+12>>2]|0;R=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;S=R;Q=fw(c[S>>2]|0,c[S+4>>2]|0,Q|0,((Q|0)<0)<<31>>31|0)|0;S=C;c[R>>2]=Q;c[R+4>>2]=S;if((S|0)<0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 1032:{ee=0;p=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;s=p;r=c[s>>2]|0;s=c[s+4>>2]|0;if((r|0)==0&(s|0)==0){Q=v;w=o;R=T;S=U;r=G}else{w=c[o+(n*20|0)+12>>2]|0;w=fw(w|0,((w|0)<0)<<31>>31|0,r|0,s|0)|0;Q=p;c[Q>>2]=w;c[Q+4>>2]=C;Q=v;w=o;R=T;S=U;r=G;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}break}case 1034:{ee=0;Q=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;R=Q;R=fw(c[R>>2]|0,c[R+4>>2]|0,-1,-1)|0;S=C;c[Q>>2]=R;c[Q+4>>2]=S;if((R|0)==0&(S|0)==0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 1036:{ee=0;Q=v+((c[o+(n*20|0)+4>>2]|0)*40|0)|0;S=Q;R=c[S>>2]|0;S=c[S+4>>2]|0;P=fw(R|0,S|0,1,0)|0;c[Q>>2]=P;c[Q+4>>2]=C;if((R|0)==0&(S|0)==0){Q=v;w=o;R=T;S=U;n=(c[o+(n*20|0)+8>>2]|0)+-1|0}else{Q=v;w=o;R=T;S=U}break}case 1157:{ee=0;Q=v;w=o;R=T;S=U;n=(c[o+(p*20|0)+8>>2]|0)+-1|0;break}case 1158:{ee=0;if(c[o+(n*20|0)+4>>2]|0){b[Ud>>1]=b[Ud>>1]|8;Q=v;w=o;R=T;S=U;break}p=c[Sb>>2]|0;if(!p){Q=v;w=o;R=T;S=U}else{do{S=p+88|0;b[S>>1]=b[S>>1]|8;p=c[p+52>>2]|0}while((p|0)!=0);Q=v;w=o;R=T;S=U}break}case 1166:{ee=0;G=(c[s>>2]|0)+72|0;p=c[G>>2]|0;D:do if(p){while(1){if((c[p+4>>2]|0)==(x|0)?(c[p>>2]|0)==(z|0):0)break;p=c[p+12>>2]|0;if(!p){ee=1171;break D}}if(!p)ee=1171}else ee=1171;while(0);if((ee|0)==1171){ee=0;p=mg(16,0)|0;if(!p){p=n;o=7;q=t;ee=1309;break c}S=p+0|0;D=S+12|0;do{a[S>>0]=0;S=S+1|0}while((S|0)<(D|0));c[p+4>>2]=x;c[p>>2]=z;c[p+12>>2]=c[G>>2];c[G>>2]=p}p=p+8|0;if((d[p>>0]|0)<(w&255)){a[p>>0]=w;Q=v;w=o;R=T;S=U}else{Q=v;w=o;R=T;S=U}break}case 1213:{ee=0;c[pd>>2]=0;w=c[(c[o+(n*20|0)+16>>2]|0)+8>>2]|0;if(!w){p=n;o=6;q=t;ee=1309;break c}s=c[w>>2]|0;if(!s){p=n;o=6;q=t;ee=1309;break c}z=nc[c[s+24>>2]&127](w,pd)|0;Im(f,w);if(z){p=n;o=z;q=t;ee=1309;break c}c[c[pd>>2]>>2]=w;p=tm(f,c[o+(n*20|0)+4>>2]|0,0,-1,0)|0;if(!p){a[ce>>0]=1;hc[c[s+28>>2]&127](c[pd>>2]|0)|0;Q=v;w=o;R=T;S=U;break}else{c[p+32>>2]=c[pd>>2];Q=w+4|0;c[Q>>2]=(c[Q>>2]|0)+1;Q=v;w=o;R=T;S=U;break}}case 1226:{ee=0;p=v+(z*40|0)+8|0;if(!(b[p>>1]&9312)){b[p>>1]=1;Q=v;w=o;R=T;S=U;break}else{rg(x);Q=v;w=o;R=T;S=U;break}}case 1257:{ee=0;Q=r;c[Q>>2]=c[(c[(c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+4>>2]|0)+4>>2]|0)+44>>2];c[Q+4>>2]=0;Q=v;w=o;R=T;S=U;break}case 1258:{ee=0;w=c[(c[Td>>2]|0)+(c[o+(n*20|0)+4>>2]<<4)+4>>2]|0;p=c[o+(n*20|0)+12>>2]|0;r=c[w+4>>2]|0;if(!p)p=0;else{S=c[r+44>>2]|0;p=S>>>0
>>0?p:S}c[r+4>>2]=c[w>>2];r=(c[r>>2]|0)+156|0;if((p|0)>0)c[r>>2]=p;else p=c[r>>2]|0;Q=G;c[Q>>2]=p;c[Q+4>>2]=((p|0)<0)<<31>>31;Q=v;w=o;R=T;S=U;r=G;break}case 1264:{ee=0;n=c[o+(p*20|0)+8>>2]|0;n=(n|0)==0?p:n+-1|0;if((c[Pa>>2]|0)!=0?(b[Ud>>1]&512)==0:0){p=c[o+(p*20|0)+16>>2]|0;if(!p){p=c[_d>>2]|0;if(!p){Q=v;w=o;R=T;S=U;r=J;break}}c[Pd>>2]=0;r=c[f>>2]|0;z=c[r+88>>2]|0;c[cb>>2]=Kd;c[db>>2]=Kd;c[eb>>2]=0;c[fb>>2]=100;c[gb>>2]=z;a[hb>>0]=1;a[ib>>0]=0;c[nd>>2]=r;z=a[p>>0]|0;w=z<<24>>24==0;E:do if((c[r+160>>2]|0)>1){if(!w){w=z;while(1){r=p;do{r=r+1|0;if(w<<24>>24==10)break;w=a[r>>0]|0}while(w<<24>>24!=0);Ok(nd,42288,3);Ok(nd,p,r-p|0);w=a[r>>0]|0;if(!(w<<24>>24))break;else p=r}}}else if(!w){s=r+62|0;w=z;K=1;do{F:do if(!(w<<24>>24)){x=0;w=0}else{z=p;w=0;while(1){x=yn(z,ge)|0;if((c[ge>>2]|0)==135)break F;w=x+w|0;z=z+x|0;if(!(a[z>>0]|0)){x=0;break}}}while(0);Ok(nd,p,w);z=p+w|0;if(!x)break E;do if((a[z>>0]|0)==63)if((x|0)>1){zn(p+(w+1)|0,Pd)|0;z=c[Pd>>2]|0;break}else{c[Pd>>2]=K;z=K;break}else{z=mh(f,z,x)|0;c[Pd>>2]=z}while(0);p=p+(w+x)|0;K=z+1|0;G=z+-1|0;F=c[xb>>2]|0;z=F+(G*40|0)|0;x=e[F+(G*40|0)+8>>1]|0;do if(!(x&1)){if(x&4){Q=z;R=c[Q+4>>2]|0;S=ge;c[S>>2]=c[Q>>2];c[S+4>>2]=R;An(nd,0,19920,ge);break}if(x&8){h[k>>3]=+h[z>>3];c[ge>>2]=c[k>>2];c[ge+4>>2]=c[k+4>>2];An(nd,0,20272,ge);break}if(!(x&2)){if(x&16384){c[ge>>2]=c[z>>2];An(nd,0,42304,ge);break}Ok(nd,42320,2);B=c[F+(G*40|0)+12>>2]|0;if((B|0)>0){z=F+(G*40|0)+16|0;x=0;do{c[ge>>2]=d[(c[z>>2]|0)+x>>0];An(nd,0,42328,ge);x=x+1|0}while((x|0)!=(B|0))}Ok(nd,42336,1);break}else{B=a[s>>0]|0;if(B<<24>>24==1){S=c[F+(G*40|0)+16>>2]|0;c[ge>>2]=c[F+(G*40|0)+12>>2];c[ge+4>>2]=S;An(nd,0,42296,ge);break}S=Ld+0|0;D=S+40|0;do{c[S>>2]=0;S=S+4|0}while((S|0)<(D|0));c[kb>>2]=r;Tg(Ld,c[F+(G*40|0)+16>>2]|0,c[F+(G*40|0)+12>>2]|0,B,0)|0;S=c[lb>>2]|0;if(!((S&2|0)==0|(S&16711680|0)==65536))xn(Ld,1)|0;S=c[nb>>2]|0;c[ge>>2]=c[mb>>2];c[ge+4>>2]=S;An(nd,0,42296,ge);if((b[lb>>1]&9312)==0&(c[ob>>2]|0)==0)break;Mg(Ld);break}}else Ok(nd,20304,4);while(0);w=a[p>>0]|0}while(w<<24>>24!=0)}while(0);Q=pg(nd)|0;fc[c[Pa>>2]&15](c[jb>>2]|0,Q);ig(he,Q);Q=v;w=o;R=T;S=U;r=J}else{Q=v;w=o;R=T;S=U;r=J}break}}if((ee|0)==28){ee=0;v=o+(n*20|0)+4|0;p=c[v>>2]|0;if(p){u=v;ee=34;break}v=c[pb>>2]|0;if(!v){ee=30;break}c[pb>>2]=c[v+4>>2];c[qb>>2]=(c[qb>>2]|0)+-1;l=c[rb>>2]|0;c[sb>>2]=l;c[tb>>2]=(c[tb>>2]|0)+l;v=Tl(v)|0;l=je;w=c[wc>>2]|0;if((c[o+(n*20|0)+8>>2]|0)==4)n=(c[w+(v*20|0)+8>>2]|0)+-1|0;else n=v;m=c[l>>2]|0;l=c[l+4>>2]|0;Q=c[Kc>>2]|0;R=T;S=U}else if((ee|0)==488){ee=0;w=om(he,z,x)|0;if(!w){Q=v;w=o;R=T;S=U}else{p=n;q=w;ee=1318;break}}v=Q;o=w;T=R;U=S;p=n+1|0}switch(ee|0){case 30:{c[ie>>2]=p;a[be>>0]=c[o+(n*20|0)+8>>2];c[de>>2]=n;ee=41;break}case 34:{c[ie>>2]=p;a[be>>0]=c[o+(n*20|0)+8>>2];c[de>>2]=n;p=a[o+(n*20|0)+3>>0]|0;if(!(p<<24>>24)){o=c[o+(n*20|0)+16>>2]|0;if(!o){o=0;ee=39}else{c[ge>>2]=o;$g(fe,he,10344,ge)}}else{q=c[41536+((p&255)+-1<<2)>>2]|0;p=c[o+(n*20|0)+16>>2]|0;if(!p){o=q;ee=39}else{c[ge>>2]=q;c[ge+4>>2]=p;$g(fe,he,41624,ge)}}if((ee|0)==39){c[ge>>2]=o;$g(fe,he,41656,ge)}ee=c[u>>2]|0;md=c[_d>>2]|0;nd=c[fe>>2]|0;c[ge>>2]=n;c[ge+4>>2]=md;c[ge+8>>2]=nd;Zc(ee,41600,ge);ee=41;break}case 80:{t=c[Zd>>2]|0;if(!((t|0)==0|g>>>0>>0)?(hc[t&127](c[Vd>>2]|0)|0)!=0:0){n=m;o=9;m=q;ee=1311;break a}nd=Wd;md=c[nd+4>>2]|0;if((md|0)>0|(md|0)==0&(c[nd>>2]|0)>>>0>0){o=c[f>>2]|0;c[ie>>2]=787;a[be>>0]=2;$g(fe,o,34376,ge);o=1;ee=1309;break}t=Xl(f,1)|0;if(!t){c[Xd>>2]=(c[Xd>>2]|0)+2|1;u=c[o+(p*20|0)+4>>2]|0;c[$d>>2]=v+(u*40|0);n=o+(p*20|0)+8|0;if((c[n>>2]|0)>0){t=0;do{r=t+u|0;s=v+(r*40|0)|0;r=v+(r*40|0)+8|0;o=b[r>>1]|0;if(o&4096){if(Rl(s)|0){u=ce;v=fe;n=m;m=q;ee=1317;break a}o=b[r>>1]|0}if((o&514)==2)Yl(s)|0;t=t+1|0}while((t|0)<(c[n>>2]|0))}if(a[ce>>0]|0){u=ce;v=fe;n=m;m=q;ee=1317;break a}c[de>>2]=p+1;n=m;m=g;g=100;break a}else{o=t;ee=1309}break}case 313:{c[ge>>2]=73058;c[ge+4>>2]=10788;Zc(11,13600,ge);o=11;ee=1309;break}case 343:{c[ge>>2]=73142;c[ge+4>>2]=10788;Zc(11,13600,ge);o=11;ee=1309;break}case 447:{$g(fe,he,41712,ge);p=n;o=5;ee=1309;break}case 460:{c[ge>>2]=o;$g(fe,he,41768,ge);o=1;ee=1309;break}case 462:{$g(fe,he,41792,ge);o=5;ee=1309;break}case 467:{c[de>>2]=g;a[ae>>0]=0;c[ie>>2]=5;g=5;break a}case 489:{r=c[o+(p*20|0)+4>>2]|0;o=c[o+(p*20|0)+8>>2]|0;g=(r|0)!=0;if(g){o=(o|0)!=0;if(!(o|(a[ae>>0]|0)!=0))if((c[Yd>>2]|0)>0){$g(fe,he,41848,ge);g=m;m=n;o=5;ee=1309;break}else o=0}else o=(o|0)!=0;if((r|0)==(d[ae>>0]|0)){if(g)g=o?41952:42e3;else g=41904;$g(fe,he,g,ge);g=m;m=n;o=1;ee=1309;break}if(!o){g=pm(f,1)|0;if(g)break a;a[ae>>0]=r;if((Nl(f)|0)==5){c[de>>2]=p;a[ae>>0]=1-r;c[ie>>2]=5;g=5;break a}}else{Gl(he,516);a[ae>>0]=1}Hl(he);g=(c[ie>>2]|0)==0?101:1;break a}case 508:{c[de>>2]=g;c[ie>>2]=5;g=5;break a}case 522:{ig(he,c[fe>>2]|0);c[fe>>2]=gh(he,16040)|0;o=c[o>>2]|0;if((c[c[(c[Td>>2]|0)+(o<<4)+12>>2]>>2]|0)!=(r|0))rm(he,o);b[Ud>>1]=b[Ud>>1]|8;o=17;ee=1309;break}case 542:{c[ge>>2]=73997;c[ge+4>>2]=10788;Zc(11,13600,ge);q=11;t=o;ee=1318;break}case 560:{c[o+56>>2]=0;o=7;ee=1309;break}case 832:{a[be>>0]=2;o=6;ee=1309;break}case 882:{Ag(he);u=ce;v=fe;n=m;m=q;ee=1317;break a}case 884:{Ag(he);if((o|0)==7){u=ce;v=fe;n=m;m=q;ee=1317;break a}else ee=1309;break}case 998:{$g(fe,he,42112,ge);o=1;ee=1309;break}case 1080:{c[ge>>2]=o?42208:42216;$g(fe,he,42152,ge);o=1;ee=1309;break}case 1101:{$g(fe,he,42344,ge);o=1;ee=1309;break}case 1103:{$g(fe,he,42384,ge);o=1;ee=1309;break}case 1145:{c[ge>>2]=56343;c[ge+4>>2]=10788;Zc(11,13600,ge);o=11;ee=1309;break}case 1316:{$g(fe,he,10096,ge);n=m;o=18;m=q;ee=1311;break a}}if((ee|0)==41)if((Nl(f)|0)==5){c[ie>>2]=5;n=m;m=g;g=5;break a}else{n=m;m=g;g=(c[ie>>2]|0)!=0?1:101;break a}else if((ee|0)==1309){n=m;p=p+1|0;m=q;ee=1311;break a}else if((ee|0)==1318){q=(a[ce>>0]|0)==0?q:7;if((q|0)==3082){n=m;o=3082;m=t;ee=1311;break a}else if((q|0)!=516){n=q&255;if(n>>>0>26|(n|0)==2)o=16328;else o=c[15488+(n<<2)>>2]|0}else o=16344;c[ge>>2]=o;$g(fe,he,10344,ge);n=m;o=q;m=t;ee=1311;break a}}else{q=f+44|0;n=m;g=0;p=0;m=0}while(0);c[ie>>2]=9;c[ge>>2]=15832;$g(q,he,10344,ge);o=9;ee=1311}while(0);if((ee|0)==1317){a[u>>0]=1;$g(v,he,15776,ge);o=7;ee=1311}if((ee|0)==1311){c[ie>>2]=o;md=c[f+168>>2]|0;nd=c[f+44>>2]|0;c[ge>>2]=p;c[ge+4>>2]=md;c[ge+8>>2]=nd;Zc(o,42256,ge);Nl(f)|0;if((o|0)==3082)a[he+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{rm(he,(m&255)+-1|0);m=g;g=1}}nd=je;c[nd>>2]=n;c[nd+4>>2]=l;nd=f+124|0;c[nd>>2]=(c[nd>>2]|0)+m;i=ke;return g|0}
function Av(e){e=e|0;var 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,A=0;A=e+20|0;r=e+14|0;f=a[r>>0]|0;w=e+13|0;g=a[w>>0]|0;a:do if((f&255)>(g&255))f=0;else{y=e+4|0;z=e+16|0;s=e+8|0;t=e+12|0;u=e+24|0;v=e+28|0;i=f&255;j=c[y>>2]|0;h=c[A>>2]|0;b:while(1){q=c[e+(i+-2<<2)+24>>2]|0;p=c[e+(i+-1<<2)+24>>2]|0;if(j){while(1){o=j+12|0;if((h|0)<(c[o>>2]|0)){g=h;f=(c[j+20>>2]|0)+(h*48|0)|0;while(1){do if((c[f+8>>2]|0)==(q|0)?(c[f+12>>2]|0)==(p|0):0){if((d[r>>0]|0)>=3?(c[(c[f>>2]|0)+4>>2]&1|0)!=0:0)break;n=f+18|0;h=b[n>>1]|0;if((h&1024)!=0?(x=a[w>>0]|0,(x&255)<22):0){i=c[(c[f>>2]|0)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[i+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[(c[i+20>>2]|0)+4>>2]|0;i=c[i>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(x<<24>>24)){m=0;k=0}else{l=c[i+28>>2]|0;m=i+32|0;k=0;while(1){if((c[e+(k<<2)+24>>2]|0)==(l|0)?(c[e+((k|1)<<2)+24>>2]|0)==(b[m>>1]|0):0){m=x;break d}k=k+2|0;if((k|0)>=(x&255|0)){m=x;break}}}while(0);if((k|0)==(m&255|0)){c[e+(k<<2)+24>>2]=c[i+28>>2];c[e+((k|1)<<2)+24>>2]=b[i+32>>1];a[w>>0]=(d[w>>0]|0)+2}}i=h&65535;if(i&c[z>>2]){if((c[s>>2]|0)!=0&(i&128|0)==0){l=c[c[j>>2]>>2]|0;k=c[f>>2]|0;i=a[t>>0]|0;h=(jv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ku(l,c[k+12>>2]|0,c[k+16>>2]|0)|0;if(!h)h=c[(c[l>>2]|0)+8>>2]|0;if($c(c[h>>2]|0,c[s>>2]|0)|0)break;h=b[n>>1]|0}if(!(h&2))break b;h=c[(c[f>>2]|0)+16>>2]|0;if((a[h>>0]|0)!=-102)break b;if((c[h+28>>2]|0)!=(c[u>>2]|0))break b;if((b[h+32>>1]|0)!=(c[v>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[o>>2]|0))break;else f=f+48|0}g=c[y>>2]|0}else g=j;j=c[g+4>>2]|0;c[y>>2]=j;if(!j)break;else h=0}f=a[r>>0]|0;g=a[w>>0]|0}j=c[e>>2]|0;c[y>>2]=j;h=(f&255)+2|0;f=h&255;a[r>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[A>>2]=g+1}while(0);return f|0}function Bv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=c[d>>2]|0;l=c[c[g>>2]>>2]|0;d=c[d+16>>2]|0;a:do if(!d){g=g+16|0;i=c[g>>2]|0;k=f+36|0;if((c[k>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[f+16>>0]|0;do{do if((a[i+16>>0]|0)==h<<24>>24?(c[i+36>>2]&512|0)!=0:0){if(Pv(i,f)|0){b[d>>1]=b[i+20>>1]|0;b[j>>1]=(e[i+22>>1]|0)+65535;break}if(Pv(f,i)|0){b[d>>1]=b[i+20>>1]|0;b[j>>1]=(e[i+22>>1]|0)+1}}while(0);i=c[i+52>>2]|0}while((i|0)!=0)}d=Qv(g,f)|0;if(d){g=c[d>>2]|0;b:do if(g){d=g+52|0;if(c[d>>2]|0)do{d=Qv(d,f)|0;if(!d)break b;h=c[d>>2]|0;if(!h)break b;c[d>>2]=c[h+52>>2];Fu(l,h);ig(l,h)}while((c[d>>2]|0)!=0)}else{g=ih(l,72,0)|0;c[d>>2]=g;if(!g){d=7;break a}c[g+48>>2]=g+56;b[g+40>>1]=0;b[g+44>>1]=3;c[g+36>>2]=0;c[g+52>>2]=0}while(0);Hv(l,g);do if(!(Ju(l,g,e[f+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[h>>2]=c[d>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));gw(c[g+48>>2]|0,c[f+48>>2]|0,e[g+40>>1]<<2|0)|0;d=c[k>>2]|0;if(d&1024){a[f+28>>0]=0;break}if(d&16384)c[f+28>>2]=0}else{d=g+24|0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0}while(0);if(((c[g+36>>2]&1024|0)==0?(m=g+28|0,n=c[m>>2]|0,(n|0)!=0):0)?(c[n+40>>2]|0)==0:0){c[m>>2]=0;d=0}else d=0}else d=0}else{g=f;Gv(d,c[g>>2]|0,c[g+4>>2]|0,b[f+20>>1]|0,b[f+22>>1]|0);d=0}while(0);return d|0}function Cv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[34032+(e-c)>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[34032+(c-e)>>0]|0)+c&65535;break}while(0);return a|0}function Dv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(yu(b,d,e)|0))f=1;else{f=a[d>>0]|0;if(f<<24>>24==77)g=6;else if(f<<24>>24==71){if(Dv(b,c[d+12>>2]|0,e)|0){f=1;break}if(Dv(b,c[d+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}if(((g|0)==6?(yu(c[b+12>>2]|0,c[d+12>>2]|0,e)|0)==0:0)?(f=a[b>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Ev(a,d,f){a=a|0;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,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;s=d;t=d+8|0;g=t;r=~(c[g>>2]|c[s>>2]);s=~(c[g+4>>2]|c[s+4>>2]);g=c[a+12>>2]|0;p=a+20|0;a:do if((g|0)>0){q=d+40|0;a=d+22|0;o=d+48|0;d=0;n=c[p>>2]|0;while(1){if(b[n+20>>1]&2)break a;m=n+40|0;l=c[m>>2]|0;m=c[m+4>>2]|0;k=t;b:do if(((c[k>>2]&l|0)!=0?1:(c[k+4>>2]&m|0)!=0)&((l&r|0)==0&(m&s|0)==0)){h=b[q>>1]|0;c:do if(h<<16>>16){m=c[o>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[m+(l<<2)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[k+4>>2]|0;if((k|0)>-1?((c[p>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[n+16>>1]|0;if(h<<16>>16<1){b[a>>1]=(e[a>>1]|0)+(h&65535);break}b[a>>1]=(b[a>>1]|0)+-1<<16>>16;if(b[n+18>>1]&2){l=(Is(c[(c[n>>2]|0)+16>>2]|0,u)|0)!=0;m=c[u>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[u>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[a>>1]|0)>(d|0))b[a>>1]=d;i=v;return}function Fv(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,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,ca=0,da=0,ea=0;ea=i;i=i+112|0;if((i|0)>=(j|0))ba();O=ea;S=c[c[c[d>>2]>>2]>>2]|0;ca=c[d+12>>2]|0;if(!(a[S+65>>0]|0)){da=ca+36|0;if(!(c[da>>2]&32))if((c[g+40>>2]|0)<1)k=63;else k=(a[f+36>>0]&8)<<4^191;else k=24;T=g+51|0;$=ca+24|0;l=b[(c[g+4>>2]|0)+(e[$>>1]<<1)>>1]|0;K=l<<16>>16;L=d+4|0;k=zv(O,c[L>>2]|0,c[f+40>>2]|0,K,(a[T>>0]&4)==0?k:k&131,g)|0;U=b[$>>1]|0;V=ca+42|0;Q=b[V>>1]|0;W=ca+40|0;R=b[W>>1]|0;X=c[da>>2]|0;N=ca;M=c[N>>2]|0;N=c[N+4>>2]|0;Y=ca+22|0;Z=b[Y>>1]|0;b[ca+18>>1]=0;_=g+8|0;A=b[c[_>>2]>>1]|0;if(A<<16>>16<11)z=0;else{z=A<<16>>16;z=((bs(z,((z|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{B=l<<16>>16<0;C=f+16|0;D=ca+8|0;E=(R&65535)+1|0;F=ca+48|0;G=h<<16>>16==0;H=g+46|0;t=l<<16>>16>-1;u=g+50|0;v=g+44|0;w=ca+20|0;x=h<<16>>16;y=g+48|0;o=0;r=k;p=0;while(1){l=b[r+18>>1]|0;q=l&65535;if(l<<16>>16==128)if(!B?(a[(c[(c[C>>2]|0)+4>>2]|0)+(K*24|0)+20>>0]|0)==0:0)P=12;else{m=o;l=p;k=0}else P=12;if((P|0)==12){P=0;m=r+32|0;s=m;n=D;if(((c[n>>2]&c[s>>2]|0)==0?(c[n+4>>2]&c[s+4>>2]|0)==0:0)?(I=r+20|0,!((b[I>>1]&256)!=0&l<<16>>16==16)):0){c[da>>2]=X;b[$>>1]=U;b[W>>1]=R;if(Ju(S,ca,E)|0){k=0;break a}k=b[W>>1]|0;n=k+1<<16>>16;b[W>>1]=n;c[(c[F>>2]|0)+((k&65535)<<2)>>2]=r;k=m;l=D;m=(c[k+4>>2]|N)&~c[l+4>>2];s=ca;c[s>>2]=(c[k>>2]|M)&~c[l>>2];c[s+4>>2]=m;b:do if(!(q&1)){if(q&2){k=c[da>>2]|0;l=k|1;c[da>>2]=l;do if(!B){if(!G){s=0;break b}if((e[$>>1]|0)!=((e[H>>1]|0)+-1|0)){s=0;break b}if(!t)break;if(a[u>>0]|0)break;l=k|65537;c[da>>2]=l;s=0;break b}while(0);l=k|4097;c[da>>2]=l;s=0;break}if(q&128){l=c[da>>2]|8;c[da>>2]=l;s=0;break}k=c[da>>2]|0;if(!(q&36)){l=k|18;c[da>>2]=l;if(!(k&32)){s=0;o=0;p=r;break}s=0;o=c[(c[F>>2]|0)+((n&65535)+-2<<2)>>2]|0;p=r;break}l=k|34;c[da>>2]=l;if(!(b[I>>1]&256)){s=0;o=r;p=0}else{k=r+48|0;if(Ju(S,ca,(n&65535)+1|0)|0){k=0;break a}l=b[W>>1]|0;b[W>>1]=l+1<<16>>16;c[(c[F>>2]|0)+((l&65535)<<2)>>2]=k;l=c[da>>2]|16;c[da>>2]=l;s=0;o=r;p=k}}else{k=c[r>>2]|0;l=c[da>>2]|4;c[da>>2]=l;if(!(c[k+4>>2]&2048)){k=c[k+20>>2]|0;if((k|0)!=0?(J=c[k>>2]|0,(J|0)!=0):0)s=(bs(J,((J|0)<0)<<31>>31)|0)<<16>>16;else s=0}else s=46}while(0);do if(!(l&2)){k=(b[$>>1]|0)+1<<16>>16;b[$>>1]=k;k=k&65535;m=b[r+16>>1]|0;if(m<<16>>16<1&t){n=(m&65535)-s+(e[Y>>1]|0)&65535;b[Y>>1]=n;break}m=c[_>>2]|0;m=(e[Y>>1]|0)+((e[m+(k<<1)>>1]|0)-(e[m+(k+-1<<1)>>1]|0))|0;k=m&65535;b[Y>>1]=k;if(!(q&128))n=k;else{n=m+10&65535;b[Y>>1]=n}}else{k=b[Y>>1]|0;n=k<<16>>16;do if(o){m=b[o+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(p){m=b[p+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(o|0)!=0;do if(m?(b[o+16>>1]|0)>0&(p|0)!=0:0){if((b[p+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);n=(((p|0)!=0)<<31>>31)+(m<<31>>31)+n|0;r=k<<16>>16<10?10:k<<16>>16;n=((r|0)<(n|0)?r:n)&65535;b[Y>>1]=n}while(0);k=n&65535;m=Cv(z,k+1+(((b[v>>1]|0)*15|0)/(b[(c[C>>2]|0)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Cv(m,k+16&65535)|0;l=s+x|0;b[w>>1]=(m&65535)+l;b[Y>>1]=k+l;Ev(c[L>>2]|0,ca,A);k=Bv(d,ca)|0;s=c[da>>2]|0;b[Y>>1]=(s&2|0)==0?n:Z;if((s&16|0)==0?(e[$>>1]|0)<(e[y>>1]|0):0)Fv(d,f,g,l&65535)|0;b[Y>>1]=Z;m=o;l=p}else{m=o;l=p;k=0}}r=Av(O)|0;if(!((k|0)==0&(r|0)!=0))break;else{o=m;p=l}}}while(0);l=ca;c[l>>2]=M;c[l+4>>2]=N;b[$>>1]=U;b[V>>1]=Q;c[da>>2]=X;b[Y>>1]=Z;b[W>>1]=R;l=U&65535;if(((U<<16>>16==Q<<16>>16?(aa=l+1|0,aa>>>0<(e[g+46>>1]|0)>>>0):0)?(a[T>>0]&64)==0:0)?(b[(c[_>>2]|0)+(aa<<1)>>1]|0)>41:0){k=Ju(S,ca,(R&65535)+1|0)|0;if(!k){b[$>>1]=(b[$>>1]|0)+1<<16>>16;b[V>>1]=(b[V>>1]|0)+1<<16>>16;k=b[W>>1]|0;b[W>>1]=k+1<<16>>16;c[(c[ca+48>>2]|0)+((k&65535)<<2)>>2]=0;c[da>>2]=c[da>>2]|32768;k=c[_>>2]|0;k=(e[k+(l<<1)>>1]|0)-(e[k+(aa<<1)>>1]|0)|0;b[Y>>1]=(e[Y>>1]|0)-k;Fv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[Y>>1]=Z;b[$>>1]=U;b[V>>1]=U;c[da>>2]=X;k=0}}}else k=7;i=ea;return k|0}function Gv(a,d,e,f,g){a=a|0;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,o=0,p=0;l=b[a>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[k+8>>1]|0;if(i<<16>>16>=f<<16>>16?(p=k,(c[p>>2]&d|0)==(d|0)?(c[p+4>>2]&e|0)==(e|0):0):0){n=k;o=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,p=c[i>>2]|0,i=c[i+4>>2]|0,(p&d|0)==(p|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[a+16>>1]|0;k=1;do{if(i<<16>>16>(b[a+(k<<4)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[h+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;o=14}}else o=9}else o=9;while(0);if((o|0)==9){n=l&65535;b[a>>1]=l+1<<16>>16;b[a+(n<<4)+18>>1]=g;n=a+(n<<4)+8|0;o=14}if((o|0)==14?(m=n,c[m>>2]=d,c[m+4>>2]=e,b[n+8>>1]=f,m=n+10|0,(b[m>>1]|0)>g<<16>>16):0)b[m>>1]=g;return}function Hv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[d+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[h>>0]|0)!=0):0){e=d+32|0;Sc(c[e>>2]|0);a[h>>0]=0;c[e>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[f>>2]|0,(g|0)!=0):0){ig(b,c[g+16>>2]|0);ig(b,c[f>>2]|0);c[f>>2]=0}}while(0);return}function Iv(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var 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,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0;qa=i;i=i+32|0;if((i|0)>=(j|0))ba();la=qa;p=c[c[f>>2]>>2]|0;ka=l&65535;if(l<<16>>16!=0?(b[p+60>>1]&128)!=0:0)o=0;else ma=3;a:do if((ma|0)==3){pa=c[g>>2]|0;o=pa&65535;if(o>>>0<=63){na=ew(1,0,o|0)|0;na=fw(na|0,C|0,-1,-1)|0;oa=C;b:do if((na|0)==0&(oa|0)==0){g=0;h=0;p=1}else{ea=h+24|0;fa=f+4|0;ga=(o|0)==0;ca=g+4|0;da=(k&768)==0;aa=p+8|0;T=(k&256)==0;U=f+68|0;V=la+20|0;W=la+4|0;Z=la+24|0;_=f+328|0;X=0;Y=0;g=0;h=0;k=0;q=0;$=0;p=1;l=0;while(1){if(($|0)>0){R=l+8|0;S=c[R>>2]|k;q=c[R+4>>2]|q}else S=k;if(($|0)<(ka|0))l=c[(c[ea>>2]|0)+($<<2)>>2]|0;else l=m;y=l+36|0;k=c[y>>2]|0;if(k&1024)break;R=c[(c[fa>>2]|0)+((d[l+16>>0]|0)*72|0)+48>>2]|0;if(!ga){k=~S;s=~q;v=0;do{x=ew(1,0,v|0)|0;w=C;c:do if((x&g|0)==0&(w&h|0)==0){r=c[(c[ca>>2]|0)+(v*20|0)>>2]|0;u=c[r+4>>2]|0;if(u&4096)do{if(!(u&262144))r=r+12|0;else r=c[(c[r+20>>2]|0)+4>>2]|0;r=c[r>>2]|0;u=c[r+4>>2]|0}while((u&4096|0)!=0);if(((a[r>>0]|0)==-102?(c[r+28>>2]|0)==(R|0):0)?(ha=r+32|0,ia=Bu(_,R,b[ha>>1]|0,k,s,130,0)|0,(ia|0)!=0):0){do if(b[ia+18>>1]&2){if((b[ha>>1]|0)<=-1)break;r=_t(c[f>>2]|0,c[(c[ca>>2]|0)+(v*20|0)>>2]|0)|0;if(!r)r=c[aa>>2]|0;u=c[r>>2]|0;t=_t(c[f>>2]|0,c[ia>>2]|0)|0;if(!t)t=c[aa>>2]|0;if($c(u,c[t>>2]|0)|0)break c}while(0);g=x|g;h=w|h}}while(0);v=v+1|0}while((v|0)<(o|0));k=c[y>>2]|0}do if(!(k&4096)){if(!(k&256)){r=c[l+28>>2]|0;if(!r){o=0;break a}if(a[r+51>>0]&4){o=0;break a}k=b[r+48>>1]|0;p=(a[r+50>>0]|0)!=0&1;if(!(k<<16>>16)){ma=71;break}else{P=k&65535;Q=b[r+46>>1]|0}}else{P=1;Q=0;r=0}G=l+24|0;H=l+42|0;I=l+48|0;J=(r|0)==0;K=r+32|0;L=ew(1,0,$|0)|0;M=C;N=r+4|0;O=r+28|0;F=r+12|0;k=0;r=0;x=0;E=0;d:while(1){w=(r|0)<(e[G>>1]|0);if((w?(b[H>>1]|0)==0:0)?(ja=e[(c[(c[I>>2]|0)+(r<<2)>>2]|0)+18>>1]|0,(ja&130|0)!=0):0){p=(ja&128|0)==0?p:0;w=E}else{if(!J){u=b[(c[N>>2]|0)+(r<<1)>>1]|0;t=a[(c[O>>2]|0)+r>>0]|0;s=c[F>>2]|0;u=u<<16>>16==(b[s+36>>1]|0)?-1:u<<16>>16;v=(u|0)>-1;if(p<<24>>24!=0&v)if(w){v=1;D=u}else{v=1;D=u;p=(a[(c[s+4>>2]|0)+(u*24|0)+20>>0]|0)==0?0:p}else D=u}else{v=0;D=-1;t=0}if(ga){ma=68;break}else{w=1;B=0}e:while(1){z=ew(1,0,B|0)|0;A=C;do if((z&g|0)==0&(A&h|0)==0){s=c[(c[ca>>2]|0)+(B*20|0)>>2]|0;u=c[s+4>>2]|0;if(!(u&4096))y=s;else{y=s;do{if(!(u&262144))u=y+12|0;else u=c[(c[y+20>>2]|0)+4>>2]|0;y=c[u>>2]|0;u=c[y+4>>2]|0}while((u&4096|0)!=0)}w=da?0:w;if((a[y>>0]|0)!=-102)break;if((c[y+28>>2]|0)!=(R|0))break;if((b[y+32>>1]|0)!=(D|0))break;if(!v){y=z;v=A;w=B;break e}u=_t(c[f>>2]|0,s)|0;if(!u)u=c[aa>>2]|0;if(!($c(c[u>>2]|0,c[(c[K>>2]|0)+(r<<2)>>2]|0)|0)){y=z;v=A;w=B;break e}}while(0);B=B+1|0;if(!(w<<24>>24!=0&(B|0)<(o|0))){ma=68;break d}}do if(T){if(E<<24>>24)if((t^x)<<24>>24==(a[(c[ca>>2]|0)+(w*20|0)+12>>0]|0)){w=E;break}else{ma=68;break d}s=a[(c[ca>>2]|0)+(w*20|0)+12>>0]|0;x=s^t;if(t<<24>>24==s<<24>>24){w=1;break}s=n;t=c[s+4>>2]|M;w=n;c[w>>2]=c[s>>2]|L;c[w+4>>2]=t;w=1}else w=E;while(0);g=y|g;h=v|h;k=(D|0)<0?1:k}r=r+1|0;if((r|0)>=(P|0))break;else E=w}if((ma|0)==68){ma=0;p=(r|0)==0|(r|0)<(Q&65535|0)?0:p}if(!(k<<24>>24))ma=71;else p=1}else ma=71;while(0);if((ma|0)==71){ma=0;if(!(p<<24>>24)){p=0;break b}}R=l+8|0;X=c[R>>2]|X;Y=c[R+4>>2]|Y;if(!ga){w=~X;x=~Y;v=0;do{r=ew(1,0,v|0)|0;u=C;do if((r&g|0)==0&(u&h|0)==0){k=c[(c[ca>>2]|0)+(v*20|0)>>2]|0;s=wv(U,k)|0;t=C;if((s|0)==0&(t|0)==0?(c[la+0>>2]=0,c[la+4>>2]=0,c[la+8>>2]=0,c[la+12>>2]=0,c[la+16>>2]=0,c[la+20>>2]=0,a[V>>0]=1,c[la>>2]=78,c[W>>2]=79,c[Z>>2]=0,ns(la,k)|0,(a[V>>0]|0)==0):0)break;R=(s&w|0)==0&(t&x|0)==0;g=(R?r:0)|g;h=(R?u:0)|h}while(0);v=v+1|0}while((v|0)<(o|0))}if(h>>>0>oa>>>0|(h|0)==(oa|0)&g>>>0>=na>>>0|p<<24>>24==0|($|0)>=(ka|0))break b;else{k=S;$=$+1|0}}da=(a[l+29>>0]|0)==0;g=da?g:na;h=da?h:oa}while(0);if((g|0)==(na|0)&(h|0)==(oa|0)){o=pa&255;break}if(!(p<<24>>24)){do{o=o+-1|0;if((o|0)<=0){o=0;break a}ca=ew(1,0,o|0)|0;ca=fw(ca|0,C|0,-1,-1)|0;da=C}while(!((ca&g|0)==(ca|0)&(da&h|0)==(da|0)));o=o&255}else o=-1}else o=0}while(0);i=qa;return o|0}function Jv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Ok(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[c>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Ok(b,d,c);Ok(b,e,1);Ok(b,13552,1);return}function Kv(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[c[c[a>>2]>>2]>>2]|0;d=c[a+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[g>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[f>>1]|0;if(e&1){Ck(i,c[h>>2]|0);e=b[f>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[h+12>>2]|0;Kv(e);ig(i,e)}}else{e=c[h+12>>2]|0;Kv(e);ig(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[g>>2]|0;if((d|0)!=(a+24|0))ig(i,d);return}function Lv(b,e,f){b=b|0;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;s=i;i=i+32|0;if((i|0)>=(j|0))ba();r=s;h=c[b+8>>2]|0;k=c[b>>2]|0;if(e){l=(f|0)==10;m=b+437|0;n=r+4|0;o=r+1|0;p=r+8|0;q=r+12|0;g=f&255;do{if(l)f=a[e+1>>0]|0;else f=g;a[m>>0]=f;f=d[e>>0]|0;if((f|0)==108){u=Rv(b,e)|0;t=cr(k,c[e+8>>2]|0,0)|0;f=Jr(k,c[e+28>>2]|0)|0;pr(b,u,t,f,d[m>>0]|0)}else if((f|0)==109){f=Rv(b,e)|0;nr(b,f,Ir(k,c[e+20>>2]|0,0,0)|0)}else if((f|0)==110){u=Rv(b,e)|0;t=Lr(k,c[e+24>>2]|0,0)|0;f=Ir(k,c[e+20>>2]|0,0,0)|0;or(b,u,t,f,d[m>>0]|0)}else{f=cr(k,c[e+8>>2]|0,0)|0;a[r>>0]=4;c[n>>2]=0;a[o>>0]=0;c[p>>2]=0;c[q>>2]=0;er(b,f,r)|0;Ik(k,f,1)}if((a[e>>0]|0)!=119)sh(h,98,0,0,0)|0;e=c[e+32>>2]|0}while((e|0)!=0)}i=s;return}function Mv(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;m=i;i=i+16|0;if((i|0)>=(j|0))ba();h=m;l=c[d>>2]|0;c[h>>2]=0;c[h+4>>2]=0;h=jr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[e+36>>1]|0)!=g<<16>>16:0){g=c[e+4>>2]|0;c[h+28>>2]=f+1+k;a[h+1>>0]=a[g+(k*24|0)+21>>0]|0;k=c[g+(k*24|0)+16>>2]|0;if(!k)k=c[c[l+8>>2]>>2]|0;h=tv(d,h,k)|0;break}c[h+28>>2]=f;a[h+1>>0]=68}while(0);i=m;return h|0}function Nv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=ih(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(i|0));a[d>>0]=-102;b[d+34>>1]=-1;c[d+24>>2]=1;h=c[e+(f*72|0)+24>>2]|0;c[d+44>>2]=h;c[d+28>>2]=c[e+(f*72|0)+48>>2];if((b[h+36>>1]|0)==(g|0))b[d+32>>1]=-1;else{b[d+32>>1]=g;j=(g|0)>63;g=ew(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[f+4>>2]|(j?-2147483648:C);c[h>>2]=c[f>>2]|(j?0:g);c[h+4>>2]=i}h=d+4|0;c[h>>2]=c[h>>2]|4}return d|0}function Ov(b,e){b=b|0;e=e|0;if((a[e>>0]|0)==-101){e=e+38|0;a[e>>0]=(d[e>>0]|0)+(c[b+24>>2]|0)}return 0}function Pv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[a+40>>1]|0;i=f&65535;h=b[a+42>>1]|0;k=e[d+40>>1]|0;g=b[d+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[a+20>>1]|0;h=b[d+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[a+22>>1]|0)>(b[d+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[a+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[j+(a<<2)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[(c[d>>2]|0)+(g<<2)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Qv(d,e){d=d|0;e=e|0;var 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;f=c[d>>2]|0;a:do if(f){k=a[e+16>>0]|0;l=e+17|0;m=e+18|0;n=e+20|0;o=e+22|0;p=e+42|0;q=e+36|0;do{if((a[f+16>>0]|0)==k<<24>>24?(a[f+17>>0]|0)==(a[l>>0]|0):0){if((((c[f+36>>2]&16384|0)!=0?(b[p>>1]|0)==0:0)?(c[q>>2]&513|0)==513:0)?(i=f,j=e,h=c[j>>2]|0,j=c[j+4>>2]|0,(h&c[i>>2]|0)==(h|0)?(j&c[i+4>>2]|0)==(j|0):0):0)break a;r=f;s=c[r>>2]|0;r=c[r+4>>2]|0;h=e;g=c[h>>2]|0;h=c[h+4>>2]|0;i=g&s;j=h&r;if((((i|0)==(s|0)&(j|0)==(r|0)?(b[f+18>>1]|0)<=(b[m>>1]|0):0)?(b[f+20>>1]|0)<=(b[n>>1]|0):0)?(b[f+22>>1]|0)<=(b[o>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[f+20>>1]|0)>=(b[n>>1]|0):0)?(b[f+22>>1]|0)>=(b[o>>1]|0):0)break a}d=f+52|0;f=c[d>>2]|0}while((f|0)!=0)}while(0);return d|0}function Rv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=lr(c[a>>2]|0,0,b+12|0,0)|0;do if(h){g=c[a>>2]|0;f=c[(c[b+4>>2]|0)+20>>2]|0;a:do if(f){e=c[g+20>>2]|0;if((e|0)>0){b=c[g+16>>2]|0;d=0;while(1){a=d+1|0;if((c[b+(d<<4)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=gh(g,c[(c[g+16>>2]|0)+(a<<4)>>2]|0)|0;c[h+(((c[h>>2]|0)+-1|0)*72|0)+12>>2]=a}while(0);return h|0}function Sv(a){a=a|0;var 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,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;do if(a>>>0<245){if(a>>>0<11)p=16;else p=a+11&-8;a=p>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[f>>2]|0;h=g+8|0;i=c[h>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Kb();d=i+12|0;if((c[d>>2]|0)==(g|0)){c[d>>2]=b;c[f>>2]=i;break}else Kb()}else c[12266]=l&~(1<>2]=w|3;w=g+(w|4)|0;c[w>>2]=c[w>>2]|1;w=h;return w|0}k=c[12268]|0;if(p>>>0>k>>>0){if(i){f=2<>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[f>>2]|0;a=d+8|0;e=c[a>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Kb();i=e+12|0;if((c[i>>2]|0)==(d|0)){c[i>>2]=g;c[f>>2]=e;m=c[12268]|0;break}else Kb()}else{c[12266]=l&~(1<>2]=p|3;j=d+p|0;c[d+(p|4)>>2]=b|1;c[d+w>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(i>>>0<(c[12270]|0)>>>0)Kb();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[n>>2]=e;c[o+12>>2]=e;c[e+8>>2]=o;c[e+12>>2]=f}c[12268]=b;c[12271]=j;w=a;return w|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;v=h>>>12&16;h=h>>>v;u=h>>>5&8;h=h>>>u;w=h>>>2&4;h=h>>>w;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[49368+((u|v|w|i|g)+(h>>>g)<<2)>>2]|0;h=(c[g+4>>2]&-8)-p|0;i=g;while(1){d=c[i+16>>2]|0;if(!d){d=c[i+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[d+4>>2]&-8)-p|0;w=i>>>0>>0;h=w?i:h;i=d;g=w?d:g}a=c[12270]|0;if(k>>>0>>0)Kb();b=k+p|0;if(k>>>0>=b>>>0)Kb();j=c[k+24>>2]|0;g=c[k+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[h>>2]|0;if(!i){h=k+16|0;i=c[h>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[g>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[g>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Kb();else{c[h>>2]=0;e=i;break}}else{f=c[k+8>>2]|0;if(f>>>0>>0)Kb();i=f+12|0;if((c[i>>2]|0)!=(k|0))Kb();h=g+8|0;if((c[h>>2]|0)==(k|0)){c[i>>2]=g;c[h>>2]=f;e=g;break}else Kb()}while(0);do if(j){i=c[k+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[h>>2]|0)){c[h>>2]=e;if(!e){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Kb();i=j+16|0;if((c[i>>2]|0)==(k|0))c[i>>2]=e;else c[j+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0>>0)Kb();c[e+24>>2]=j;i=c[k+16>>2]|0;do if(i)if(i>>>0>>0)Kb();else{c[e+16>>2]=i;c[i+24>>2]=e;break}while(0);i=c[k+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Kb();else{c[e+20>>2]=i;c[i+24>>2]=e;break}}while(0);if(l>>>0<16){w=l+p|0;c[k+4>>2]=w|3;w=k+(w+4)|0;c[w>>2]=c[w>>2]|1}else{c[k+4>>2]=p|3;c[k+(p|4)>>2]=l|1;c[k+(l+p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<>2]|0;if(h>>>0<(c[12270]|0)>>>0)Kb();else{q=i;r=h}}else{c[12266]=h|g;q=49104+(i+2<<2)|0;r=f}c[q>>2]=e;c[r+12>>2]=e;c[e+8>>2]=r;c[e+12>>2]=f}c[12268]=l;c[12271]=b}w=k+8|0;return w|0}else r=p}else r=p}else if(a>>>0<=4294967231){a=a+11|0;r=a&-8;k=c[12267]|0;if(k){h=0-r|0;a=a>>>8;if(a)if(r>>>0>16777215)d=31;else{p=(a+1048320|0)>>>16&8;q=a<>>16&4;q=q<>>16&2;d=14-(o|p|d)+(q<>>15)|0;d=r>>>(d+7|0)&1|d<<1}else d=0;f=c[49368+(d<<2)>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=r<>2]&-8;h=e-r|0;if(h>>>0>>0)if((e|0)==(r|0)){a=f;i=f;break a}else i=f;else h=l;q=c[f+20>>2]|0;f=c[f+(b>>>31<<2)+16>>2]|0;a=(q|0)==0|(q|0)==(f|0)?a:q;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<>>12&16;q=q>>>n;m=q>>>5&8;q=q>>>m;o=q>>>2&4;q=q>>>o;p=q>>>1&2;q=q>>>p;a=q>>>1&1;a=c[49368+((m|n|o|p|a)+(q>>>a)<<2)>>2]|0}if(!a){o=h;p=i}else while(1){q=(c[a+4>>2]&-8)-r|0;f=q>>>0>>0;h=f?q:h;i=f?a:i;f=c[a+16>>2]|0;if(f){a=f;continue}a=c[a+20>>2]|0;if(!a){o=h;p=i;break}}if((p|0)!=0?o>>>0<((c[12268]|0)-r|0)>>>0:0){a=c[12270]|0;if(p>>>0>>0)Kb();m=p+r|0;if(p>>>0>=m>>>0)Kb();j=c[p+24>>2]|0;g=c[p+12>>2]|0;do if((g|0)==(p|0)){h=p+20|0;i=c[h>>2]|0;if(!i){h=p+16|0;i=c[h>>2]|0;if(!i){t=0;break}}while(1){g=i+20|0;f=c[g>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[g>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0>>0)Kb();else{c[h>>2]=0;t=i;break}}else{f=c[p+8>>2]|0;if(f>>>0>>0)Kb();i=f+12|0;if((c[i>>2]|0)!=(p|0))Kb();h=g+8|0;if((c[h>>2]|0)==(p|0)){c[i>>2]=g;c[h>>2]=f;t=g;break}else Kb()}while(0);do if(j){i=c[p+28>>2]|0;h=49368+(i<<2)|0;if((p|0)==(c[h>>2]|0)){c[h>>2]=t;if(!t){c[12267]=c[12267]&~(1<>>0<(c[12270]|0)>>>0)Kb();i=j+16|0;if((c[i>>2]|0)==(p|0))c[i>>2]=t;else c[j+20>>2]=t;if(!t)break}h=c[12270]|0;if(t>>>0>>0)Kb();c[t+24>>2]=j;i=c[p+16>>2]|0;do if(i)if(i>>>0>>0)Kb();else{c[t+16>>2]=i;c[i+24>>2]=t;break}while(0);i=c[p+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Kb();else{c[t+20>>2]=i;c[i+24>>2]=t;break}}while(0);b:do if(o>>>0>=16){c[p+4>>2]=r|3;c[p+(r|4)>>2]=o|1;c[p+(o+r)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<>2]|0;if(h>>>0>=(c[12270]|0)>>>0){u=i;v=h;break}Kb()}while(0);c[u>>2]=m;c[v+12>>2]=m;c[p+(r+8)>>2]=v;c[p+(r+12)>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{v=(d+1048320|0)>>>16&8;w=d<>>16&4;w=w<>>16&2;f=14-(u|v|f)+(w<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[p+(r+28)>>2]=f;c[p+(r+20)>>2]=0;c[p+(r+16)>>2]=0;h=c[12267]|0;g=1<>2]=m;c[p+(r+24)>>2]=i;c[p+(r+12)>>2]=m;c[p+(r+8)>>2]=m;break}d=c[i>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[d+4>>2]&-8|0)!=(o|0)){h=o<>>31<<2)+16|0;i=c[b>>2]|0;if(!i)break;if((c[i+4>>2]&-8|0)==(o|0)){B=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Kb();else{c[b>>2]=m;c[p+(r+24)>>2]=d;c[p+(r+12)>>2]=m;c[p+(r+8)>>2]=m;break b}}else B=d;while(0);d=B+8|0;b=c[d>>2]|0;w=c[12270]|0;if(B>>>0>=w>>>0&b>>>0>=w>>>0){c[b+12>>2]=m;c[d>>2]=m;c[p+(r+8)>>2]=b;c[p+(r+12)>>2]=B;c[p+(r+24)>>2]=0;break}else Kb()}else{w=o+r|0;c[p+4>>2]=w|3;w=p+(w+4)|0;c[w>>2]=c[w>>2]|1}while(0);w=p+8|0;return w|0}}}else r=-1;while(0);a=c[12268]|0;if(a>>>0>=r>>>0){b=a-r|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+r;c[12268]=b;c[d+(r+4)>>2]=b|1;c[d+a>>2]=b;c[d+4>>2]=r|3}else{c[12268]=0;c[12271]=0;c[d+4>>2]=a|3;w=d+(a+4)|0;c[w>>2]=c[w>>2]|1}w=d+8|0;return w|0}a=c[12269]|0;if(a>>>0>r>>>0){v=a-r|0;c[12269]=v;w=c[12272]|0;c[12272]=w+r;c[w+(r+4)>>2]=v|1;c[w+4>>2]=r|3;w=w+8|0;return w|0}do if(!(c[12384]|0)){a=sb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Lb(0)|0)&-16^1431655768;break}else Kb()}while(0);l=r+48|0;b=c[12386]|0;k=r+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=r>>>0){w=0;return w|0}a=c[12376]|0;if((a|0)!=0?(u=c[12374]|0,v=u+m|0,v>>>0<=u>>>0|v>>>0>a>>>0):0){w=0;return w|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[f>>2]|0;if(i>>>0<=a>>>0?(s=f+4|0,(i+(c[s>>2]|0)|0)>>>0>a>>>0):0){e=f;h=s;a=f;break}f=c[f+8>>2]|0;if(!f){G=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=ob(a|0)|0;if((i|0)==((c[e>>2]|0)+(c[h>>2]|0)|0))G=190;else G=191}else a=0}else G=181}else G=181;while(0);do if((G|0)==181){i=ob(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>r>>>0&a>>>0<2147483647){v=c[12376]|0;if((v|0)!=0?f>>>0<=h>>>0|f>>>0>v>>>0:0){a=0;break}h=ob(a|0)|0;if((h|0)==(i|0))G=190;else{i=h;G=191}}else a=0}else a=0}while(0);f:do if((G|0)==190){if((i|0)!=(-1|0)){x=i;G=201;break d}}else if((G|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(w=c[12386]|0,w=k-a+w&0-w,w>>>0<2147483647):0)if((ob(w|0)|0)==(-1|0)){ob(h|0)|0;a=0;break f}else{a=w+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{x=i;G=201;break d}}while(0);c[12377]=c[12377]|4;G=198}else{a=0;G=198}while(0);if((((G|0)==198?m>>>0<2147483647:0)?(x=ob(m|0)|0,y=ob(0)|0,(x|0)!=(-1|0)&(y|0)!=(-1|0)&x>>>0>>0):0)?(z=y-x|0,A=z>>>0>(r+40|0)>>>0,A):0){a=A?z:a;G=201}if((G|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[e>>2]|0;h=e+4|0;f=c[h>>2]|0;if((x|0)==(i+f|0)){C=i;D=h;E=f;F=e;G=213;break}e=c[e+8>>2]|0}while((e|0)!=0);if(((G|0)==213?(c[F+12>>2]&8|0)==0:0)?l>>>0>=C>>>0&l>>>0>>0:0){c[D>>2]=E+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;w=b-d|0;c[12272]=l+d;c[12269]=w;c[l+(d+4)>>2]=w|1;c[l+(b+4)>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(x>>>0>>0){c[12270]=x;k=x}else k=i;i=x+a|0;h=49512|0;do{if((c[h>>2]|0)==(i|0)){H=h;I=h;G=223;break}h=c[h+8>>2]|0}while((h|0)!=0);if((G|0)==223?(c[I+12>>2]&8|0)==0:0){c[H>>2]=x;i=I+4|0;c[i>>2]=(c[i>>2]|0)+a;i=x+8|0;if(!(i&7))p=0;else p=0-i&7;i=x+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=x+(d+a)|0;o=p+r|0;n=x+o|0;m=i-(x+p)-r|0;c[x+(p+4)>>2]=r|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){w=(c[12268]|0)+m|0;c[12268]=w;c[12271]=n;c[x+(o+4)>>2]=w|1;c[x+(w+o)>>2]=w;break}l=a+4|0;j=c[x+(l+d)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[x+((d|24)+a)>>2]|0;g=c[x+(a+12+d)>>2]|0;do if((g|0)==(i|0)){g=d|16;h=x+(l+g)|0;j=c[h>>2]|0;if(!j){h=x+(g+a)|0;j=c[h>>2]|0;if(!j){N=0;break}}while(1){g=j+20|0;f=c[g>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[g>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0>>0)Kb();else{c[h>>2]=0;N=j;break}}else{f=c[x+((d|8)+a)>>2]|0;if(f>>>0>>0)Kb();j=f+12|0;if((c[j>>2]|0)!=(i|0))Kb();h=g+8|0;if((c[h>>2]|0)==(i|0)){c[j>>2]=g;c[h>>2]=f;N=g;break}else Kb()}while(0);if(!e)break;j=c[x+(a+28+d)>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[h>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Kb();j=e+16|0;if((c[j>>2]|0)==(i|0))c[j>>2]=N;else c[e+20>>2]=N;if(!N)break i}else{c[h>>2]=N;if(N)break;c[12267]=c[12267]&~(1<>>0