>>0);i[d>>0]=e}while(0);return}function ih(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();f=e;k[f>>2]=d;d=$k(b,c,f)|0;rg(b,k[a>>2]|0);k[a>>2]=d;r=e;return}function jh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,n=0,o=0;i=a+24|0;d=k[i>>2]|0;do if((d|0)<(b|0)){h=(b|0)<32?32:b;b=(d|0)>0;if((c|0)!=0&b?(e=a+16|0,f=k[e>>2]|0,g=a+20|0,(f|0)==(k[g>>2]|0)):0){d=$l(k[a+32>>2]|0,f,h,((h|0)<0)<<31>>31)|0;k[g>>2]=d;k[e>>2]=d;c=0}else{d=a+32|0;if(b){b=a+20|0;rg(k[d>>2]|0,k[b>>2]|0)}else b=a+20|0;d=rh(k[d>>2]|0,h,((h|0)<0)<<31>>31)|0;k[b>>2]=d}if(!d){c=a+8|0;if(!(j[c>>1]&9312))j[c>>1]=1;else Ag(a);k[a+16>>2]=0;k[i>>2]=0;c=7;break}b=k[a+32>>2]|0;do if(!b)b=qc[k[8744+48>>2]&127](d)|0;else{if((k[b+276>>2]|0)>>>0<=d>>>0?(k[b+280>>2]|0)>>>0>d>>>0:0){b=m[b+248>>1]|0;break}b=qc[k[8744+48>>2]&127](d)|0}while(0);k[i>>2]=b;o=21}else o=21;while(0);if((o|0)==21){if(((c|0)!=0?(l=k[a+16>>2]|0,(l|0)!=0):0)?(n=k[a+20>>2]|0,(l|0)!=(n|0)):0)pw(n|0,l|0,k[a+12>>2]|0)|0;b=a+8|0;c=j[b>>1]|0;if(!(c&1024))d=a+16|0;else{d=a+16|0;hc[k[a+36>>2]&31](k[d>>2]|0);c=j[b>>1]|0}k[d>>2]=k[a+20>>2];j[b>>1]=c&58367;c=0}return c|0}function kh(a,b){a=a|0;b=b|0;if((k[a+24>>2]|0)<(b|0))a=jh(a,b,0)|0;else{k[a+16>>2]=k[a+20>>2];a=a+8|0;j[a>>1]=(m[a>>1]|0)&13;a=0}return a|0}
function rq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0;da=r;r=r+192|0;if((r|0)>=(s|0))ka();_=da+48|0;Y=da+24|0;X=da+160|0;E=da+156|0;P=da+152|0;H=da+148|0;S=da+144|0;K=da+140|0;D=da+16|0;ba=da;v=da+128|0;u=da+116|0;w=da+96|0;e=da+88|0;ca=a+8|0;$=k[ca>>2]|0;aa=k[a>>2]|0;k[ba+0>>2]=k[9286];k[ba+4>>2]=k[9287];k[ba+8>>2]=k[9288];a:do switch(b|0){case 8:{v=k[$>>2]|0;z=v+65|0;if(((i[z>>0]|0)==0?(i[$+18>>0]|0)==0:0)?(V=$+64|0,(k[V>>2]|0)==0):0){y=Tq($)|0;if(y){do{}while((Uq(y,61)|0)!=0);Bh(y,24,0,0,0)|0;do if(!(i[z>>0]|0)){h=$+332|0;q=k[h>>2]|0;if((q|0)==0?(k[$+316>>2]|0)==0:0)break;n=y+32|0;o=k[n>>2]|0;if(o)k[(k[y+4>>2]|0)+8>>2]=o;k[(k[y+24>>2]|0)+88>>2]=o+-1;t=v+20|0;b:do if((k[t>>2]|0)>0){c=y+96|0;d=$+328|0;e=v+16|0;f=v+145|0;g=y+4|0;p=0;while(1){u=1<>2]=k[c>>2]|u,_=k[(k[(k[e>>2]|0)+(p<<4)+12>>2]|0)+4>>2]|0,Ch(y,Bh(y,4,p,(k[d>>2]&u|0)!=0&1,k[$+(p<<2)+336>>2]|0)|0,_,-14),(i[f>>0]|0)==0):0)?(J=k[g>>2]|0,(J|0)!=0):0)i[J+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=1;p=p+1|0;if((p|0)>=(k[t>>2]|0))break b;q=k[h>>2]|0}}while(0);n=$+452|0;if((k[n>>2]|0)>0){h=$+520|0;g=0;do{o=k[(k[(k[h>>2]|0)+(g<<2)>>2]|0)+60>>2]|0;c:do if(!o)o=0;else while(1){if((k[o>>2]|0)==(v|0))break c;o=k[o+24>>2]|0;if(!o){o=0;break}}while(0);Ch(y,Bh(y,146,0,0,0)|0,o,-10);g=g+1|0}while((g|0)<(k[n>>2]|0))}k[n>>2]=0;n=Tq($)|0;h=$+396|0;if((k[h>>2]|0)>0){g=$+400|0;f=0;do{Y=k[g>>2]|0;_=k[Y+(f<<4)+12>>2]|0;Ch(n,Bh(n,145,k[Y+(f<<4)>>2]|0,k[Y+(f<<4)+4>>2]|0,l[Y+(f<<4)+8>>0]|0)|0,_,-2);f=f+1|0}while((f|0)<(k[h>>2]|0))}d=k[$+8>>2]|0;o=k[$+404>>2]|0;if(o){c=(k[$>>2]|0)+16|0;p=d+32|0;q=d+4|0;do{h=k[o+8>>2]|0;n=k[o+12>>2]|0;Vq($,0,h,k[(k[(k[c>>2]|0)+(h<<4)+12>>2]|0)+72>>2]|0,54);h=n+1|0;Bh(d,28,0,n,h)|0;g=k[p>>2]|0;e=n+-1|0;f=k[k[o+4>>2]>>2]|0;Ch(d,Bh(d,97,0,e,0)|0,f,0);f=g+9|0;Bh(d,108,0,f,0)|0;Bh(d,47,0,0,n)|0;Bh(d,78,e,g+7|0,n)|0;e=k[q>>2]|0;if(e)i[e+(((k[p>>2]|0)+-1|0)*20|0)+3>>0]=16;Bh(d,103,0,h,0)|0;Bh(d,47,0,1,n)|0;Bh(d,16,0,f,0)|0;Bh(d,9,0,g+2|0,0)|0;Bh(d,25,0,n,0)|0;Bh(d,61,0,0,0)|0;o=k[o>>2]|0}while((o|0)!=0)}n=k[$+316>>2]|0;if((n|0)!=0?(i[$+23>>0]=0,(k[n>>2]|0)>0):0){h=n+4|0;g=0;do{_=k[h>>2]|0;Wq($,k[_+(g*20|0)>>2]|0,k[_+(g*20|0)+16>>2]|0);g=g+1|0}while((g|0)<(k[n>>2]|0))}Bh(y,16,0,1,0)|0}while(0);if((k[V>>2]|0)==0?(i[z>>0]|0)==0:0){if((k[$+404>>2]|0)!=0?(W=$+68|0,(k[W>>2]|0)==0):0)k[W>>2]=1;Fh(y,$);k[$+12>>2]=101;i[$+16>>0]=0}else Z=48}else Z=48;if((Z|0)==48)k[$+12>>2]=1;k[$+68>>2]=0;k[$+72>>2]=0;k[$+76>>2]=0;k[$+440>>2]=0;k[$+332>>2]=0}break}case 33:{_=a+(aa<<4)+16|0;_q($,0,0,0,k[_>>2]|0);Rk(k[$>>2]|0,k[_>>2]|0,1);break}case 35:{e=k[a+(aa<<4)+20>>2]|0;d=k[a+(aa<<4)+16>>2]|0;if((e|0)==5?(Kc(d,20456,5)|0)==0:0){i[ba>>0]=32;break a}i[ba>>0]=0;k[_>>2]=e;k[_+4>>2]=d;yh($,20464,_);break}case 26:{Zq($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0,k[a+(aa+-4<<4)+16>>2]|0,0,0,k[a+(aa+-2<<4)+16>>2]|0);break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{k[ba>>2]=0;break}case 27:{i[(k[$>>2]|0)+250>>0]=0;Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{k[ba>>2]=1;break}case 32:{_q($,a+(aa+-2<<4)+16|0,a+(aa+-1<<4)+16|0,i[a+(aa<<4)+16>>0]|0,0);break}case 34:{i[ba>>0]=0;break}case 62:{dr($,0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0);break}case 63:{er($,0,0,0,0,k[a+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 70:{k[ba>>2]=0;break}case 71:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2]&~k[a+(aa<<4)+20>>2]|k[a+(aa<<4)+16>>2];break}case 73:case 72:{k[ba>>2]=0;k[ba+4>>2]=0;break}case 74:{k[ba>>2]=k[a+(aa<<4)+16>>2];k[ba+4>>2]=255;break}case 76:{k[ba>>2]=7;break}case 75:{k[ba>>2]=k[a+(aa<<4)+16>>2]<<8;k[ba+4>>2]=65280;break}case 6:{i[$+450>>0]=1;k[$+440>>2]=0;break}case 5:{i[$+450>>0]=0;k[$+440>>2]=0;break}case 9:{e=k[a+(aa+-1<<4)+16>>2]|0;d=k[$>>2]|0;if((Xq($,22,37104,0,0)|0)==0?(B=Tq($)|0,(B|0)!=0):0){if((e|0)!=7?(C=d+20|0,(k[C>>2]|0)>0):0){e=(e|0)==9?2:1;d=B+96|0;g=0;do{Bh(B,4,g,e,0)|0;k[d>>2]=k[d>>2]|1<>2]|0))}Bh(B,3,0,0,0)|0}break}case 46:{$=k[a+(aa+-3<<4)+16>>2]|0;k[ba>>2]=$;k[ba+4>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-$;break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 44:{e=a+(aa<<4)+16|0;d=k[$+484>>2]|0;if((d|0)!=0?(F=j[d+38>>1]|0,F<<16>>16>=1):0){_=(F<<16>>16)+-1|0;Z=k[d+4>>2]|0;$=$q(k[$>>2]|0,e)|0;k[Z+(_*24|0)+12>>2]=$;$=ar($,Z+(_*24|0)+22|0)|0;i[Z+(_*24|0)+21>>0]=$}break}case 58:{_=cr($,157,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[v>>2]=_;k[v+4>>2]=k[a+(aa+-1<<4)+16>>2];k[v+8>>2]=k[a+(aa<<4)+24>>2];br($,v);break}case 59:{_=a+(aa<<4)+16|0;Z=cr($,97,0,0,_)|0;k[u>>2]=Z;_=k[_>>2]|0;k[u+4>>2]=_;k[u+8>>2]=_+(k[a+(aa<<4)+20>>2]|0);br($,u);break}case 61:{d=k[a+(aa<<4)+16>>2]|0;e=k[$+484>>2]|0;if((e|0)!=0?(q=j[e+38>>1]|0,q<<16>>16>=1):0)i[(k[e+4>>2]|0)+(((q<<16>>16)+-1|0)*24|0)+20>>0]=d;break}case 7:{i[$+450>>0]=2;k[$+440>>2]=0;break}case 13:{k[ba>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{k[ba>>2]=l[a+(aa<<4)+14>>0];break}case 18:case 17:{if((Xq($,22,37136,0,0)|0)==0?(y=Tq($)|0,(y|0)!=0):0)Bh(y,3,1,0,0)|0;break}case 38:{_=k[a+(aa+-2<<4)+16>>2]|0;k[ba>>2]=_;k[ba+4>>2]=(k[$+504>>2]|0)-_+(k[$+508>>2]|0);break}case 39:{u=a+(aa<<4)+16|0;q=k[$>>2]|0;d=k[$+484>>2]|0;d:do if(d){t=d+38|0;if((j[t>>1]|0)>=(k[q+96>>2]|0)){k[_>>2]=k[d>>2];yh($,36528,_);break}p=$q(q,u)|0;if(p){n=j[t>>1]|0;c=n<<16>>16;e:do if(n<<16>>16>0){o=i[9328+(l[p>>0]|0)>>0]|0;g=k[d+4>>2]|0;h=p+1|0;e=0;while(1){f=k[g+(e*24|0)>>2]|0;if(o<<24>>24==(i[9328+(l[f>>0]|0)>>0]|0)?(id(h,f+1|0)|0)==0:0)break;e=e+1|0;if((e|0)>=(c|0))break e}k[_>>2]=p;yh($,36552,_);rg(q,p);break d}else g=k[d+4>>2]|0;while(0);h=d+4|0;do if(!(c&7)){g=wo(q,g,(c*24|0)+192|0,0)|0;if(!g){rg(q,p);break d}else{k[h>>2]=g;n=j[t>>1]|0;break}}while(0);_=n<<16>>16;Z=g+(_*24|0)|0;k[Z+0>>2]=0;k[Z+4>>2]=0;k[Z+8>>2]=0;k[Z+12>>2]=0;k[Z+16>>2]=0;k[Z+20>>2]=0;k[Z>>2]=p;i[g+(_*24|0)+21>>0]=65;i[g+(_*24|0)+22>>0]=1;j[t>>1]=(j[t>>1]|0)+1<<16>>16}}while(0);Y=u;Z=k[Y+4>>2]|0;_=ba;k[_>>2]=k[Y>>2];k[_+4>>2]=Z;k[$+324>>2]=0;break}case 47:{$=k[a+(aa+-5<<4)+16>>2]|0;k[ba>>2]=$;k[ba+4>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-$;break}case 49:{$=k[a+(aa+-1<<4)+16>>2]|0;k[ba>>2]=$;k[ba+4>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-$;break}case 92:case 54:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=$+320|0;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 57:case 55:{br($,a+(aa<<4)+16|0);break}case 64:{fr($,k[a+(aa+-1<<4)+16>>2]|0);break}case 65:{gr($,0,a+(aa+-2<<4)+16|0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0);break}case 66:{d=k[a+(aa<<4)+16>>2]|0;e=k[$+484>>2]|0;if((e|0)!=0?(p=k[e+16>>2]|0,(p|0)!=0):0)i[p+24>>0]=d;break}case 67:{g=k[$+484>>2]|0;if((g|0)!=0?(A=(j[g+38>>1]|0)+-1|0,h=k[$>>2]|0,f=$q(h,a+(aa<<4)+16|0)|0,(f|0)!=0):0){if(!(hr($,f)|0)){rg(h,f);break a}n=g+4|0;rg(h,k[(k[n>>2]|0)+(A*24|0)+16>>2]|0);k[(k[n>>2]|0)+(A*24|0)+16>>2]=f;e=k[g+8>>2]|0;if(e)do{if((j[k[e+4>>2]>>1]|0)==(A|0))k[k[e+32>>2]>>2]=k[(k[n>>2]|0)+(A*24|0)+16>>2];e=k[e+20>>2]|0}while((e|0)!=0)}break}case 56:{br($,a+(aa+-1<<4)+16|0);break}case 226:{e=aa+-1|0;d=a+(e<<4)+16|0;h=a+(aa<<4)+16|0;g=ur(k[$>>2]|0,0,d,h)|0;n=aa+-3|0;f=cr($,75,k[a+(n<<4)+16>>2]|0,0,0)|0;k[ba>>2]=f;if(!f){Io(k[$>>2]|0,g);g=0}else{g=pr($,0,g,0,0,0,0,0,0,0)|0;k[f+20>>2]=g;g=k[ba>>2]|0;_=g+4|0;k[_>>2]=k[_>>2]|2099200;Dr($,g)}if(k[a+(aa+-2<<4)+16>>2]|0){$=cr($,19,g,0,0)|0;k[ba>>2]=$}k[ba+4>>2]=k[a+(n<<4)+20>>2];c=k[h>>2]|0;if(!c)c=(k[d>>2]|0)+(k[a+(e<<4)+20>>2]|0)|0;else c=c+(k[a+(aa<<4)+20>>2]|0)|0;k[ba+8>>2]=c;break}case 225:{e=aa+-4|0;c=cr($,75,k[a+(e<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c){Rk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,1);c=0}else{k[c+20>>2]=k[a+(aa+-1<<4)+16>>2];c=k[ba>>2]|0;_=c+4|0;k[_>>2]=k[_>>2]|2099200;Dr($,c)}if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,c,0,0)|0;k[ba>>2]=$}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 227:{c=cr($,20,0,0,0)|0;k[ba>>2]=c;if(!c)Rk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,1);else{k[c+20>>2]=k[a+(aa+-1<<4)+16>>2];_=c+4|0;k[_>>2]=k[_>>2]|2099200;Dr($,c)}k[ba+4>>2]=k[a+(aa+-3<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 228:{d=cr($,136,k[a+(aa+-3<<4)+16>>2]|0,0,0)|0;k[ba>>2]=d;if(!d){Sk(k[$>>2]|0,k[a+(aa+-2<<4)+16>>2]|0);Lk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0)}else{e=k[a+(aa+-1<<4)+16>>2]|0;c=k[a+(aa+-2<<4)+16>>2]|0;if(e)c=qr($,c,e)|0;k[d+20>>2]=c;Dr($,k[ba>>2]|0)}k[ba+4>>2]=k[a+(aa+-4<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 291:case 240:{k[ba>>2]=2;break}case 241:{k[ba>>2]=0;break}case 239:{er($,a+(aa+-7<<4)+16|0,a+(aa+-6<<4)+16|0,ur(k[$>>2]|0,0,a+(aa+-4<<4)+16|0,0)|0,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa+-10<<4)+16>>2]|0,a+(aa+-11<<4)+16|0,k[a+(aa<<4)+16>>2]|0,0,k[a+(aa+-8<<4)+16>>2]|0)|0;break}case 229:{$=qr($,qr($,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 230:{$=qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 237:{$=qr($,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 238:{$=qr($,0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 245:{c=qr($,0,Ar($,0,a+(aa+-1<<4)+16|0,1)|0)|0;k[ba>>2]=c;rr($,c,a+(aa+-2<<4)+16|0,1);if(c){if((k[c>>2]|0)>(k[(k[$>>2]|0)+96>>2]|0)){k[_>>2]=20632;yh($,34544,_)}i[(k[c+4>>2]|0)+(((k[c>>2]|0)+-1|0)*20|0)+12>>0]=k[a+(aa<<4)+16>>2]}break}case 244:{c=Ar($,0,a+(aa+-1<<4)+16|0,1)|0;c=qr($,k[a+(aa+-4<<4)+16>>2]|0,c)|0;k[ba>>2]=c;rr($,c,a+(aa+-2<<4)+16|0,1);if(c){if((k[c>>2]|0)>(k[(k[$>>2]|0)+96>>2]|0)){k[_>>2]=20632;yh($,34544,_)}i[(k[c+4>>2]|0)+(((k[c>>2]|0)+-1|0)*20|0)+12>>0]=k[a+(aa<<4)+16>>2]}break}case 248:{q=k[a+(aa<<4)+16>>2]|0;n=k[a+(aa+-1<<4)+16>>2]|0;p=k[$>>2]|0;do if((i[p+65>>0]|0)==0?(Ln($)|0)==0:0){h=q+12|0;d=gq(p,k[q+16>>2]|0,k[h>>2]|0)|0;if(!d){if(!n){k[_>>2]=q;k[_+4>>2]=0;yh($,33056,_)}else Er($,k[h>>2]|0);i[$+17>>0]=1;break}if(i[d+51>>0]&3){k[_>>2]=0;yh($,33080,_);break}n=k[d+24>>2]|0;f:do if(n){h=k[p+20>>2]|0;if((h|0)>0){g=k[p+16>>2]|0;o=0;while(1){f=o+1|0;if((k[g+(o<<4)+12>>2]|0)==(n|0)){f=o;break f}if((f|0)<(h|0))o=f;else break}}else f=0}else f=-1e6;while(0);n=k[d+12>>2]|0;h=p+16|0;g=k[(k[h>>2]|0)+(f<<4)>>2]|0;e=(f|0)==1?13184:13208;if(((Xq($,9,e,0,g)|0)==0?(Xq($,(f|0)==0?10:12,k[d>>2]|0,k[n>>2]|0,g)|0)==0:0)?(G=Tq($)|0,(G|0)!=0):0){Z=k[$+408>>2]|0;Z=(Z|0)==0?$:Z;Fr($,f);Y=Z+328|0;k[Y>>2]=k[Y>>2]|1<>0]=l[Z>>0]|1;Z=k[d>>2]|0;k[_>>2]=k[(k[h>>2]|0)+(f<<4)>>2];k[_+4>>2]=e;k[_+8>>2]=Z;Gr($,33160,_);Hr($,f,28536,k[d>>2]|0);Ir($,f);Jr($,k[d+40>>2]|0,f);$=k[d>>2]|0;Ch(G,Bh(G,125,f,0,0)|0,$,0)}}while(0);Io(p,q);break}case 246:{k[ba>>2]=0;k[ba+4>>2]=0;break}case 250:case 249:{c=Tq($)|0;if(c){Bh(c,13,0,0,0)|0;$=c+96|0;k[$>>2]=k[$>>2]|1}break}case 251:{Kr($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0,0,0);break}case 252:{Kr($,a+(aa+-3<<4)+16|0,a+(aa+-2<<4)+16|0,a+(aa<<4)+16|0,0);break}case 253:{Kr($,a+(aa+-4<<4)+16|0,a+(aa+-3<<4)+16|0,a+(aa+-1<<4)+16|0,0);break}case 254:{Kr($,a+(aa+-3<<4)+16|0,a+(aa+-2<<4)+16|0,a+(aa<<4)+16|0,1);break}case 255:{Kr($,a+(aa+-4<<4)+16|0,a+(aa+-3<<4)+16|0,a+(aa+-1<<4)+16|0,1);break}case 264:{c=k[a+(aa+-3<<4)+16>>2]|0;e=(k[a+(aa<<4)+16>>2]|0)-c+(k[a+(aa<<4)+20>>2]|0)|0;d=k[a+(aa+-1<<4)+16>>2]|0;Z=$+488|0;w=k[Z>>2]|0;x=k[$>>2]|0;k[Z>>2]=0;g:do if((k[$+64>>2]|0)==0&(w|0)!=0){v=k[w>>2]|0;f=w+20|0;q=k[f>>2]|0;h:do if(q){p=k[x+20>>2]|0;if((p|0)>0){n=k[x+16>>2]|0;g=0;while(1){h=g+1|0;if((k[n+(g<<4)+12>>2]|0)==(q|0))break h;if((h|0)<(p|0))g=h;else{g=h;break}}}else g=0}else g=-1e6;while(0);k[w+28>>2]=d;u=(d|0)==0;if(!u){n=d;do{k[n+4>>2]=w;n=k[n+32>>2]|0}while((n|0)!=0)}k[X>>2]=v;if(!v)n=0;else{n=v;while(1)if(!(i[n>>0]|0))break;else n=n+1|0;n=n-v&1073741823}k[X+4>>2]=n;k[Y>>2]=$;t=x+16|0;q=k[t>>2]|0;k[Y+12>>2]=k[q+(g<<4)>>2];k[Y+4>>2]=k[q+(g<<4)+12>>2];k[Y+16>>2]=10720;k[Y+20>>2]=X;q=(g|0)==1;k[Y+8>>2]=q&1;if(!u)do{if(kr(Y,k[d+8>>2]|0)|0){d=0;e=w;break g}if(Lr(Y,k[d+20>>2]|0)|0){d=0;e=w;break g}if(Mr(Y,k[d+24>>2]|0)|0){d=0;e=w;break g}d=k[d+32>>2]|0}while((d|0)!=0);if(!(Lr(Y,k[w+12>>2]|0)|0)){n=x+145|0;if(!(i[n>>0]|0)){h=Tq($)|0;if(!h){d=0;e=w;break}Z=k[$+408>>2]|0;Fr($,g);Z=((Z|0)==0?$:Z)+328|0;k[Z>>2]=k[Z>>2]|1<>0]=0}else o=0;Z=k[w+4>>2]|0;k[_>>2]=k[(k[t>>2]|0)+(g<<4)>>2];k[_+4>>2]=q?13184:13208;k[_+8>>2]=v;k[_+12>>2]=Z;k[_+16>>2]=o;Gr($,30008,_);rg(x,o);Ir($,g);k[_>>2]=v;Nr(h,g,zh(x,30072,_)|0);if(!(i[n>>0]|0)){d=0;e=w;break}}e=Nk((k[(k[t>>2]|0)+(g<<4)+12>>2]|0)+40|0,v,w)|0;if(e){i[x+65>>0]=1;d=0;break}d=k[f>>2]|0;if((d|0)==(k[w+24>>2]|0)){d=gn(d+8|0,k[w+4>>2]|0,_)|0;if(!d)d=0;else d=k[d+8>>2]|0;d=d+64|0;k[w+32>>2]=k[d>>2];k[d>>2]=w;d=0}else d=0}else{d=0;e=w}}else e=w;while(0);og(x,e);Kk(x,d);break}case 265:{A=a+(aa+-7<<4)+16|0;z=aa+-6|0;B=a+(z<<4)+16|0;h=k[a+(aa+-5<<4)+16>>2]|0;C=aa+-4|0;y=k[a+(C<<4)+16>>2]|0;C=k[a+(C<<4)+20>>2]|0;D=k[a+(aa+-2<<4)+16>>2]|0;E=k[a+(aa<<4)+16>>2]|0;d=k[a+(aa+-8<<4)+16>>2]|0;F=k[$>>2]|0;w=(k[a+(aa+-10<<4)+16>>2]|0)!=0;do if(w)if(!(k[a+(z<<4)+20>>2]|0)){k[Y>>2]=A;if(!D){n=0;o=0;break}else{q=1;Z=483;break}}else{yh($,29664,_);n=0;o=0;break}else{q=jr($,A,B,Y)|0;if((q|0)>-1&(D|0)!=0)Z=483;else{n=0;o=0}}while(0);do if((Z|0)==483){c=F+65|0;if(!(i[c>>0]|0)){u=F+145|0;if((i[u>>0]|0)!=0&(q|0)!=1){Z=D+12|0;rg(F,k[Z>>2]|0);k[Z>>2]=0}t=Or($,D)|0;if((i[u>>0]|0)==0?((t|0)!=0?(k[a+(z<<4)+20>>2]|0)==0:0):0)q=(k[t+68>>2]|0)==(k[(k[F+16>>2]|0)+28>>2]|0)?1:q;if((i[c>>0]|0)==0?(O=k[Y>>2]|0,Z=k[$>>2]|0,k[X>>2]=$,Z=k[Z+16>>2]|0,k[X+12>>2]=k[Z+(q<<4)>>2],k[X+4>>2]=k[Z+(q<<4)+12>>2],k[X+16>>2]=10720,k[X+20>>2]=O,k[X+8>>2]=(q|0)==1&1,(Pr(X,D)|0)==0):0){u=Or($,D)|0;if(!u){if((i[F+144>>0]|0)!=1){n=0;o=0;break}i[F+146>>0]=1;n=0;o=0;break}if(i[u+44>>0]&16){yh($,29712,_);n=0;o=0;break}o=$q(F,O)|0;if(o)if(!(Qr($,o)|0)){x=F+16|0;Z=gn((k[(k[x>>2]|0)+(q<<4)+12>>2]|0)+40|0,o,P)|0;if((Z|0)!=0?(k[Z+8>>2]|0)!=0:0)if(!d){k[_>>2]=O;yh($,29760,_);n=0;break}else{Fr($,q);n=0;break}v=k[u>>2]|0;if(!(Kc(v,25568,7)|0)){yh($,29792,_);n=$+64|0;k[n>>2]=(k[n>>2]|0)+1;n=0;break}p=k[u+12>>2]|0;if((p|0)!=0&(h|0)!=49){k[_>>2]=(h|0)==35?29872:29880;k[_+4>>2]=D;k[_+8>>2]=0;yh($,29832,_);n=0;break}g=(h|0)==49;if((p|0)==0&g){k[_>>2]=D;k[_+4>>2]=0;yh($,29888,_);n=0;break}f=u+68|0;u=k[f>>2]|0;i:do if(u){t=k[F+20>>2]|0;if((t|0)>0){d=k[x>>2]|0;e=0;while(1){c=e+1|0;if((k[d+(e<<4)+12>>2]|0)==(u|0)){c=e;break i}if((c|0)<(t|0))e=c;else break}}else c=0}else c=-1e6;while(0);u=k[x>>2]|0;d=k[u+(c<<4)>>2]|0;if(w)t=k[u+16>>2]|0;else t=d;u=(c|0)==1;if((Xq($,u|w?5:7,o,v,t)|0)==0?(Xq($,18,u?13184:13208,0,d)|0)==0:0){n=rh(F,36,0)|0;if(!n){n=0;break}v=n+0|0;d=v+36|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));k[n>>2]=o;o=ph(F,k[D+16>>2]|0)|0;k[n+4>>2]=o;k[n+20>>2]=k[(k[x>>2]|0)+(q<<4)+12>>2];k[n+24>>2]=k[f>>2];i[n+8>>0]=y;i[n+9>>0]=g|(h|0)==35?1:2;o=Rr(F,E,1,0)|0;k[n+12>>2]=o;o=Sr(F,C)|0;k[n+16>>2]=o;k[$+488>>2]=n;o=0}else n=0}else n=0;else{n=0;o=0}}else{n=0;o=0}}else{n=0;o=0}}while(0);rg(F,o);Io(F,D);Mk(F,C);Lk(F,E);if(!(k[$+488>>2]|0))og(F,n);if(!(k[a+(z<<4)+20>>2]|0)){Z=A;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break a}else{Z=B;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break a}}case 269:case 266:{k[ba>>2]=35;break}case 267:{k[ba>>2]=31;break}case 268:{k[ba>>2]=49;break}case 284:{e=k[$>>2]|0;d=k[a+(aa+-1<<4)+16>>2]|0;c=k[a+(aa<<4)+16>>2]|0;f=i[a+(aa+-5<<4)+16>>0]|0;g=Tr(e,110,a+(aa+-4<<4)+16|0)|0;if(g){$=Ur(e,d,1)|0;k[g+24>>2]=$;$=Rr(e,c,1,0)|0;k[g+20>>2]=$;i[g+1>>0]=f}Sk(e,d);Lk(e,c);k[ba>>2]=g;break}case 271:case 270:{k[ba>>2]=l[a+(aa<<4)+14>>0];k[ba+4>>2]=0;break}case 272:{k[ba>>2]=110;k[ba+4>>2]=k[a+(aa<<4)+16>>2];break}case 296:case 275:{k[ba>>2]=0;break}case 297:case 276:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 277:{_=a+(aa+-1<<4)+16|0;$=a+(aa+-2<<4)+16|0;k[(k[(k[$>>2]|0)+36>>2]|0)+32>>2]=k[_>>2];k[(k[$>>2]|0)+36>>2]=k[_>>2];k[ba>>2]=k[$>>2];break}case 278:{$=a+(aa+-1<<4)+16|0;_=k[$>>2]|0;k[_+36>>2]=_;k[ba>>2]=k[$>>2];break}case 282:{yh($,20736,_);break}case 280:{X=a+(aa<<4)+16|0;Y=k[X+4>>2]|0;Z=ba;k[Z>>2]=k[X>>2];k[Z+4>>2]=Y;yh($,20640,_);break}case 283:{yh($,20824,_);break}case 286:{c=k[$>>2]|0;d=k[a+(aa<<4)+16>>2]|0;e=Tr(c,109,a+(aa+-2<<4)+16|0)|0;if(e){$=Rr(c,d,1,0)|0;k[e+20>>2]=$;i[e+1>>0]=10}Lk(c,d);k[ba>>2]=e;break}case 287:{e=k[$>>2]|0;g=k[a+(aa<<4)+16>>2]|0;c=rh(e,40,0)|0;if(!c){Rk(e,g,1);c=0}else{v=c+0|0;d=v+40|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));i[c>>0]=119;k[c+8>>2]=g;i[c+1>>0]=10}k[ba>>2]=c;break}case 285:{g=k[$>>2]|0;f=k[a+(aa+-1<<4)+16>>2]|0;e=k[a+(aa<<4)+16>>2]|0;d=i[a+(aa+-4<<4)+16>>0]|0;c=Tr(g,108,a+(aa+-2<<4)+16|0)|0;if(!c)Mk(g,f);else{$=lr(g,e,1)|0;k[c+8>>2]=$;k[c+28>>2]=f;i[c+1>>0]=d}Rk(g,e,1);k[ba>>2]=c;break}case 288:{c=cr($,57,0,0,0)|0;k[ba>>2]=c;if(c)i[c+1>>0]=4;k[ba+4>>2]=k[a+(aa+-3<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 289:{c=cr($,57,0,0,a+(aa+-1<<4)+16|0)|0;k[ba>>2]=c;if(c)i[c+1>>0]=k[a+(aa+-3<<4)+16>>2];k[ba+4>>2]=k[a+(aa+-5<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 290:{k[ba>>2]=1;break}case 292:{k[ba>>2]=3;break}case 293:{d=k[a+(aa<<4)+16>>2]|0;c=k[a+(aa+-1<<4)+16>>2]|0;t=k[$>>2]|0;do if((i[t+65>>0]|0)==0?(Ln($)|0)==0:0){u=k[d+12>>2]|0;q=k[d+16>>2]|0;p=t+20|0;if((k[p>>2]|0)>0){g=(u|0)==0;f=t+16|0;e=0;n=0;do{h=(e|0)<2^e;o=k[f>>2]|0;if(!(!g?(id(k[o+(h<<4)>>2]|0,u)|0)!=0:0)){o=gn((k[o+(h<<4)+12>>2]|0)+40|0,q,H)|0;if(o){n=k[o+8>>2]|0;if(n)break}else n=0}e=e+1|0}while((e|0)<(k[p>>2]|0));if(n){Vr($,n);break}}if(!c){k[_>>2]=d;k[_+4>>2]=0;yh($,29600,_)}else Er($,u);i[$+17>>0]=1}while(0);Io(t,d);break}case 294:{_=k[a+(aa+-3<<4)+16>>2]|0;Wr($,24,29360,_,_,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0);break}case 303:{Yr($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0);break}case 304:{w=k[a+(aa+-3<<4)+16>>2]|0;u=a+(aa<<4)+16|0;v=k[$>>2]|0;d=v+24|0;e=k[d>>2]|0;do if((i[v+65>>0]|0)==0?(U=Zr($,0,w+8|0)|0,(U|0)!=0):0){o=k[$>>2]|0;x=U+68|0;q=k[x>>2]|0;j:do if(q){p=k[o+20>>2]|0;if((p|0)>0){o=k[o+16>>2]|0;h=0;while(1){n=h+1|0;if((k[o+(h<<4)+12>>2]|0)==(q|0)){n=h;break j}if((n|0)<(p|0))h=n;else break}}else n=0}else n=-1e6;while(0);c=k[(k[v+16>>2]|0)+(n<<4)>>2]|0;k[d>>2]=k[d>>2]|2097152;g=$q(v,u)|0;if(g){if((di(v,g,c)|0)==0?(gq(v,g,c)|0)==0:0){if(_r($,k[U>>2]|0)|0)break;if(Qr($,g)|0)break;o=k[U>>2]|0;if(k[U+12>>2]|0){k[_>>2]=o;yh($,26088,_);break}if(Xq($,26,c,o,0)|0)break;if(mr($,U)|0)break;if(!(i[U+44>>0]&16))f=0;else{o=k[U+60>>2]|0;k:do if(!o)o=0;else while(1){if((k[o>>2]|0)==(v|0))break k;o=k[o+24>>2]|0;if(!o){o=0;break}}while(0);f=(k[(k[k[o+8>>2]>>2]|0)+76>>2]|0)==0?0:o}o=Tq($)|0;if(!o)break;Z=(f|0)!=0;h=$+408|0;Y=k[h>>2]|0;Y=(Y|0)==0?$:Y;Fr($,n);X=Y+328|0;k[X>>2]=k[X>>2]|1<>0]=l[Y>>0]|Z&1;Ir($,n);if(Z){Y=$+72|0;Z=(k[Y>>2]|0)+1|0;k[Y>>2]=Z;Ch(o,Bh(o,97,0,Z,0)|0,g,0);Ch(o,Bh(o,152,Z,0,0)|0,f,-10);Z=k[h>>2]|0;i[((Z|0)==0?$:Z)+21>>0]=1}u=k[U>>2]|0;t=Sn(u,-1)|0;do if((k[d>>2]&524288|0)!=0?(Q=gn((k[x>>2]|0)+56|0,u,S)|0,(Q|0)!=0):0){o=k[Q+8>>2]|0;if(!o)break;h=o;o=0;do{o=$r(k[$>>2]|0,o,k[k[h>>2]>>2]|0)|0;h=k[h+12>>2]|0}while((h|0)!=0);if(!o)break;k[_>>2]=c;k[_+4>>2]=(n|0)==1?13184:13208;k[_+8>>2]=u;k[_+12>>2]=g;k[_+16>>2]=o;Gr($,26120,_);rg(v,o)}while(0);k[_>>2]=c;k[_+4>>2]=(n|0)==1?13184:13208;k[_+8>>2]=g;k[_+12>>2]=g;k[_+16>>2]=g;k[_+20>>2]=g;k[_+24>>2]=g;k[_+28>>2]=t;k[_+32>>2]=u;Gr($,26192,_);if(di(v,26576,c)|0){Z=k[U>>2]|0;k[_>>2]=c;k[_+4>>2]=g;k[_+8>>2]=Z;Gr($,26592,_)}n=as($,U)|0;if(n){k[_>>2]=g;k[_+4>>2]=g;k[_+8>>2]=n;Gr($,26656,_);rg(v,n)}do if(k[d>>2]&524288){n=gn((k[x>>2]|0)+56|0,k[U>>2]|0,_)|0;if(!n)break;n=k[n+8>>2]|0;if(!n)break;do{h=k[n>>2]|0;if((h|0)!=(U|0))bs($,h,k[h>>2]|0);n=k[n+12>>2]|0}while((n|0)!=0)}while(0);bs($,U,g);break}k[_>>2]=g;yh($,26024,_)}else g=0}else g=0;while(0);Io(v,w);rg(v,g);k[d>>2]=e;break}case 295:{_=k[a+(aa<<4)+16>>2]|0;Wr($,25,29176,_,0,0,_);break}case 300:{Xr($,0,0);break}case 302:{Yr($,0,0);break}case 301:{Xr($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0);break}case 305:{v=k[$>>2]|0;if((k[$+64>>2]|0)==0?(I=v+65|0,(i[I>>0]|0)==0):0){e=k[$+484>>2]|0;o=k[e+68>>2]|0;l:do if(o){n=k[v+20>>2]|0;if((n|0)>0){h=k[v+16>>2]|0;f=0;while(1){g=f+1|0;if((k[h+(f<<4)+12>>2]|0)==(o|0)){x=f;break l}if((g|0)<(n|0))f=g;else{x=g;break}}}else x=0}else x=-1e6;while(0);c=k[(k[v+16>>2]|0)+(x<<4)>>2]|0;d=(k[e>>2]|0)+16|0;p=(j[e+38>>1]|0)+-1|0;n=k[e+4>>2]|0;o=k[n+(p*24|0)+4>>2]|0;w=di(v,d,c)|0;if(!(Xq($,26,c,k[w>>2]|0,0)|0)){if(!o)q=0;else q=(i[o>>0]|0)==101?0:o;if(i[n+(p*24|0)+23>>0]&1){yh($,25608,_);break a}if(k[e+8>>2]|0){yh($,25640,_);break a}u=v+24|0;if((k[u>>2]&524288|0)!=0?(k[e+16>>2]|0)!=0&(q|0)!=0:0){yh($,25672,_);break a}t=(q|0)!=0;if(!((i[n+(p*24|0)+20>>0]|0)==0|t)){yh($,25736,_);break a}do if(t){k[K>>2]=0;if(cs(v,q,1,65,K)|0){i[I>>0]=1;break a}o=k[K>>2]|0;if(!o){yh($,25792,_);break a}else{Rh(o);break}}while(0);o=k[a+(aa<<4)+16>>2]|0;n=a+(aa<<4)+20|0;h=k[n>>2]|0;if((o|0)!=0?(R=ow(h|0,0,1,0)|0,R=rh(v,R,L)|0,(R|0)!=0):0){pw(R|0,o|0,h|0)|0;i[R+h>>0]=0;o=(k[n>>2]|0)+-1|0;n=k[u>>2]|0;m:do if((o|0)>0){o=R+o|0;do{Y=i[o>>0]|0;if(Y<<24>>24!=59?(i[10368+(Y&255)>>0]&1)==0:0)break m;i[o>>0]=0;o=o+-1|0}while(o>>>0>R>>>0)}while(0);k[u>>2]=k[u>>2]|2097152;Y=k[e+48>>2]|0;k[_>>2]=c;k[_+4>>2]=(x|0)==1?13184:13208;k[_+8>>2]=Y;k[_+12>>2]=R;k[_+16>>2]=Y+1;k[_+20>>2]=d;Gr($,25840,_);rg(v,R);k[u>>2]=n}o=t?3:2;q=Tq($)|0;if(q){n=$+19|0;g=i[n>>0]|0;do if(g<<24>>24){_=g+-1<<24>>24;i[n>>0]=_;h=k[$+((_&255)<<2)+24>>2]|0;if(!(_<<24>>24)){n=k[$+72>>2]|0;Z=663;break}else{d=g+-2<<24>>24;i[n>>0]=d;d=k[$+((d&255)<<2)+24>>2]|0;break}}else{h=$+72|0;n=(k[h>>2]|0)+1|0;k[h>>2]=n;h=n;Z=663}while(0);if((Z|0)==663){d=n+1|0;k[$+72>>2]=d}Bh(q,51,x,h,2)|0;f=q+96|0;k[f>>2]=k[f>>2]|1<>2]|0;n=q+32|0;if(g)i[g+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=-112;Bh(q,52,x,2,d)|0;n=k[n>>2]|0;if(n>>>0>f>>>0)k[(k[e>>2]|0)+(f*20|0)+8>>2]=n;k[(k[q+24>>2]|0)+88>>2]=n+-1;ds($,h);ds($,d)}bs($,w,k[w>>2]|0)}}break}case 306:{t=k[$>>2]|0;i[t+250>>0]=0;c=k[a+(aa<<4)+16>>2]|0;u=t+65|0;do if((i[u>>0]|0)==0?(N=Zr($,0,c+8|0)|0,(N|0)!=0):0){if(i[N+44>>0]&16){yh($,25400,_);break}if(k[N+12>>2]|0){yh($,25440,_);break}if(!(_r($,k[N>>2]|0)|0)){n=k[N+68>>2]|0;n:do if(n){h=k[t+20>>2]|0;if((h|0)>0){g=k[t+16>>2]|0;o=0;while(1){f=o+1|0;if((k[g+(o<<4)+12>>2]|0)==(n|0)){f=o;break n}if((f|0)<(h|0))o=f;else break}}else f=0}else f=-1e6;while(0);q=rh(t,76,0)|0;if(q){v=q+0|0;d=v+76|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));k[$+484>>2]=q;h=q+40|0;j[h>>1]=1;o=j[N+38>>1]|0;g=q+38|0;j[g>>1]=o;o=((((o<<16>>16)+-1|0)/8|0)*192|0)+192|0;n=rh(t,o,0)|0;if(n)kw(n|0,0,o|0)|0;o=q+4|0;k[o>>2]=n;k[_>>2]=k[N>>2];_=zh(t,25472,_)|0;k[q>>2]=_;n=k[o>>2]|0;if((n|0)==0|(_|0)==0){i[u>>0]=1;break}pw(n|0,k[N+4>>2]|0,(j[g>>1]|0)*24|0)|0;if((j[g>>1]|0)>0){n=0;do{_=k[o>>2]|0;Z=_+(n*24|0)|0;Y=ph(t,k[Z>>2]|0)|0;k[Z>>2]=Y;_=_+(n*24|0)+4|0;n=n+1|0;k[_+0>>2]=0;k[_+4>>2]=0;k[_+8>>2]=0;k[_+12>>2]=0}while((n|0)<(j[g>>1]|0))}k[q+68>>2]=k[(k[t+16>>2]|0)+(f<<4)+12>>2];k[q+48>>2]=k[N+48>>2];j[h>>1]=1;_=k[$+408>>2]|0;Fr($,f);_=((_|0)==0?$:_)+328|0;k[_>>2]=k[_>>2]|1<>2]|0);o=k[$+484>>2]|0;if(o){c=k[$>>2]|0;n=k[o+68>>2]|0;o:do if(n){h=k[c+20>>2]|0;if((h|0)>0){f=k[c+16>>2]|0;e=0;while(1){g=e+1|0;if((k[f+(e<<4)+12>>2]|0)==(n|0)){g=e;break o}if((g|0)<(h|0))e=g;else break}}else g=0}else g=-1e6;while(0);e=o+44|0;i[e>>0]=l[e>>0]|16;k[o+52>>2]=0;fs(c,o,$q(c,d)|0);fs(c,o,0);fs(c,o,ph(c,k[o>>2]|0)|0);k[$+500>>2]=(k[d>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-(k[$+496>>2]|0);e=k[o+56>>2]|0;if(e)Xq($,29,k[o>>2]|0,k[e>>2]|0,k[(k[(k[$>>2]|0)+16>>2]|0)+(g<<4)>>2]|0)|0}break}case 322:{k[ba>>2]=0;break}case 324:case 323:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 325:{$=hs($,0,a+(aa+-5<<4)+16|0,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 326:{$=hs($,k[a+(aa+-7<<4)+16>>2]|0,a+(aa+-5<<4)+16|0,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 314:{gs($);k[$+512>>2]=0;k[$+516>>2]=0;break}case 318:case 317:case 316:{e=$+512|0;d=k[e>>2]|0;c=k[a+(aa<<4)+16>>2]|0;if(!d){k[e>>2]=c;c=k[a+(aa<<4)+20>>2]|0}else c=c+(k[a+(aa<<4)+20>>2]|0)-d|0;k[$+516>>2]=c;break}case 77:{k[ba>>2]=8;break}case 78:{k[ba>>2]=9;break}case 79:{k[ba>>2]=6;break}case 80:{k[ba>>2]=0;break}case 103:case 100:case 98:case 82:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 86:{k[ba+4>>2]=0;k[ba>>2]=0;break}case 87:{Z=a+(aa+-1<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 90:{k[$+324>>2]=0;break}case 99:{k[ba>>2]=10;break}case 101:{i[ba>>0]=10;break}case 102:{i[ba>>0]=k[a+(aa<<4)+16>>2];break}case 104:{k[ba>>2]=4;break}case 105:{k[ba>>2]=5;break}case 106:{ir($,k[a+(aa<<4)+16>>2]|0,0,k[a+(aa+-1<<4)+16>>2]|0);break}case 93:{dr($,k[a+(aa+-3<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0,0);break}case 94:{er($,0,0,0,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 95:{fr($,k[a+(aa+-2<<4)+16>>2]|0);break}case 96:{gr($,k[a+(aa+-6<<4)+16>>2]|0,a+(aa+-3<<4)+16|0,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0);d=k[a+(aa<<4)+16>>2]|0;e=k[$+484>>2]|0;if((e|0)!=0?(g=k[e+16>>2]|0,(g|0)!=0):0)i[g+24>>0]=d;break}case 109:{c=aa+-7|0;h=a+(aa+-3<<4)+16|0;g=a+(aa+-2<<4)+16|0;u=k[a+(aa<<4)+16>>2]|0;o=k[a+(aa+-6<<4)+16>>2]|0;n=k[a+(aa+-4<<4)+16>>2]|0;k[E>>2]=0;t=k[$>>2]|0;if((k[$+440>>2]|0)>0){yh($,35440,_);Rk(t,u,1);break a}Zq($,h,g,o,1,0,n);e=k[$+484>>2]|0;if((e|0)!=0?(k[$+64>>2]|0)==0:0){jr($,h,g,E)|0;o=k[e+68>>2]|0;p:do if(o){h=k[t+20>>2]|0;if((h|0)>0){g=k[t+16>>2]|0;f=0;while(1){n=f+1|0;if((k[g+(f<<4)+12>>2]|0)==(o|0)){n=f;break p}if((n|0)<(h|0))f=n;else break}}else n=0}else n=-1e6;while(0);_=k[E>>2]|0;Z=k[$>>2]|0;k[X>>2]=$;Z=k[Z+16>>2]|0;k[X+12>>2]=k[Z+(n<<4)>>2];k[X+4>>2]=k[Z+(n<<4)+12>>2];k[X+16>>2]=35480;k[X+20>>2]=_;k[X+8>>2]=(n|0)==1&1;if(kr(X,u)|0){Rk(t,u,1);break a}_=lr(t,u,1)|0;k[e+12>>2]=_;Rk(t,u,1);if(i[t+65>>0]|0)break a;if(!(i[t+145>>0]|0))mr($,e)|0;g=$+504|0;f=k[g>>2]|0;g=k[g+4>>2]|0;_=Y;k[_>>2]=f;k[_+4>>2]=g;_=i[f>>0]|0;if(!(_<<24>>24==59|_<<24>>24==0)){f=f+g|0;k[Y>>2]=f}h=Y+4|0;k[h>>2]=0;n=k[a+(c<<4)+16>>2]|0;g=f-n|0;do{_=g;g=g+-1|0;e=n+g|0;if((_|0)<=0)break}while((i[10368+(l[e>>0]|0)>>0]&1)!=0);k[Y>>2]=e;k[h>>2]=1;_q($,0,Y,0,0);break a}Rk(t,u,1);break}case 110:{ir($,k[a+(aa<<4)+16>>2]|0,1,k[a+(aa+-1<<4)+16>>2]|0);break}case 111:{k[w+0>>2]=k[5124];k[w+4>>2]=k[5125];k[w+8>>2]=k[5126];k[w+12>>2]=k[5127];k[w+16>>2]=k[5128];_=a+(aa<<4)+16|0;nr($,k[_>>2]|0,w)|0;Rk(k[$>>2]|0,k[_>>2]|0,1);break}case 112:{o=k[a+(aa<<4)+16>>2]|0;do if(o){k[o+68>>2]=k[a+(aa+-1<<4)+16>>2];e=k[o+52>>2]|0;if(e){f=128;g=1;h=o;n=0;while(1){k[h+56>>2]=n;Y=h+6|0;Z=m[Y>>1]|64;j[Y>>1]=Z;f=Z&f;if(!e)break;Z=e;e=k[e+52>>2]|0;g=g+1|0;n=h;h=Z}if(f){$=o+6|0;j[$>>1]=m[$>>1]|256;break}Z=k[(k[$>>2]|0)+104>>2]|0;if((Z|0)>0&(g|0)>(Z|0))yh($,20520,_)}}else Vn(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0);while(0);k[ba>>2]=o;break}case 119:case 113:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 114:{c=k[a+(aa<<4)+16>>2]|0;do if(c){if(k[c+52>>2]|0){k[e+4>>2]=0;c=pr($,0,or($,0,0,0,e,c,0,0)|0,0,0,0,0,0,0,0)|0;if(!c){Z=192;break}}_=k[a+(aa+-1<<4)+16>>2]|0;i[c+4>>0]=_;k[c+52>>2]=k[a+(aa+-2<<4)+16>>2];if((_|0)!=116)i[$+22>>0]=1}else Z=192;while(0);if((Z|0)==192){Rk(k[$>>2]|0,k[a+(aa+-2<<4)+16>>2]|0,1);c=0}k[ba>>2]=c;break}case 116:{k[ba>>2]=116;break}case 169:{c=k[a+(aa+-5<<4)+16>>2]|0;if(c){_=$+532|0;k[c+4>>2]=k[_>>2];k[_>>2]=c;i[$+449>>0]=1}_=a+(aa+-2<<4)+16|0;tr($,k[_>>2]|0,a+(aa+-1<<4)+16|0);wr($,k[_>>2]|0,k[a+(aa<<4)+16>>2]|0);break}case 172:{e=k[a+(aa+-7<<4)+16>>2]|0;if(e){Z=$+532|0;k[e+4>>2]=k[Z>>2];k[Z>>2]=e;i[$+449>>0]=1}f=a+(aa+-4<<4)+16|0;tr($,k[f>>2]|0,a+(aa+-3<<4)+16|0);g=a+(aa+-1<<4)+16|0;e=k[g>>2]|0;if(e){if((k[e>>2]|0)>(k[(k[$>>2]|0)+96>>2]|0)){k[_>>2]=20560;yh($,34544,_);e=k[g>>2]|0}}else e=0;xr($,k[f>>2]|0,e,k[a+(aa<<4)+16>>2]|0,l[a+(aa+-5<<4)+16>>0]|0);break}case 176:{c=k[a+(aa+-6<<4)+16>>2]|0;if(c){_=$+532|0;k[c+4>>2]=k[_>>2];k[_>>2]=c;i[$+449>>0]=1}yr($,k[a+(aa+-3<<4)+16>>2]|0,0,k[a+(aa+-2<<4)+16>>2]|0,l[a+(aa+-5<<4)+16>>0]|0);break}case 173:{_=qr($,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=_;rr($,_,a+(aa+-2<<4)+16|0,1);break}case 174:{_=qr($,0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=_;rr($,_,a+(aa+-2<<4)+16|0,1);break}case 175:{c=k[a+(aa+-5<<4)+16>>2]|0;if(c){_=$+532|0;k[c+4>>2]=k[_>>2];k[_>>2]=c;i[$+449>>0]=1}yr($,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,l[a+(aa+-4<<4)+16>>0]|0);break}case 181:{$=zr(k[$>>2]|0,k[a+(aa+-2<<4)+16>>2]|0,a+(aa<<4)+16|0)|0;k[ba>>2]=$;break}case 182:{$=zr(k[$>>2]|0,0,a+(aa<<4)+16|0)|0;k[ba>>2]=$;break}case 183:{$=a+(aa<<4)+16|0;k[ba+0>>2]=k[$+0>>2];k[ba+4>>2]=k[$+4>>2];k[ba+8>>2]=k[$+8>>2];break}case 177:{i[ba>>0]=i[a+(aa<<4)+16>>0]|0;break}case 178:{i[ba>>0]=5;break}case 184:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2];k[ba+4>>2]=k[a+(aa+-2<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 191:case 190:case 185:{_=a+(aa<<4)+16|0;$=cr($,l[a+(aa<<4)+14>>0]|0,0,0,_)|0;k[ba>>2]=$;$=k[_>>2]|0;k[ba+4>>2]=$;k[ba+8>>2]=$+(k[a+(aa<<4)+20>>2]|0);break}case 187:case 186:{_=a+(aa<<4)+16|0;$=cr($,27,0,0,_)|0;k[ba>>2]=$;$=k[_>>2]|0;k[ba+4>>2]=$;k[ba+8>>2]=$+(k[a+(aa<<4)+20>>2]|0);break}case 188:{Z=a+(aa+-2<<4)+16|0;_=a+(aa<<4)+16|0;$=cr($,122,cr($,27,0,0,Z)|0,cr($,27,0,0,_)|0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[Z>>2];k[ba+8>>2]=(k[_>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 189:{Z=a+(aa+-4<<4)+16|0;_=a+(aa<<4)+16|0;$=cr($,122,cr($,27,0,0,Z)|0,cr($,122,cr($,27,0,0,a+(aa+-2<<4)+16|0)|0,cr($,27,0,0,_)|0,0)|0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[Z>>2];k[ba+8>>2]=(k[_>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 192:{u=a+(aa<<4)+16|0;t=a+(aa<<4)+20|0;do if(((k[t>>2]|0)>>>0>1?(z=k[u>>2]|0,(i[z>>0]|0)==35):0)?((l[z+1>>0]|0)+-48|0)>>>0<10:0){if(!(i[$+18>>0]|0)){k[_>>2]=u;yh($,20432,_);k[ba>>2]=0;break}h=cr($,159,0,0,u)|0;k[ba>>2]=h;if(h)In((k[u>>2]|0)+1|0,h+28|0)|0}else Z=298;while(0);q:do if((Z|0)==298?(M=cr($,135,0,0,u)|0,k[ba>>2]=M,T=k[u>>2]|0,k[ba+4>>2]=T,k[ba+8>>2]=T+(k[t>>2]|0),T=k[$>>2]|0,(M|0)!=0):0){w=k[M+8>>2]|0;h=w+1|0;do if(i[h>>0]|0){v=(w|0)==0;if(v)x=0;else{o=w;while(1)if(!(i[o>>0]|0))break;else o=o+1|0;x=o-w&1073741823}r:do if((i[w>>0]|0)==63){Y=Zl(h,D,x+-1|0,1)|0;f=D;g=k[f>>2]|0;f=k[f+4>>2]|0;o=g&65535;j[M+32>>1]=o;h=k[T+124>>2]|0;Z=((h|0)<0)<<31>>31;if((f|0)<0|(f|0)==0&g>>>0<1|(Y|0)!=0|((f|0)>(Z|0)|(f|0)==(Z|0)&g>>>0>h>>>0)){k[_>>2]=h;yh($,33296,_);o=0}h=$+440|0;Z=k[h>>2]|0;Y=((Z|0)<0)<<31>>31;if((f|0)>(Y|0)|(f|0)==(Y|0)&g>>>0>Z>>>0)k[h>>2]=g}else{h=k[$+444>>2]|0;s:do if((h|0)>0){g=k[$+472>>2]|0;o=0;e=0;while(1){f=k[g+(o<<2)>>2]|0;if((f|0)!=0?(dw(f,w)|0)==0:0)break;e=e+1<<16>>16;o=e<<16>>16;if((o|0)>=(h|0)){Z=315;break s}}o=o+1&65535;h=M+32|0;j[h>>1]=o;if(o<<16>>16)break r}else Z=315;while(0);if((Z|0)==315)h=M+32|0;Z=$+440|0;o=(k[Z>>2]|0)+1|0;k[Z>>2]=o;o=o&65535;j[h>>1]=o}while(0);f=o<<16>>16;if(o<<16>>16>0){o=$+444|0;if((f|0)>(k[o>>2]|0)){h=$+472|0;g=wo(T,k[h>>2]|0,f<<2,0)|0;if(!g)break q;k[h>>2]=g;Z=k[o>>2]|0;kw(g+(Z<<2)|0,0,f-Z<<2|0)|0;k[o>>2]=f}if((i[w>>0]|0)==63){h=f+-1|0;if(!(k[(k[$+472>>2]|0)+(h<<2)>>2]|0))o=0;else break}else{o=f+-1|0;h=o;o=k[(k[$+472>>2]|0)+(o<<2)>>2]|0}g=$+472|0;rg(T,o);if(!v?(n=ow(x|0,0,1,0)|0,n=rh(T,n,L)|0,(n|0)!=0):0){pw(n|0,w|0,x|0)|0;i[n+x>>0]=0}else n=0;k[(k[g>>2]|0)+(h<<2)>>2]=n}}else{Y=$+440|0;Z=(k[Y>>2]|0)+1|0;k[Y>>2]=Z;j[M+32>>1]=Z}while(0);if((k[$+64>>2]|0)==0?(k[$+440>>2]|0)>(k[T+124>>2]|0):0)yh($,33344,_)}while(0);$=k[u>>2]|0;k[ba+4>>2]=$;k[ba+8>>2]=$+(k[t>>2]|0);break}case 196:{_=a+(aa+-3<<4)+16|0;$=Br($,0,_)|0;k[ba>>2]=$;k[ba+4>>2]=k[_>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 197:{_=a+(aa<<4)+16|0;$=Br($,0,_)|0;k[ba>>2]=$;$=k[_>>2]|0;k[ba+4>>2]=$;k[ba+8>>2]=$+(k[a+(aa<<4)+20>>2]|0);break}case 193:{Z=aa+-2|0;_=a+(aa<<4)+16|0;$=Ar($,k[a+(Z<<4)+16>>2]|0,_,1)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(Z<<4)+20>>2];k[ba+8>>2]=(k[_>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 194:{$=cr($,38,k[a+(aa+-3<<4)+16>>2]|0,0,a+(aa+-1<<4)+16|0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-5<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 195:{e=a+(aa+-1<<4)+16|0;c=k[e>>2]|0;if(c){if((k[c>>2]|0)>(k[(k[$>>2]|0)+112>>2]|0)){k[_>>2]=a+(aa+-4<<4)+16;yh($,20576,_);c=k[e>>2]|0}}else c=0;_=a+(aa+-4<<4)+16|0;c=Br($,c,_)|0;k[ba>>2]=c;k[ba+4>>2]=k[_>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);if(!((c|0)==0?1:(j[a+(aa+-2<<4)+16>>1]|0)==0)){$=c+4|0;k[$>>2]=k[$>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{_=aa+-2|0;$=cr($,l[a+(aa+-1<<4)+14>>0]|0,k[a+(_<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 206:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;k[ba+8>>2]=0;break}case 207:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;k[ba+8>>2]=1;break}case 208:{e=aa+-2|0;_=aa+-1|0;c=Br($,qr($,qr($,0,k[a+(aa<<4)+16>>2]|0)|0,k[a+(e<<4)+16>>2]|0)|0,a+(_<<4)+16|0)|0;k[ba>>2]=c;if(k[a+(_<<4)+24>>2]|0){c=cr($,19,c,0,0)|0;k[ba>>2]=c}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];if(c){$=c+4|0;k[$>>2]=k[$>>2]|128}break}case 210:{_=aa+-1|0;$=cr($,l[a+(aa<<4)+14>>0]|0,k[a+(_<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 209:{e=aa+-4|0;_=aa+-3|0;c=Br($,qr($,qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(e<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0,a+(_<<4)+16|0)|0;k[ba>>2]=c;if(k[a+(_<<4)+24>>2]|0){c=cr($,19,c,0,0)|0;k[ba>>2]=c}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];if(c){$=c+4|0;k[$>>2]=k[$>>2]|128}break}case 223:{e=a+(aa+-1<<4)+16|0;c=k[e>>2]|0;do if(c){if((k[c>>2]|0)==1){_=k[c+4>>2]|0;c=k[_>>2]|0;k[_>>2]=0;Sk(k[$>>2]|0,k[e>>2]|0);if(c){_=c+4|0;k[_>>2]=k[_>>2]&-769|512}$=cr($,(k[a+(aa+-3<<4)+16>>2]|0)!=0?78:79,k[a+(aa+-4<<4)+16>>2]|0,c,0)|0;k[ba>>2]=$;break}c=cr($,75,k[a+(aa+-4<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c){Sk(k[$>>2]|0,k[e>>2]|0);c=0}else{k[c+20>>2]=k[e>>2];c=k[ba>>2]|0;Dr($,c)}if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,c,0,0)|0;k[ba>>2]=$}}else{_=cr($,132,0,0,20616+(k[a+(aa+-3<<4)+16>>2]<<3)|0)|0;k[ba>>2]=_;Lk(k[$>>2]|0,k[a+(aa+-4<<4)+16>>2]|0)}while(0);k[ba+4>>2]=k[a+(aa+-4<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 211:{_=aa+-2|0;$=cr($,77,k[a+(_<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 212:{Y=aa+-2|0;Z=a+(aa<<4)+16|0;_=cr($,73,k[a+(Y<<4)+16>>2]|0,k[Z>>2]|0,0)|0;k[ba>>2]=_;k[ba+4>>2]=k[a+(Y<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];Cr($,k[Z>>2]|0,_,76);break}case 213:{Y=aa+-3|0;Z=a+(aa<<4)+16|0;_=cr($,148,k[a+(Y<<4)+16>>2]|0,k[Z>>2]|0,0)|0;k[ba>>2]=_;k[ba+4>>2]=k[a+(Y<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];Cr($,k[Z>>2]|0,_,77);break}case 215:case 214:{_=aa+-1|0;$=cr($,l[a+(_<<4)+14>>0]|0,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 216:{$=cr($,157,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-1<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 217:{$=cr($,158,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-1<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 220:{d=qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0;e=aa+-4|0;c=cr($,74,k[a+(e<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c)Sk(k[$>>2]|0,d);else k[c+20>>2]=d;if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,k[ba>>2]|0,0,0)|0;k[ba>>2]=$}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 224:{c=cr($,119,0,0,0)|0;k[ba>>2]=c;if(!c)Rk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,1);else{k[c+20>>2]=k[a+(aa+-1<<4)+16>>2];_=k[ba>>2]|0;Z=_+4|0;k[Z>>2]=k[Z>>2]|2099200;Dr($,_)}k[ba+4>>2]=k[a+(aa+-2<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 118:{$=pr($,k[a+(aa+-6<<4)+16>>2]|0,k[a+(aa+-5<<4)+16>>2]|0,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-3<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,j[a+(aa+-7<<4)+16>>1]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa<<4)+20>>2]|0)|0;k[ba>>2]=$;break}case 120:{$=pr($,k[a+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;k[ba>>2]=$;break}case 121:{c=pr($,k[a+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!c){k[ba>>2]=k[a+(aa+-4<<4)+16>>2];break a}else{i[c+4>>0]=116;k[c+52>>2]=k[a+(aa+-4<<4)+16>>2];k[ba>>2]=c;break a}}case 122:{j[ba>>1]=1;break}case 124:case 123:{j[ba>>1]=0;break}case 243:case 125:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2];break}case 242:case 236:case 161:case 154:case 126:{k[ba>>2]=0;break}case 127:{e=aa+-1|0;g=qr($,k[a+(aa+-2<<4)+16>>2]|0,k[a+(e<<4)+16>>2]|0)|0;k[ba>>2]=g;if(k[a+(aa<<4)+20>>2]|0)rr($,g,a+(aa<<4)+16|0,1);n=k[$>>2]|0;if(g){h=(k[g+4>>2]|0)+(((k[g>>2]|0)+-1|0)*20|0)+8|0;rg(n,k[h>>2]|0);f=k[a+(e<<4)+20>>2]|0;g=(k[a+(e<<4)+24>>2]|0)-f|0;if((f|0)!=0?(c=ow(g|0,((g|0)<0)<<31>>31|0,1,0)|0,c=rh(n,c,L)|0,(c|0)!=0):0){pw(c|0,f|0,g|0)|0;i[c+g>>0]=0}else c=0;k[h>>2]=c}break}case 133:{e=rh(k[$>>2]|0,80,0)|0;if(e){v=e+0|0;d=v+80|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0))}k[ba>>2]=e;break}case 134:{g=k[a+(aa<<4)+16>>2]|0;k[ba>>2]=g;if(g){e=k[g>>2]|0;d=e+-1|0;if((d|0)>0)while(1){i[g+(d*72|0)+44>>0]=i[g+((e+-2|0)*72|0)+44>>0]|0;e=d+-1|0;if((e|0)>0){$=d;d=e;e=$}else break}i[g+44>>0]=0}break}case 128:{Z=k[$>>2]|0;k[_>>2]=0;k[_+4>>2]=0;_=sr(Z,116,_,0)|0;$=qr($,k[a+(aa+-1<<4)+16>>2]|0,_)|0;k[ba>>2]=$;break}case 132:{k[ba+4>>2]=0;break}case 129:{_=cr($,116,0,0,a+(aa<<4)+16|0)|0;_=cr($,122,cr($,27,0,0,a+(aa+-2<<4)+16|0)|0,_,0)|0;$=qr($,k[a+(aa+-3<<4)+16>>2]|0,_)|0;k[ba>>2]=$;break}case 136:{k[ba>>2]=0;break}case 137:{_=or($,k[a+(aa+-6<<4)+16>>2]|0,a+(aa+-5<<4)+16|0,a+(aa+-4<<4)+16|0,a+(aa+-3<<4)+16|0,0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=_;tr($,_,a+(aa+-2<<4)+16|0);break}case 135:{c=k[a+(aa+-1<<4)+16>>2]|0;k[ba>>2]=c;if((c|0)!=0?(t=k[c>>2]|0,(t|0)>0):0)i[c+((t+-1|0)*72|0)+44>>0]=k[a+(aa<<4)+16>>2];break}case 138:{$=or($,k[a+(aa+-6<<4)+16>>2]|0,0,0,a+(aa+-2<<4)+16|0,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 139:{e=a+(aa+-6<<4)+16|0;g=k[e>>2]|0;if((((g|0)==0?(k[a+(aa+-2<<4)+20>>2]|0)==0:0)?(k[a+(aa+-1<<4)+16>>2]|0)==0:0)?(k[a+(aa<<4)+16>>2]|0)==0:0){k[ba>>2]=k[a+(aa+-4<<4)+16>>2];break a}n=a+(aa+-4<<4)+16|0;d=k[n>>2]|0;h=k[d>>2]|0;if((h|0)==1){e=or($,g,0,0,a+(aa+-2<<4)+16|0,0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=e;if(e){X=(k[e>>2]|0)+-1|0;_=k[n>>2]|0;Z=_+16|0;k[e+(X*72|0)+16>>2]=k[Z>>2];Y=_+12|0;k[e+(X*72|0)+12>>2]=k[Y>>2];_=_+28|0;k[e+(X*72|0)+28>>2]=k[_>>2];k[Y>>2]=0;k[Z>>2]=0;k[_>>2]=0}Io(k[$>>2]|0,k[n>>2]|0);break a}if(d){f=h+-1|0;if((f|0)>0){g=h;while(1){i[d+(f*72|0)+44>>0]=i[d+((g+-2|0)*72|0)+44>>0]|0;g=f+-1|0;if((g|0)>0){_=f;f=g;g=_}else break}}i[d+44>>0]=0}_=pr($,0,d,0,0,0,0,512,0,0)|0;$=or($,k[e>>2]|0,0,0,a+(aa+-2<<4)+16|0,_,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0)|0;k[ba>>2]=$;break}case 149:case 140:{k[ba>>2]=0;k[ba+4>>2]=0;break}case 144:{$=vr($,a+(aa+-1<<4)+16|0,0,0)|0;k[ba>>2]=$;break}case 145:{$=vr($,a+(aa+-2<<4)+16|0,a+(aa+-1<<4)+16|0,0)|0;k[ba>>2]=$;break}case 146:{$=vr($,a+(aa+-3<<4)+16|0,a+(aa+-2<<4)+16|0,a+(aa+-1<<4)+16|0)|0;k[ba>>2]=$;break}case 233:case 231:case 171:case 164:case 147:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{k[ba>>2]=0;break}case 151:{k[ba>>2]=0;k[ba+4>>2]=1;break}case 143:{k[ba>>2]=1;break}case 142:{$=ur(k[$>>2]|0,0,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0)|0;k[ba>>2]=$;break}case 235:case 162:case 155:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 156:{c=qr($,k[a+(aa+-3<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0)|0;k[ba>>2]=c;if(c)i[(k[c+4>>2]|0)+(((k[c>>2]|0)+-1|0)*20|0)+12>>0]=k[a+(aa<<4)+16>>2];break}case 157:{c=qr($,0,k[a+(aa+-1<<4)+16>>2]|0)|0;k[ba>>2]=c;if((c|0)!=0?(d=k[c+4>>2]|0,(d|0)!=0):0)i[d+12>>0]=k[a+(aa<<4)+16>>2];break}case 179:case 153:{k[ba>>2]=0;break}case 180:case 152:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2];break}case 160:case 158:{k[ba>>2]=0;break}case 159:{k[ba>>2]=1;break}case 165:{k[ba>>2]=0;k[ba+4>>2]=0;break}case 166:{k[ba>>2]=k[a+(aa<<4)+16>>2];k[ba+4>>2]=0;break}case 167:{k[ba>>2]=k[a+(aa+-2<<4)+16>>2];k[ba+4>>2]=k[a+(aa<<4)+16>>2];break}case 168:{k[ba+4>>2]=k[a+(aa+-2<<4)+16>>2];k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 19:{if((Xq($,22,37120,0,0)|0)==0?(x=Tq($)|0,(x|0)!=0):0)Bh(x,3,1,1,0)|0;break}case 22:{Yq($,0,a+(aa<<4)+16|0);break}case 23:{Yq($,1,a+(aa<<4)+16|0);break}case 24:{Yq($,2,a+(aa<<4)+16|0);break}default:{}}while(0);c=i[20912+(b<<1)>>0]|0;h=c&255;g=i[20913+(b<<1)>>0]|0;f=g&255;n=(k[a>>2]|0)-f|0;k[a>>2]=n;e=j[22184+((j[21568+(m[a+(aa-f<<4)+12>>1]<<1)>>1]|0)+h<<1)>>1]|0;d=e&65535;do if((e&65535)<642)if(!(g<<24>>24)){pq(a,d,h,ba);break}else{k[a>>2]=n+1;aa=1-f+aa|0;j[a+(aa<<4)+12>>1]=e;i[a+(aa<<4)+14>>0]=c;aa=a+(aa<<4)+16|0;k[aa+0>>2]=k[ba+0>>2];k[aa+4>>2]=k[ba+4>>2];k[aa+8>>2]=k[ba+8>>2];break}else{c=k[ca>>2]|0;if((n|0)>-1)do Un(a);while((k[a>>2]|0)>-1);k[ca>>2]=c}while(0);r=da;return}function sq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0;aa=r;r=r+64|0;if((r|0)>=(s|0))ka();$=aa+8|0;W=aa;h=aa+24|0;d=aa+16|0;f=Cq(a,0,d)|0;do if(!f){if(k[d>>2]|0){f=is(a,b)|0;if(!f)c=0;else e=4}else{f=1;e=4}if((e|0)==4){_=a+43|0;e=(i[_>>0]|0)==0;do if(!(i[a+46>>0]&2)){if(e?(g=a+4|0,Z=k[g>>2]|0,fc[k[(k[Z>>2]|0)+40>>2]&63](Z,24,0)|0,g=k[g>>2]|0,g=uc[k[(k[g>>2]|0)+56>>2]&31](g,0,1,10)|0,(g|0)!=0):0){d=f;c=g;break}Z=a+44|0;i[Z>>0]=1;e=Cq(a,0,d)|0;if(!e){d=is(a,b)|0;if(!d){d=0;c=0}else{Y=l[a+45>>0]|0;X=Y+1|0;Y=7-Y|0;if(!((i[_>>0]|0)==0?(c=k[a+4>>2]|0,c=uc[k[(k[c>>2]|0)+56>>2]&31](c,X,Y,10)|0,(c|0)!=0):0)){f=a+52|0;e=f+48|0;do{k[f>>2]=0;f=f+4|0}while((f|0)<(e|0));Q=a+8|0;c=k[Q>>2]|0;c=wc[k[(k[c>>2]|0)+24>>2]&127](c,W)|0;a:do if(!c){R=W;P=k[R+4>>2]|0;b:do if((P|0)>0|(P|0)==0&(k[R>>2]|0)>>>0>32){c=k[Q>>2]|0;c=yc[k[(k[c>>2]|0)+8>>2]&31](c,h,32,0,0)|0;if(c)break a;g=l[h+3>>0]|0;e=l[h+9>>0]<<16|l[h+8>>0]<<24;c=l[h+10>>0]<<8;f=e|c|l[h+11>>0];if(((l[h+1>>0]<<16|l[h>>0]<<24|l[h+2>>0]<<8|g&254|0)==931071618?!((f+-1&f|0)!=0|(f|0)>65536|(f|0)<512):0)?(R=g&1,S=a+65|0,i[S>>0]=R,T=a+36|0,k[T>>2]=f,k[a+104>>2]=l[h+13>>0]<<16|l[h+12>>0]<<24|l[h+14>>0]<<8|l[h+15>>0],U=a+84|0,P=h+16|0,N=P,N=l[N>>0]|l[N+1>>0]<<8|l[N+2>>0]<<16|l[N+3>>0]<<24,P=P+4|0,P=l[P>>0]|l[P+1>>0]<<8|l[P+2>>0]<<16|l[P+3>>0]<<24,V=U,O=V,i[O>>0]=N,i[O+1>>0]=N>>8,i[O+2>>0]=N>>16,i[O+3>>0]=N>>24,V=V+4|0,i[V>>0]=P,i[V+1>>0]=P>>8,i[V+2>>0]=P>>16,i[V+3>>0]=P>>24,V=a+76|0,Dq(R^1,h,24,0,V),(k[V>>2]|0)==(l[h+25>>0]<<16|l[h+24>>0]<<24|l[h+26>>0]<<8|l[h+27>>0]|0)):0){P=a+80|0;if((k[P>>2]|0)!=(l[h+29>>0]<<16|l[h+28>>0]<<24|l[h+30>>0]<<8|l[h+31>>0]|0)){f=0;c=0;break}if((l[h+5>>0]<<16|l[h+4>>0]<<24|l[h+6>>0]<<8|l[h+7>>0]|0)!=3007e3){k[$>>2]=49983;k[$+4>>2]=10788;gd(14,14848,$);c=14;break a}t=f+24|0;R=Yc(t)|0;if(!R){c=7;break a}u=R+24|0;v=((t|0)<0)<<31>>31;h=ow(t|0,v|0,32,0)|0;g=L;O=W;N=k[O+4>>2]|0;c:do if(!((g|0)>(N|0)|((g|0)==(N|0)?h>>>0>(k[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;C=R+18|0;D=R+19|0;E=R+20|0;F=R+21|0;G=R+22|0;H=R+23|0;I=R+4|0;J=R+5|0;K=R+6|0;M=R+7|0;N=a+68|0;O=a+72|0;p=(e>>>16|c)&65535;q=a+66|0;m=32;e=0;f=0;n=0;o=1;while(1){c=k[Q>>2]|0;c=yc[k[(k[c>>2]|0)+8>>2]&31](c,R,t,m,e)|0;if(c){e=36;break}if(cw(U,w,8)|0){c=n;e=37;break}e=l[x>>0]<<16|l[R>>0]<<24|l[y>>0]<<8|l[z>>0];if(!e){c=n;e=37;break}m=(i[S>>0]|0)==0&1;Dq(m,R,8,V,V);Dq(m,u,k[T>>2]|0,V,V);if((k[V>>2]|0)!=(l[B>>0]<<16|l[A>>0]<<24|l[C>>0]<<8|l[D>>0]|0)){c=n;e=37;break}if((k[P>>2]|0)!=(l[F>>0]<<16|l[E>>0]<<24|l[G>>0]<<8|l[H>>0]|0)){c=n;break c}m=l[J>>0]<<16|l[I>>0]<<24|l[K>>0]<<8|l[M>>0];c=dp(a,o,e)|0;if(c){e=36;break}if(!m)c=n;else{k[N>>2]=o;k[O>>2]=m;j[q>>1]=p;f=k[V>>2]|0;c=k[P>>2]|0}e=ow(h|0,g|0,t|0,v|0)|0;m=L;n=W;ba=k[n+4>>2]|0;if((m|0)>(ba|0)|((m|0)==(ba|0)?e>>>0>(k[n>>2]|0)>>>0:0))break c;else{ca=g;ba=h;h=e;g=m;n=c;o=o+1|0;e=ca;m=ba}}if((e|0)==36){$c(R);break a}else if((e|0)==37){$c(R);break b}}else{f=0;c=0}while(0);$c(R)}else{f=0;c=0}}else{f=0;c=0}while(0);k[a+76>>2]=f;k[a+80>>2]=c;ep(a);e=k[k[a+32>>2]>>2]|0;k[e+96>>2]=0;k[e+100>>2]=0;c=e+104|0;k[c>>2]=-1;k[e+108>>2]=-1;k[e+112>>2]=-1;k[e+116>>2]=-1;e=a+68|0;f=k[e>>2]|0;if(f)k[c>>2]=f;if(!(k[a+72>>2]|0))c=0;else{c=k[a+100>>2]|0;k[$>>2]=k[e>>2];k[$+4>>2]=c;gd(283,14888,$);c=0}}while(0);if(!(i[_>>0]|0)){W=k[a+4>>2]|0;uc[k[(k[W>>2]|0)+56>>2]&31](W,X,Y,9)|0}}k[b>>2]=1}}else{d=f;c=e}i[Z>>0]=0;if(!(i[_>>0]|0)){_=k[a+4>>2]|0;uc[k[(k[_>>2]|0)+56>>2]&31](_,0,1,9)|0}}else if(e){d=a+4|0;c=k[d>>2]|0;c=uc[k[(k[c>>2]|0)+56>>2]&31](c,0,1,6)|0;if(!c)if(!(i[_>>0]|0)){d=k[d>>2]|0;uc[k[(k[d>>2]|0)+56>>2]&31](d,0,1,5)|0;d=f;c=264}else{d=f;c=264}else d=f}else{d=f;c=264}while(0);if(d)break}if((k[a+52>>2]|0)!=3007e3){k[$>>2]=50909;k[$+4>>2]=10788;gd(14,14848,$);c=14}}else c=f;while(0);r=aa;return c|0}function tq(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,l=0,n=0,o=0,p=0,q=0,r=0,s=0;p=k[e>>2]|0;q=k[d>>2]|0;h=(p|0)>0;g=(c|0)>0;if(h|g){n=g;i=0;o=0;l=0;while(1){do if(n){g=b+(i<<1)|0;if(h?(r=q+(l<<1)|0,(k[a+((m[g>>1]|0)<<2)>>2]|0)>>>0>=(k[a+((m[r>>1]|0)<<2)>>2]|0)>>>0):0){h=r;s=7;break}i=i+1|0;h=g}else{h=q+(l<<1)|0;s=7}while(0);if((s|0)==7){s=0;l=l+1|0}n=j[h>>1]|0;h=k[a+((n&65535)<<2)>>2]|0;g=o+1|0;j[f+(o<<1)>>1]=n;if((i|0)<(c|0))i=((k[a+((m[b+(i<<1)>>1]|0)<<2)>>2]|0)==(h|0)&1)+i|0;h=(l|0)<(p|0);n=(i|0)<(c|0);if(!(h|n))break;else o=g}}else g=0;k[d>>2]=b;k[e>>2]=g;pw(b|0,f|0,g<<1|0)|0;return}function uq(a,b){a=a|0;b=b|0;var c=0,d=0;d=k[a+4>>2]|0;k[d+4>>2]=k[a>>2];a=k[(k[d>>2]|0)+204>>2]|0;k[a+16>>2]=b;d=k[2217]|0;c=k[a+40>>2]|0;if((b|0)>-1)a=b;else{b=xw(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(k[a+24>>2]|0)+(k[a+20>>2]|0)|0;a=vw(b|0,L|0,a|0,((a|0)<0)<<31>>31|0)|0}oc[d&15](c,a);return}function vq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=(k[a+12>>2]|0)+136|0;c=e;d=k[c>>2]|0;c=k[c+4>>2]|0;do if((d|0)==0&(c|0)==0)if(!(gh(k[k[(k[a>>2]|0)+32>>2]>>2]|0,e)|0)){c=e;d=k[c>>2]|0;c=k[c+4>>2]|0;f=5;break}else{c=e;k[c>>2]=0;k[c+4>>2]=0;c=b;k[c>>2]=0;k[c+4>>2]=0;c=1;break}else f=5;while(0);if((f|0)==5){e=b;k[e>>2]=d;k[e+4>>2]=c;if((c|0)>0|(c|0)==0&d>>>0>0){i[b+42>>0]=1;c=0}else c=1}return c|0}function wq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0;n=r;r=r+16|0;if((r|0)>=(s|0))ka();l=n;k[l>>2]=b;b=a;a=0;a:while(1){f=k[l>>2]|0;e=k[f>>2]|0;k[l>>2]=f+4;f=k[l>>2]|0;g=k[f>>2]|0;k[l>>2]=f+4;f=k[l>>2]|0;h=k[f>>2]|0;k[l>>2]=f+4;f=k[l>>2]|0;j=k[f>>2]|0;k[l>>2]=f+4;f=k[l>>2]|0;c=k[f>>2]|0;k[l>>2]=f+4;if(!e){d=b;b=0}else{d=b;b=0;do{e=e+-1|0;f=i[d>>0]|0;if(((f&255)+-48|0)>>>0>=10)break a;b=(b*10|0)+-48+(f<<24>>24)|0;d=d+1|0}while((e|0)!=0)}if((b|0)<(g|0)|(b|0)>(h|0))break;if(!j){m=9;break}if((j|0)!=(i[d>>0]|0))break;k[c>>2]=b;b=d+1|0;a=a+1|0}if((m|0)==9){k[c>>2]=b;a=a+1|0}r=n;return a|0}function xq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0.0,g=0,h=0.0,j=0,m=0,n=0,o=0,q=0,t=0,u=0;u=r;r=r+64|0;if((r|0)>=(s|0))ka();q=u;n=u+56|0;o=u+52|0;c=u+48|0;j=u+44|0;m=u+40|0;k[q>>2]=2;k[q+4>>2]=0;k[q+8>>2]=24;k[q+12>>2]=58;k[q+16>>2]=c;k[q+20>>2]=2;k[q+24>>2]=0;k[q+28>>2]=59;k[q+32>>2]=0;k[q+36>>2]=j;do if((wq(a,q)|0)==2){g=a+5|0;if((i[g>>0]|0)==58){k[q>>2]=2;k[q+4>>2]=0;k[q+8>>2]=59;k[q+12>>2]=0;k[q+16>>2]=m;if((wq(a+6|0,q)|0)!=1){c=1;break}g=a+8|0;if((i[g>>0]|0)==46?(d=a+9|0,e=i[d>>0]|0,((e&255)+-48|0)>>>0<10):0){h=0.0;f=1.0;do{h=h*10.0+ +(e<<24>>24)+-48.0;f=f*10.0;d=d+1|0;e=i[d>>0]|0}while(((e&255)+-48|0)>>>0<10);f=h/f}else{d=g;f=0.0}}else{k[m>>2]=0;d=g;f=0.0}i[b+42>>0]=0;i[b+41>>0]=1;k[b+20>>2]=k[c>>2];k[b+24>>2]=k[j>>2];p[b+32>>3]=f+ +(k[m>>2]|0);while(1){c=d+1|0;if(!(i[10368+(l[d>>0]|0)>>0]&1)){g=d;break}else d=c}a=b+28|0;k[a>>2]=0;d=i[g>>0]|0;if(d<<24>>24==45){e=-1;t=14}else if(d<<24>>24!=43)if((d&-33)<<24>>24==90){e=0;t=16}else c=0;else{e=1;t=14}if((t|0)==14){k[q>>2]=2;k[q+4>>2]=0;k[q+8>>2]=14;k[q+12>>2]=58;k[q+16>>2]=n;k[q+20>>2]=2;k[q+24>>2]=0;k[q+28>>2]=59;k[q+32>>2]=0;k[q+36>>2]=o;if((wq(c,q)|0)!=2){c=1;break}e=ha(((k[n>>2]|0)*60|0)+(k[o>>2]|0)|0,e)|0;k[a>>2]=e;c=g+6|0;t=16}if((t|0)==16)while(1){d=i[c>>0]|0;if(!(i[10368+(d&255)>>0]&1)){c=e;break}else c=c+1|0}if(!(d<<24>>24)){i[b+43>>0]=(c|0)!=0&1;c=0}else c=1}else c=1;while(0);r=u;return c|0}function yq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0.0,m=0;j=r;r=r+112|0;if((r|0)>=(s|0))ka();f=j+48|0;h=j;g=j+96|0;d=f+0|0;a=a+0|0;e=d+48|0;do{k[d>>2]=k[a>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));to(f);uo(f);e=f+8|0;if(((k[e>>2]|0)+-1971|0)>>>0>66){k[e>>2]=2e3;k[f+12>>2]=1;k[f+16>>2]=1;k[f+20>>2]=0;k[f+24>>2]=0;p[f+32>>3]=0.0}else{d=f+32|0;p[d>>3]=+(~~(+p[d>>3]+.5)|0)}k[f+28>>2]=0;i[f+42>>0]=0;so(f);a=f;d=k[a>>2]|0;a=k[a+4>>2]|0;e=vw(d|0,a|0,1e3,0)|0;e=ow(e|0,L|0,-413362496,0)|0;k[g>>2]=e;e=_b(g|0)|0;e=(k[2253]|0)!=0?0:e;if(!e){k[b+20>>2]=1;i[b+25>>0]=1;ah(k[b>>2]|0,20056,-1,1,-1)|0;k[c>>2]=1;d=0;e=0}else{f=k[e+4>>2]|0;g=k[e+8>>2]|0;b=k[e+12>>2]|0;m=(k[e+16>>2]|0)+1|0;l=+(k[e>>2]|0);k[h+8>>2]=(k[e+20>>2]|0)+1900;k[h+12>>2]=m;k[h+16>>2]=b;k[h+20>>2]=g;k[h+24>>2]=f;p[h+32>>3]=l;i[h+40>>0]=1;i[h+41>>0]=1;i[h+42>>0]=0;i[h+43>>0]=0;so(h);k[c>>2]=0;e=h;e=iw(k[e>>2]|0,k[e+4>>2]|0,d|0,a|0)|0;d=L}L=d;r=j;return e|0}function zq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0;n=r;r=r+32|0;if((r|0)>=(s|0))ka();m=n+12|0;h=n;l=n+8|0;g=n+16|0;i[b>>0]=0;d=wc[k[(k[a>>2]|0)+24>>2]&127](a,h)|0;f=h;e=k[f>>2]|0;f=k[f+4>>2]|0;if(!((d|0)!=0|((f|0)<0|(f|0)==0&e>>>0<16))){d=ow(e|0,f|0,-16,-1)|0;d=js(a,d,L,m)|0;if(!d){j=k[m>>2]|0;if(!(j>>>0>=c>>>0|(j|0)==0)){d=h;d=ow(k[d>>2]|0,k[d+4>>2]|0,-12,-1)|0;d=js(a,d,L,l)|0;if(!d){d=h;d=ow(k[d>>2]|0,k[d+4>>2]|0,-8,-1)|0;d=yc[k[(k[a>>2]|0)+8>>2]&31](a,g,8,d,L)|0;if(!d)if(!(cw(g,14808,8)|0)){d=h;d=ow(k[d>>2]|0,k[d+4>>2]|0,-16,-1)|0;d=iw(d|0,L|0,j|0,0)|0;d=yc[k[(k[a>>2]|0)+8>>2]&31](a,b,j,d,L)|0;if(!d){e=k[l>>2]|0;f=0;while(1){c=i[b+f>>0]|0;d=e-c|0;f=f+1|0;if(f>>>0>=j>>>0)break;else e=d}k[l>>2]=d;if((e|0)==(c|0))d=j;else{k[m>>2]=0;d=0}i[b+d>>0]=0;d=0}}else d=0}}else d=0}}r=n;return d|0}function Aq(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0;q=r;r=r+16|0;if((r|0)>=(s|0))ka();i=q+8|0;o=q+4|0;m=q;p=a+72|0;g=p;h=k[g>>2]|0;g=k[g+4>>2]|0;if((h|0)==0&(g|0)==0){j=0;l=0;h=k[a+148>>2]|0}else{j=ow(h|0,g|0,-1,-1)|0;h=k[a+148>>2]|0;j=vw(j|0,L|0,h|0,0)|0;j=ow(j|0,L|0,1,0)|0;j=xw(j|0,L|0,h|0,0)|0;l=L}n=p;k[n>>2]=j;k[n+4>>2]=l;n=a+148|0;h=ow(h|0,0,j|0,l|0)|0;g=L;do if(!((g|0)>(d|0)|(g|0)==(d|0)&h>>>0>c>>>0)){if((b|0)==0?(b=a+80|0,(j|0)==(k[b>>2]|0)?(l|0)==(k[b+4>>2]|0):0):0)c=a+64|0;else{h=a+64|0;d=k[h>>2]|0;d=yc[k[(k[d>>2]|0)+8>>2]&31](d,i,8,j,l)|0;if(d)break;if(!(cw(i,14808,8)|0))c=h;else{d=101;break}}i=k[c>>2]|0;d=ow(j|0,l|0,8,0)|0;d=js(i,d,L,e)|0;if(!d){e=k[c>>2]|0;d=ow(j|0,l|0,12,0)|0;d=js(e,d,L,a+48|0)|0;if(!d){e=k[c>>2]|0;d=ow(j|0,l|0,16,0)|0;d=js(e,d,L,f)|0;if(!d){g=p;h=k[g>>2]|0;g=k[g+4>>2]|0;if((h|0)==0&(g|0)==0){f=k[c>>2]|0;d=ow(j|0,l|0,20,0)|0;d=js(f,d,L,m)|0;if(d)break;f=k[c>>2]|0;d=ow(j|0,l|0,24,0)|0;d=js(f,d,L,o)|0;if(d)break;c=k[o>>2]|0;if(!c){g=k[a+152>>2]|0;k[o>>2]=g}else g=c;c=k[m>>2]|0;if(g>>>0<512|c>>>0<32|g>>>0>65536|c>>>0>65536){d=101;break}if(g+-1&g){d=101;break}if(c+-1&c){d=101;break}d=fl(a,o,-1)|0;k[n>>2]=c;g=p;h=k[g>>2]|0;g=k[g+4>>2]|0}else{c=k[n>>2]|0;d=0}j=ow(h|0,g|0,c|0,0)|0;l=p;k[l>>2]=j;k[l+4>>2]=L}}}}else d=101;while(0);r=q;return d|0}function Bq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;A=r;r=r+16|0;if((r|0)>=(s|0))ka();v=A+8|0;h=A+4|0;p=A;y=k[a+200>>2]|0;z=(d|0)!=0;g=k[(z?a+64|0:a+68|0)>>2]|0;o=b;o=js(g,k[o>>2]|0,k[o+4>>2]|0,h)|0;do if(!o){x=a+152|0;u=k[x>>2]|0;o=b;o=ow(k[o>>2]|0,k[o+4>>2]|0,4,0)|0;o=yc[k[(k[g>>2]|0)+8>>2]&31](g,y,u,o,L)|0;if(!o){B=k[x>>2]|0;n=(d<<2)+4+B|0;o=b;o=ow(n|0,((n|0)<0)<<31>>31|0,k[o>>2]|0,k[o+4>>2]|0)|0;n=L;u=b;k[u>>2]=o;k[u+4>>2]=n;u=k[h>>2]|0;if((u|0)!=0?(u|0)!=(((k[2514]|0)/(B|0)|0)+1|0):0)if(u>>>0<=(k[a+24>>2]|0)>>>0?(ii(c,u)|0)==0:0){if(z){o=ow(o|0,n|0,-4,-1)|0;o=js(g,o,L,p)|0;if(o){f=o;break}if(!e){o=k[a+48>>2]|0;n=(k[x>>2]|0)+-200|0;if((n|0)>0)do{o=(l[y+n>>0]|0)+o|0;n=n+-200|0}while((n|0)>0);if((o|0)!=(k[p>>2]|0)){f=101;break}}}if((c|0)!=0?(f=gi(c,u)|0,(f|0)!=0):0)break;p=(u|0)==1;if(p?(q=a+142|0,t=i[y+20>>0]|0,(j[q>>1]|0)!=(t&255|0)):0)j[q>>1]=t&255;if(!(k[a+208>>2]|0)){t=a+204|0;o=fc[k[8744+132>>2]&63](k[(k[t>>2]|0)+40>>2]|0,u,0)|0;o=nl(k[t>>2]|0,u,o)|0}else o=0;k[v>>2]=o;if(z)if(!(i[a+7>>0]|0)){t=b;c=k[t+4>>2]|0;n=a+80|0;q=k[n+4>>2]|0;n=(c|0)<(q|0)|((c|0)==(q|0)?(k[t>>2]|0)>>>0<=(k[n>>2]|0)>>>0:0)}else n=1;else if(!o)n=1;else n=(j[o+24>>1]&4)==0;h=k[a+60>>2]|0;g=k[h>>2]|0;do if(g){f=i[a+16>>0]|0;if((f&255)>3){if(!n){w=33;break}}else if(!(f<<24>>24==0&n)){w=33;break}n=k[x>>2]|0;f=xw(n|0,((n|0)<0)<<31>>31|0,u+-1|0,0)|0;f=yc[k[g+12>>2]&31](h,y,n,f,L)|0;n=a+32|0;if(u>>>0>(k[n>>2]|0)>>>0)k[n>>2]=u;n=k[a+88>>2]|0;if(n)fp(n,u,y)}else w=33;while(0);if((w|0)==33)if((d|0)==0&(o|0)==0){t=a+20|0;i[t>>0]=l[t>>0]|2;f=Eg(a,u,v,1)|0;i[t>>0]=l[t>>0]&253;if(f)break;o=k[v>>2]|0;f=o+24|0;j[f>>1]=m[f>>1]&65527;Yo(o);f=0}else f=0;if(o){h=k[o+4>>2]|0;pw(h|0,y|0,k[x>>2]|0)|0;hc[k[a+196>>2]&31](o);do if(z){if((e|0)!=0?(t=b,c=k[t+4>>2]|0,u=a+80|0,q=k[u+4>>2]|0,(c|0)>(q|0)|((c|0)==(q|0)?(k[t>>2]|0)>>>0>(k[u>>2]|0)>>>0:0)):0)break;Cl(o)}while(0);if(p){n=a+104|0;g=h+24|0;h=n+16|0;do{i[n>>0]=i[g>>0]|0;n=n+1|0;g=g+1|0}while((n|0)<(h|0))}tl(o)}}else f=0;else f=101}else f=o}else f=o;while(0);r=A;return f|0}function Cq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=a+24|0;if((k[d>>2]|0)<=(b|0)){f=b+1|0;g=a+32|0;e=ad(k[g>>2]|0,f<<2)|0;if(!e){d=7;e=0}else{h=k[d>>2]|0;kw(e+(h<<2)|0,0,f-h<<2|0)|0;k[g>>2]=e;k[d>>2]=f;h=5}}else{e=k[a+32>>2]|0;h=5}if((h|0)==5){g=a+32|0;e=e+(b<<2)|0;do if(!(k[e>>2]|0)){if((i[a+43>>0]|0)!=2){d=k[a+4>>2]|0;d=yc[k[(k[d>>2]|0)+52>>2]&31](d,b,32768,l[a+44>>0]|0,e)|0;if((d|0)!=8)break;d=a+46|0;i[d>>0]=l[d>>0]|2;d=0;break}d=vg(32768,0)|0;if(d)kw(d|0,0,32768)|0;k[(k[g>>2]|0)+(b<<2)>>2]=d;d=(k[(k[g>>2]|0)+(b<<2)>>2]|0)==0?7:0}else d=0;while(0);e=k[(k[g>>2]|0)+(b<<2)>>2]|0}k[c>>2]=e;return d|0}function Dq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=b+c|0;if(!d){f=0;c=0}else{f=k[d>>2]|0;c=k[d+4>>2]|0}if(!a)do{f=f+c+(sw(k[b>>2]|0)|0)|0;c=f+c+(sw(k[b+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0>>0);else do{f=f+c+(k[b>>2]|0)|0;c=f+c+(k[b+4>>2]|0)|0;b=b+8|0}while(b>>>0>>0);k[e>>2]=f;k[e+4>>2]=c;return}function Eq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;g=a+8|0;f=k[g>>2]|0;g=k[g+4>>2]|0;if((g|0)>(e|0)|(g|0)==(e|0)&f>>>0>d>>>0?(h=ow(c|0,((c|0)<0)<<31>>31|0,d|0,e|0)|0,j=L,!((j|0)<(g|0)|(j|0)==(g|0)&h>>>0>>0)):0){h=iw(f|0,g|0,d|0,e|0)|0;g=a+4|0;f=k[g>>2]|0;f=yc[k[(k[f>>2]|0)+12>>2]&31](f,b,h,d,e)|0;if(!f){d=ow(h|0,((h|0)<0)<<31>>31|0,d|0,e|0)|0;e=L;f=k[g>>2]|0;f=wc[k[(k[f>>2]|0)+20>>2]&127](f,k[a+16>>2]&19)|0;if(!((h|0)==(c|0)|(f|0)!=0)){c=c-h|0;g=b+h|0;f=e;i=5}}}else{g=b;f=e;i=5}if((i|0)==5){e=k[a+4>>2]|0;f=yc[k[(k[e>>2]|0)+12>>2]&31](e,g,c,d,f)|0}return f|0}function Fq(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();e=g+8|0;f=g+4|0;d=g;k[e>>2]=0;k[f>>2]=0;k[d>>2]=0;c=a+68|0;b=k[c>>2]|0;if(b){Uo(a,(b+33|0)>>>12,e,f,d)|0;d=(k[c>>2]|0)-(k[d>>2]|0)|0;a=k[e>>2]|0;c=0;do{b=a+(c<<1)|0;if((m[b>>1]|0|0)>(d|0))j[b>>1]=0;c=c+1|0}while((c|0)!=8192);b=(k[f>>2]|0)+(d+1<<2)|0;kw(b|0,0,a-b|0)|0}r=g;return}function Gq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();c=e;f=a+204|0;d=fc[k[8744+132>>2]&63](k[(k[f>>2]|0)+40>>2]|0,b,0)|0;d=nl(k[f>>2]|0,b,d)|0;do if(!d)c=0;else{if((j[d+26>>1]|0)==1){rl(d);c=0;break}k[c>>2]=0;b=pl(k[a+208>>2]|0,k[d+20>>2]|0,c)|0;if(!b){b=ql(d,k[c>>2]|0)|0;if(!b){hc[k[a+196>>2]&31](d);b=0}}Gg(d);c=b}while(0);b=k[a+88>>2]|0;if(b)do{k[b+16>>2]=1;b=k[b+44>>2]|0}while((b|0)!=0);r=e;return c|0}function Hq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=r;r=r+16|0;if((r|0)>=(s|0))ka();C=D;z=k[a+52>>2]|0;o=(k[z+36>>2]|0)+-4|0;v=b&65535;A=c&65535;u=A+v|0;B=k[a+56>>2]|0;if(j[z+22>>1]&4)kw(B+v|0,0,A|0)|0;y=l[a+6>>0]|0;z=y+1|0;g=z&65535;x=z&65535;if((i[B+(x+1)>>0]|0)==0?(i[B+x>>0]|0)==0:0){q=c&255;o=(c&65535)>>>8&255;p=u;n=0;h=0;x=23}else{q=g;x=6}a:do if((x|0)==6){while(1){x=0;f=q&65535;h=i[B+(f+1)>>0]|0;e=h&255;p=l[B+f>>0]<<8|e;g=q;q=p&65535;if(!(p>>>0>>0&(p|0)!=0)){n=h;t=p;break}if(p>>>0<(f+4|0)>>>0){x=8;break}else x=6}if((x|0)==8){k[C>>2]=54420;k[C+4>>2]=10788;gd(11,13600,C);d=11;break}if(t>>>0>o>>>0){k[C>>2]=54423;k[C+4>>2]=10788;gd(11,13600,C);d=11;break}d=c&255;o=(c&65535)>>>8&255;h=(q&65535)>>>8&255;do if((t+-1|0)>>>0<(u+3|0)>>>0)if(u>>>0>t>>>0){k[C>>2]=54434;k[C+4>>2]=10788;gd(11,13600,C);d=11;break a}else{p=(l[B+(t+2)>>0]<<8|l[B+(t+3)>>0])+t|0;o=p-v|0;q=o&255;o=(o&65535)>>>8&255;n=i[B+(t+1)>>0]|0;h=i[B+t>>0]|0;d=e-u&255;break}else{q=d;p=u;d=0}while(0);do if(f>>>0>z>>>0?(w=(l[B+(f+2)>>0]<<8|l[B+(f+3)>>0])+f|0,(w+3|0)>=(v|0)):0)if((v|0)<(w|0)){k[C>>2]=54447;k[C+4>>2]=10788;gd(11,13600,C);d=11;break a}else{o=p-f|0;b=g;q=o&255;o=(o&65535)>>>8&255;d=(d&255)+v-w&255;break}while(0);f=B+(y+7)|0;e=i[f>>0]|0;if((e&255)<(d&255)){k[C>>2]=54453;k[C+4>>2]=10788;gd(11,13600,C);d=11;break}else{i[f>>0]=(e&255)-(d&255);x=23;break}}while(0);b:do if((x|0)==23){d=b&65535;e=B+(y+5)|0;f=B+(y+6)|0;do if((d|0)==(l[e>>0]<<8|l[f>>0]|0))if((g&65535|0)==(z|0)){i[B+z>>0]=h;i[B+(y+2)>>0]=n;i[e>>0]=p>>>8;i[f>>0]=p;break}else{k[C>>2]=54460;k[C+4>>2]=10788;gd(11,13600,C);d=11;break b}else{C=g&65535;i[B+C>>0]=(b&65535)>>>8;i[B+(C+1)>>0]=b;i[B+d>>0]=h;i[B+(d+1)>>0]=n;i[B+(d+2)>>0]=o;i[B+(d+3)>>0]=q}while(0);d=a+16|0;j[d>>1]=(m[d>>1]|0)+A;d=0}while(0);r=D;return d|0}function Iq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0;u=r;r=r+16|0;if((r|0)>=(s|0))ka();p=u;o=l[a+6>>0]|0;t=k[a+56>>2]|0;n=k[(k[a+52>>2]|0)+36>>2]|0;g=n+-4|0;a=o+1|0;while(1){h=t+a|0;j=(l[h>>0]|0)<<8|(l[t+(a+1)>>0]|0);if(!j){a=0;break}if((j|0)>(g|0)|(j|0)<(a+4|0)){q=4;break}e=t+(j+2)|0;f=t+(j+3)|0;a=(l[e>>0]|0)<<8|(l[f>>0]|0);if((a|0)<(b|0))a=j;else{m=e;g=j;q=6;break}}a:do if((q|0)==4){k[p>>2]=54252;k[p+4>>2]=10788;gd(11,13600,p);k[c>>2]=11;a=0}else if((q|0)==6){e=a-b|0;do if((e|0)>=4)if((a+g|0)>(n|0)){k[p>>2]=54275;k[p+4>>2]=10788;gd(11,13600,p);k[c>>2]=11;a=0;break a}else{i[m>>0]=e>>>8;i[f>>0]=e;break}else{a=t+(o+7)|0;if((l[a>>0]|0)<=59){o=t+g|0;o=l[o>>0]|l[o+1>>0]<<8;i[h>>0]=o;i[h+1>>0]=o>>8;i[a>>0]=(l[a>>0]|0)+e;break}if(!d){a=0;break a}k[d>>2]=1;a=0;break a}while(0);a=t+(e+g)|0}while(0);r=u;return a|0}function Jq(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=r;r=r+16|0;if((r|0)>=(s|0))ka();B=D;y=k[a+56>>2]|0;A=l[a+6>>0]|0;u=m[a+14>>1]|0;v=j[a+18>>1]|0;o=v&65535;p=a+52|0;q=k[(k[p>>2]|0)+36>>2]|0;z=(o<<1)+u|0;t=q+-4|0;w=y+(A+5)|0;x=y+(A+6)|0;a:do if(v<<16>>16){n=q;v=0;c=y;d=0;while(1){f=(v<<1)+u|0;e=y+f|0;f=y+(f+1)|0;g=(l[e>>0]|0)<<8|(l[f>>0]|0);if((g|0)<(z|0)|(g|0)>(t|0)){C=3;break}h=(Qp(a,c+g|0)|0)&65535;b=n-h|0;if((b|0)<(z|0)|(h+g|0)>(q|0)){C=5;break}i[e>>0]=b>>>8;i[f>>0]=b;if(!d)if((b|0)==(g|0))d=0;else{d=k[(k[k[p>>2]>>2]|0)+200>>2]|0;c=(l[w>>0]|0)<<8|(l[x>>0]|0);pw(d+c|0,y+c|0,n-c|0)|0;c=d;C=9}else C=9;if((C|0)==9){C=0;pw(y+b|0,c+g|0,h|0)|0}v=v+1|0;if((v|0)>=(o|0)){C=11;break a}else n=b}if((C|0)==3){k[B>>2]=54184;k[B+4>>2]=10788;gd(11,13600,B);b=11;break}else if((C|0)==5){k[B>>2]=54196;k[B+4>>2]=10788;gd(11,13600,B);b=11;break}}else{b=q;C=11}while(0);if((C|0)==11){i[w>>0]=b>>>8;i[x>>0]=b;i[y+(A+1)>>0]=0;i[y+(A+2)>>0]=0;i[y+(A+7)>>0]=0;C=b-z|0;kw(y+z|0,0,C|0)|0;if((C|0)==(m[a+16>>1]|0|0))b=0;else{k[B>>2]=54221;k[B+4>>2]=10788;gd(11,13600,B);b=11}}r=D;return b|0}function Kq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=r;r=r+32|0;if((r|0)>=(s|0))ka();e=f;if((k[c>>2]|0)==0?(wp(a,b,e),d=j[e+18>>1]|0,d<<16>>16!=0):0){d=d&65535;Ep(k[a+52>>2]|0,(l[b+(d+1)>>0]|0)<<16|(l[b+d>>0]|0)<<24|(l[b+(d+2)>>0]|0)<<8|(l[b+(d+3)>>0]|0),3,k[a+72>>2]|0,c)}r=f;return}function Lq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;do if(!(k[c>>2]|0)){d=k[a+52>>2]|0;f=k[a+56>>2]|0;h=k[b+56>>2]|0;e=l[a+6>>0]|0;g=(k[b+72>>2]|0)==1?100:0;j=l[f+(e+5)>>0]<<8|l[f+(e+6)>>0];pw(h+j|0,f+j|0,(k[d+36>>2]|0)-j|0)|0;pw(h+g|0,f+e|0,(m[a+18>>1]<<1)+(m[a+14>>1]|0)|0)|0;i[b>>0]=0;a=eq(b)|0;if(a){k[c>>2]=a;break}if(i[d+17>>0]|0){a=dq(b)|0;k[c>>2]=a}}while(0);return}function Mq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;q=l[a+6>>0]|0;t=k[a+56>>2]|0;h=k[a+52>>2]|0;o=k[h+36>>2]|0;n=t+o|0;e=k[a+64>>2]|0;h=k[(k[h>>2]|0)+200>>2]|0;p=t+(q+5)|0;r=t+(q+6)|0;s=(l[p>>0]|0)<<8|(l[r>>0]|0);pw(h+s|0,t+s|0,o-s|0)|0;s=t;if((b|0)>0){o=0;g=e;e=n;while(1){f=k[c+(o<<2)>>2]|0;if(f>>>0>t>>>0&f>>>0>>0)f=h+(f-s)|0;u=m[d+(o<<1)>>1]|0;e=e+(0-u)|0;pw(e|0,f|0,u|0)|0;f=e-s|0;i[g>>0]=f>>>8;i[g+1>>0]=f;o=o+1|0;if((o|0)==(b|0))break;else g=g+2|0}}else e=n;d=a+18|0;j[d>>1]=b;i[a+1>>0]=0;i[t+(q+1)>>0]=0;i[t+(q+2)>>0]=0;i[t+(q+3)>>0]=(m[d>>1]|0)>>>8;i[t+(q+4)>>0]=j[d>>1];d=e-s|0;i[p>>0]=d>>>8;i[r>>0]=d;i[t+(q+7)>>0]=0;return}function Nq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,n=0,o=0,p=0,q=0,r=0;r=k[a+56>>2]|0;p=r+(k[(k[a+52>>2]|0)+36>>2]|0)|0;n=r+((l[a+6>>0]|0)+8+(l[a+7>>0]|0))|0;a:do if((b|0)>0){o=r;q=0;e=0;i=0;j=0;while(1){g=k[c+(q<<2)>>2]|0;if(g>>>0>=n>>>0&g>>>0>>0){f=m[d+(q<<1)>>1]|0;h=g+f|0;if((i|0)!=(h|0)){if(i)Hq(a,i-o&65535,j&65535)|0;if(h>>>0>p>>>0){e=0;break a}}else f=f+j|0;e=e+1|0}else{g=i;f=j}q=q+1|0;if((q|0)>=(b|0))break;else{i=g;j=f}}if(g)Hq(a,g-r&65535,f&65535)|0}else e=0;while(0);return e|0}function Oq(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();t=v;j=k[a+56>>2]|0;h=k[c>>2]|0;if(!(i[j+1>>0]|0))q=(i[j+2>>0]|0)!=0;else q=1;a:do if((e|0)>0){o=0;while(1){n=m[g+(o<<1)>>1]|0;if(q?(p=Iq(a,n,t,0)|0,(p|0)!=0):0)l=p;else{l=h+(0-n)|0;if(l>>>0>>0){h=1;break a}else h=l}pw(l|0,k[f+(o<<2)>>2]|0,n|0)|0;n=l-j|0;i[d>>0]=n>>>8;i[d+1>>0]=n;o=o+1|0;if((o|0)>=(e|0)){u=9;break}else d=d+2|0}}else u=9;while(0);if((u|0)==9){k[c>>2]=h;h=0}r=v;return h|0}function Pq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();l=m;d=k[a+44>>2]|0;g=a;e=k[g>>2]|0;g=k[g+4>>2]|0;a:do if(!d){j=a+40|0;d=k[j>>2]|0;f=((d|0)<0)<<31>>31;i=ww(e|0,g|0,d|0,f|0)|0;if(!i){h=a+8|0;h=iw(k[h>>2]|0,k[h+4>>2]|0,e|0,g|0)|0;n=L;o=k[a+24>>2]|0;d=yc[k[(k[o>>2]|0)+8>>2]&31](o,k[a+36>>2]|0,(n|0)>(f|0)|(n|0)==(f|0)&h>>>0>d>>>0?d:h,e,g)|0;if(d)break;d=k[j>>2]|0}h=d-i|0;if((h|0)>=(b|0)){k[c>>2]=(k[a+36>>2]|0)+i;d=a;b=ow(k[d>>2]|0,k[d+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;d=a;k[d>>2]=b;k[d+4>>2]=L;d=0;break}d=a+16|0;e=k[d>>2]|0;if((e|0)<(b|0)){e=e<<1;e=(e|0)<128?128:e;while(1)if((e|0)<(b|0))e=e<<1;else{g=e;break}f=a+28|0;e=wg(k[f>>2]|0,g,((g|0)<0)<<31>>31)|0;if(!e){d=7;break}k[d>>2]=g;k[f>>2]=e}else e=k[a+28>>2]|0;g=a+28|0;pw(e|0,(k[a+36>>2]|0)+i|0,h|0)|0;i=a;i=ow(k[i>>2]|0,k[i+4>>2]|0,h|0,((h|0)<0)<<31>>31|0)|0;d=a;k[d>>2]=i;k[d+4>>2]=L;d=b-h|0;if((d|0)>0){f=d;do{e=k[j>>2]|0;e=(f|0)>(e|0)?e:f;d=Pq(a,e,l)|0;if(d)break a;pw((k[g>>2]|0)+(b-f)|0,k[l>>2]|0,e|0)|0;f=f-e|0}while((f|0)>0)}k[c>>2]=k[g>>2];d=0}else{k[c>>2]=d+e;b=ow(e|0,g|0,b|0,((b|0)<0)<<31>>31|0)|0;d=a;k[d>>2]=b;k[d+4>>2]=L;d=0}while(0);r=m;return d|0}function Qq(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+64|0;if((r|0)>=(s|0))ka();w=z+44|0;y=z;x=z+40|0;u=a+8|0;t=k[u>>2]|0;u=k[u+4>>2]|0;v=a+4|0;n=k[v>>2]|0;Up(k[a+48>>2]|0,y,k[(k[(k[a>>2]|0)+8>>2]|0)+12>>2]|0,t,u);m=n+8|0;n=n+12|0;o=y+24|0;p=y+16|0;q=a+16|0;while(1){e=k[(k[m>>2]|0)+4>>2]|0;f=k[n>>2]|0;g=k[f+(e*56|0)+20>>2]|0;if(!(k[f+(e*56|0)+24>>2]|0)){c=1;b=0;break}i=o;h=k[i>>2]|0;i=k[i+4>>2]|0;j=k[p>>2]|0;l=((g|0)<0)<<31>>31;b=g;d=l;c=0;do{c=c+1|0;b=rw(b|0,d|0,7)|0;d=L}while(((b|0)!=0|(d|0)!=0)&(c|0)<9);h=ow(h|0,i|0,g|0,l|0)|0;h=ow(h|0,L|0,j|0,((j|0)<0)<<31>>31|0)|0;c=ow(h|0,L|0,c|0,((c|0)<0)<<31>>31|0)|0;h=L;b=k[q>>2]|0;b=ow(b|0,((b|0)<0)<<31>>31|0,t|0,u|0)|0;d=L;if((h|0)>(d|0)|(h|0)==(d|0)&c>>>0>b>>>0){c=1;b=0;break}Vp(y,w,um(w,g,l)|0);Vp(y,k[f+(e*56|0)+32>>2]|0,g);b=$m(k[v>>2]|0,x)|0;if(b){c=0;break}}y=Wp(y,a+56|0)|0;r=z;return (c?y:b)|0}function Rq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();e=c;k[e>>2]=d;d=$k(a,13592,e)|0;rg(a,b);r=c;return d|0}function Sq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();h=l;e=i[a>>0]|0;if(e<<24>>24!=0&(b|0)>0){g=0;do{if((e+-48&255)<10){f=0;do{f=(f*10|0)+-48+(e<<24>>24)|0;a=a+1|0;e=i[a>>0]|0}while((e+-48&255)<10);e=0}else{f=0;e=0}e=ks(f,e)|0;j[c+(g<<1)>>1]=e;a=(i[a>>0]|0)==32?a+1|0:a;g=g+1|0;e=i[a>>0]|0}while(e<<24>>24!=0&(g|0)<(b|0))}g=d+51|0;i[g>>0]=i[g>>0]&-69;a:do if(i[a>>0]|0){c=d+44|0;b:while(1){do if(!(Lh(13448,a,10352,0)|0)){if(Lh(13464,a,10352,0)|0){k[h>>2]=0;In(a+3|0,h)|0;e=k[h>>2]|0;e=ks(e,((e|0)<0)<<31>>31)|0;j[c>>1]=e;break}if(Lh(13480,a,10352,0)|0)i[g>>0]=i[g>>0]|64}else i[g>>0]=i[g>>0]|4;while(0);while(1){e=i[a>>0]|0;if(e<<24>>24==32|e<<24>>24==0)break;a=a+1|0}while(1){f=a+1|0;if(!(e<<24>>24))break a;else if(e<<24>>24!=32)continue b;e=i[f>>0]|0;a=f}}}while(0);r=l;return}function Tq(a){a=a|0;var b=0,c=0;c=a+8|0;b=k[c>>2]|0;if(!b){b=Ah(a)|0;k[c>>2]=b;if(b)Bh(b,155,0,0,0)|0;if((k[a+408>>2]|0)==0?(j[(k[a>>2]|0)+60>>1]&8)==0:0)i[a+23>>0]=1}return b|0}function Uq(a,b){a=a|0;b=b|0;var c=0;c=(k[a+32>>2]|0)+-1|0;if((c|0)>(k[(k[a+24>>2]|0)+88>>2]|0)?(i[(k[a+4>>2]|0)+(c*20|0)>>0]|0)==b<<24>>24:0){Eh(a,c);c=1}else c=0;return c|0}function Vq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=Tq(a)|0;f=d+32|0;ls(a,c,k[f>>2]|0,(e|0)==55&1,k[d>>2]|0);if(!(i[d+44>>0]&32)){d=j[d+38>>1]|0;Ch(g,Bh(g,e,b,k[f>>2]|0,c)|0,d,-14)}else{f=k[d+8>>2]|0;a:do if(!f)f=0;else while(1){if((i[f+51>>0]&3)==2)break a;f=k[f+20>>2]|0;if(!f){f=0;break}}while(0);Bh(g,e,b,k[f+40>>2]|0,c)|0;d=k[a+8>>2]|0;Ch(d,-1,ms(a,f)|0,-6)}return}function Wq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if((b|0)!=0?(i[b>>0]|0)==-97:0)Bh(k[a+8>>2]|0,33,k[b+28>>2]|0,c,0)|0;else f=4;if(((f|0)==4?(e=ns(a,b,c)|0,(e|0)!=(c|0)):0)?(d=k[a+8>>2]|0,(d|0)!=0):0)Bh(d,34,e,c,0)|0;return}function Xq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;f=k[a>>2]|0;do if(((i[f+145>>0]|0)==0?(i[a+451>>0]|0)==0:0)?(g=k[f+284>>2]|0,(g|0)!=0):0){f=pc[g&7](k[f+288>>2]|0,b,c,d,e,k[a+492>>2]|0)|0;if((f|0)==0|(f|0)==2)break;else if((f|0)==1){yh(a,25216,h);k[a+12>>2]=23;f=1;break}else{yh(a,25232,h);k[a+12>>2]=1;f=1;break}}else f=0;while(0);r=j;return f|0}function Yq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=$q(k[a>>2]|0,c)|0;do if(c){d=Tq(a)|0;if((d|0)!=0?(Xq(a,32,k[37088+(b<<2)>>2]|0,c,0)|0)==0:0){Ch(d,Bh(d,2,b,0,0)|0,c,-1);break}rg(k[a>>2]|0,c)}while(0);return}function Zq(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();p=v;n=v+4|0;u=k[a>>2]|0;b=jr(a,b,c,n)|0;a:do if((b|0)>=0){o=(d|0)!=0;if(o?(k[c+4>>2]|0)!=0&(b|0)!=1:0){yh(a,36976,p);break}t=o?1:b;c=k[n>>2]|0;o=c;b=k[o+4>>2]|0;n=a+496|0;k[n>>2]=k[o>>2];k[n+4>>2]=b;n=$q(u,c)|0;if(n){b:do if((Qr(a,n)|0)==0?(m=(i[u+144>>0]|0)==1?1:d,q=u+16|0,h=k[(k[q>>2]|0)+(t<<4)>>2]|0,(Xq(a,18,(m|0)==1?13184:13208,0,h)|0)==0):0){d=(m|0)!=0;if(!e)b=d?4:2;else b=d?6:8;o=(f|0)!=0;if(!o?(Xq(a,b,n,0,h)|0)!=0:0)break;do if(!(i[a+451>>0]|0)){d=k[(k[q>>2]|0)+(t<<4)>>2]|0;if(Ln(a)|0)break b;if(!(di(u,n,d)|0)){if(!(gq(u,n,d)|0))break;k[p>>2]=n;yh(a,37048,p);break b}if(!g){k[p>>2]=c;yh(a,37024,p);break b}else{Fr(a,t);break b}}while(0);m=rh(u,76,0)|0;if(!m){i[u+65>>0]=1;k[a+12>>2]=7;q=a+64|0;k[q>>2]=(k[q>>2]|0)+1;break}h=m+0|0;d=h+76|0;do{i[h>>0]=0;h=h+1|0}while((h|0)<(d|0));k[m>>2]=n;j[m+36>>1]=-1;h=k[(k[q>>2]|0)+(t<<4)+12>>2]|0;k[m+68>>2]=h;j[m+40>>1]=1;j[m+28>>1]=200;k[a+484>>2]=m;if((i[a+18>>0]|0)==0?(dw(n,26576)|0)==0:0)k[h+72>>2]=m;if(i[u+145>>0]|0)break a;c=Tq(a)|0;if(!c)break a;q=k[a+408>>2]|0;Fr(a,t);h=1<>2]=k[q>>2]|h;if(o)Bh(c,146,0,0,0)|0;m=a+72|0;b=k[m>>2]|0;n=b+1|0;k[a+384>>2]=n;o=b+2|0;k[a+388>>2]=o;b=b+3|0;k[m>>2]=b;Bh(c,51,t,b,2)|0;m=c+96|0;k[m>>2]=k[m>>2]|h;m=Bh(c,45,b,0,0)|0;Bh(c,25,(k[u+24>>2]&32768|0)!=0?1:4,b,0)|0;Bh(c,52,t,2,b)|0;Bh(c,25,l[u+62>>0]|0,b,0)|0;Bh(c,52,t,5,b)|0;d=c+32|0;h=k[d>>2]|0;if(h>>>0>m>>>0)k[(k[c+4>>2]|0)+(m*20|0)+8>>2]=h;k[(k[c+24>>2]|0)+88>>2]=h+-1;if(!(f|e)){q=Bh(c,121,t,o,0)|0;k[a+416>>2]=q}else Bh(c,25,0,o,0)|0;os(a,t);Bh(c,74,0,n,0)|0;Bh(c,28,0,b,0)|0;Bh(c,75,0,b,n)|0;h=k[c+4>>2]|0;if(h)i[h+(((k[d>>2]|0)+-1|0)*20|0)+3>>0]=8;Bh(c,61,0,0,0)|0;break a}while(0);rg(u,n)}}while(0);r=v;return}function _q(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,n=0,o=0,p=0,q=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=r;r=r+176|0;if((r|0)>=(s|0))ka();J=O+80|0;G=O+168|0;D=O;E=O+136|0;F=O+112|0;K=k[a>>2]|0;a:do if((!((c|0)==0&(e|0)==0)?(L=K+65|0,(i[L>>0]|0)==0):0)?(M=a+484|0,N=k[M>>2]|0,(N|0)!=0):0){I=K+145|0;if(i[I>>0]|0)k[N+32>>2]=k[K+140>>2];b:do if(d&32){n=N+44|0;h=l[n>>0]|0;if(h&8){yh(a,36584,J);break a}if(!(h&4)){k[J>>2]=k[N>>2];yh(a,36640,J);break}i[n>>0]=h|32;o=k[a+8>>2]|0;n=k[a+416>>2]|0;if(n){if((n|0)<0)n=(k[o+32>>2]|0)+-1|0;if(!(i[(k[o>>2]|0)+65>>0]|0))n=(k[o+4>>2]|0)+(n*20|0)|0;else n=29120;i[n>>0]=120}n=k[a+420>>2]|0;if(n){if((n|0)<0)n=(k[o+32>>2]|0)+-1|0;if(!(i[(k[o>>2]|0)+65>>0]|0))h=(k[o+4>>2]|0)+(n*20|0)|0;else h=29120;i[h>>0]=16}h=N+36|0;if((j[h>>1]|0)>-1){n=qr(a,0,0)|0;if(!n)break;z=ph(k[a>>2]|0,k[(k[N+4>>2]|0)+((j[h>>1]|0)*24|0)>>2]|0)|0;A=k[n+4>>2]|0;k[A+4>>2]=z;i[A+12>>0]=i[a+448>>0]|0;n=er(a,0,0,0,n,l[N+45>>0]|0,0,0,0,0)|0;if(!n)break;u=n+51|0;i[u>>0]=i[u>>0]&-4|2;j[h>>1]=-1;u=j[n+46>>1]|0}else{n=k[N+8>>2]|0;c:do if(!n)n=0;else while(1){if((i[n+51>>0]&3)==2)break c;n=k[n+20>>2]|0;if(!n){n=0;break}}while(0);v=n+46|0;o=j[v>>1]|0;if((o&65535)>1){t=k[n+4>>2]|0;q=n+48|0;u=1;h=1;do{f=j[t+(u<<1)>>1]|0;p=h;g=t;while(1){if((p|0)<=0){C=36;break}if((j[g>>1]|0)==f<<16>>16){C=35;break}else{p=p+-1|0;g=g+2|0}}if((C|0)==35){C=0;j[q>>1]=(j[q>>1]|0)+-1<<16>>16}else if((C|0)==36){C=0;j[t+(h<<1)>>1]=f;o=j[v>>1]|0;h=h+1|0}u=u+1|0}while((u|0)<(o&65535|0))}else h=1;u=h&65535;j[v>>1]=u}p=n+51|0;o=i[p>>0]|32;i[p>>0]=o;A=u&65535;if(!(i[K+147>>0]|0)){if(u<<16>>16){o=k[n+4>>2]|0;h=k[N+4>>2]|0;g=0;do{i[h+((j[o+(g<<1)>>1]|0)*24|0)+20>>0]=1;g=g+1|0}while((g|0)<(A|0));o=i[p>>0]|0}i[p>>0]=o|8}k[n+40>>2]=k[N+32>>2];p=k[N+8>>2]|0;if(p){x=u<<16>>16==0;y=n+4|0;z=n+32|0;do{d:do if((i[p+51>>0]&3)!=2){do if(x)o=j[p+46>>1]|0;else{q=k[p+4>>2]|0;o=j[p+46>>1]|0;g=o&65535;f=k[y>>2]|0;w=0;h=0;do{t=j[f+(w<<1)>>1]|0;v=g;u=q;while(1){if((v|0)<=0){u=1;break}if((j[u>>1]|0)==t<<16>>16){u=0;break}else{v=v+-1|0;u=u+2|0}}h=u+h|0;w=w+1|0}while((w|0)<(A|0));g=p+46|0;if(!h)break;if(ps(K,p,(o&65535)+h|0)|0)break b;if(x)break d;t=j[g>>1]|0;w=p+4|0;f=p+32|0;v=t;u=0;t=t&65535;while(1){o=k[w>>2]|0;h=j[(k[y>>2]|0)+(u<<1)>>1]|0;v=v&65535;q=o;while(1){if((v|0)<=0){C=63;break}if((j[q>>1]|0)==h<<16>>16)break;else{v=v+-1|0;q=q+2|0}}if((C|0)==63){C=0;j[o+(t<<1)>>1]=h;k[(k[f>>2]|0)+(t<<2)>>2]=k[(k[z>>2]|0)+(u<<2)>>2];t=t+1|0}u=u+1|0;if((u|0)>=(A|0))break d;v=j[g>>1]|0}}while(0);j[p+48>>1]=o}while(0);p=k[p+20>>2]|0}while((p|0)!=0)}v=N+38|0;o=j[v>>1]|0;h=o<<16>>16;if((A|0)>=(h|0)){j[n+48>>1]=o;break}if((ps(K,n,h)|0)==0?(B=j[v>>1]|0,B<<16>>16>0):0){q=n+4|0;u=n+32|0;o=B;t=0;n=A;do{g=k[q>>2]|0;p=n;h=g;while(1){if((p|0)<=0){C=74;break}if((j[h>>1]|0)==(t|0))break;else{p=p+-1|0;h=h+2|0}}if((C|0)==74){C=0;j[g+(n<<1)>>1]=t;k[(k[u>>2]|0)+(n<<2)>>2]=11152;o=j[v>>1]|0;n=n+1|0}t=t+1|0}while((t|0)<(o<<16>>16|0))}}while(0);C=N+68|0;n=k[C>>2]|0;e:do if(n){h=k[K+20>>2]|0;if((h|0)>0){g=k[K+16>>2]|0;o=0;while(1){f=o+1|0;if((k[g+(o<<4)+12>>2]|0)==(n|0))break e;if((f|0)<(h|0))o=f;else{o=f;break}}}else o=0}else o=-1e6;while(0);g=k[N+24>>2]|0;f:do if(g){k[E+0>>2]=0;k[E+4>>2]=0;k[E+8>>2]=0;k[E+12>>2]=0;k[E+16>>2]=0;k[E+20>>2]=0;k[E+24>>2]=0;k[E+28>>2]=0;n=D+0|0;h=n+80|0;do{k[n>>2]=0;n=n+4|0}while((n|0)<(h|0));k[D>>2]=1;k[D+16>>2]=k[N>>2];k[D+24>>2]=N;k[D+48>>2]=-1;k[E>>2]=a;k[E+4>>2]=D;j[E+28>>1]=4;n=g+4|0;if((k[g>>2]|0)>0){h=0;do{if(qs(E,k[(k[n>>2]|0)+(h*20|0)>>2]|0)|0)break f;h=h+1|0}while((h|0)<(k[g>>2]|0))}}while(0);A=N+38|0;f=j[A>>1]|0;if(f<<16>>16>0){n=f<<16>>16;h=k[N+4>>2]|0;g=0;while(1){g=(l[h+22>>0]|0)+g|0;n=n+-1|0;if((n|0)<=0)break;else h=h+24|0}}else g=0;g=ks(((m[N+36>>1]|0)>>>15&65535)+g<<2,0)|0;j[N+42>>1]=g;g=k[N+8>>2]|0;if(g)do{rs(g);g=k[g+20>>2]|0}while((g|0)!=0);if(!(i[I>>0]|0)){B=Tq(a)|0;if(!B)break;Bh(B,61,0,0,0)|0;y=(k[N+12>>2]|0)==0;h=y?36672:36680;y=y?31232:35480;do if(!e){g=d<<24>>24==0?c:a+504|0;e=k[g>>2]|0;n=k[a+496>>2]|0;f=e-n|0;if((i[e>>0]|0)!=59)f=(k[g+4>>2]|0)+f|0;k[J>>2]=h;k[J+4>>2]=f;k[J+8>>2]=n;n=a+388|0;f=N;h=zh(K,36688,J)|0}else{n=a+388|0;Bh(B,55,1,k[n>>2]|0,o)|0;h=k[B+4>>2]|0;if(h)i[h+(((k[B+32>>2]|0)+-1|0)*20|0)+3>>0]=4;k[a+68>>2]=2;i[F>>0]=14;k[F+4>>2]=1;i[F+1>>0]=0;k[F+8>>2]=0;k[F+12>>2]=0;nr(a,e,F)|0;Bh(B,61,1,0,0)|0;if(!(k[a+64>>2]|0)){f=ss(a,e)|0;if(!f)break a;F=f+38|0;j[A>>1]=j[F>>1]|0;e=f+4|0;k[N+4>>2]=k[e>>2];j[F>>1]=0;k[e>>2]=0;pg(K,f)}z=N+4|0;w=j[A>>1]|0;if(w<<16>>16>0){q=w<<16>>16;t=0;h=0;u=k[z>>2]|0;while(1){f=k[u>>2]|0;g=0;while(1){p=i[f>>0]|0;if(p<<24>>24==34)g=g+1|0;else if(!(p<<24>>24))break;f=f+1|0;g=g+1|0}h=h+7+g|0;t=t+1|0;if((t|0)==(q|0))break;else u=u+24|0}p=h+2|0}else p=2;f=k[N>>2]|0;h=0;while(1){g=i[f>>0]|0;if(!(g<<24>>24))break;else if(g<<24>>24==34)h=h+1|0;f=f+1|0;h=h+1|0}u=h+p|0;x=(u|0)<50;p=x?10360:36880;v=x?20240:36888;x=x?33952:36896;u=((w<<16>>16)*6|0)+35+u|0;h=vg(u,((u|0)<0)<<31>>31)|0;if(!h){i[L>>0]=1;f=N;h=0;break}fd(u,h,36904,J)|0;g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;k[G>>2]=g-h&1073741823;ts(h,G,k[N>>2]|0);f=k[G>>2]|0;q=f+1|0;k[G>>2]=q;i[h+f>>0]=40;f=u-q|0;g=h+q|0;if((j[A>>1]|0)>0){w=0;t=k[z>>2]|0;while(1){fd(f,g,p,J)|0;g=h+q|0;if(!g)g=0;else{p=g;while(1)if(!(i[p>>0]|0))break;else p=p+1|0;g=p-g&1073741823}k[G>>2]=g+q;ts(h,G,k[t>>2]|0);g=k[36920+((i[t+21>>0]|0)+-65<<2)>>2]|0;p=g;while(1)if(!(i[p>>0]|0))break;else p=p+1|0;q=p-g&1073741823;p=k[G>>2]|0;pw(h+p|0,g|0,q|0)|0;q=p+q|0;k[G>>2]=q;p=w+1|0;f=u-q|0;g=h+q|0;if((p|0)<(j[A>>1]|0)){w=p;t=t+24|0;p=v}else break}}k[J>>2]=x;fd(f,g,10344,J)|0;f=N}while(0);g=K+16|0;d=k[f>>2]|0;F=k[n>>2]|0;e=k[a+384>>2]|0;k[J>>2]=k[(k[g>>2]|0)+(o<<4)>>2];k[J+4>>2]=(o|0)==1?13184:13208;k[J+8>>2]=y;k[J+12>>2]=d;k[J+16>>2]=d;k[J+20>>2]=F;k[J+24>>2]=h;k[J+28>>2]=e;Gr(a,36704,J);rg(K,h);Ir(a,o);if((i[N+44>>0]&8)!=0?(H=k[g>>2]|0,(k[(k[H+(o<<4)+12>>2]|0)+72>>2]|0)==0):0){k[J>>2]=k[H+(o<<4)>>2];Gr(a,36792,J)}k[J>>2]=k[f>>2];Nr(B,o,zh(K,36840,J)|0);if(!(i[I>>0]|0))break}else f=N;if(Nk((k[C>>2]|0)+8|0,k[f>>2]|0,N)|0){i[L>>0]=1;break}k[M>>2]=0;e=K+24|0;k[e>>2]=k[e>>2]|2;if(!(k[N+12>>2]|0)){e=k[a+496>>2]|0;e=(Sn(e,(k[((k[b>>2]|0)==0?c:b)>>2]|0)-e|0)|0)+13|0;k[N+48>>2]=e}}while(0);r=O;return}function $q(a,b){a=a|0;b=b|0;var c=0,d=0;if(!b)c=0;else{d=k[b>>2]|0;b=k[b+4>>2]|0;if((d|0)!=0?(c=ow(b|0,0,1,0)|0,c=rh(a,c,L)|0,(c|0)!=0):0){pw(c|0,d|0,b|0)|0;i[c+b>>0]=0}else c=0;qo(c)}return c|0}function ar(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,m=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;a:do if(a){d=i[a>>0]|0;b:do if(!(d<<24>>24)){c=67;d=0}else{f=d;c=67;e=0;d=0;do{e=l[9328+(f&255)>>0]|0|e<<8;a=a+1|0;if((e|0)==1651273570)if(c<<24>>24==69|c<<24>>24==67){m=i[a>>0]|0;f=m;c=65;e=1651273570;d=m<<24>>24==40?a:d}else g=14;else if((e|0)==1718382433)if(c<<24>>24==67){c=69;e=1718382433;g=5}else g=13;else if((e|0)==1667785074){c=66;e=1667785074;d=a;g=5}else if((e|0)==1952807028){c=66;g=5}else if((e|0)==1685026146)if(c<<24>>24==67){c=69;e=1685026146;g=5}else g=13;else if((e|0)==1919246700)if(c<<24>>24==67){c=69;e=1919246700;g=5}else g=14;else if((e|0)!=1668050786)if((e&16777215|0)==6909556){c=68;break b}else g=5;else{c=66;g=5}if((g|0)==13)g=5;else if((g|0)==14)g=5;if((g|0)==5){g=0;f=i[a>>0]|0}}while(f<<24>>24!=0)}while(0);if((b|0)!=0?(i[b>>0]=1,c<<24>>24<67):0){if(!d){i[b>>0]=5;break}a=i[d>>0]|0;if(a<<24>>24){while(1){if(((a&255)+-48|0)>>>0<10)break;d=d+1|0;a=i[d>>0]|0;if(!(a<<24>>24))break a}k[h>>2]=0;In(d,h)|0;d=((k[h>>2]|0)/4|0)+1|0;d=(d|0)>255?255:d;k[h>>2]=d;i[b>>0]=d}}}else c=67;while(0);r=j;return c|0}function br(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0;m=r;r=r+32|0;if((r|0)>=(s|0))ka();g=m;h=k[a>>2]|0;e=k[a+484>>2]|0;do if(e){d=(j[e+38>>1]|0)+-1|0;f=k[e+4>>2]|0;n=k[b>>2]|0;o=(l[h+145>>0]|0)+4|0;k[g+0>>2]=0;k[g+4>>2]=0;k[g+8>>2]=0;k[g+12>>2]=0;k[g+16>>2]=0;k[g+20>>2]=0;e=g+20|0;i[e>>0]=o;k[g>>2]=78;k[g+4>>2]=79;k[g+24>>2]=0;ws(g,n)|0;if(!(i[e>>0]|0)){k[g>>2]=k[f+(d*24|0)>>2];yh(a,36480,g);break}e=f+(d*24|0)+4|0;Lk(h,k[e>>2]|0);n=Rr(h,k[b>>2]|0,1,0)|0;k[e>>2]=n;f=f+(d*24|0)+8|0;rg(h,k[f>>2]|0);d=k[b+4>>2]|0;e=(k[b+8>>2]|0)-d|0;if((d|0)!=0?(c=ow(e|0,((e|0)<0)<<31>>31|0,1,0)|0,c=rh(h,c,L)|0,(c|0)!=0):0){pw(c|0,d|0,e|0)|0;i[c+e>>0]=0}else c=0;k[f>>2]=c}while(0);Lk(h,k[b>>2]|0);r=m;return}function cr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;if((b|0)==72&(c|0)!=0&(d|0)!=0?(k[a+64>>2]|0)==0:0)b=xs(k[a>>2]|0,c,d)|0;else{b=sr(k[a>>2]|0,b,e,1)|0;ys(k[a>>2]|0,b,c,d)}if((b|0)!=0?(f=k[(k[a>>2]|0)+100>>2]|0,(f|0)<(k[b+24>>2]|0)):0){k[g>>2]=f;yh(a,27152,g)}r=h;return b|0}function dr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=r;r=r+16|0;if((r|0)>=(s|0))ka();z=A;x=k[a+484>>2]|0;do if((x|0)!=0?(i[a+451>>0]|0)==0:0){y=x+44|0;g=l[y>>0]|0;if(g&4){k[z>>2]=k[x>>2];yh(a,36376,z);break}v=g|4;i[y>>0]=v;w=(b|0)==0;if(w){g=(j[x+38>>1]|0)+-1|0;t=k[x+4>>2]|0;f=t+(g*24|0)+23|0;i[f>>0]=l[f>>0]|1;f=g;h=1;g=k[t+(g*24|0)+12>>2]|0}else{u=k[b>>2]|0;if((u|0)>0){p=b+4|0;q=x+4|0;o=j[x+38>>1]|0;t=0;g=0;do{a:do if(o<<16>>16>0){m=k[(k[p>>2]|0)+(t*20|0)+4>>2]|0;n=k[q>>2]|0;h=0;while(1){f=h+1|0;if(!(id(m,k[n+(h*24|0)>>2]|0)|0))break;if((f|0)<(o<<16>>16|0))h=f;else break a}f=n+(h*24|0)+23|0;i[f>>0]=l[f>>0]|1;f=h;g=k[n+(h*24|0)+12>>2]|0}else f=0;while(0);t=t+1|0}while((t|0)!=(u|0))}else{f=-1;g=0}h=(u|0)==1}if(h&(g|0)!=0?(id(g,11144)|0|e|0)==0:0){j[x+36>>1]=f;i[x+45>>0]=c;i[y>>0]=v|d<<3;if(w){b=0;break}i[a+448>>0]=i[(k[b+4>>2]|0)+12>>0]|0;break}if(d){yh(a,36424,z);break}g=k[a+8>>2]|0;f=(g|0)!=0;if(f){t=Bh(g,156,0,0,0)|0;k[a+420>>2]=t}b=er(a,0,0,0,b,c,0,0,e,0)|0;if((b|0)!=0?(t=b+51|0,i[t>>0]=i[t>>0]&-4|2,f):0){b=k[a+420>>2]|0;f=k[g+32>>2]|0;if(f>>>0>b>>>0)k[(k[g+4>>2]|0)+(b*20|0)+8>>2]=f;k[(k[g+24>>2]|0)+88>>2]=f+-1;b=0}else b=0}while(0);Sk(k[a>>2]|0,b);r=A;return}function er(a,b,c,d,e,f,g,h,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;n=n|0;o=o|0;var p=0,q=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=r;r=r+144|0;if((r|0)>=(s|0))ka();S=V;B=V+112|0;u=V+88|0;Q=V+84|0;K=V+80|0;U=k[a>>2]|0;k[Q>>2]=0;k[K>>2]=0;P=U+65|0;a:do if(((i[P>>0]|0)==0?(i[a+451>>0]|0)==0:0)?(Ln(a)|0)==0:0){R=(d|0)!=0;b:do if(R){b=jr(a,b,c,Q)|0;if((b|0)<0){p=0;c=0;break a}if((i[U+145>>0]|0)==0?(p=Or(a,d)|0,(k[c+4>>2]|0)==0&(p|0)!=0):0)b=(k[p+68>>2]|0)==(k[(k[U+16>>2]|0)+28>>2]|0)?1:b;c=k[Q>>2]|0;p=k[a>>2]|0;k[u>>2]=a;p=k[p+16>>2]|0;k[u+12>>2]=k[p+(b<<4)>>2];k[u+4>>2]=k[p+(b<<4)+12>>2];k[u+16>>2]=20632;k[u+20>>2]=c;p=(b|0)==1;k[u+8>>2]=p&1;Pr(u,d)|0;t=Zr(a,0,d+8|0)|0;if(!t){p=0;c=0;break a}if(p?(k[(k[U+16>>2]|0)+28>>2]|0)!=(k[t+68>>2]|0):0){k[S>>2]=k[t>>2];yh(a,35920,S);p=0;c=0;break a}if((i[t+44>>0]&32)!=0?(q=k[t+8>>2]|0,(q|0)!=0):0){p=q;while(1){if((i[p+51>>0]&3)==2){q=b;J=p;u=t;break b}p=k[p+20>>2]|0;if(!p){q=b;J=0;u=t;break}}}else{q=b;J=0;u=t}}else{u=k[a+484>>2]|0;if(!u){p=0;c=0;break a}b=k[u+68>>2]|0;if(b){p=k[U+20>>2]|0;if((p|0)>0){c=k[U+16>>2]|0;t=0;while(1){q=t+1|0;if((k[c+(t<<4)+12>>2]|0)==(b|0)){c=0;q=t;J=0;break b}if((q|0)<(p|0))t=q;else{c=0;J=0;break}}}else{c=0;q=0;J=0}}else{c=0;q=-1e6;J=0}}while(0);O=U+16|0;C=k[O>>2]|0;b=C+(q<<4)|0;x=k[u>>2]|0;if(((Kc(x,25568,7)|0)==0?(i[U+145>>0]|0)==0:0)?(Kc(x+7|0,35976,9)|0)!=0:0){k[S>>2]=x;yh(a,35992,S);p=0;c=0;break}if(k[u+12>>2]|0){yh(a,36024,S);p=0;c=0;break}N=u+44|0;if(i[N>>0]&16){yh(a,36056,S);p=0;c=0;break}D=(c|0)==0;if(!D){c=$q(U,c)|0;if(!c){p=0;c=0;break}if(Qr(a,c)|0){p=0;break}if((i[U+145>>0]|0)==0?(di(U,c,0)|0)!=0:0){k[S>>2]=c;yh(a,36096,S);p=0;break}if(gq(U,c,k[b>>2]|0)|0)if(!o){k[S>>2]=c;yh(a,36136,S);p=0;break}else{Fr(a,q);p=0;break}else t=c}else{p=k[u+8>>2]|0;if(!p)t=1;else{t=1;do{t=t+1|0;p=k[p+20>>2]|0}while((p|0)!=0)}k[S>>2]=x;k[S+4>>2]=t;t=zh(U,36160,S)|0;if(!t){p=0;c=0;break}}b=k[b>>2]|0;p=(q|0)==1;L=p?13184:13208;if((Xq(a,18,L,0,b)|0)==0?(Xq(a,p?3:1,t,k[u>>2]|0,b)|0)==0:0){if(!e){e=qr(a,0,0)|0;if(!e){e=0;p=0;c=t;break}F=ph(k[a>>2]|0,k[(k[u+4>>2]|0)+(((j[u+38>>1]|0)+-1|0)*24|0)>>2]|0)|0;G=k[e+4>>2]|0;k[G+4>>2]=F;i[G+12>>0]=n}A=k[e>>2]|0;if((A|0)>0){x=k[e+4>>2]|0;v=0;b=0;do{p=k[x+(v*20|0)>>2]|0;if(p){c=k[p+8>>2]|0;if(!c)p=1;else{p=c;while(1)if(!(i[p>>0]|0))break;else p=p+1|0;p=(p-c&1073741823)+1|0}b=p+b|0}v=v+1|0}while((v|0)<(A|0));c=b}else c=0;if(!t)p=0;else{b=t;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;p=b-t&1073741823}F=(J|0)!=0;if(F)b=m[J+46>>1]|0;else b=1;M=zs(U,A+b&65535,c+1+p|0,K)|0;c:do if(!(i[P>>0]|0)){E=k[K>>2]|0;k[M>>2]=E;I=p+1|0;z=E+I|0;k[K>>2]=z;pw(E|0,t|0,I|0)|0;k[M+12>>2]=u;I=M+50|0;i[I>>0]=f;E=M+51|0;i[E>>0]=i[E>>0]&-12|((f|0)!=0&1)<<3&255|D&1;H=M+24|0;k[H>>2]=k[(k[O>>2]|0)+(q<<4)+12>>2];b=k[e>>2]|0;G=M+46|0;j[G>>1]=b;if(h){k[B+0>>2]=0;k[B+4>>2]=0;k[B+8>>2]=0;k[B+12>>2]=0;k[B+16>>2]=0;k[B+20>>2]=0;k[B+24>>2]=0;k[B+28>>2]=0;x=S+0|0;c=x+80|0;do{k[x>>2]=0;x=x+4|0}while((x|0)<(c|0));k[S>>2]=1;k[S+16>>2]=k[u>>2];k[S+24>>2]=u;k[S+48>>2]=-1;k[B>>2]=a;k[B+4>>2]=S;j[B+28>>1]=16;qs(B,h)|0;k[M+36>>2]=h;b=k[e>>2]|0}w=(l[(k[C+(q<<4)+12>>2]|0)+76>>0]|0)>3;d:do if((b|0)>0){D=u+4|0;C=u+38|0;B=M+4|0;h=U+145|0;b=M+32|0;v=M+28|0;c=0;n=k[e+4>>2]|0;while(1){p=k[n+4>>2]|0;x=j[C>>1]|0;e:do if(x<<16>>16>0){A=0;y=k[D>>2]|0;while(1){if(!(id(p,k[y>>2]|0)|0)){o=A;break e}A=A+1|0;if((A|0)<(x<<16>>16|0))y=y+24|0;else{o=A;break}}}else o=0;while(0);if((o|0)>=(x<<16>>16|0))break;j[(k[B>>2]|0)+(c<<1)>>1]=o;A=k[n>>2]|0;if(!A){A=k[(k[D>>2]|0)+(o*24|0)+16>>2]|0;A=(A|0)!=0?A:11152}else{y=k[A+8>>2]|0;if(!y)A=1;else{A=y;while(1)if(!(i[A>>0]|0))break;else A=A+1|0;A=(A-y&1073741823)+1|0}pw(z|0,y|0,A|0)|0;y=k[K>>2]|0;z=y+A|0;k[K>>2]=z;A=y}if((i[h>>0]|0)==0?(hr(a,A)|0)==0:0){c=0;p=0;T=134;break c}k[(k[b>>2]|0)+(c<<2)>>2]=A;i[(k[v>>2]|0)+c>>0]=w?i[n+12>>0]|0:0;if(!(i[(k[D>>2]|0)+(o*24|0)+20>>0]|0))i[E>>0]=i[E>>0]&-9;c=c+1|0;if((c|0)<(k[e>>2]|0))n=n+20|0;else break d}k[S>>2]=k[u>>2];k[S+4>>2]=p;yh(a,36184,S);i[a+17>>0]=1;c=0;p=0;T=134;break c}else c=0;while(0);do if(F){w=J+46|0;x=j[w>>1]|0;if(!(x<<16>>16))break;B=J+4|0;C=M+4|0;D=M+48|0;n=J+32|0;o=M+32|0;b=J+28|0;v=M+28|0;h=0;do{y=j[(k[B>>2]|0)+(h<<1)>>1]|0;p=k[C>>2]|0;A=m[G>>1]|0;z=p;while(1){if((A|0)<=0){T=92;break}if((j[z>>1]|0)==y<<16>>16){T=91;break}else{A=A+-1|0;z=z+2|0}}if((T|0)==91){T=0;j[D>>1]=(j[D>>1]|0)+-1<<16>>16}else if((T|0)==92){T=0;j[p+(c<<1)>>1]=y;k[(k[o>>2]|0)+(c<<2)>>2]=k[(k[n>>2]|0)+(h<<2)>>2];i[(k[v>>2]|0)+c>>0]=i[(k[b>>2]|0)+h>>0]|0;x=j[w>>1]|0;c=c+1|0}h=h+1|0}while((h|0)<(x&65535|0))}else{j[(k[M+4>>2]|0)+(c<<1)>>1]=-1;k[(k[M+32>>2]|0)+(c<<2)>>2]=11152}while(0);hq(M);h=a+484|0;b=k[h>>2]|0;if(!b){rs(M);b=k[h>>2]|0}f:do if((u|0)==(b|0)){p=k[u+8>>2]|0;if(!p)break;y=j[G>>1]|0;z=M+4|0;A=M+32|0;while(1){if((j[p+46>>1]|0)==y<<16>>16){g:do if(!(y<<16>>16)){h=0;b=0}else{v=k[p+4>>2]|0;w=k[z>>2]|0;x=p+32|0;b=0;while(1){if((j[v+(b<<1)>>1]|0)!=(j[w+(b<<1)>>1]|0)){h=y;break g}h=k[(k[x>>2]|0)+(b<<2)>>2]|0;c=k[(k[A>>2]|0)+(b<<2)>>2]|0;if((h|0)!=(c|0)?(id(h,c)|0)!=0:0){h=y;break g}b=b+1|0;if((b|0)>=(y&65535|0)){h=y;break}}}while(0);if((b|0)==(h&65535|0))break}p=k[p+20>>2]|0;if(!p)break f}b=p+50|0;c=i[b>>0]|0;h=i[I>>0]|0;if(c<<24>>24==h<<24>>24){c=0;break c}if(!(c<<24>>24==10|h<<24>>24==10)){k[S>>2]=0;yh(a,36216,S);c=i[b>>0]|0}if(c<<24>>24!=10){c=0;T=134;break c}i[b>>0]=i[I>>0]|0;c=0;break c}while(0);c=U+145|0;do if(!(i[c>>0]|0)){if(k[a+64>>2]|0){T=126;break}if(!((i[N>>0]&32)==0|R)){T=126;break}p=a+72|0;h=(k[p>>2]|0)+1|0;k[p>>2]=h;p=Tq(a)|0;if(!p){c=0;p=0;T=134;break c}G=k[a+408>>2]|0;G=(G|0)==0?a:G;Fr(a,q);F=G+328|0;k[F>>2]=k[F>>2]|1<>0]=l[G>>0]|1;Bh(p,120,q,h,0)|0;if(!g)b=0;else{b=k[k[Q>>2]>>2]|0;G=(k[a+504>>2]|0)-b+(k[a+508>>2]|0)|0;F=G+-1|0;G=(i[b+F>>0]|0)==59?F:G;k[S>>2]=(f|0)==0?10360:36288;k[S+4>>2]=G;k[S+8>>2]=b;b=zh(U,36264,S)|0}F=k[M>>2]|0;G=k[u>>2]|0;k[S>>2]=k[(k[O>>2]|0)+(q<<4)>>2];k[S+4>>2]=L;k[S+8>>2]=F;k[S+12>>2]=G;k[S+16>>2]=h;k[S+20>>2]=b;Gr(a,36296,S);rg(U,b);if(!R)break;As(a,M,h);Ir(a,q);k[S>>2]=k[M>>2];Nr(p,q,zh(U,36344,S)|0);Bh(p,144,0,0,0)|0;T=126}else{if(Nk((k[H>>2]|0)+24|0,k[M>>2]|0,M)|0){i[P>>0]=1;c=0;p=0;T=134;break c}G=U+24|0;k[G>>2]=k[G>>2]|2;if(!R)break;k[M+40>>2]=k[U+140>>2];T=126}while(0);if((T|0)==126?!((i[c>>0]|0)!=0|(d|0)==0):0){c=0;p=0;T=134;break}c=k[u+8>>2]|0;do if((f|0)==5){if(!c){c=0;break}if((i[c+50>>0]|0)==5)break;do{p=c+20|0;c=k[p>>2]|0;if(!c){c=0;break}}while((i[c+50>>0]|0)!=5);k[M+20>>2]=c;k[p>>2]=M;h=0;p=M;c=t;break a}while(0);k[M+20>>2]=c;k[u+8>>2]=M;h=0;p=M;c=t;break a}else{c=h;p=0;T=134}while(0);if((T|0)==134)if(!M){h=c;c=t;break}Ok(U,M);h=c;c=t}else{p=0;c=t}}else{p=0;c=0}while(0);Lk(U,h);Sk(U,e);Io(U,d);rg(U,c);r=V;return p|0}function fr(a,b){a=a|0;b=b|0;var c=0,d=0;c=k[a+484>>2]|0;d=k[a>>2]|0;if(((c|0)!=0?(i[a+451>>0]|0)==0:0)?(j[(k[(k[(k[d+16>>2]|0)+(l[d+144>>0]<<4)+4>>2]|0)+4>>2]|0)+22>>1]&1)==0:0){d=c+24|0;c=qr(a,k[d>>2]|0,b)|0;k[d>>2]=c;if(k[a+324>>2]|0)rr(a,c,a+320|0,1)}else Lk(d,b);return}function gr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=r;r=r+16|0;if((r|0)>=(s|0))ka();z=C;B=k[a>>2]|0;A=k[a+484>>2]|0;a:do if((A|0)!=0?(i[a+451>>0]|0)==0:0){w=(b|0)==0;do if(w){y=j[A+38>>1]|0;g=(y<<16>>16)+-1|0;if(y<<16>>16<1){f=0;break a}if(d)if((k[d>>2]|0)==1){g=1;f=13}else{k[z>>2]=k[(k[A+4>>2]|0)+(g*24|0)>>2];k[z+4>>2]=c;yh(a,35712,z);f=0;break a}else{g=1;f=12}}else{if(!d){g=k[b>>2]|0;f=12;break}g=k[d>>2]|0;if((g|0)==(k[b>>2]|0))f=13;else{yh(a,35776,z);f=0;break a}}while(0);if((f|0)==12){h=c+4|0;n=h;t=0;h=(g<<3)+37+(k[h>>2]|0)|0;y=g}else if((f|0)==13){n=c+4|0;h=(g<<3)+37+(k[n>>2]|0)|0;o=k[d>>2]|0;if((o|0)>0){p=k[d+4>>2]|0;q=0;do{m=k[p+(q*20|0)+4>>2]|0;if(!m)f=1;else{l=m;while(1)if(!(i[l>>0]|0))break;else l=l+1|0;f=(l-m&1073741823)+1|0}h=f+h|0;q=q+1|0}while((q|0)<(o|0));t=1;y=g}else{t=1;y=g}}f=rh(B,h,((h|0)<0)<<31>>31)|0;if(f){kw(f|0,0,h|0)|0;k[f>>2]=A;x=A+16|0;k[f+4>>2]=k[x>>2];u=f+36|0;l=u+(y<<3)|0;v=f+8|0;k[v>>2]=l;pw(l|0,k[c>>2]|0,k[n>>2]|0)|0;i[l+(k[n>>2]|0)>>0]=0;qo(l);l=l+((k[n>>2]|0)+1)|0;k[f+20>>2]=y;b:do if(!w){if((y|0)>0){h=A+4|0;c=b+4|0;m=j[A+38>>1]|0;g=0;while(1){c:do if(m<<16>>16>0){q=k[h>>2]|0;p=k[(k[c>>2]|0)+(g*20|0)+4>>2]|0;o=0;while(1){n=o+1|0;if(!(id(k[q+(o*24|0)>>2]|0,p)|0)){n=o;break}if((n|0)<(m<<16>>16|0))o=n;else break c}k[u+(g<<3)>>2]=n}else n=0;while(0);if((n|0)>=(m<<16>>16|0))break;g=g+1|0;if((g|0)>=(y|0))break b}k[z>>2]=k[(k[c>>2]|0)+(g*20|0)+4>>2];yh(a,35872,z);break a}}else k[u>>2]=(j[A+38>>1]|0)+-1;while(0);if(t&(y|0)>0){m=d+4|0;n=0;while(1){h=k[(k[m>>2]|0)+(n*20|0)+4>>2]|0;if(!h)g=0;else{g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-h&1073741823}k[u+(n<<3)+4>>2]=l;pw(l|0,h|0,g|0)|0;i[l+g>>0]=0;n=n+1|0;if((n|0)==(y|0))break;else l=l+(g+1)|0}}i[f+24>>0]=0;i[f+25>>0]=e;i[f+26>>0]=e>>>8;g=Nk((k[A+68>>2]|0)+56|0,k[v>>2]|0,f)|0;if((g|0)==(f|0)){i[B+65>>0]=1;break}if(g){k[f+12>>2]=g;k[g+16>>2]=f}k[x>>2]=f;f=0}else f=0}else f=0;while(0);rg(B,f);Sk(B,b);Sk(B,d);r=C;return}function hr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=k[a>>2]|0;d=i[c+62>>0]|0;e=i[c+145>>0]|0;c=bo(c,d,b,e&255)|0;do if(!(e<<24>>24)){if((c|0)!=0?(k[c+12>>2]|0)!=0:0)break;c=Bs(a,d,c,b)|0}while(0);return c|0}function ir(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+16|0;if((r|0)>=(s|0))ka();w=y;q=y+12|0;x=k[a>>2]|0;do if(!(i[x+65>>0]|0)){d=(d|0)!=0;if(d){p=x+68|0;i[p>>0]=(i[p>>0]|0)+1<<24>>24;v=Zr(a,c,b+8|0)|0;i[p>>0]=(i[p>>0]|0)+-1<<24>>24}else v=Zr(a,c,b+8|0)|0;if(!v){if(!d)break;Er(a,k[b+12>>2]|0);break}n=v+68|0;f=k[n>>2]|0;a:do if(f){d=k[x+20>>2]|0;if((d|0)>0){e=k[x+16>>2]|0;h=0;while(1){g=h+1|0;if((k[e+(h<<4)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(d|0))h=g;else break}}else g=0}else g=-1e6;while(0);t=v+44|0;if((i[t>>0]&16)!=0?(mr(a,v)|0)!=0:0)break;h=(g|0)==1;u=h?13184:13208;d=k[(k[x+16>>2]|0)+(g<<4)>>2]|0;if(!(Xq(a,9,u,0,d)|0)){e=(c|0)!=0;do if(e){f=h?15:17;h=0}else{if(!(i[t>>0]&16)){f=h?13:11;h=0;break}h=v+60|0;while(1){h=k[h>>2]|0;if((k[h>>2]|0)==(x|0))break;else h=h+24|0}f=30;h=k[(k[h+4>>2]|0)+4>>2]|0}while(0);if((Xq(a,f,k[v>>2]|0,h,d)|0)==0?(Xq(a,9,k[v>>2]|0,0,d)|0)==0:0){h=k[v>>2]|0;if((Kc(h,25568,7)|0)==0?(Kc(h,35488,11)|0)!=0:0){k[w>>2]=h;yh(a,35504,w);break}d=v+12|0;f=(k[d>>2]|0)==0;if(e){if(f){k[w>>2]=h;yh(a,35536,w);break}}else if(!f){k[w>>2]=h;yh(a,35576,w);break}if(Tq(a)|0){o=a+408|0;f=k[o>>2]|0;f=(f|0)==0?a:f;Fr(a,g);p=1<>2]=k[e>>2]|p;f=f+20|0;i[f>>0]=l[f>>0]|1;Hr(a,g,28544,k[v>>2]|0);f=k[a>>2]|0;e=f+24|0;b:do if(((k[e>>2]&524288|0)!=0?(i[t>>0]&16)==0:0)?(k[d>>2]|0)==0:0){m=Tq(a)|0;q=gn((k[n>>2]|0)+56|0,k[v>>2]|0,q)|0;if((q|0)!=0?(k[q+8>>2]|0)!=0:0)h=0;else{h=k[v+16>>2]|0;if(!h)break;while(1){if(i[h+24>>0]|0)break;if(k[e>>2]&16777216)break;h=k[h+4>>2]|0;if(!h)break b}h=Cs(m)|0;Bh(m,135,1,h,0)|0}q=a+438|0;i[q>>0]=1;wr(a,Ds(f,b,0)|0,0);i[q>>0]=0;if(!(k[e>>2]&16777216)){Bh(m,135,0,(k[m+32>>2]|0)+2|0,0)|0;Es(a,787,2,0,-2,4)}if(h){f=k[m+24>>2]|0;d=~h;do if((h|0)<0){h=k[f+112>>2]|0;if(!h)break;k[h+(d<<2)>>2]=k[m+32>>2]}while(0);k[f+88>>2]=(k[m+32>>2]|0)+-1}}while(0);m=k[a>>2]|0;n=m+16|0;f=k[n>>2]|0;d=Tq(a)|0;q=k[o>>2]|0;q=(q|0)==0?a:q;Fr(a,g);o=q+328|0;k[o>>2]=k[o>>2]|p;q=q+20|0;i[q>>0]=l[q>>0]|1;if(i[t>>0]&16)Bh(d,146,0,0,0)|0;h=Fs(a,v)|0;if(h)do{Vr(a,h);h=k[h+32>>2]|0}while((h|0)!=0);f=f+(g<<4)|0;if(i[t>>0]&8){q=k[v>>2]|0;k[w>>2]=k[f>>2];k[w+4>>2]=q;Gr(a,35608,w)}q=k[v>>2]|0;k[w>>2]=k[f>>2];k[w+4>>2]=u;k[w+8>>2]=q;Gr(a,35656,w);if((c|0)==0?(i[t>>0]&16)==0:0)Gs(a,v);if(i[t>>0]&16){q=k[v>>2]|0;Ch(d,Bh(d,148,g,0,0)|0,q,0)}e=k[v>>2]|0;Ch(d,Bh(d,124,g,0,0)|0,e,0);Ir(a,g);d=k[(k[n>>2]|0)+(g<<4)+12>>2]|0;e=j[d+78>>1]|0;if(e&2){f=k[d+16>>2]|0;if(f){e=f;do{d=k[e+8>>2]|0;if(k[d+12>>2]|0){Qk(m,d);k[d+4>>2]=0;j[d+38>>1]=0}e=k[e>>2]|0}while((e|0)!=0);e=k[(k[n>>2]|0)+(g<<4)+12>>2]|0;d=e;e=j[e+78>>1]|0}j[d+78>>1]=e&65533}}}}}while(0);Io(x,b);r=y;return}function jr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();f=h;e=k[a>>2]|0;do if((c|0)!=0?(k[c+4>>2]|0)!=0:0){if(i[e+145>>0]|0){yh(a,28488,f);c=a+64|0;k[c>>2]=(k[c>>2]|0)+1;c=-1;break}k[d>>2]=c;d=$q(e,b)|0;c=_h(e,d)|0;rg(e,d);if((c|0)<0){k[f>>2]=b;yh(a,28512,f);c=a+64|0;k[c>>2]=(k[c>>2]|0)+1;c=-1}}else g=7;while(0);if((g|0)==7){c=l[e+144>>0]|0;k[d>>2]=b}r=h;return c|0}function kr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Mr(a,k[b>>2]|0)|0){b=1;break a}if(Pr(a,k[b+32>>2]|0)|0){b=1;break a}if(Lr(a,k[b+36>>2]|0)|0){b=1;break a}if(Mr(a,k[b+40>>2]|0)|0){b=1;break a}if(Lr(a,k[b+44>>2]|0)|0){b=1;break a}if(Mr(a,k[b+48>>2]|0)|0){b=1;break a}if(Lr(a,k[b+60>>2]|0)|0){b=1;break a}if(Lr(a,k[b+64>>2]|0)|0){b=1;break a}b=k[b+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function lr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=0?(d=rh(a,72,0)|0,(d|0)!=0):0){f=Ur(a,k[b>>2]|0,c)|0;k[d>>2]=f;f=Ds(a,k[b+32>>2]|0,c)|0;k[d+32>>2]=f;f=Rr(a,k[b+36>>2]|0,c,0)|0;k[d+36>>2]=f;f=Ur(a,k[b+40>>2]|0,c)|0;k[d+40>>2]=f;f=Rr(a,k[b+44>>2]|0,c,0)|0;k[d+44>>2]=f;f=Ur(a,k[b+48>>2]|0,c)|0;k[d+48>>2]=f;i[d+4>>0]=i[b+4>>0]|0;f=lr(a,k[b+52>>2]|0,c)|0;k[d+52>>2]=f;if(f)k[f+56>>2]=d;k[d+56>>2]=0;h=Rr(a,k[b+60>>2]|0,c,0)|0;k[d+60>>2]=h;h=Rr(a,k[b+64>>2]|0,c,0)|0;k[d+64>>2]=h;k[d+8>>2]=0;k[d+12>>2]=0;j[d+6>>1]=(m[b+6>>1]|0)&65527;k[d+16>>2]=-1;k[d+20>>2]=-1;h=b+24|0;f=k[h+4>>2]|0;c=d+24|0;k[c>>2]=k[h>>2];k[c+4>>2]=f;c=k[b+68>>2]|0;if((c|0)!=0?(g=k[c>>2]<<4|8,e=rh(a,g,((g|0)<0)<<31>>31)|0,(e|0)!=0):0){kw(e|0,0,g|0)|0;k[e>>2]=k[c>>2];if((k[c>>2]|0)>0){b=e+8|0;f=0;do{g=lr(a,k[c+(f<<4)+16>>2]|0,0)|0;k[b+(f<<4)+8>>2]=g;g=Ur(a,k[c+(f<<4)+12>>2]|0,0)|0;k[b+(f<<4)+4>>2]=g;g=ph(a,k[c+(f<<4)+8>>2]|0)|0;k[b+(f<<4)>>2]=g;f=f+1|0}while((f|0)<(k[c>>2]|0))}}else e=0;k[d+68>>2]=e}else d=0;return d|0}function mr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0;t=r;r=r+16|0;if((r|0)>=(s|0))ka();n=t;e=t+8|0;g=t+4|0;q=k[a>>2]|0;h=b+44|0;d=i[h>>0]|0;a:do if(!(d&16))o=11;else{c=k[b+60>>2]|0;if(c)do{if((k[c>>2]|0)==(q|0)){o=11;break a}c=k[c+24>>2]|0}while((c|0)!=0);c=b+56|0;d=gn(q+308|0,k[k[c>>2]>>2]|0,e)|0;if((d|0)!=0?(f=k[d+8>>2]|0,(f|0)!=0):0){k[g>>2]=0;f=(En(q,b,f,k[(k[f>>2]|0)+8>>2]|0,g)|0)==0;d=k[g>>2]|0;if(f){rg(q,d);d=i[h>>0]|0;o=11;break}else{k[n>>2]=d;yh(a,10344,n);rg(q,d);c=1;break}}k[n>>2]=k[k[c>>2]>>2];yh(a,28320,n);c=1}while(0);do if((o|0)==11)if((d&16)==0?(p=b+38|0,l=j[p>>1]|0,l<<16>>16<=0):0){if(l<<16>>16<0){k[n>>2]=k[b>>2];yh(a,26752,n);c=1;break}d=lr(q,k[b+12>>2]|0,0)|0;if(!d)c=1;else{l=q+250|0;h=i[l>>0]|0;o=a+68|0;n=k[o>>2]|0;Hs(a,k[d+32>>2]|0);j[p>>1]=-1;i[l>>0]=0;g=q+284|0;f=k[g>>2]|0;k[g>>2]=0;c=ss(a,d)|0;k[g>>2]=f;i[l>>0]=h;k[o>>2]=n;if(!c){j[p>>1]=0;c=1}else{a=c+38|0;j[p>>1]=j[a>>1]|0;o=c+4|0;k[b+4>>2]=k[o>>2];j[a>>1]=0;k[o>>2]=0;pg(q,c);c=(k[b+68>>2]|0)+78|0;j[c>>1]=m[c>>1]|0|2;c=0}Rk(q,d,1)}}else c=0;while(0);r=t;return c|0}
function nr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=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=r;r=r+240|0;if((r|0)>=(s|0))ka();oa=za;pa=za+220|0;ga=za+216|0;ea=za+196|0;fa=za+176|0;ra=za+164|0;sa=za+136|0;va=za+88|0;ca=za+64|0;ia=za+32|0;xa=a+464|0;ya=k[xa>>2]|0;la=a+468|0;ua=k[la>>2]|0;k[la>>2]=ua+1;k[xa>>2]=ua;ua=k[a>>2]|0;a:do if((((b|0)!=0?(ma=ua+65|0,(i[ma>>0]|0)==0):0)?(d=a+64|0,(k[d>>2]|0)==0):0)?(Xq(a,21,0,0,0)|0)==0:0){A=va+0|0;z=A+48|0;do{k[A>>2]=0;A=A+4|0}while((A|0)<(z|0));ha=b+48|0;if((l[c>>0]|0)<9){Sk(ua,k[ha>>2]|0);k[ha>>2]=0;ba=b+6|0;j[ba>>1]=m[ba>>1]&65534}Is(a,b,0);k[sa+0>>2]=0;k[sa+4>>2]=0;k[sa+8>>2]=0;k[sa+12>>2]=0;k[sa+16>>2]=0;k[sa+20>>2]=0;k[sa+24>>2]=0;k[sa>>2]=k[ha>>2];ja=b+32|0;u=k[ja>>2]|0;t=k[b>>2]|0;b:do if(((k[d>>2]|0)==0?(i[ma>>0]|0)==0:0)?(qa=b+6|0,w=(m[qa>>1]|0)>>>2&1,ta=Tq(a)|0,(ta|0)!=0):0){if((k[t>>2]|0)>1?(i[c>>0]&-2)<<24>>24==10:0){yh(a,35368,oa);wa=444;break}na=b+52|0;t=k[na>>2]|0;c:do if(!t){h=a+460|0;g=a+492|0;f=b+36|0;e=a+408|0;d=b+60|0;Q=b+64|0;R=b+4|0;S=ua+60|0;T=ta+32|0;U=a+72|0;V=ca+4|0;W=ca+1|0;X=ca+8|0;Y=ca+12|0;Z=ta+4|0;_=ta+24|0;$=a+19|0;aa=a+56|0;ba=a+80|0;P=0;v=w;while(1){if((P|0)>=(k[u>>2]|0)){D=f;N=0;w=v;R=u;break c}J=k[u+(P*72|0)+28>>2]|0;do if(!J)w=P;else{M=u+(P*72|0)+32|0;x=k[M>>2]|0;if(x){if(i[u+(P*72|0)+45>>0]&4){w=P;break}Bh(ta,17,k[u+(P*72|0)+36>>2]|0,x,0)|0;w=P;break}k[oa>>2]=0;Js(b,oa);k[h>>2]=(k[h>>2]|0)+(k[oa>>2]|0);q=j[J+6>>1]&4;N=k[g>>2]|0;p=k[a>>2]|0;d:do if(!(j[p+60>>1]&1)){H=k[ja>>2]|0;o=k[H+(P*72|0)+48>>2]|0;G=H+(P*72|0)+28|0;K=k[G>>2]|0;n=q<<16>>16!=0;do if(n){if(v){wa=120;break d}if((k[H>>2]|0)>1){wa=120;break d}O=k[f>>2]|0;if((O|0)!=0?(k[O+4>>2]&2097152|0)!=0:0){wa=120;break d}D=k[b>>2]|0;do if(D){B=k[D>>2]|0;if((B|0)<=0)break;E=k[D+4>>2]|0;D=0;C=0;do{C=k[(k[E+(D*20|0)>>2]|0)+4>>2]|C;D=D+1|0}while((D|0)!=(B|0));if(C&2097152){wa=120;break d}}while(0);D=k[ha>>2]|0;if(!D)break;B=k[D>>2]|0;if((B|0)<=0)break;E=k[D+4>>2]|0;D=0;C=0;do{C=k[(k[E+(D*20|0)>>2]|0)+4>>2]|C;D=D+1|0}while((D|0)!=(B|0));if(C&2097152){wa=120;break d}}while(0);E=k[K+32>>2]|0;D=(k[K+60>>2]|0)==0;if(!D?(k[d>>2]|0)!=0:0){wa=120;break}if(k[K+64>>2]|0){wa=120;break}B=j[qa>>1]|0;C=(B&64)==0;if(!(C|D)){wa=120;break}if(!(k[E>>2]|0)){wa=120;break}A=j[K+6>>1]|0;if(A&1){wa=120;break}E=D|C^1;if(!E?(k[H>>2]|0)>1|(v|0)!=0:0){wa=120;break}D=B&1;if(D<<16>>16!=0&n){wa=120;break}y=k[ha>>2]|0;z=(y|0)==0;if(!z?(k[K+48>>2]|0)!=0:0){wa=120;break}F=(v|0)!=0;if(F?(k[K+48>>2]|0)!=0:0){wa=120;break}if(E){if(A&6144){wa=120;break}}else if(!((k[f>>2]|0)==0&D<<16>>16==0&(A&6144)==0)){wa=120;break}if((B&2048)!=0?(k[K+52>>2]|0)!=0:0){wa=120;break}O=H+(P*72|0)+44|0;if(i[O>>0]&32){wa=120;break}B=K+52|0;E=k[B>>2]|0;do if(E){if(!(D<<16>>16==0&(((k[K+48>>2]|0)!=0|F)^1))){wa=120;break d}if((k[H>>2]|0)!=1){wa=120;break d}e:do if(K){if(!(A&5))C=K;else{wa=120;break d}while(1){D=(E|0)==0;if(!D?(i[C+4>>0]|0)!=116:0){wa=120;break d}if((k[k[C+32>>2]>>2]|0)<1){wa=120;break d}if((k[k[K>>2]>>2]|0)!=(k[k[C>>2]>>2]|0)){wa=120;break d}if(D)break e;if(j[E+6>>1]&5){wa=120;break d}C=E;E=k[E+52>>2]|0}}while(0);if(z)break;C=k[y>>2]|0;if((C|0)<=0)break;E=k[y+4>>2]|0;D=0;do{if(!(j[E+(D*20|0)+16>>1]|0)){wa=120;break d}D=D+1|0}while((D|0)<(C|0))}while(0);x=H+(P*72|0)+16|0;k[g>>2]=k[x>>2];Xq(a,21,0,0,0)|0;k[g>>2]=N;E=k[B>>2]|0;f:do if(!E)wa=81;else{y=p+65|0;B=k[ha>>2]|0;A=k[d>>2]|0;z=k[Q>>2]|0;C=k[na>>2]|0;while(1){k[ha>>2]=0;k[ja>>2]=0;k[na>>2]=0;k[d>>2]=0;k[Q>>2]=0;D=lr(p,b,0)|0;k[Q>>2]=z;k[d>>2]=A;k[ha>>2]=B;k[ja>>2]=H;i[R>>0]=116;if(!D)D=C;else{k[D+52>>2]=C;if(C)k[C+56>>2]=D;k[D+56>>2]=b}k[na>>2]=D;if(i[y>>0]|0)break f;E=k[E+52>>2]|0;if(!E){wa=81;break}else C=D}}while(0);if((wa|0)==81){wa=0;I=k[G>>2]|0;B=H+(P*72|0)+12|0;rg(p,k[B>>2]|0);rg(p,k[x>>2]|0);C=H+(P*72|0)+20|0;rg(p,k[C>>2]|0);k[B>>2]=0;k[x>>2]=0;k[C>>2]=0;k[G>>2]=0;C=H+(P*72|0)+24|0;B=k[C>>2]|0;if(B){A=B+40|0;z=j[A>>1]|0;if(z<<16>>16==1){N=k[e>>2]|0;N=((N|0)==0?a:N)+524|0;k[B+72>>2]=k[N>>2];k[N>>2]=B}else j[A>>1]=z+-1<<16>>16;k[C>>2]=0}N=P+1|0;M=p+65|0;K=b;J=I;while(1){y=k[J+32>>2]|0;x=k[y>>2]|0;D=K+32|0;E=k[D>>2]|0;if(!E){E=ur(p,0,0,0)|0;k[D>>2]=E;if(!E)break;else w=0}else w=i[O>>0]|0;if((x|0)>1){E=Ks(p,E,x+-1|0,N)|0;k[D>>2]=E;if(i[M>>0]|0)break}if((x|0)>0){C=0;do{A=C+P|0;Mk(p,k[E+(A*72|0)+56>>2]|0);D=y+(C*72|0)+8|0;A=E+(A*72|0)+8|0;B=D+0|0;z=A+72|0;do{k[A>>2]=k[B>>2];A=A+4|0;B=B+4|0}while((A|0)<(z|0));A=D+0|0;z=A+72|0;do{k[A>>2]=0;A=A+4|0}while((A|0)<(z|0));C=C+1|0}while((C|0)!=(x|0))}i[E+(P*72|0)+44>>0]=w;D=k[K>>2]|0;E=k[D>>2]|0;if((E|0)>0){A=D+4|0;C=k[A>>2]|0;B=0;do{if(!(k[C+(B*20|0)+4>>2]|0)){E=ph(p,k[C+(B*20|0)+8>>2]|0)|0;qo(E);C=k[A>>2]|0;k[C+(B*20|0)+4>>2]=E;E=k[D>>2]|0}B=B+1|0}while((B|0)<(E|0));D=k[K>>2]|0}Ls(p,D,o,k[J>>2]|0);if(F){Ls(p,k[K+40>>2]|0,o,k[J>>2]|0);H=K+44|0;G=Ms(p,k[H>>2]|0,o,k[J>>2]|0)|0;k[H>>2]=G}E=J+48|0;D=k[E>>2]|0;do if(!D){D=k[K+48>>2]|0;if(!D)break;Ls(p,D,o,k[J>>2]|0)}else{C=k[D>>2]|0;if((C|0)>0){B=k[D+4>>2]|0;A=0;do{j[B+(A*20|0)+16>>1]=0;A=A+1|0}while((A|0)!=(C|0))}k[K+48>>2]=D;k[E>>2]=0}while(0);D=k[J+36>>2]|0;if(!D)C=0;else C=Rr(p,D,0,0)|0;E=K+36|0;D=k[E>>2]|0;if(n){H=K+44|0;k[H>>2]=D;k[E>>2]=C;G=Ms(p,D,o,k[J>>2]|0)|0;k[H>>2]=G;G=xs(p,G,Rr(p,k[J+44>>2]|0,0,0)|0)|0;k[H>>2]=G;H=Ur(p,k[J+40>>2]|0,0)|0;k[K+40>>2]=H}else{H=Ms(p,D,o,k[J>>2]|0)|0;k[E>>2]=H;H=xs(p,H,C)|0;k[E>>2]=H}D=K+6|0;j[D>>1]=m[D>>1]|m[J+6>>1]&1;D=J+60|0;C=k[D>>2]|0;if(C){k[K+60>>2]=C;k[D>>2]=0}K=k[K+52>>2]|0;if(!K)break;else J=k[J+52>>2]|0}Rk(p,I,1)}if(!(q<<16>>16)){w=-1;break}j[qa>>1]=m[qa>>1]|4;w=-1;v=1}else wa=120;while(0);g:do if((wa|0)==120){wa=0;do if((k[u>>2]|0)==1){if(j[S>>1]&256)break;A=k[T>>2]|0;O=A+1|0;N=(k[U>>2]|0)+1|0;k[U>>2]=N;w=u+(P*72|0)+36|0;k[w>>2]=N;Bh(ta,20,N,0,O)|0;k[M>>2]=O;O=k[w>>2]|0;i[ca>>0]=13;k[V>>2]=O;i[W>>0]=0;k[X>>2]=0;k[Y>>2]=0;i[u+(P*72|0)+46>>0]=k[la>>2];nr(a,J,ca)|0;O=J+24|0;O=ks(k[O>>2]|0,k[O+4>>2]|0)|0;j[(k[u+(P*72|0)+24>>2]|0)+28>>1]=O;O=u+(P*72|0)+45|0;i[O>>0]=i[O>>0]|4;k[u+(P*72|0)+40>>2]=k[X>>2];Bh(ta,21,k[w>>2]|0,0,0)|0;w=k[T>>2]|0;if(w>>>0>A>>>0)k[(k[Z>>2]|0)+(A*20|0)+8>>2]=w;k[(k[_>>2]|0)+88>>2]=w+-1;i[$>>0]=0;k[aa>>2]=0;w=P;break g}while(0);z=(k[U>>2]|0)+1|0;k[U>>2]=z;B=u+(P*72|0)+36|0;k[B>>2]=z;z=Bh(ta,25,0,z,0)|0;k[M>>2]=z+1;if(!(i[u+(P*72|0)+45>>0]&2)){O=Tq(a)|0;A=k[ba>>2]|0;k[ba>>2]=A+1;A=Bh(O,44,A,0,0)|0}else A=0;O=k[u+(P*72|0)+48>>2]|0;i[ca>>0]=12;k[V>>2]=O;i[W>>0]=0;k[X>>2]=0;k[Y>>2]=0;i[u+(P*72|0)+46>>0]=k[la>>2];nr(a,J,ca)|0;O=J+24|0;O=ks(k[O>>2]|0,k[O+4>>2]|0)|0;j[(k[u+(P*72|0)+24>>2]|0)+28>>1]=O;if(A){x=k[T>>2]|0;if(x>>>0>A>>>0)k[(k[Z>>2]|0)+(A*20|0)+8>>2]=x;k[(k[_>>2]|0)+88>>2]=x+-1}w=Bh(ta,18,k[B>>2]|0,0,0)|0;if((k[T>>2]|0)>>>0>z>>>0)k[(k[Z>>2]|0)+(z*20|0)+4>>2]=w;i[$>>0]=0;k[aa>>2]=0;w=P}while(0);if(i[ma>>0]|0){wa=444;break b}k[oa>>2]=0;Js(b,oa);k[h>>2]=(k[h>>2]|0)-(k[oa>>2]|0);u=k[ja>>2]|0;if((l[c>>0]|0)<9)break;k[sa>>2]=k[ha>>2]}while(0);t=k[na>>2]|0;if(!t)P=w+1|0;else{D=f;N=t;w=v;R=u;break}}}else{D=b+36|0;N=t;R=u}while(0);Q=k[b>>2]|0;y=k[D>>2]|0;e=b+40|0;t=k[e>>2]|0;E=b+44|0;ca=k[E>>2]|0;f=j[qa>>1]|0;i[ra>>0]=f&1;if(N){K=k[a>>2]|0;k[pa+0>>2]=k[c+0>>2];k[pa+4>>2]=k[c+4>>2];k[pa+8>>2]=k[c+8>>2];k[pa+12>>2]=k[c+12>>2];k[pa+16>>2]=k[c+16>>2];h:do if(!(k[N+48>>2]|0)){u=N+60|0;if(k[u>>2]|0){d=l[b+4>>0]|0;if((d|0)==118)d=35336;else if((d|0)==117)d=35352;else if((d|0)==116)d=35320;else d=35360;k[oa>>2]=d;yh(a,35072,oa);f=0;d=1;wa=227;break}O=Tq(a)|0;o=i[pa>>0]|0;if(o<<24>>24==12){Bh(O,57,k[pa+4>>2]|0,k[k[b>>2]>>2]|0,0)|0;o=k[O+4>>2]|0;if(o)i[o+(((k[O+32>>2]|0)+-1|0)*20|0)+3>>0]=8;i[pa>>0]=14;o=14}n=m[qa>>1]|0;if(n&256){f=0;d=Ns(a,b,pa)|0;wa=227;break}if((k[k[b>>2]>>2]|0)!=(k[k[N>>2]>>2]|0)){Os(a,b);f=0;d=1;wa=227;break}do if(!(n&2048)){if(k[ha>>2]|0){d=Qs(a,b,c)|0;break h}M=b+4|0;n=l[M>>0]|0;if((n|0)==116){q=b+8|0;o=N+8|0;k[o>>2]=k[q>>2];p=b+12|0;n=N+12|0;k[n>>2]=k[p>>2];aa=b+60|0;k[u>>2]=k[aa>>2];ba=b+64|0;k[N+64>>2]=k[ba>>2];g=k[la>>2]|0;d=nr(a,N,pa)|0;k[aa>>2]=0;k[ba>>2]=0;if(d){f=0;wa=227;break h}k[na>>2]=0;o=k[o>>2]|0;k[q>>2]=o;k[p>>2]=k[n>>2];if(!o)t=0;else t=Bh(O,46,o,0,0)|0;e=k[la>>2]|0;d=nr(a,b,pa)|0;f=k[na>>2]|0;k[na>>2]=N;ba=N+24|0;h=b+24|0;o=h;ba=ow(k[o>>2]|0,k[o+4>>2]|0,k[ba>>2]|0,k[ba+4>>2]|0)|0;o=h;k[o>>2]=ba;k[o+4>>2]=L;o=k[u>>2]|0;do if(o){ba=(Rs(o,ga)|0)!=0;o=k[ga>>2]|0;if(!(ba&(o|0)>0))break;ba=h;aa=k[ba+4>>2]|0;n=((o|0)<0)<<31>>31;if(!(aa>>>0>n>>>0|((aa|0)==(n|0)?(k[ba>>2]|0)>>>0>o>>>0:0)))break;ba=h;k[ba>>2]=o;k[ba+4>>2]=n}while(0);if(!t){t=M;q=g;o=e;break}h=k[O+32>>2]|0;if(h>>>0>t>>>0)k[(k[O+4>>2]|0)+(t*20|0)+8>>2]=h;k[(k[O+24>>2]|0)+88>>2]=h+-1;t=M;q=g;o=e;break}else if((n|0)==115|(n|0)==117){if(o<<24>>24==1)n=k[pa+4>>2]|0;else{h=a+68|0;n=k[h>>2]|0;k[h>>2]=n+1;h=Bh(O,57,n,0,0)|0;k[b+16>>2]=h;h=b;while(1){o=k[h+56>>2]|0;if(!o)break;else h=o}ba=h+6|0;j[ba>>1]=m[ba>>1]|8}i[ea>>0]=1;k[ea+4>>2]=n;i[ea+1>>0]=0;k[ea+8>>2]=0;k[ea+12>>2]=0;v=k[la>>2]|0;d=nr(a,N,ea)|0;if(d){f=0;wa=227;break h}u=(i[M>>0]|0)==117?2:1;k[na>>2]=0;q=b+60|0;p=k[q>>2]|0;k[q>>2]=0;o=b+64|0;h=k[o>>2]|0;k[o>>2]=0;i[ea>>0]=u;u=k[la>>2]|0;d=nr(a,b,ea)|0;Sk(K,k[ha>>2]|0);f=k[na>>2]|0;k[na>>2]=N;k[ha>>2]=0;if((i[M>>0]|0)==115){aa=N+24|0;ba=b+24|0;$=ba;aa=ow(k[$>>2]|0,k[$+4>>2]|0,k[aa>>2]|0,k[aa+4>>2]|0)|0;k[ba>>2]=aa;k[ba+4>>2]=L}Lk(K,k[q>>2]|0);k[q>>2]=p;k[o>>2]=h;k[b+8>>2]=0;k[b+12>>2]=0;h=i[pa>>0]|0;if(h<<24>>24==9){h=b;while(1){g=k[h+52>>2]|0;if(!g)break;else h=g}Ss(a,0,k[h>>2]|0)}else if(h<<24>>24==1){t=M;q=v;o=u;break}e=Cs(O)|0;ba=Cs(O)|0;Ts(a,b,e);Bh(O,108,n,e,0)|0;t=O+32|0;q=k[t>>2]|0;Us(a,b,k[b>>2]|0,n,0,0,pa,ba,e);p=O+24|0;o=k[p>>2]|0;h=~ba;do if((ba|0)<0){g=k[o+112>>2]|0;if(!g)break;k[g+(h<<2)>>2]=k[t>>2]}while(0);k[o+88>>2]=(k[t>>2]|0)+-1;Bh(O,9,n,q,0)|0;h=k[p>>2]|0;g=~e;do if((e|0)<0){o=k[h+112>>2]|0;if(!o)break;k[o+(g<<2)>>2]=k[t>>2]}while(0);k[h+88>>2]=(k[t>>2]|0)+-1;Bh(O,61,n,0,0)|0;t=M;q=v;o=u;break}else{h=a+68|0;x=k[h>>2]|0;k[h>>2]=x+2;h=Bh(O,57,x,0,0)|0;k[b+16>>2]=h;h=b;while(1){g=k[h+56>>2]|0;if(!g)break;else h=g}v=x+1|0;q=h+6|0;j[q>>1]=m[q>>1]|8;i[fa>>0]=1;q=fa+4|0;k[q>>2]=x;i[fa+1>>0]=0;k[fa+8>>2]=0;k[fa+12>>2]=0;u=k[la>>2]|0;d=nr(a,N,fa)|0;if(d){f=0;wa=227;break h}t=Bh(O,57,v,0,0)|0;k[b+20>>2]=t;k[na>>2]=0;t=b+60|0;e=k[t>>2]|0;k[t>>2]=0;g=b+64|0;h=k[g>>2]|0;k[g>>2]=0;k[q>>2]=v;w=k[la>>2]|0;d=nr(a,b,fa)|0;f=k[na>>2]|0;k[na>>2]=N;o=b+24|0;ba=o;aa=k[ba+4>>2]|0;p=N+24|0;q=k[p>>2]|0;p=k[p+4>>2]|0;if(aa>>>0>p>>>0|((aa|0)==(p|0)?(k[ba>>2]|0)>>>0>q>>>0:0)){ba=o;k[ba>>2]=q;k[ba+4>>2]=p}Lk(K,k[t>>2]|0);k[t>>2]=e;k[g>>2]=h;if((i[pa>>0]|0)==9){o=b;while(1){n=k[o+52>>2]|0;if(!n)break;else o=n}Ss(a,0,k[o>>2]|0)}g=Cs(O)|0;t=Cs(O)|0;Ts(a,b,g);Bh(O,108,x,g,0)|0;o=a+19|0;n=i[o>>0]|0;if(!(n<<24>>24)){ba=a+72|0;o=(k[ba>>2]|0)+1|0;k[ba>>2]=o}else{ba=n+-1<<24>>24;i[o>>0]=ba;o=k[a+((ba&255)<<2)+24>>2]|0}e=Bh(O,101,x,o,0)|0;Ch(O,Bh(O,68,v,t,o)|0,0,-14);ds(a,o);Us(a,b,k[b>>2]|0,x,0,0,pa,t,g);o=O+24|0;n=k[o>>2]|0;p=~t;do if((t|0)<0){q=k[n+112>>2]|0;if(!q)break;k[q+(p<<2)>>2]=k[O+32>>2]}while(0);q=O+32|0;k[n+88>>2]=(k[q>>2]|0)+-1;Bh(O,9,x,e,0)|0;n=k[o>>2]|0;h=~g;do if((g|0)<0){o=k[n+112>>2]|0;if(!o)break;k[o+(h<<2)>>2]=k[q>>2]}while(0);k[n+88>>2]=(k[q>>2]|0)+-1;Bh(O,61,v,0,0)|0;Bh(O,61,x,0,0)|0;t=M;q=u;o=w;break}}else{Ps(a,b,pa);t=b+4|0;q=0;o=0;f=0;d=0}while(0);ba=i[t>>0]|0;Vs(a,ba&255,q,o,ba<<24>>24!=116&1);if(!(j[qa>>1]&8)){wa=227;break}p=k[k[b>>2]>>2]|0;q=Ws(K,p,1)|0;if(!q){d=7;wa=227;break}if((p|0)>0){e=K+8|0;g=q+20|0;h=0;while(1){ba=Xs(a,b,h)|0;k[g>>2]=ba;if(!ba)k[g>>2]=k[e>>2];h=h+1|0;if((h|0)==(p|0))break;else g=g+4|0}}n=O+32|0;o=O+4|0;do{e=0;do{h=b+(e<<2)+16|0;g=k[h>>2]|0;if((g|0)<0)break;if((k[n>>2]|0)>>>0>g>>>0)k[(k[o>>2]|0)+(g*20|0)+8>>2]=p;k[q>>2]=(k[q>>2]|0)+1;Ch(O,g,q,-6);k[h>>2]=-1;e=e+1|0}while((e|0)<2);b=k[b+52>>2]|0}while((b|0)!=0);ba=(k[q>>2]|0)+-1|0;k[q>>2]=ba;if(ba){wa=227;break}$c(q);wa=227}else{d=l[b+4>>0]|0;if((d|0)==118)d=35336;else if((d|0)==117)d=35352;else if((d|0)==116)d=35320;else d=35360;k[oa>>2]=d;yh(a,35024,oa);f=0;d=1;wa=227}while(0);if((wa|0)==227){k[c+8>>2]=k[pa+8>>2];k[c+12>>2]=k[pa+12>>2];Rk(K,f,1)}k[xa>>2]=ya;break a}if((f&5)==1){d=k[sa>>2]|0;if(!(Ys(d,Q,-1)|0)){j[qa>>1]=f&65534;t=Ur(ua,Q,0)|0;k[e>>2]=t;wa=232}}else wa=232;if((wa|0)==232)d=k[sa>>2]|0;if(!d)d=-1;else{ba=Zs(a,d,0,k[Q>>2]|0)|0;aa=a+68|0;d=k[aa>>2]|0;k[aa>>2]=d+1;k[sa+8>>2]=d;d=Bh(ta,57,d,(k[k[sa>>2]>>2]|0)+1+(k[Q>>2]|0)|0,0)|0;Ch(ta,d,ba,-6)}O=sa+20|0;k[O>>2]=d;if((i[c>>0]|0)==12)Bh(ta,57,k[c+4>>2]|0,k[Q>>2]|0,0)|0;na=Cs(ta)|0;v=b+24|0;ba=v;k[ba>>2]=-1;k[ba+4>>2]=2147483647;Ts(a,b,na);if((k[b+8>>2]|0)==0?(da=k[O>>2]|0,(da|0)>-1):0){if(!(i[(k[ta>>2]|0)+65>>0]|0))d=(k[ta+4>>2]|0)+(da*20|0)|0;else d=29120;i[d>>0]=58;ba=sa+24|0;i[ba>>0]=l[ba>>0]|1}if(!(j[qa>>1]&1))i[ra+1>>0]=0;else{ba=a+68|0;d=k[ba>>2]|0;k[ba>>2]=d+1;k[ra+4>>2]=d;ba=Zs(a,k[b>>2]|0,0,0)|0;d=Bh(ta,57,d,0,0)|0;Ch(ta,d,ba,-6);k[ra+8>>2]=d;d=k[ta+4>>2]|0;if(d)i[d+(((k[ta+32>>2]|0)+-1|0)*20|0)+3>>0]=8;i[ra+1>>0]=3}if((w|0)==0&(t|0)==0){q=_s(a,R,y,k[sa>>2]|0,k[b>>2]|0,(i[ra>>0]|0)!=0?1024:0,0)|0;if(!q){wa=444;break}o=$s(j[q+32>>1]|0)|0;n=L;ba=v;aa=k[ba+4>>2]|0;if(n>>>0>>0|((n|0)==(aa|0)?o>>>0<(k[ba>>2]|0)>>>0:0)){ba=v;k[ba>>2]=o;k[ba+4>>2]=n}do if(i[ra>>0]|0){o=i[q+40>>0]|0;if(!(o<<24>>24))break;i[ra+1>>0]=o}while(0);o=k[sa>>2]|0;do if(!o)wa=257;else{ba=i[q+36>>0]|0;k[sa+4>>2]=ba;if((ba|0)!=(k[o>>2]|0))break;k[sa>>2]=0;wa=257}while(0);do if((wa|0)==257){h=k[O>>2]|0;if((h|0)<=-1)break;Eh(ta,h)}while(0);Us(a,b,Q,-1,sa,ra,c,k[q+48>>2]|0,k[q+52>>2]|0);at(q)}else{w=(t|0)!=0;do if(w){e=k[b>>2]|0;d=k[e>>2]|0;if((d|0)>0){e=k[e+4>>2]|0;while(1){j[e+18>>1]=0;d=d+-1|0;if((d|0)<=0)break;else e=e+20|0}}d=k[t>>2]|0;if((d|0)>0){e=k[t+4>>2]|0;while(1){j[e+18>>1]=0;d=d+-1|0;if((d|0)<=0)break;else e=e+20|0}}ba=v;aa=k[ba+4>>2]|0;if(!(aa>>>0>0|(aa|0)==0&(k[ba>>2]|0)>>>0>100))break;ba=v;k[ba>>2]=100;k[ba+4>>2]=0}else{ba=v;k[ba>>2]=1;k[ba+4>>2]=0}while(0);M=(Ys(t,k[sa>>2]|0,-1)|0)==0;P=Cs(ta)|0;k[ia+0>>2]=0;k[ia+4>>2]=0;k[ia+8>>2]=0;k[ia+12>>2]=0;k[ia+16>>2]=0;k[ia+20>>2]=0;k[ia+24>>2]=0;k[ia+28>>2]=0;k[ia>>2]=a;k[ia+4>>2]=R;k[ia+12>>2]=va;G=a+72|0;k[va+16>>2]=(k[G>>2]|0)+1;if(w)d=k[t>>2]|0;else d=0;v=va+12|0;k[v>>2]=d;k[va+24>>2]=t;bt(ia,Q);bt(ia,k[sa>>2]|0);if(ca){k[oa+0>>2]=0;k[oa+4>>2]=0;k[oa+8>>2]=0;k[oa+12>>2]=0;k[oa+16>>2]=0;k[oa+20>>2]=0;k[oa>>2]=80;k[oa+4>>2]=81;k[oa+24>>2]=ia;ws(oa,ca)|0}x=va+32|0;k[va+36>>2]=k[x>>2];h=va+44|0;d=k[h>>2]|0;if((d|0)>0){u=ia+28|0;e=va+40|0;f=j[u>>1]|0;g=0;do{j[u>>1]=f&65535|8;bt(ia,k[(k[(k[e>>2]|0)+(g<<4)>>2]|0)+20>>2]|0);f=m[u>>1]&65527;j[u>>1]=f;g=g+1|0;d=k[h>>2]|0}while((g|0)<(d|0))}k[va+20>>2]=k[G>>2];if(i[ma>>0]|0){wa=444;break}if(w){E=a+68|0;D=k[E>>2]|0;k[E>>2]=D+1;q=va+4|0;k[q>>2]=D;D=Zs(a,t,0,k[x>>2]|0)|0;p=Bh(ta,58,k[q>>2]|0,k[v>>2]|0,0)|0;Ch(ta,p,D,-6);J=k[G>>2]|0;I=J+1|0;F=J+2|0;J=J+3|0;k[G>>2]=J;H=Cs(ta)|0;N=(k[G>>2]|0)+1|0;k[G>>2]=N;K=Cs(ta)|0;o=k[G>>2]|0;h=o+1|0;ba=k[t>>2]|0;aa=ba+o|0;n=aa+1|0;k[G>>2]=aa+ba;Bh(ta,25,0,F,0)|0;Bh(ta,25,0,I,0)|0;Bh(ta,28,0,h,(k[t>>2]|0)+o|0)|0;Bh(ta,17,N,K,0)|0;o=_s(a,R,y,t,0,M?2304:256,0)|0;if(!o){wa=444;break}if((i[o+36>>0]|0)==(k[t>>2]|0)){u=0;d=0;v=0}else{if(!(i[ra>>0]|0))d=34824;else d=(j[qa>>1]&1)==0?34808:34824;et(a,d);A=k[t>>2]|0;d=k[x>>2]|0;if((d|0)>0){e=k[va+28>>2]|0;f=0;v=A;u=A;do{if((k[e+(f*24|0)+12>>2]|0)>=(v|0)){v=v+1|0;u=u+1|0}f=f+1|0}while((f|0)<(d|0));C=u}else C=A;B=a+60|0;u=k[B>>2]|0;y=a+56|0;d=k[y>>2]|0;if((d|0)<(C|0)){z=k[G>>2]|0;k[G>>2]=z+C;z=z+1|0}else{k[B>>2]=u+C;k[y>>2]=d-C;z=u}ft(a);gt(a,t,z,0);v=k[x>>2]|0;if((v|0)>0){f=va+28|0;w=0;u=A;do{d=k[f>>2]|0;if((k[d+(w*24|0)+12>>2]|0)>=(u|0)){e=u+z|0;v=ht(a,k[d+(w*24|0)>>2]|0,k[d+(w*24|0)+8>>2]|0,k[d+(w*24|0)+4>>2]|0,e,0)|0;if((e|0)!=(v|0))Bh(ta,34,v,e,0)|0;v=k[x>>2]|0;u=u+1|0}w=w+1|0}while((w|0)<(v|0))}v=a+19|0;u=i[v>>0]|0;if(!(u<<24>>24)){u=(k[G>>2]|0)+1|0;k[G>>2]=u}else{u=u+-1<<24>>24;i[v>>0]=u;u=k[a+((u&255)<<2)+24>>2]|0}Bh(ta,49,z,C,u)|0;Bh(ta,109,k[q>>2]|0,u,0)|0;ds(a,u);it(a,z,C);if((k[y>>2]|0)<(C|0)){k[y>>2]=C;k[B>>2]=z}at(o);e=k[E>>2]|0;k[E>>2]=e+1;k[va+8>>2]=e;d=i[v>>0]|0;if(!(d<<24>>24)){d=(k[G>>2]|0)+1|0;k[G>>2]=d}else{d=d+-1<<24>>24;i[v>>0]=d;d=k[a+((d&255)<<2)+24>>2]|0}Bh(ta,60,e,d,C)|0;Bh(ta,106,k[q>>2]|0,P,0)|0;i[va+1>>0]=1;ft(a);u=1;v=e}do if(M){if(j[ua+60>>1]&4)break;if((u|0)==0?(i[o+37>>0]|0)==0:0)break;k[sa>>2]=0;Eh(ta,k[O>>2]|0)}while(0);x=ta+32|0;g=k[x>>2]|0;ft(a);u=(u|0)!=0;if(u)Bh(ta,100,k[q>>2]|0,d,v)|0;d=k[t>>2]|0;if((d|0)>0){e=t+4|0;f=0;do{if(u)Bh(ta,47,v,f,f+n|0)|0;else{i[va>>0]=1;Wq(a,k[(k[e>>2]|0)+(f*20|0)>>2]|0,f+n|0)}f=f+1|0;d=k[t>>2]|0}while((f|0)<(d|0))}if(D)k[D>>2]=(k[D>>2]|0)+1;Ch(ta,Bh(ta,42,h,n,d)|0,D,-6);d=k[x>>2]|0;ba=d+1|0;Bh(ta,43,ba,0,ba)|0;t=k[t>>2]|0;Bh(k[a+8>>2]|0,32,n,h,t)|0;it(a,n,t);Bh(ta,17,J,H,0)|0;Bh(ta,137,F,P,0)|0;Bh(ta,17,N,K,0)|0;t=k[x>>2]|0;if(t>>>0>d>>>0)k[(k[ta+4>>2]|0)+(d*20|0)+8>>2]=t;h=ta+24|0;k[(k[h>>2]|0)+88>>2]=t+-1;jt(a,va);Bh(ta,25,1,I,0)|0;if(u)Bh(ta,5,k[q>>2]|0,g,0)|0;else{at(o);Eh(ta,p)}Bh(ta,17,J,H,0)|0;Bh(ta,16,0,P,0)|0;f=k[x>>2]|0;Bh(ta,25,1,F,0)|0;Bh(ta,18,J,0,0)|0;d=k[h>>2]|0;e=~H;do if((H|0)<0){t=k[d+112>>2]|0;if(!t)break;k[t+(e<<2)>>2]=k[x>>2]}while(0);q=k[x>>2]|0;k[d+88>>2]=q+-1;Bh(ta,137,I,q+2|0,0)|0;Bh(ta,18,J,0,0)|0;kt(a,va);q=q+1|0;lt(a,ca,q,16);Us(a,b,k[b>>2]|0,-1,sa,ra,c,q,f);Bh(ta,18,J,0,0)|0;q=k[h>>2]|0;p=~K;do if((K|0)<0){o=k[q+112>>2]|0;if(!o)break;k[o+(p<<2)>>2]=k[x>>2]}while(0);k[q+88>>2]=(k[x>>2]|0)+-1;mt(a,va);Bh(ta,18,N,0,0)|0}else{do if(!(k[D>>2]|0)){p=k[b>>2]|0;if((k[p>>2]|0)!=1){wa=372;break}q=k[ja>>2]|0;if((k[q>>2]|0)!=1){wa=372;break}if(k[q+28>>2]|0){wa=372;break}x=k[q+24>>2]|0;q=k[k[p+4>>2]>>2]|0;w=x+44|0;if(i[w>>0]&16){wa=372;break}if((i[q>>0]|0)!=-101|(d|0)==0){wa=372;break}v=va+40|0;if(!(j[(k[(k[v>>2]|0)+4>>2]|0)+2>>1]&256)){wa=372;break}if((x|0)==0?1:(k[q+4>>2]&16|0)!=0){wa=372;break}q=k[a>>2]|0;d=k[x+68>>2]|0;i:do if(!d)p=-1e6;else{e=k[q+20>>2]|0;if((e|0)<=0){p=0;break}q=k[q+16>>2]|0;t=0;while(1){p=t+1|0;if((k[q+(t<<4)+12>>2]|0)==(d|0)){p=t;break i}if((p|0)<(e|0))t=p;else break}}while(0);t=a+68|0;g=k[t>>2]|0;k[t>>2]=g+1;t=x+32|0;d=k[t>>2]|0;Fr(a,p);ls(a,p,k[t>>2]|0,0,k[x>>2]|0);t=k[x+8>>2]|0;j:do if(!(i[w>>0]&32)){q=0;wa=351}else{if(!t){e=1;f=0;t=0;break}else q=t;while(1){if((i[q+51>>0]&3)==2){wa=351;break j}q=k[q+20>>2]|0;if(!q){q=0;wa=351;break}}}while(0);do if((wa|0)==351){if(t){f=x+42|0;e=t;do{do if(!(i[e+51>>0]&4)){t=j[e+44>>1]|0;if(t<<16>>16>=(j[f>>1]|0))break;if(k[e+36>>2]|0)break;if((q|0)!=0?t<<16>>16>=(j[q+44>>1]|0):0)break;q=e}while(0);e=k[e+20>>2]|0}while((e|0)!=0)}if(!q){e=1;f=0;t=0;break}d=k[q+40>>2]|0;e=0;f=q;t=ms(a,q)|0}while(0);Ch(ta,Bh(ta,54,g,d,p)|0,1,-14);if(t)Ch(ta,-1,t,-6);Bh(ta,50,g,k[(k[v>>2]|0)+8>>2]|0,0)|0;Bh(ta,61,g,0,0)|0;if((i[a+450>>0]|0)!=2){o=0;break}do if(e){q=k[x>>2]|0;p=10360;n=10360;o=k[a>>2]|0}else{if(i[w>>0]&32){ba=(i[f+51>>0]&3)!=2;o=k[a>>2]|0;q=k[x>>2]|0;p=ba?34920:10360;if(!ba){n=10360;break}}else{p=34920;q=k[x>>2]|0;o=k[a>>2]|0}n=k[f>>2]|0}while(0);k[oa>>2]=q;k[oa+4>>2]=p;k[oa+8>>2]=n;o=zh(o,34896,oa)|0;ba=k[a+8>>2]|0;Ch(ba,Bh(ba,157,k[xa>>2]|0,0,0)|0,o,-1);o=0}else wa=372;while(0);if((wa|0)==372){do if((k[E>>2]|0)==0&(d|0)==1){o=k[k[va+40>>2]>>2]|0;q=k[o+20>>2]|0;if(!q){o=0;n=0;break}if((k[q>>2]|0)!=1){o=0;n=0;break}if((i[k[k[q+4>>2]>>2]>>0]|0)!=-100){o=0;n=0;break}o=k[o+8>>2]|0;if(id(o,18760)|0)if(!(id(o,18768)|0))n=2;else{o=0;n=0;break}else n=1;o=Ur(ua,q,0)|0;if(!o){o=0;break}if(i[ma>>0]|0)break;ba=k[o+4>>2]|0;i[ba+12>>0]=n<<24>>24!=1&1;i[k[ba>>2]>>0]=-102}else{o=0;n=0}while(0);mt(a,va);n=_s(a,R,y,o,0,n&255,0)|0;if(!n){Sk(ua,o);wa=444;break}jt(a,va);if((i[n+36>>0]|0)>0)Bh(ta,16,0,k[n+52>>2]|0,0)|0;at(n);kt(a,va)}k[sa>>2]=0;lt(a,ca,P,16);Us(a,b,k[b>>2]|0,-1,0,0,c,P,P);Sk(ua,o);h=ta+24|0}o=k[h>>2]|0;n=~P;do if((P|0)<0){h=k[o+112>>2]|0;if(!h)break;k[h+(n<<2)>>2]=k[ta+32>>2]}while(0);k[o+88>>2]=(k[ta+32>>2]|0)+-1}if((i[ra+1>>0]|0)==3)et(a,34808);if(k[sa>>2]|0){u=sa+4|0;et(a,(k[u>>2]|0)>0?34840:34864);x=k[Q>>2]|0;q=a+8|0;D=k[q>>2]|0;E=Cs(D)|0;C=Cs(D)|0;g=k[sa>>2]|0;f=i[c>>0]|0;y=f&255;z=c+4|0;A=k[z>>2]|0;v=sa+16|0;t=k[v>>2]|0;if(t){Bh(D,17,k[sa+12>>2]|0,t,0)|0;Bh(D,16,0,E,0)|0;ba=k[v>>2]|0;t=k[D+24>>2]|0;d=~ba;do if((ba|0)<0){e=k[t+112>>2]|0;if(!e)break;k[e+(d<<2)>>2]=k[D+32>>2]}while(0);k[t+88>>2]=(k[D+32>>2]|0)+-1}B=k[sa+8>>2]|0;o=f<<24>>24==9;k:do if((f&-5)<<24>>24==9){n=x;p=k[c+8>>2]|0;d=0}else{t=a+19|0;d=i[t>>0]|0;do if(d<<24>>24){ba=d+-1<<24>>24;i[t>>0]=ba;e=k[a+((ba&255)<<2)+24>>2]|0;if(!(ba<<24>>24)){d=e;t=k[a+72>>2]|0;break}else{p=d+-2<<24>>24;i[t>>0]=p;n=1;p=k[a+((p&255)<<2)+24>>2]|0;d=e;break k}}else{d=a+72|0;t=(k[d>>2]|0)+1|0;k[d>>2]=t;d=t}while(0);p=t+1|0;k[a+72>>2]=p;n=1}while(0);h=(k[g>>2]|0)-(k[u>>2]|0)|0;w=sa+24|0;if(!(i[w>>0]&1)){t=Bh(D,107,B,E,0)|0;nt(D,k[b+12>>2]|0,C);e=1;f=B}else{ba=a+72|0;f=(k[ba>>2]|0)+1|0;k[ba>>2]=f;ba=a+68|0;g=k[ba>>2]|0;k[ba>>2]=g+1;if(!(k[v>>2]|0))e=0;else{ba=Tq(a)|0;aa=a+80|0;e=k[aa>>2]|0;k[aa>>2]=e+1;e=Bh(ba,44,e,0,0)|0}Bh(D,60,g,f,n+1+h|0)|0;if(e){t=k[D+32>>2]|0;if(t>>>0>e>>>0)k[(k[D+4>>2]|0)+(e*20|0)+8>>2]=t;k[(k[D+24>>2]|0)+88>>2]=t+-1}t=Bh(D,106,B,E,0)|0;nt(D,k[b+12>>2]|0,C);Bh(D,100,B,f,g)|0;e=0;f=g}u=t+1|0;if((n|0)>0){t=e+h|0;e=0;do{Bh(D,47,f,t+e|0,e+p|0)|0;e=e+1|0}while((e|0)!=(n|0))}do if((y|0)==12|(y|0)==14){Bh(D,74,A,d,0)|0;Bh(D,75,A,p,d)|0;o=k[D+4>>2]|0;if(!o)break;i[o+(((k[D+32>>2]|0)+-1|0)*20|0)+3>>0]=8}else if((y|0)==11){Ch(D,Bh(D,49,p,1,d)|0,c+1|0,1);it(a,p,1);Bh(D,110,A,d,0)|0}else if((y|0)!=10)if(o){ba=c+8|0;Bh(D,35,k[ba>>2]|0,x,0)|0;it(a,k[ba>>2]|0,x);break}else{Bh(D,22,k[z>>2]|0,0,0)|0;break}else{Bh(k[q>>2]|0,32,p,A,1)|0;it(a,p,1)}while(0);if(d){ds(a,p);ds(a,d)}n=D+24|0;p=k[n>>2]|0;q=~C;do if((C|0)<0){o=k[p+112>>2]|0;if(!o)break;k[o+(q<<2)>>2]=k[D+32>>2]}while(0);q=D+32|0;k[p+88>>2]=(k[q>>2]|0)+-1;if(!(i[w>>0]&1))Bh(D,9,B,u,0)|0;else Bh(D,5,B,u,0)|0;h=k[sa+12>>2]|0;if(h)Bh(D,18,h,0,0)|0;h=k[n>>2]|0;g=~E;do if((E|0)<0){f=k[h+112>>2]|0;if(!f)break;k[f+(g<<2)>>2]=k[q>>2]}while(0);k[h+88>>2]=(k[q>>2]|0)+-1}e=k[ta+24>>2]|0;f=~na;do if((na|0)<0){d=k[e+112>>2]|0;if(!d)break;k[d+(f<<2)>>2]=k[ta+32>>2]}while(0);k[e+88>>2]=(k[ta+32>>2]|0)+-1;k[xa>>2]=ya;if((i[c>>0]|0)!=9){d=0;break}Ss(a,R,Q);d=0}else wa=444;while(0);if((wa|0)==444){k[xa>>2]=ya;d=1}rg(ua,k[va+28>>2]|0);rg(ua,k[va+40>>2]|0)}else d=1;while(0);r=za;return d|0}function or(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();j=o;m=k[a>>2]|0;if((b|0)==0?(i=(g|0)!=0,i|(h|0)!=0):0){k[j>>2]=i?34792:34800;yh(a,34752,j);n=9}else{b=ur(m,b,c,d)|0;if((b|0)!=0?(l=k[b>>2]|0,(l|0)!=0):0){i=l+-1|0;if(k[e+4>>2]|0){e=$q(m,e)|0;k[b+(i*72|0)+20>>2]=e}k[b+(i*72|0)+28>>2]=f;k[b+(i*72|0)+52>>2]=g;k[b+(i*72|0)+56>>2]=h}else n=9}if((n|0)==9){Lk(m,g);Mk(m,h);Rk(m,f,1);b=0}r=o;return b|0}function pr(a,b,c,d,e,f,g,h,l,m){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+80|0;if((r|0)>=(s|0))ka();o=v+72|0;u=v;t=k[a>>2]|0;n=rh(t,72,0)|0;if(!n){p=u+0|0;q=p+72|0;do{k[p>>2]=0;p=p+4|0}while((p|0)<(q|0));n=u}else{p=n+0|0;q=p+72|0;do{i[p>>0]=0;p=p+1|0}while((p|0)<(q|0))}if(!b){k[o>>2]=0;k[o+4>>2]=0;b=qr(a,0,sr(t,116,o,0)|0)|0}k[n>>2]=b;if(!c){c=rh(t,80,0)|0;if(c){p=c+0|0;q=p+80|0;do{i[p>>0]=0;p=p+1|0}while((p|0)<(q|0))}}k[n+32>>2]=c;k[n+36>>2]=d;k[n+40>>2]=e;k[n+44>>2]=f;k[n+48>>2]=g;j[n+6>>1]=h;i[n+4>>0]=119;k[n+60>>2]=l;k[n+64>>2]=m;k[n+16>>2]=-1;k[n+20>>2]=-1;if(i[t+65>>0]|0){Rk(t,n,(n|0)!=(u|0)&1);n=0}r=v;return n|0}function qr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=k[a>>2]|0;if(!b){b=rh(e,8,0)|0;if(b){a=b;d=a;i[d>>0]=0;i[d+1>>0]=0;i[d+2>>0]=0;i[d+3>>0]=0;a=a+4|0;i[a>>0]=0;i[a+1>>0]=0;i[a+2>>0]=0;i[a+3>>0]=0;a=rh(e,20,0)|0;k[b+4>>2]=a;if(!a)d=8;else d=7}else{b=0;d=8}}else{a=k[b>>2]|0;if(!(a+-1&a)){d=b+4|0;a=wo(e,k[d>>2]|0,a*40|0,0)|0;if(!a)d=8;else{k[d>>2]=a;d=7}}else d=7}if((d|0)==7){a=k[b>>2]|0;k[b>>2]=a+1;a=(k[b+4>>2]|0)+(a*20|0)|0;k[a+0>>2]=0;k[a+4>>2]=0;k[a+8>>2]=0;k[a+12>>2]=0;k[a+16>>2]=0;k[a>>2]=c}else if((d|0)==8){Lk(e,c);Sk(e,b);b=0}return b|0}function rr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;do if(b){h=(k[b>>2]|0)+-1|0;e=k[b+4>>2]|0;f=k[c>>2]|0;b=k[c+4>>2]|0;if((f|0)!=0?(c=k[a>>2]|0,g=ow(b|0,0,1,0)|0,g=rh(c,g,L)|0,(g|0)!=0):0){pw(g|0,f|0,b|0)|0;i[g+b>>0]=0;k[e+(h*20|0)+4>>2]=g;if(!d)break;qo(g);break}k[e+(h*20|0)+4>>2]=0}while(0);return}function sr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();h=o;k[h>>2]=0;f=(c|0)!=0;do if(f){if(((b|0)==132?(e=k[c>>2]|0,(e|0)!=0):0)?(In(e,h)|0)!=0:0){m=0;break}m=(k[c+4>>2]|0)+1|0}else m=0;while(0);g=m+48|0;l=rh(a,g,0)|0;if(l){kw(l|0,0,g|0)|0;i[l>>0]=b;j[l+34>>1]=-1;do if(f){if(!m){d=l+4|0;k[d>>2]=k[d>>2]|1024;k[l+8>>2]=k[h>>2];break}e=l+48|0;g=l+8|0;k[g>>2]=e;f=c+4|0;a=k[f>>2]|0;if(!a)e=48;else{pw(e|0,k[c>>2]|0,a|0)|0;e=(k[f>>2]|0)+48|0}i[l+e>>0]=0;if(((d|0)!=0&(m|0)>2?(d=i[k[c>>2]>>0]|0,n=d<<24>>24==34,d<<24>>24==34|d<<24>>24==39|d<<24>>24==91|d<<24>>24==96):0)?(qo(k[g>>2]|0),n):0){d=l+4|0;k[d>>2]=k[d>>2]|64}}while(0);k[l+24>>2]=1}r=o;return l|0}function tr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;do if((b|0)!=0?(d=k[b>>2]|0,(d|0)>0):0){d=d+-1|0;if((k[c+4>>2]|0)==1?(k[c>>2]|0)==0:0){d=b+(d*72|0)+45|0;i[d>>0]=i[d>>0]|1;break}c=$q(k[a>>2]|0,c)|0;k[b+(d*72|0)+72>>2]=c}while(0);return}function ur(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if(!b){b=rh(a,80,0)|0;if(!b)b=0;else{f=b+0|0;e=f+80|0;do{i[f>>0]=0;f=f+1|0}while((f|0)<(e|0));k[b+4>>2]=1;f=4}}else f=4;do if((f|0)==4){b=Ks(a,b,1,k[b>>2]|0)|0;if(i[a+65>>0]|0){Io(a,b);b=0;break}f=(k[b>>2]|0)+-1|0;if(!d)e=0;else e=(k[d>>2]|0)==0?0:d;d=(e|0)==0;e=$q(a,d?c:e)|0;k[b+(f*72|0)+16>>2]=e;e=$q(a,d?0:c)|0;k[b+(f*72|0)+12>>2]=e}while(0);return b|0}function vr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,m=0,n=0,o=0;o=r;r=r+32|0;if((r|0)>=(s|0))ka();m=o;i=o+16|0;k[i>>2]=b;k[i+4>>2]=c;k[i+8>>2]=d;h=b;j=1;e=0;a:while(1){if(!h)break;g=k[h+4>>2]|0;f=0;while(1){if((g|0)==(l[34625+(f*3|0)>>0]|0|0)?(Kc(k[h>>2]|0,34584+(l[34624+(f*3|0)>>0]|0)|0,g)|0)==0:0)break;f=f+1|0;if((f|0)>=7){n=10;break a}}e=l[34626+(f*3|0)>>0]|0|e;if((f|0)>6){n=10;break}if((j|0)>=3)break;h=k[i+(j<<2)>>2]|0;j=j+1|0}if((n|0)==10)e=e|64;if((e&33|0)!=33&(e&64|0)==0){if(!((e&32|0)==0|(e&24|0)==8)){yh(a,34696,m);e=1}}else{k[m>>2]=b;k[m+4>>2]=c;k[m+8>>2]=(d|0)==0?20377|0:20376;k[m+12>>2]=d;yh(a,34648,m);e=1}r=o;return e|0}function wr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=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=r;r=r+48|0;if((r|0)>=(s|0))ka();N=Q+36|0;O=Q+32|0;m=Q;k[N>>2]=0;k[O>>2]=0;P=k[a>>2]|0;if(((((k[a+64>>2]|0)==0?(i[P+65>>0]|0)==0:0)?(E=Or(a,b)|0,(E|0)!=0):0)?(D=ot(a,E,109,0,0)|0,M=(k[E+12>>2]|0)!=0,(mr(a,E)|0)==0):0)?(o=(D|0)!=0,(pt(a,E,o&1)|0)==0):0){f=k[E+68>>2]|0;a:do if(f){e=k[P+20>>2]|0;if((e|0)>0){d=k[P+16>>2]|0;h=0;while(1){g=h+1|0;if((k[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=Xq(a,9,k[E>>2]|0,0,k[(k[P+16>>2]|0)+(g<<4)>>2]|0)|0;if((d|0)!=1){n=a+68|0;z=k[n>>2]|0;p=z+1|0;k[n>>2]=p;k[b+48>>2]=z;F=E+8|0;f=k[F>>2]|0;if(!f)h=0;else{e=p;h=0;do{e=e+1|0;k[n>>2]=e;h=h+1|0;f=k[f+20>>2]|0}while((f|0)!=0)}if(M){K=a+492|0;L=k[K>>2]|0;k[K>>2]=k[E>>2];K=a}else{K=0;L=0}I=Tq(a)|0;b:do if(I){J=a+18|0;if(!(i[J>>0]|0)){B=I+88|0;j[B>>1]=j[B>>1]|4}A=a+408|0;B=k[A>>2]|0;B=(B|0)==0?a:B;Fr(a,g);y=B+328|0;k[y>>2]=k[y>>2]|1<>0]=l[B>>0]|1;if(M){qt(a,E,c,z);k[O>>2]=z;k[N>>2]=z};k[m+0>>2]=0;k[m+4>>2]=0;k[m+8>>2]=0;k[m+12>>2]=0;k[m+16>>2]=0;k[m+20>>2]=0;k[m+24>>2]=0;k[m+28>>2]=0;k[m>>2]=a;k[m+4>>2]=b;if(!(qs(m,c)|0)){G=P+24|0;if(!(k[G>>2]&128))H=-1;else{B=a+72|0;H=(k[B>>2]|0)+1|0;k[B>>2]=H;Bh(I,25,0,H,0)|0}B=E+44|0;do if((!((c|0)!=0|(d|0)!=0|o)?(i[B>>0]&16)==0:0)?(rt(a,E,0,0)|0)==0:0){f=E+32|0;ls(a,g,k[f>>2]|0,1,k[E>>2]|0);if(!(i[B>>0]&32)){E=k[E>>2]|0;Ch(I,Bh(I,118,k[f>>2]|0,g,H)|0,E,-2)}d=k[F>>2]|0;if(!d){d=0;break}do{Bh(I,118,k[d+40>>2]|0,g,0)|0;d=k[d+20>>2]|0}while((d|0)!=0);d=0}else C=31;while(0);do if((C|0)==31){if(!(i[B>>0]&32)){q=a+72|0;w=(k[q>>2]|0)+1|0;k[q>>2]=w;Bh(I,28,0,w,0)|0;q=0;x=0;d=0;u=1;g=0}else{g=k[F>>2]|0;c:do if(!g)g=0;else while(1){if((i[g+51>>0]&3)==2)break c;g=k[g+20>>2]|0;if(!g){g=0;break}}while(0);u=j[g+46>>1]|0;x=a+72|0;d=k[x>>2]|0;q=u<<16>>16;k[x>>2]=d+q;x=k[n>>2]|0;k[n>>2]=x+1;q=Bh(I,57,x,q,0)|0;w=k[a+8>>2]|0;Ch(w,-1,ms(a,g)|0,-6);d=d+1|0;w=0}t=_s(a,b,c,0,0,12,p)|0;if(!t){d=0;break b}p=t+60|0;o=k[p>>2]|0;p=k[p+4>>2]|0;v=i[t+38>>0]|0;if(k[G>>2]&128)Bh(I,37,H,1,0)|0;y=(g|0)!=0;do if(y){if(u<<16>>16<=0){e=d;break}m=g+4|0;f=u<<16>>16;n=0;do{st(I,E,z,j[(k[m>>2]|0)+(n<<1)>>1]|0,n+d|0);n=n+1|0}while((n|0)!=(f|0));e=d}else{f=a+72|0;e=ht(a,E,-1,z,(k[f>>2]|0)+1|0,0)|0;if((e|0)<=(k[f>>2]|0))break;k[f>>2]=e}while(0);m=v<<24>>24!=0;do if(!m)if(y){f=a+72|0;e=(k[f>>2]|0)+1|0;k[f>>2]=e;f=u<<16>>16;n=tt(I,g)|0;Ch(I,Bh(I,49,d,f,e)|0,n,f);Bh(I,110,x,e,0)|0;d=0;f=0;n=0;C=59;break}else{Bh(I,128,w,e,0)|0;at(t);d=0;p=0;g=1;break}else{d=h+2|0;d=rh(P,d,((d|0)<0)<<31>>31)|0;if(!d){at(t);d=0;break b}C=h+1|0;kw(d|0,1,C|0)|0;i[d+C>>0]=0;if((o|0)>-1)i[d+(o-z)>>0]=0;if((p|0)>-1)i[d+(p-z)>>0]=0;if(q)Eh(I,q);f=Bh(I,16,0,0,0)|0;n=u;C=59}while(0);do if((C|0)==59){at(t);if(!m){p=0;g=n;break}g=Cs(I)|0;Bh(I,16,0,g,0)|0;h=k[I+32>>2]|0;if(h>>>0>f>>>0)k[(k[I+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[I+24>>2]|0)+88>>2]=h+-1;p=g;g=n}while(0);if(!M)ut(a,E,55,z,d,N,O)|0;do if(!m)if(y){f=Bh(I,108,x,0,0)|0;Bh(I,101,x,e,0)|0;break}else{f=Bh(I,129,w,0,e)|0;break}else{h=k[N>>2]|0;if(!(i[d+(h-z)>>0]|0)){f=0;break}Ch(I,Bh(I,68,h,p,e)|0,g<<16>>16,-14);f=0}while(0);if(!(i[B>>0]&16))wt(a,E,D,k[N>>2]|0,k[O>>2]|0,e,g,(i[J>>0]|0)==0&1,10,v);else{h=k[E+60>>2]|0;d:do if(!h)h=0;else while(1){if((k[h>>2]|0)==(P|0))break d;h=k[h+24>>2]|0;if(!h){h=0;break}}while(0);vt(a,E);Ch(I,Bh(I,15,0,1,e)|0,h,-10);h=k[I+4>>2]|0;if(h)i[h+(((k[I+32>>2]|0)+-1|0)*20|0)+3>>0]=2;E=k[A>>2]|0;i[((E|0)==0?a:E)+21>>0]=1}do if(!m)if(y){Bh(I,9,x,f+1|0,0)|0;h=k[I+32>>2]|0;if(h>>>0>f>>>0)k[(k[I+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[I+24>>2]|0)+88>>2]=h+-1;break}else{Bh(I,16,0,f,0)|0;h=k[I+32>>2]|0;if(h>>>0>f>>>0)k[(k[I+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[I+24>>2]|0)+88>>2]=h+-1;break}else{g=k[I+24>>2]|0;f=~p;do if((p|0)<0){h=k[g+112>>2]|0;if(!h)break;k[h+(f<<2)>>2]=k[I+32>>2]}while(0);k[g+88>>2]=(k[I+32>>2]|0)+-1}while(0);if(M)break;if(i[B>>0]&16)break;if(!y)Bh(I,61,k[N>>2]|0,0,0)|0;e=k[F>>2]|0;if(!e)break;else f=0;while(1){Bh(I,61,(k[O>>2]|0)+f|0,0,0)|0;e=k[e+20>>2]|0;if(!e)break;else f=f+1|0}}while(0);if((i[J>>0]|0)==0?(k[a+412>>2]|0)==0:0)xt(a);if((k[G>>2]&128|0)!=0?(i[J>>0]|0)==0:0){if(k[a+412>>2]|0)break;Bh(I,35,H,1,0)|0;nq(I,1);if(i[(k[I>>2]|0)+65>>0]|0)break;ah(k[I+16>>2]|0,34568,-1,1,0)|0}}else d=0}else d=0;while(0);if(K)k[K+492>>2]=L}else d=0}else d=0;Io(P,b);Lk(P,c);rg(P,d);r=Q;return}function xr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0;ia=r;r=r+64|0;if((r|0)>=(s|0))ka();Q=ia;V=ia+32|0;ba=ia+24|0;da=ia+20|0;ha=k[a>>2]|0;a:do if(((k[a+64>>2]|0)==0?(i[ha+65>>0]|0)==0:0)?(ga=Or(a,b)|0,(ga|0)!=0):0){g=k[a>>2]|0;m=k[ga+68>>2]|0;b:do if(m){n=k[g+20>>2]|0;if((n|0)>0){g=k[g+16>>2]|0;h=0;while(1){f=h+1|0;if((k[g+(h<<4)+12>>2]|0)==(m|0))break b;if((f|0)<(n|0))h=f;else{h=f;break}}}else h=0}else h=-1e6;while(0);ca=ot(a,ga,110,c,ba)|0;$=(k[ga+12>>2]|0)!=0;if((mr(a,ga)|0)==0?(pt(a,ga,k[ba>>2]|0)|0)==0:0){X=a+68|0;Y=k[X>>2]|0;ea=Y+1|0;k[X>>2]=ea;m=b+48|0;k[m>>2]=Y;H=ga+44|0;p=k[ga+8>>2]|0;c:do if(!(i[H>>0]&32)){n=0;_=16}else{if(!p){t=ga+8|0;n=0;o=Y;q=0;break}else n=p;while(1){if((i[n+51>>0]&3)==2){_=16;break c}n=k[n+20>>2]|0;if(!n){n=0;_=16;break}}}while(0);if((_|0)==16){t=ga+8|0;if(!p){o=Y;q=0}else{f=(n|0)!=0;g=ea;o=Y;q=0;do{if((i[p+51>>0]&3)==2&f){k[m>>2]=g;o=g}g=g+1|0;k[X>>2]=g;q=q+1|0;p=k[p+20>>2]|0}while((p|0)!=0)}}fa=ga+38|0;f=rh(ha,q+2+((j[fa>>1]|0)+q<<2)|0,0)|0;if(f){F=j[fa>>1]|0;Z=f+(F<<2)|0;aa=f+(F+q<<2)|0;W=q+1|0;kw(aa|0,1,W|0)|0;i[aa+W>>0]=0;q=j[fa>>1]|0;if(q<<16>>16>0)kw(f|0,-1,(q<<16>>16>1?q<<16>>16<<2:4)|0)|0;k[V+0>>2]=0;k[V+4>>2]=0;k[V+8>>2]=0;k[V+12>>2]=0;k[V+16>>2]=0;k[V+20>>2]=0;k[V+24>>2]=0;k[V+28>>2]=0;k[V>>2]=a;k[V+4>>2]=b;d:do if((k[c>>2]|0)>0){B=c+4|0;A=ga+4|0;z=ha+16|0;C=(n|0)==0;D=ga+36|0;v=0;u=0;E=0;g=0;while(1){if(qs(V,k[(k[B>>2]|0)+(E*20|0)>>2]|0)|0)break a;x=j[fa>>1]|0;e:do if(x<<16>>16>0){q=k[A>>2]|0;y=k[B>>2]|0;m=k[y+(E*20|0)+4>>2]|0;p=0;while(1){w=p+1|0;if(!(id(k[q+(p*24|0)>>2]|0,m)|0))break;if((w|0)<(x<<16>>16|0))p=w;else{p=w;m=g;break e}}if((p|0)!=(j[D>>1]|0)){if(!C)v=(i[q+(p*24|0)+23>>0]&1)==0?v:1}else{u=1;g=k[y+(E*20|0)>>2]|0}k[f+(p<<2)>>2]=E;m=g}else{p=0;m=g}while(0);if((p|0)<(x<<16>>16|0)){g=k[ga>>2]|0;if((p|0)<0)q=12944;else q=k[(k[A>>2]|0)+(p*24|0)>>2]|0}else{m=k[B>>2]|0;g=k[m+(E*20|0)+4>>2]|0;if(!C)break;if(!(ei(g)|0))break;g=k[ga>>2]|0;q=12944;u=1;p=-1;m=k[m+(E*20|0)>>2]|0}g=Xq(a,23,g,q,k[(k[z>>2]|0)+(h<<4)>>2]|0)|0;if((g|0)==1)break a;else if((g|0)==2)k[f+(p<<2)>>2]=-1;E=E+1|0;if((E|0)>=(k[c>>2]|0)){O=m;break d}else g=m}k[Q>>2]=g;yh(a,34496,Q);i[a+17>>0]=1;break a}else{v=0;u=0;O=0}while(0);U=(v&255)+(u&255)|0;R=U&255;z=b+64|0;k[z>>2]=0;k[z+4>>2]=0;U=U&255;z=rt(a,ga,f,U)|0;g=k[t>>2]|0;if(g){w=(z|U|0)==0;x=a+72|0;y=0;while(1){f:do if(w?!((k[g+36>>2]|0)!=0|(g|0)==(n|0)):0){m=j[g+46>>1]|0;if(!(m<<16>>16))_=56;else{p=k[g+4>>2]|0;q=0;while(1){if((k[f+(j[p+(q<<1)>>1]<<2)>>2]|0)>-1){_=54;break f}q=q+1|0;if((q|0)>=(m&65535|0)){_=56;break}}}}else _=54;while(0);if((_|0)==54){_=0;m=(k[x>>2]|0)+1|0;k[x>>2]=m;if(!m)_=56;else p=y+1|0}if((_|0)==56){_=0;p=y+1|0;i[aa+p>>0]=0;m=0}k[f+(y+F<<2)>>2]=m;g=k[g+20>>2]|0;if(!g)break;else y=p}}S=Tq(a)|0;if(S){T=a+18|0;if(!(i[T>>0]|0)){P=S+88|0;j[P>>1]=j[P>>1]|4}E=a+408|0;P=k[E>>2]|0;P=(P|0)==0?a:P;Fr(a,h);N=P+328|0;k[N>>2]=k[N>>2]|1<>0]=l[P>>0]|1;if(i[H>>0]&16){u=k[a+8>>2]|0;v=k[a>>2]|0;g=k[ga+60>>2]|0;g:do if(!g)g=0;else while(1){if((k[g>>2]|0)==(v|0))break g;g=k[g+24>>2]|0;if(!g){g=0;break}}while(0);h=qr(a,0,yt(v,27,34536)|0)|0;t=(O|0)!=0;if(t)h=qr(a,h,Rr(v,O,0,0)|0)|0;if((j[fa>>1]|0)>0){m=c+4|0;o=ga+4|0;p=0;do{n=k[f+(p<<2)>>2]|0;if((n|0)>-1)n=Rr(v,k[(k[m>>2]|0)+(n*20|0)>>2]|0,0,0)|0;else n=yt(v,27,k[(k[o>>2]|0)+(p*24|0)>>2]|0)|0;h=qr(a,h,n)|0;p=p+1|0}while((p|0)<(j[fa>>1]|0))}o=pr(a,h,b,d,0,0,0,0,0,0)|0;q=k[X>>2]|0;k[X>>2]=q+1;b=t&1;Bh(u,57,q,(j[fa>>1]|0)+(t?2:1)|0,0)|0;p=u+4|0;d=k[p>>2]|0;if(d)i[d+(((k[u+32>>2]|0)+-1|0)*20|0)+3>>0]=8;i[Q>>0]=14;k[Q+4>>2]=q;i[Q+1>>0]=0;k[Q+8>>2]=0;k[Q+12>>2]=0;nr(a,o,Q)|0;d=a+72|0;n=k[d>>2]|0;h=n+1|0;aa=n+2|0;k[d>>2]=(j[fa>>1]|0)+aa;d=Bh(u,108,q,0,0)|0;Bh(u,47,q,0,h)|0;Bh(u,47,q,b,aa)|0;if((j[fa>>1]|0)>0){n=n+3|0;m=0;do{aa=m;m=m+1|0;Bh(u,47,q,m+b|0,n+aa|0)|0}while((m|0)<(j[fa>>1]|0))}vt(a,ga);Ch(u,Bh(u,15,0,(j[fa>>1]|0)+2|0,h)|0,g,-10);g=k[p>>2]|0;if(!g)g=u+32|0;else{aa=u+32|0;i[g+(((k[aa>>2]|0)+-1|0)*20|0)+3>>0]=(e|0)==10?2:e&255;g=aa}aa=k[E>>2]|0;i[((aa|0)==0?a:aa)+21>>0]=1;Bh(u,9,q,d+1|0,0)|0;g=k[g>>2]|0;if(g>>>0>d>>>0)k[(k[p>>2]|0)+(d*20|0)+8>>2]=g;k[(k[u+24>>2]|0)+88>>2]=g+-1;Bh(u,61,q,0,0)|0;Rk(v,o,1);d=0;b=0;break}E=a+72|0;g=k[E>>2]|0;D=g+1|0;N=g+2|0;k[E>>2]=N;F=v<<24>>24!=0;G=(ca|0)!=0;M=(z|0)!=0;if(F|G|M){h=(j[fa>>1]|0)+N|0;k[E>>2]=h;I=g+3|0}else{h=N;I=0}K=(U|0)!=0;if(K|G|M){L=h+1|0;k[E>>2]=L;h=L}else L=N;J=h+1|0;k[E>>2]=(j[fa>>1]|0)+h;if($){P=a+492|0;Q=k[P>>2]|0;k[P>>2]=k[ga>>2];qt(a,ga,d,o);P=a}else{P=0;Q=0}do if(!(qs(V,d)|0)){if(!(i[H>>0]&32)){Bh(S,28,0,D,N)|0;v=_s(a,b,d,0,0,4,ea)|0;if(!v)break;x=v+60|0;g=k[x>>2]|0;x=k[x+4>>2]|0;y=i[v+38>>0]|0;Bh(S,103,o,N,0)|0;if(!(y<<24>>24))Bh(S,128,D,N,0)|0;at(v);A=0;z=0;w=y&255;B=0}else{y=j[n+46>>1]|0;p=k[E>>2]|0;v=p+1|0;z=y<<16>>16;p=z+1+p|0;k[E>>2]=p;A=k[X>>2]|0;k[X>>2]=A+1;Bh(S,28,0,v,0)|0;h=Bh(S,57,A,z,0)|0;q=k[a+8>>2]|0;Ch(q,-1,ms(a,n)|0,-6);q=_s(a,b,d,0,0,4,ea)|0;if(!q)break;x=q+60|0;g=k[x>>2]|0;x=k[x+4>>2]|0;m=i[q+38>>0]|0;B=m&255;if(y<<16>>16>0){y=n+4|0;w=0;do{st(S,ga,o,j[(k[y>>2]|0)+(w<<1)>>1]|0,w+v|0);w=w+1|0}while((w|0)!=(z|0))}if(!(m<<24>>24)){y=tt(S,n)|0;Ch(S,Bh(S,49,v,z,p)|0,y,z);Bh(S,110,A,p,0)|0;y=0;v=p}else{Eh(S,h);y=z}at(q);z=y;w=B;B=v}H=ha+24|0;do if(!(k[H>>2]&128))q=0;else{if(k[a+412>>2]|0){q=0;break}q=(k[E>>2]|0)+1|0;k[E>>2]=q;Bh(S,25,0,q,0)|0}while(0);p=Cs(S)|0;if(!$){h:do if((e|0)==5)kw(aa|0,1,W|0)|0;else{y=k[t>>2]|0;if(!y)break;while(1){if((i[y+50>>0]|0)==5)break;y=k[y+20>>2]|0;if(!y)break h}kw(aa|0,1,W|0)|0}while(0);do if(w){if((g|0)>-1)i[aa+(g-Y)>>0]=0;if((x|0)<=-1)break;i[aa+(x-Y)>>0]=0}while(0);ut(a,ga,55,Y,aa,0,0)|0}E=(w|0)!=0;do if(!E)if(!n){D=Bh(S,129,D,p,N)|0;Bh(S,70,o,D,N)|0;C=0;break}else{D=Cs(S)|0;Bh(S,108,A,p,0)|0;C=Bh(S,101,A,B,0)|0;Ch(S,Bh(S,68,o,D,B)|0,0,-14);break}else{if(!((i[aa+(o-Y)>>0]|0)==0|$))Ch(S,Bh(S,68,o,p,B)|0,z,-14);Bh(S,76,(n|0)!=0?B:N,p,0)|0;C=0;D=p}while(0);u=u<<24>>24==0;if(!u){Wq(a,O,L);Bh(S,38,L,0,0)|0}do if(F|M|G){if(M)v=zt(a,ga)|0;else v=0;y=At(a,ca,c,0,3,ga,e)|0|v;if((j[fa>>1]|0)>0){x=(y|0)==-1;w=ga+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}Bh(S,28,0,v+I|0,0)|0}while(0);if((_|0)==138){_=0;st(S,ga,o,v,v+I|0)}v=v+1|0}while((v|0)<(j[fa>>1]|0))}if(!(u&(n|0)==0))break;Bh(S,33,N,L,0)|0}while(0);v=At(a,ca,c,1,1,ga,e)|0;if((j[fa>>1]|0)>0){u=ga+36|0;g=c+4|0;m=0;do{i:do if((m|0)==(j[u>>1]|0))Bh(S,28,0,m+J|0,0)|0;else{h=k[f+(m<<2)>>2]|0;if((h|0)>-1){Wq(a,k[(k[g>>2]|0)+(h*20|0)>>2]|0,m+J|0);break}do if(!((k[ba>>2]&1|0)==0|(m|0)>31)){if(1<>1]|0))}do if(k[ba>>2]&1){Bt(S,ga,J);Ct(a,ca,110,c,1,ga,N,e,D);if(!n)Bh(S,70,o,D,N)|0;else Ch(S,Bh(S,68,o,D,B)|0,z,-14);g=j[fa>>1]|0;if(g<<16>>16<=0)break;u=ga+36|0;v=0;do{do if((k[f+(v<<2)>>2]|0)<0){if((v|0)==(j[u>>1]|0))break;st(S,ga,o,v,v+J|0);g=j[fa>>1]|0}while(0);v=v+1|0}while((v|0)<(g<<16>>16|0))}while(0);do if(!$){k[da>>2]=0;Dt(a,ga,Z,o,ea,L,N,R,e&255,D,da);if(M)Et(a,ga,N,0,f,U);g=(k[da>>2]|U|0)==0;do if(!g)if(!n){h=Bh(S,70,o,0,N)|0;break}else{h=Bh(S,68,o,0,B)|0;Ch(S,h,z,-14);break}else h=0;while(0);Ft(a,ga,o,ea,Z);if(M|(K|(n|0)!=0))Bh(S,95,o,0,0)|0;if(!g){g=k[S+32>>2]|0;if(g>>>0>h>>>0)k[(k[S+4>>2]|0)+(h*20|0)+8>>2]=g;k[(k[S+24>>2]|0)+88>>2]=g+-1}if(M){Et(a,ga,0,L,f,U);Gt(a,ga,o,ea,L,Z,1,0,0);Ht(a,ga,c,N,f,U);break}else{Gt(a,ga,o,ea,L,Z,1,0,0);break}}while(0);do if(k[H>>2]&128){if(k[a+412>>2]|0)break;Bh(S,37,q,1,0)|0}while(0);Ct(a,ca,110,c,2,ga,N,e,D);do if(!E){if(!n){Bh(S,16,0,D,0)|0;break}m=k[S+24>>2]|0;h=~D;do if((D|0)<0){n=k[m+112>>2]|0;if(!n)break;k[n+(h<<2)>>2]=k[S+32>>2]}while(0);k[m+88>>2]=(k[S+32>>2]|0)+-1;Bh(S,9,A,C,0)|0}while(0);m=k[S+24>>2]|0;h=~p;do if((p|0)<0){n=k[m+112>>2]|0;if(!n)break;k[n+(h<<2)>>2]=k[S+32>>2]}while(0);k[m+88>>2]=(k[S+32>>2]|0)+-1;h=k[t>>2]|0;if(h){m=0;do{n=m;m=m+1|0;if(i[aa+m>>0]|0)Bh(S,61,n+ea|0,0,0)|0;h=k[h+20>>2]|0}while((h|0)!=0)}if((o|0)<(ea|0))Bh(S,61,o,0,0)|0;do if(!(i[T>>0]|0)){if(k[a+412>>2]|0)break;xt(a)}while(0);if(!(k[H>>2]&128))break;if(k[a+412>>2]|0)break;if(i[T>>0]|0)break;Bh(S,35,q,1,0)|0;nq(S,1);if(i[(k[S>>2]|0)+65>>0]|0)break;ah(k[S+16>>2]|0,34520,-1,1,0)|0}while(0);if(P)k[P+492>>2]=Q}}}else f=0}else f=0;while(0);rg(ha,f);Io(ha,b);Sk(ha,c);Lk(ha,d);r=ia;return}function yr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0;la=r;r=r+96|0;if((r|0)>=(s|0))ka();$=la;fa=la+92|0;ha=la+88|0;I=la+68|0;V=la+64|0;L=la+32|0;_=la+28|0;k[fa>>2]=0;k[ha>>2]=0;ja=k[a>>2]|0;k[I+0>>2]=0;k[I+4>>2]=0;k[I+8>>2]=0;k[I+12>>2]=0;k[I+16>>2]=0;a:do if((k[a+64>>2]|0)==0?(K=ja+65|0,(i[K>>0]|0)==0):0){if(c)if((j[c+6>>1]&128)!=0?(k[c+52>>2]|0)==0:0){f=k[c>>2]|0;k[c>>2]=0;Rk(ja,c,1);c=0}else f=0;else{c=0;f=0}if((k[b+16>>2]|0)!=0?(ga=Or(a,b)|0,(ga|0)!=0):0){p=k[ga+68>>2]|0;b:do if(p){o=k[ja+20>>2]|0;if((o|0)>0){n=k[ja+16>>2]|0;h=0;while(1){m=h+1|0;if((k[n+(h<<4)+12>>2]|0)==(p|0)){m=h;break b}if((m|0)<(o|0))h=m;else break}}else m=0}else m=-1e6;while(0);if((((Xq(a,18,k[ga>>2]|0,0,k[(k[ja+16>>2]|0)+(m<<4)>>2]|0)|0)==0?(ca=ga+44|0,W=(l[ca>>0]|0)>>>5&1,ba=ot(a,ga,108,0,V)|0,da=(k[ga+12>>2]|0)!=0,(mr(a,ga)|0)==0):0)?(pt(a,ga,k[V>>2]|0)|0)==0:0)?(ia=Tq(a)|0,(ia|0)!=0):0){ea=a+18|0;if(!(i[ea>>0]|0)){aa=ia+88|0;j[aa>>1]=j[aa>>1]|4}aa=(c|0)!=0;Z=a+408|0;Y=k[Z>>2]|0;Y=(Y|0)==0?a:Y;Fr(a,m);U=Y+328|0;k[U>>2]=k[U>>2]|1<>0]=l[Y>>0]|(aa|(ba|0)!=0)&1;Y=(d|0)==0;c:do if((((!((c|0)==0|Y^1)?(k[a+532>>2]|0)==0:0)?(k[c+68>>2]|0)==0:0)?(Fs(a,ga)|0)==0:0)?(i[ca>>0]&16)==0:0){if((e|0)==10){if((j[ga+36>>1]|0)>-1)p=l[ga+45>>0]|0;else p=10;v=(p|0)==10?2:p}else v=e;o=k[c+32>>2]|0;if((k[o>>2]|0)==1){if(k[o+28>>2]|0){X=117;break}if(k[c+36>>2]|0){X=117;break}if(k[c+48>>2]|0){X=117;break}if(k[c+40>>2]|0){X=117;break}if(k[c+60>>2]|0){X=117;break}if(k[c+52>>2]|0){X=117;break}if(j[c+6>>1]&1){X=117;break}p=k[c>>2]|0;if((k[p>>2]|0)!=1){X=117;break}if((i[k[k[p+4>>2]>>2]>>0]|0)!=116){X=117;break}u=Zr(a,0,o+8|0)|0;if((u|0)==0|(u|0)==(ga|0)){X=117;break}y=u+44|0;U=l[y>>0]|0;if(!((U&16|0)==0?(((l[ca>>0]|0)>>>5&1^1)&255|0)==(U>>>5&1^1|0):0)){X=117;break}if(k[u+12>>2]|0){X=117;break}q=j[ga+38>>1]|0;if(q<<16>>16!=(j[u+38>>1]|0)){X=117;break}x=ga+36|0;if((j[x>>1]|0)!=(j[u+36>>1]|0)){X=117;break}if(q<<16>>16>0){h=k[ga+4>>2]|0;g=k[u+4>>2]|0;t=0;do{if((i[h+(t*24|0)+21>>0]|0)!=(i[g+(t*24|0)+21>>0]|0)){X=117;break c}p=k[h+(t*24|0)+16>>2]|0;o=k[g+(t*24|0)+16>>2]|0;n=(o|0)==0;if(!p){if(!n){X=117;break c}}else{if(n){X=117;break c}if(id(p,o)|0){X=117;break c}}if((i[h+(t*24|0)+20>>0]|0)!=0?(i[g+(t*24|0)+20>>0]|0)==0:0){X=117;break c}do if((t|0)>0){p=k[h+(t*24|0)+8>>2]|0;o=(p|0)==0;n=k[g+(t*24|0)+8>>2]|0;if(o^(n|0)==0){X=117;break c}if(o)break;if(dw(p,n)|0){X=117;break c}}while(0);t=t+1|0}while((t|0)<(q<<16>>16|0))}B=ga+8|0;p=k[B>>2]|0;if(!p)o=0;else{q=k[u+8>>2]|0;if(!q){X=117;break}else o=0;do{o=(i[p+50>>0]|0)==0?o:1;n=q;while(1){if(It(p,n)|0)break;n=k[n+20>>2]|0;if(!n){X=117;break c}}if(!n){X=117;break c}p=k[p+20>>2]|0}while((p|0)!=0)}p=k[ga+24>>2]|0;if((p|0)!=0?(Ys(k[u+24>>2]|0,p,-1)|0)!=0:0){X=117;break}n=k[a>>2]|0;p=k[n+24>>2]|0;if(!(p&524288)){if(p&128){X=117;break}}else if(!((k[ga+16>>2]|0)==0&(p&128|0)==0)){X=117;break}g=k[u+68>>2]|0;d:do if(!g)n=-1e6;else{q=k[n+20>>2]|0;if((q|0)<=0){n=0;break}p=k[n+16>>2]|0;h=0;while(1){n=h+1|0;if((k[p+(h<<4)+12>>2]|0)==(g|0)){n=h;break d}if((n|0)<(q|0))h=n;else break}}while(0);A=Tq(a)|0;Fr(a,n);w=a+68|0;C=k[w>>2]|0;z=C+1|0;k[w>>2]=C+2;w=Jt(a,m,ga)|0;q=a+19|0;h=i[q>>0]|0;do if(!(h<<24>>24)){X=a+72|0;p=(k[X>>2]|0)+1|0;k[X>>2]=p;X=78}else{U=h+-1<<24>>24;i[q>>0]=U;p=k[a+((U&255)<<2)+24>>2]|0;if(!(U<<24>>24)){X=78;break}D=h+-2<<24>>24;i[q>>0]=D;E=p;D=k[a+((D&255)<<2)+24>>2]|0}while(0);if((X|0)==78){E=a+72|0;D=(k[E>>2]|0)+1|0;k[E>>2]=D;E=p}Vq(a,z,m,ga,55);if((j[x>>1]|0)<0)if((k[B>>2]|0)!=0|(o|0)!=0|(v+-1|0)>>>0>1)X=83;else F=0;else if((o|0)!=0|(v+-1|0)>>>0>1)X=83;else F=0;if((X|0)==83){t=Bh(A,108,z,0,0)|0;q=Bh(A,16,0,0,0)|0;p=k[A+32>>2]|0;if(p>>>0>t>>>0)k[(k[A+4>>2]|0)+(t*20|0)+8>>2]=p;k[(k[A+24>>2]|0)+88>>2]=p+-1;F=q}if(!(i[y>>0]&32)){Vq(a,C,n,u,54);o=Bh(A,108,C,0,0)|0;do if((j[x>>1]|0)<=-1)if(!(k[B>>2]|0)){p=Bh(A,74,z,D,0)|0;break}else{p=Bh(A,103,C,D,0)|0;break}else{p=Bh(A,103,C,D,0)|0;t=Bh(A,70,z,0,D)|0;Kt(a,v,ga);q=k[A+32>>2]|0;if(q>>>0>t>>>0)k[(k[A+4>>2]|0)+(t*20|0)+8>>2]=q;k[(k[A+24>>2]|0)+88>>2]=q+-1;if((w|0)<=0)break;Bh(k[a+8>>2]|0,136,w,D,0)|0}while(0);Bh(A,102,C,E,0)|0;Bh(A,75,z,E,D)|0;q=k[A+4>>2]|0;if(q)i[q+(((k[A+32>>2]|0)+-1|0)*20|0)+3>>0]=11;Ch(A,-1,k[ga>>2]|0,0);Bh(A,9,C,p,0)|0;Bh(A,61,C,0,0)|0;Bh(A,61,z,0,0)|0}else{ls(a,m,k[ga+32>>2]|0,1,k[ga>>2]|0);ls(a,n,k[u+32>>2]|0,0,k[u>>2]|0);o=0}t=k[B>>2]|0;if(t){h=u+8|0;g=a+8|0;u=A+4|0;v=A+32|0;w=A+24|0;p=t;do{t=h;while(1){t=k[t>>2]|0;if(It(p,t)|0)break;t=t+20|0}Bh(A,54,C,k[t+40>>2]|0,n)|0;U=k[g>>2]|0;Ch(U,-1,ms(a,t)|0,-6);Bh(A,55,z,k[p+40>>2]|0,m)|0;t=k[g>>2]|0;Ch(t,-1,ms(a,p)|0,-6);t=k[u>>2]|0;if(t)i[t+(((k[v>>2]|0)+-1|0)*20|0)+3>>0]=1;t=Bh(A,108,C,0,0)|0;Bh(A,101,C,E,0)|0;Bh(A,110,z,E,1)|0;Bh(A,9,C,t+1|0,0)|0;q=k[v>>2]|0;if(q>>>0>t>>>0)k[(k[u>>2]|0)+(t*20|0)+8>>2]=q;k[(k[w>>2]|0)+88>>2]=q+-1;Bh(A,61,C,0,0)|0;Bh(A,61,z,0,0)|0;p=k[p+20>>2]|0}while((p|0)!=0)}if(o){p=k[A+32>>2]|0;if(p>>>0>o>>>0)k[(k[A+4>>2]|0)+(o*20|0)+8>>2]=p;k[(k[A+24>>2]|0)+88>>2]=p+-1}ds(a,D);ds(a,E);if(!F){g=0;h=0;break}Bh(A,24,0,0,0)|0;p=k[A+32>>2]|0;if(p>>>0>F>>>0)k[(k[A+4>>2]|0)+(F*20|0)+8>>2]=p;k[(k[A+24>>2]|0)+88>>2]=p+-1;Bh(A,61,z,0,0)|0;X=117}else X=117}else X=117;while(0);do if((X|0)==117){P=Jt(a,m,ga)|0;O=a+72|0;o=k[O>>2]|0;T=o+1|0;U=ga+38|0;F=j[U>>1]|0;E=F<<16>>16;p=T+E|0;k[O>>2]=p;if(!(i[ca>>0]&16))S=T;else{p=p+1|0;k[O>>2]=p;S=o+2|0}Q=S+1|0;R=(d|0)!=0;e:do if(R?(M=k[d+4>>2]|0,N=(M|0)>0,N):0){q=k[d>>2]|0;o=0;do{k[q+(o<<3)+4>>2]=-1;o=o+1|0}while((o|0)<(M|0));if(N){A=W<<24>>24!=0;z=ga+4|0;y=ga+36|0;o=1;x=0;q=-1;while(1){f:do if(F<<16>>16>0){w=k[d>>2]|0;n=k[w+(x<<3)>>2]|0;h=k[z>>2]|0;g=0;while(1){t=g+1|0;if(!(id(n,k[h+(g*24|0)>>2]|0)|0)){t=g;break}if((t|0)<(E|0))g=t;else break f}k[w+(x<<3)+4>>2]=t;o=(x|0)==(t|0)?o:0;q=(t|0)==(j[y>>1]|0)?x:q}else t=0;while(0);if((t|0)>=(E|0)){g=k[(k[d>>2]|0)+(x<<3)>>2]|0;if((ei(g)|0)==0|A)break;else{o=0;t=x}}else t=q;x=x+1|0;if((x|0)>=(M|0)){B=t;break e}else q=t}k[$>>2]=b;k[$+4>>2]=0;k[$+8>>2]=g;yh(a,33368,$);i[a+17>>0]=1;g=0;break a}else{o=1;B=-1}}else{o=1;B=-1}while(0);g:do if(!aa){k[L+0>>2]=0;k[L+4>>2]=0;k[L+8>>2]=0;k[L+12>>2]=0;k[L+16>>2]=0;k[L+20>>2]=0;k[L+24>>2]=0;k[L+28>>2]=0;k[L>>2]=a;if(f){n=k[f>>2]|0;if((n|0)>0){p=f+4|0;o=0;while(1){if(qs(L,k[(k[p>>2]|0)+(o*20|0)>>2]|0)|0){c=0;g=0;break a}o=o+1|0;if((o|0)>=(n|0)){p=0;o=-1;m=0;X=169;break}}}else{M=B;L=0;N=-1;w=0}}else{M=B;n=0;L=0;N=-1;w=0}}else{p=p+1|0;k[O>>2]=p;D=ia+32|0;q=k[D>>2]|0;Bh(ia,20,p,0,q+1|0)|0;i[I>>0]=13;E=I+4|0;k[E>>2]=p;i[I+1>>0]=0;C=I+8|0;k[C>>2]=o<<24>>24!=0?Q:0;k[I+12>>2]=j[U>>1];N=nr(a,c,I)|0;C=k[C>>2]|0;if(N){g=0;break a}if(i[K>>0]|0){g=0;break a}Bh(ia,21,p,0,0)|0;p=k[D>>2]|0;if(p>>>0>q>>>0)k[(k[ia+4>>2]|0)+(q*20|0)+8>>2]=p;F=ia+24|0;k[(k[F>>2]|0)+88>>2]=p+-1;n=k[k[c>>2]>>2]|0;h:do if(!ba){t=Tq(a)|0;o=k[t+32>>2]|0;i:do if(!(i[ca>>0]&16))q=0;else{p=k[a>>2]|0;q=k[ga+60>>2]|0;if(!q){q=0;break}while(1){if((k[q>>2]|0)==(p|0))break i;q=k[q+24>>2]|0;if(!q){q=0;break}}}while(0);if((o|0)<=1){p=C;o=0;m=0;X=169;break g}h=(i[(k[t>>2]|0)+65>>0]|0)==0;w=t+4|0;v=ga+32|0;u=ga+8|0;g=1;while(1){if(h)t=(k[w>>2]|0)+(g*20|0)|0;else t=29120;p=i[t>>0]|0;do if(p<<24>>24==54){if((k[t+12>>2]|0)!=(m|0))break;p=k[t+8>>2]|0;if((p|0)==(k[v>>2]|0))break h;t=k[u>>2]|0;if(!t)break;do{if((p|0)==(k[t+40>>2]|0))break h;t=k[t+20>>2]|0}while((t|0)!=0)}else if(p<<24>>24==-107?(k[t+16>>2]|0)==(q|0):0)break h;while(0);g=g+1|0;if((g|0)>=(o|0)){p=C;o=0;m=0;X=169;break g}}}while(0);q=a+68|0;t=k[q>>2]|0;k[q>>2]=t+1;q=a+19|0;o=i[q>>0]|0;do if(!(o<<24>>24)){p=(k[O>>2]|0)+1|0;k[O>>2]=p;X=159}else{N=o+-1<<24>>24;i[q>>0]=N;p=k[a+((N&255)<<2)+24>>2]|0;if(!(N<<24>>24)){X=159;break}N=o+-2<<24>>24;i[q>>0]=N;q=k[a+((N&255)<<2)+24>>2]|0}while(0);if((X|0)==159){q=(k[O>>2]|0)+1|0;k[O>>2]=q}Bh(ia,57,t,n,0)|0;m=Bh(ia,22,k[E>>2]|0,0,0)|0;Bh(ia,49,C,n,p)|0;Bh(ia,74,t,q,0)|0;Bh(ia,75,t,p,q)|0;Bh(ia,16,0,m,0)|0;o=k[D>>2]|0;if(o>>>0>m>>>0)k[(k[ia+4>>2]|0)+(m*20|0)+8>>2]=o;k[(k[F>>2]|0)+88>>2]=o+-1;ds(a,p);ds(a,q);p=C;o=t;m=1;X=169}while(0);if((X|0)==169)if(Y&(n|0)>0){M=j[ga+36>>1]|0;L=p;N=o;w=m}else{M=B;L=p;N=o;w=m}if((i[ca>>0]&16)!=0?(J=j[U>>1]|0,J<<16>>16>0):0){q=k[ga+4>>2]|0;o=J<<16>>16;m=0;p=0;do{p=((l[q+(m*24|0)+23>>0]|0)>>>1&1)+p|0;m=m+1|0}while((m|0)<(o|0))}else p=0;do if(Y&(n|0)!=0){p=(j[U>>1]|0)-p|0;if((n|0)==(p|0))break;k[$>>2]=b;k[$+4>>2]=0;k[$+8>>2]=p;k[$+12>>2]=n;yh(a,33400,$);g=0;break a}while(0);do if(R){p=k[d+4>>2]|0;if((n|0)==(p|0))break;k[$>>2]=n;k[$+4>>2]=p;yh(a,33456,$);g=0;break a}while(0);H=ja+24|0;if(!(k[H>>2]&128))h=0;else{h=(k[O>>2]|0)+1|0;k[O>>2]=h;Bh(ia,25,0,h,0)|0}do if(da)g=0;else{p=ut(a,ga,55,-1,0,fa,ha)|0;g=rh(ja,(p<<2)+4|0,0)|0;if(!g)break a;if((p|0)>0)o=0;else break;do{K=(k[O>>2]|0)+1|0;k[O>>2]=K;k[g+(o<<2)>>2]=K;o=o+1|0}while((o|0)!=(p|0))}while(0);J=w<<24>>24!=0;do if(J){K=Bh(ia,108,N,0,0)|0;I=k[ia+32>>2]|0}else{if(!aa){I=0;K=0;break}K=Bh(ia,22,k[I+4>>2]|0,0,0)|0;I=K}while(0);G=Cs(ia)|0;do if(k[V>>2]&1){t=(j[U>>1]|0)+1|0;E=a+60|0;q=k[E>>2]|0;D=a+56|0;p=k[D>>2]|0;if((p|0)<(t|0)){F=k[O>>2]|0;k[O>>2]=F+t;F=F+1|0}else{k[E>>2]=t+q;k[D>>2]=p-t;F=q}if((M|0)<0)Bh(ia,25,-1,F,0)|0;else{if(J)Bh(ia,47,N,M,F)|0;else Wq(a,k[(k[f+4>>2]|0)+(M*20|0)>>2]|0,F);t=Bh(ia,77,F,0,0)|0;Bh(ia,25,-1,F,0)|0;q=k[ia+32>>2]|0;if(q>>>0>t>>>0)k[(k[ia+4>>2]|0)+(t*20|0)+8>>2]=q;k[(k[ia+24>>2]|0)+88>>2]=q+-1;Bh(ia,38,F,0,0)|0}q=j[U>>1]|0;if(q<<16>>16>0){A=J|(f|0)!=0;o=d+4|0;p=F+1|0;t=f+4|0;x=a+8|0;y=ga+4|0;z=0;do{j:do if(Y)w=z;else{v=k[o>>2]|0;if((v|0)<=0){w=0;break}u=k[d>>2]|0;m=0;while(1){w=m+1|0;if((k[u+(m<<3)+4>>2]|0)==(z|0)){w=m;break j}if((w|0)<(v|0))m=w;else break}}while(0);do if(A){if(R?(w|0)>=(k[o>>2]|0):0){X=213;break}if(J){Bh(ia,47,N,w,p+z|0)|0;break}else{V=k[(k[t>>2]|0)+(w*20|0)>>2]|0;m=p+z|0;u=k[x>>2]|0;Wq(a,V,m);q=(k[O>>2]|0)+1|0;k[O>>2]=q;Bh(u,33,m,q,0)|0;i[V+38>>0]=i[V>>0]|0;i[V>>0]=-97;k[V+28>>2]=q;V=V+4|0;k[V>>2]=k[V>>2]&-4097;break}}else X=213;while(0);if((X|0)==213){X=0;Wq(a,k[(k[y>>2]|0)+(z*24|0)+4>>2]|0,p+z|0)}z=z+1|0;q=j[U>>1]|0}while((z|0)<(q<<16>>16|0))}if(!da){Bt(ia,ga,F+1|0);q=j[U>>1]|0}Ct(a,ba,108,0,1,ga,F+-1-(q<<16>>16)|0,e,G);q=(j[U>>1]|0)+1|0;it(a,F,q);if((k[D>>2]|0)>=(q|0))break;k[D>>2]=q;k[E>>2]=F}while(0);do if(!da){if(i[ca>>0]&16)Bh(ia,28,0,T,0)|0;k:do if((M|0)<=-1)if(!((i[ca>>0]&16|W)<<24>>24)){Bh(ia,74,k[fa>>2]|0,S,P)|0;F=1;break}else{Bh(ia,28,0,S,0)|0;F=0;break}else{do if(J)Bh(ia,47,N,M,S)|0;else{if(aa){Bh(ia,33,M+L|0,S,0)|0;break}Wq(a,k[(k[f+4>>2]|0)+(M*20|0)>>2]|0,S);if(!(i[(k[ia>>2]|0)+65>>0]|0)){p=(k[ia+4>>2]|0)+(((k[ia+32>>2]|0)+-1|0)*20|0)|0;if(!p)break}else p=29120;if((i[p>>0]|0)!=28)break;if(i[ca>>0]&16)break;i[p>>0]=74;k[p+4>>2]=k[fa>>2];k[p+8>>2]=S;k[p+12>>2]=P;F=1;break k}while(0);if(!(i[ca>>0]&16)){p=Bh(ia,77,S,0,0)|0;Bh(ia,74,k[fa>>2]|0,S,P)|0;o=k[ia+32>>2]|0;if(o>>>0>p>>>0)k[(k[ia+4>>2]|0)+(p*20|0)+8>>2]=o;k[(k[ia+24>>2]|0)+88>>2]=o+-1}else Bh(ia,76,S,(k[ia+32>>2]|0)+2|0,0)|0;Bh(ia,38,S,0,0)|0;F=0}while(0);if((P|0)>0)Bh(k[a+8>>2]|0,136,P,S,0)|0;if((j[U>>1]|0)>0){D=ga+36|0;E=ga+4|0;z=(n|0)==0;y=d+4|0;x=(L|0)==(Q|0);n=f+4|0;o=a+23|0;p=$+20|0;q=$+4|0;B=$+24|0;C=0;t=0;do{A=C+Q|0;l:do if((C|0)==(j[D>>1]|0))Bh(ia,29,A,0,0)|0;else{m:do if(Y)if(!(i[(k[E>>2]|0)+(C*24|0)+23>>0]&2)){w=C-t|0;X=258;break}else{t=t+1|0;break}else{v=k[y>>2]|0;if((v|0)<=0){w=0;X=258;break}u=k[d>>2]|0;m=0;while(1){w=m+1|0;if((k[u+(m<<3)+4>>2]|0)==(C|0)){w=m;X=258;break m}if((w|0)<(v|0))m=w;else{X=258;break}}}while(0);do if((X|0)==258){X=0;if((w|0)<0|z)break;if(R?(w|0)>=(k[y>>2]|0):0)break;if(J){Bh(ia,47,N,w,A)|0;break l}if(!aa){Wq(a,k[(k[n>>2]|0)+(w*20|0)>>2]|0,A);break l}if(x)break l;Bh(ia,34,w+L|0,A,0)|0;break l}while(0);w=k[(k[E>>2]|0)+(C*24|0)+4>>2]|0;do if(i[o>>0]|0){k[$+0>>2]=0;k[$+4>>2]=0;k[$+8>>2]=0;k[$+12>>2]=0;k[$+16>>2]=0;k[$+20>>2]=0;i[p>>0]=1;k[$>>2]=78;k[q>>2]=79;k[B>>2]=0;ws($,w)|0;if(!(i[p>>0]|0))break;Lt(a,w,A,0);break l}while(0);Wq(a,w,A)}while(0);C=C+1|0}while((C|0)<(j[U>>1]|0))}if(!(i[ca>>0]&16)){Dt(a,ga,g,k[fa>>2]|0,k[ha>>2]|0,T,0,M>>>31&255^1,e&255,G,_);Et(a,ga,0,T,0,0);Gt(a,ga,k[fa>>2]|0,k[ha>>2]|0,T,g,0,F,(k[_>>2]|0)==0&1);break}p=k[ga+60>>2]|0;n:do if(!p)p=0;else while(1){if((k[p>>2]|0)==(ja|0))break n;p=k[p+24>>2]|0;if(!p){p=0;break}}while(0);vt(a,ga);Ch(ia,Bh(ia,15,1,(j[U>>1]|0)+2|0,T)|0,p,-10);o=k[ia+4>>2]|0;if(o)i[o+(((k[ia+32>>2]|0)+-1|0)*20|0)+3>>0]=(e|0)==10?2:e&255;$=k[Z>>2]|0;i[(($|0)==0?a:$)+21>>0]=1}while(0);if(k[H>>2]&128)Bh(ia,37,h,1,0)|0;if(ba)Ct(a,ba,108,0,2,ga,S+-1-(j[U>>1]|0)|0,e,G);p=ia+24|0;o=k[p>>2]|0;m=~G;do if((G|0)<0){n=k[o+112>>2]|0;if(!n)break;k[n+(m<<2)>>2]=k[ia+32>>2]}while(0);n=ia+32|0;k[o+88>>2]=(k[n>>2]|0)+-1;do if(J){Bh(ia,9,N,I,0)|0;n=k[n>>2]|0;if(n>>>0>K>>>0)k[(k[ia+4>>2]|0)+(K*20|0)+8>>2]=n;k[(k[p>>2]|0)+88>>2]=n+-1;Bh(ia,61,N,0,0)|0}else{if(!aa)break;Bh(ia,16,0,I,0)|0;n=k[n>>2]|0;if(n>>>0>K>>>0)k[(k[ia+4>>2]|0)+(K*20|0)+8>>2]=n;k[(k[p>>2]|0)+88>>2]=n+-1}while(0);if((i[ca>>0]&16)!=0|da)break;m=k[fa>>2]|0;if((m|0)<(k[ha>>2]|0))Bh(ia,61,m,0,0)|0;m=k[ga+8>>2]|0;if(!m)break;else n=0;while(1){Bh(ia,61,(k[ha>>2]|0)+n|0,0,0)|0;m=k[m+20>>2]|0;if(!m)break;else n=n+1|0}}while(0);if((i[ea>>0]|0)==0?(k[a+412>>2]|0)==0:0)xt(a);if((((k[ja+24>>2]&128|0)!=0?(i[ea>>0]|0)==0:0)?(k[a+412>>2]|0)==0:0)?(Bh(ia,35,h,1,0)|0,nq(ia,1),(i[(k[ia>>2]|0)+65>>0]|0)==0):0)ah(k[ia+16>>2]|0,33488,-1,1,0)|0}else g=0}else g=0}else{g=0;f=0}while(0);Io(ja,b);Sk(ja,f);Rk(ja,c,1);Mk(ja,d);rg(ja,g);r=la;return}function zr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();d=f;if(!b){b=rh(a,8,0)|0;if(!b)b=0;else{e=b;g=e;i[g>>0]=0;i[g+1>>0]=0;i[g+2>>0]=0;i[g+3>>0]=0;e=e+4|0;i[e>>0]=0;i[e+1>>0]=0;i[e+2>>0]=0;i[e+3>>0]=0;e=4}}else e=4;do if((e|0)==4){e=Mt(a,k[b>>2]|0,8,b+4|0,d)|0;k[b>>2]=e;d=k[d>>2]|0;if((d|0)<0){Mk(a,b);b=0;break}else{a=$q(a,c)|0;k[(k[b>>2]|0)+(d<<3)>>2]=a;break}}while(0);r=f;return b|0}function Ar(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if((k[c+4>>2]|0)!=0?(e=sr(k[a>>2]|0,95,c,d)|0,(e|0)!=0):0){k[e+12>>2]=b;b=e+4|0;k[b>>2]=k[b>>2]|4352;b=e}return b|0}function Br(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=k[a>>2]|0;c=sr(d,153,c,1)|0;if(!c){Sk(d,b);c=0}else{k[c+20>>2]=b;Dr(a,c)}return c|0}function Cr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=k[a>>2]|0;if((b|0)!=0&(c|0)!=0?(i[b>>0]|0)==101:0){i[c>>0]=d;d=c+16|0;Lk(a,k[d>>2]|0);k[d>>2]=0}return}function Dr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();d=e;if((k[a+64>>2]|0)==0?(Nt(b),c=k[(k[a>>2]|0)+100>>2]|0,(c|0)<(k[b+24>>2]|0)):0){k[d>>2]=c;yh(a,27152,d)}r=e;return}function Er(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=k[a>>2]|0;h=c+20|0;d=k[h>>2]|0;if((d|0)>0){f=c+16|0;g=(b|0)==0;c=d;e=0;do{d=k[f>>2]|0;do if(k[d+(e<<4)+4>>2]|0){if(!g?(id(b,k[d+(e<<4)>>2]|0)|0)!=0:0)break;Fr(a,e);c=k[h>>2]|0}while(0);e=e+1|0}while((e|0)<(c|0))}return}function Fr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=k[a+408>>2]|0;e=(e|0)==0?a:e;a=e+332|0;c=k[a>>2]|0;d=1<>2]|0,k[a>>2]=c|d,k[e+(b<<2)+336>>2]=k[k[(k[f+16>>2]|0)+(b<<4)+12>>2]>>2],(b|0)==1):0)dl(e)|0;return}function Gr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;m=r;r=r+128|0;if((r|0)>=(s|0))ka();d=m+8|0;l=m;j=m+24|0;k[l>>2]=0;g=k[a>>2]|0;if((k[a+64>>2]|0)==0?(k[d>>2]=c,h=$k(g,b,d)|0,(h|0)!=0):0){b=a+18|0;i[b>>0]=(i[b>>0]|0)+1<<24>>24;c=a+440|0;d=j+0|0;e=c+0|0;f=d+96|0;do{i[d>>0]=i[e>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));d=c+0|0;f=d+96|0;do{k[d>>2]=0;d=d+4|0}while((d|0)<(f|0));Qh(a,h,l)|0;rg(g,k[l>>2]|0);rg(g,h);d=c+0|0;e=j+0|0;f=d+96|0;do{i[d>>0]=i[e>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));i[b>>0]=(i[b>>0]|0)+-1<<24>>24}r=m;return}function Hr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;h=r;r=r+48|0;if((r|0)>=(s|0))ka();f=h;g=h+16|0;b=k[(k[(k[a>>2]|0)+16>>2]|0)+(b<<4)>>2]|0;e=1;do{k[f>>2]=e;fd(24,g,33272,f)|0;if(di(k[a>>2]|0,g,b)|0){k[f>>2]=b;k[f+4>>2]=g;k[f+8>>2]=c;k[f+12>>2]=d;Gr(a,28840,f)}e=e+1|0}while((e|0)!=5);r=h;return}function Ir(a,b){a=a|0;b=b|0;var c=0,d=0;c=a+19|0;d=i[c>>0]|0;if(!(d<<24>>24)){d=a+72|0;c=(k[d>>2]|0)+1|0;k[d>>2]=c}else{d=d+-1<<24>>24;i[c>>0]=d;c=k[a+((d&255)<<2)+24>>2]|0}d=k[a+8>>2]|0;Bh(d,25,(k[k[(k[(k[a>>2]|0)+16>>2]|0)+(b<<4)+12>>2]>>2]|0)+1|0,c,0)|0;Bh(d,52,b,1,c)|0;ds(a,c);return}function Jr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=r;r=r+32|0;if((r|0)>=(s|0))ka();g=h;f=Tq(a)|0;d=a+19|0;e=i[d>>0]|0;if(!(e<<24>>24)){e=a+72|0;d=(k[e>>2]|0)+1|0;k[e>>2]=d}else{e=e+-1<<24>>24;i[d>>0]=e;d=k[a+((e&255)<<2)+24>>2]|0}Bh(f,117,b,d,c)|0;e=k[a+408>>2]|0;i[((e|0)==0?a:e)+21>>0]=1;k[g>>2]=k[(k[(k[a>>2]|0)+16>>2]|0)+(c<<4)>>2];k[g+4>>2]=(c|0)==1?13184:13208;k[g+8>>2]=b;k[g+12>>2]=d;k[g+16>>2]=d;Gr(a,33216,g);ds(a,d);r=h;return}function Kr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,n=0,o=0,p=0,q=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=r;r=r+96|0;if((r|0)>=(s|0))ka();D=U+24|0;t=U+80|0;g=U+64|0;x=U+16|0;o=U+60|0;p=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;n=U;T=k[a>>2]|0;Q=Tq(a)|0;do if((Q|0)!=0?(P=Q+88|0,j[P>>1]=j[P>>1]|16,P=a+72|0,k[P>>2]=2,N=jr(a,b,c,t)|0,(N|0)>=0):0){O=T+16|0;z=k[O>>2]|0;if((N|0)==1?(dl(a)|0)!=0:0)break;S=$q(T,k[t>>2]|0)|0;if(S){if(!e)R=$q(T,d)|0;else{k[D>>2]=d;R=zh(T,30104,D)|0}y=c+4|0;if(!(k[y>>2]|0))I=0;else I=k[z+(N<<4)>>2]|0;a:do if(!(Xq(a,19,S,R,I)|0)){k[g>>2]=0;k[g+4>>2]=S;k[g+8>>2]=R;k[g+12>>2]=0;h=T+452|0;k[h>>2]=0;b=hg(T,I,14,g)|0;if((b|0)==12){t=0;g=56;b:while(1){while(1){e=(t+g|0)/2|0;b=k[30120+(e*12|0)>>2]|0;d=id(S,b)|0;if(!d){t=e;break b}if((d|0)<0){b=e;break}if((e|0)<(g|0))t=e+1|0;else break a}b=b+-1|0;if((t|0)>(b|0))break a;else g=b}if((i[30125+(t*12|0)>>0]&1)!=0?(Ln(a)|0)!=0:0)break;do switch(l[30124+(t*12|0)>>0]|0){case 1:{d=k[z+(N<<4)+4>>2]|0;if(!R){f=k[d+4>>2]|0;k[f+4>>2]=k[d>>2];if(!(i[f+17>>0]|0)){f=0;e=0}else{e=(i[f+18>>0]|0)==0;f=e?1:2;e=e?0:0}Ot(a,30976,f,e);break a}if(id(R,32192)|0)if(id(R,31880)|0)if(!(id(R,32200)|0))f=2;else{k[D>>2]=0;In(R,D)|0;f=k[D>>2]|0;f=f>>>0<3?f&255:0}else f=1;else f=0;i[T+67>>0]=f;h=f+-1|0;if(!((An(d,f)|0)==0&h>>>0<2))break a;e=Dh(Q,6,30992)|0;g=k[Q+32>>2]|0;if(g>>>0>e>>>0)k[(k[Q+4>>2]|0)+(e*20|0)+4>>2]=N;d=e+1|0;if(g>>>0>d>>>0)k[(k[Q+4>>2]|0)+(d*20|0)+4>>2]=N;d=e+2|0;f=e+4|0;if(g>>>0>d>>>0)k[(k[Q+4>>2]|0)+(d*20|0)+8>>2]=f;if(g>>>0>f>>>0)k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=h;f=e+5|0;if(g>>>0>f>>>0)k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;D=Q+96|0;k[D>>2]=k[D>>2]|1<>2]|0)+80>>2]|0;Ot(a,30848,D,((D|0)<0)<<31>>31);break a}else{k[D>>2]=0;In(R,D)|0;D=k[D>>2]|0;k[(k[z+(N<<4)+12>>2]|0)+80>>2]=D;uq(k[z+(N<<4)+4>>2]|0,D);break a}case 23:{Ot(a,31016,0,0);break a}case 31:{if(!R){Ot(a,31032,l[T+64>>0]|0,0);break a}e=i[R>>0]|0;if((e+-48&255)>=3)if(!(id(R,31352)|0))e=1;else{e=(id(R,15168)|0)==0;e=e?2:0}else e=(e<<24>>24)+-48|0;f=(k[a>>2]|0)+64|0;if((l[f>>0]|0)==(e|0))break a;if(Pt(a)|0)break a;i[f>>0]=e;break a}case 32:{if(!R){if(!(k[2708]|0))break a;nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,31048,-1,1,0)|0;D=k[2708]|0;Ch(Q,Bh(Q,97,0,1,0)|0,D,0);Bh(Q,35,1,1,0)|0;break a}if((i[R>>0]|0)!=0?(C=k[T>>2]|0,C=(uc[k[C+32>>2]&31](C,R,1,p)|0)!=0,C|(k[p>>2]|0)==0):0){yh(a,31072,D);break a}if((l[T+64>>0]|0)<2)Pt(a)|0;$c(k[2708]|0);if(!(i[R>>0]|0)){k[2708]=0;break a}else{k[D>>2]=R;D=dd(10344,D)|0;k[2708]=D;break a}}case 14:{if(!((R|0)!=0?(D=(In(R,o)|0)==0,f=k[o>>2]|0,!(D|(f|0)<1)):0)){k[o>>2]=2147483647;f=2147483647}e=k[a+408>>2]|0;Fr(a,N);e=((e|0)==0?a:e)+328|0;k[e>>2]=k[e>>2]|1<>2]|0;if(e>>>0>f>>>0)k[(k[Q+4>>2]|0)+(f*20|0)+8>>2]=e;k[(k[Q+24>>2]|0)+88>>2]=e+-1;break a}case 18:{nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,30936,-1,1,0)|0;c:do if(R){d=R;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;f=d-R&1073741823;d=0;while(1){if(!(Kc(R,k[32216+(d<<2)>>2]|0,f)|0))break;d=d+1|0;if((d|0)==6){M=91;break c}}if((d|0)!=-1)g=N;else M=91}else M=91;while(0);if((M|0)==91)if(!(k[y>>2]|0)){k[y>>2]=1;d=-1;g=0}else{d=-1;g=N}f=k[T+20>>2]|0;if((f|0)>0){e=Q+96|0;do{f=f+-1|0;do if(k[(k[O>>2]|0)+(f<<4)+4>>2]|0){if((f|0)!=(g|0)?(k[y>>2]|0)!=0:0)break;k[e>>2]=k[e>>2]|1<0)}Bh(Q,35,1,1,0)|0;break a}case 22:{Fr(a,N);d=(k[P>>2]|0)+1|0;k[P>>2]=d;if((i[S>>0]&-33)<<24>>24==80)Bh(Q,153,N,d,0)|0;else{k[D>>2]=0;if(R){In(R,D)|0;f=k[D>>2]|0;if((f|0)<=-1)f=(f|0)==-2147483648?2147483647:0-f|0}else f=0;Bh(Q,154,N,d,f)|0}Bh(Q,35,d,1,0)|0;nq(Q,1);if(i[(k[Q>>2]|0)+65>>0]|0)break a;ah(k[Q+16>>2]|0,S,-1,1,-1)|0;break a}case 25:{e=k[z+(N<<4)+4>>2]|0;if(R){f=(ni(R,1,0)|0)<<24>>24!=0&1;if((k[y>>2]|0)==0?(v=T+20|0,(k[v>>2]|0)>0):0){d=0;do{xo(k[(k[O>>2]|0)+(d<<4)+4>>2]|0,f)|0;d=d+1|0}while((d|0)<(k[v>>2]|0))}}else f=-1;D=xo(e,f)|0;Ot(a,30880,D,((D|0)<0)<<31>>31);break a}case 24:{e=k[z+(N<<4)+4>>2]|0;if(R){k[D>>2]=0;In(R,D)|0;D=k[D>>2]|0;k[T+72>>2]=D;if((Cg(e,D,-1,0)|0)!=7)break a;i[T+65>>0]=1;break a}if(!e){e=0;f=0}else{f=k[(k[e+4>>2]|0)+32>>2]|0;e=f;f=((f|0)<0)<<31>>31}Ot(a,30864,e,f);break a}case 29:{if(!R){D=(l[z+(N<<4)+8>>0]|0)+-1|0;Ot(a,31104,D,((D|0)<0)<<31>>31);break a}if(!(i[T+63>>0]|0)){yh(a,31120,D);break a}else{D=((ni(R,0,1)|0)&255)+1&255;i[z+(N<<4)+8>>0]=D;Qt(T);break a}}case 30:{if(!R)break a;c=di(T,R,I)|0;if(!c)break a;d=k[c+8>>2]|0;d:do if(!d)d=0;else while(1){if((i[d+51>>0]&3)==2)break d;d=k[d+20>>2]|0;if(!d){d=0;break}}while(0);nq(Q,6);k[P>>2]=6;Fr(a,N);do if((((i[(k[Q>>2]|0)+65>>0]|0)==0?(ah(k[Q+16>>2]|0,31176,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)?(ah((k[Q+16>>2]|0)+40|0,31184,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)?(ah((k[Q+16>>2]|0)+80|0,31192,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0){ah((k[Q+16>>2]|0)+120|0,31200,-1,1,0)|0;if(i[(k[Q>>2]|0)+65>>0]|0)break;ah((k[Q+16>>2]|0)+160|0,31208,-1,1,0)|0;if(i[(k[Q>>2]|0)+65>>0]|0)break;ah((k[Q+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);mr(a,c)|0;o=c+38|0;f=j[o>>1]|0;if(f<<16>>16<=0)break a;p=(d|0)==0;e=d+4|0;t=0;h=0;b=k[c+4>>2]|0;while(1){n=b+23|0;if(!(i[n>>0]&2)){Bh(Q,25,t-h|0,1,0)|0;g=k[b>>2]|0;Ch(Q,Bh(Q,97,0,2,0)|0,g,0);g=k[b+12>>2]|0;Ch(Q,Bh(Q,97,0,3,0)|0,(g|0)==0?10360:g,0);Bh(Q,25,(i[b+20>>0]|0)!=0&1,4,0)|0;g=k[b+8>>2]|0;if(!g)Bh(Q,28,0,5,0)|0;else Ch(Q,Bh(Q,97,0,5,0)|0,g,0);d=i[n>>0]&1;e:do if(d<<24>>24==0|p)g=(d^1)&255^1;else{g=j[o>>1]|0;if(g<<16>>16<1){g=1;break}f=k[e>>2]|0;n=g<<16>>16;d=1;while(1){g=d+1|0;if((j[f+(d+-1<<1)>>1]|0)==(t|0)){g=d;break e}if((d|0)<(n|0))d=g;else break}}while(0);Bh(Q,25,g,6,0)|0;Bh(Q,35,1,6,0)|0;f=j[o>>1]|0}else h=h+1|0;t=t+1|0;if((t|0)>=(f<<16>>16|0))break;else b=b+24|0}break}case 19:{d=k[k[(k[z+(N<<4)+4>>2]|0)+4>>2]>>2]|0;D=x;k[D>>2]=-2;k[D+4>>2]=-1;if(R){oi(R,x)|0;f=x;e=k[f>>2]|0;f=k[f+4>>2]|0;if((f|0)<-1|(f|0)==-1&e>>>0<4294967295){e=x;k[e>>2]=-1;k[e+4>>2]=-1;e=-1;f=-1}D=d+160|0;k[D>>2]=e;k[D+4>>2]=f;d=k[d+208>>2]|0;if(d){D=d+16|0;k[D>>2]=e;k[D+4>>2]=f}}else{f=d+160|0;e=k[f>>2]|0;f=k[f+4>>2]|0}D=x;k[D>>2]=e;k[D+4>>2]=f;Ot(a,30952,e,f);break a}case 28:{g=Tq(a)|0;nq(g,4);k[P>>2]=4;Fr(a,N);if((((i[(k[g>>2]|0)+65>>0]|0)==0?(ah(k[g+16>>2]|0,31232,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)?(ah((k[g+16>>2]|0)+40|0,20632,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)?(ah((k[g+16>>2]|0)+80|0,31240,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)ah((k[g+16>>2]|0)+120|0,31248,-1,1,0)|0;e=k[(k[z+(N<<4)+12>>2]|0)+16>>2]|0;if(!e)break a;do{f=k[e+8>>2]|0;D=k[f>>2]|0;Ch(g,Bh(g,97,0,1,0)|0,D,0);Bh(g,28,0,2,0)|0;D=$s(j[f+42>>1]|0)|0;Bh(g,25,D,3,0)|0;D=$s(j[f+28>>1]|0)|0;Bh(g,25,D,4,0)|0;Bh(g,35,1,4,0)|0;f=k[f+8>>2]|0;if(f)do{D=k[f>>2]|0;Ch(g,Bh(g,97,0,2,0)|0,D,0);D=$s(j[f+44>>1]|0)|0;Bh(g,25,D,3,0)|0;D=$s(j[k[f+8>>2]>>1]|0)|0;Bh(g,25,D,4,0)|0;Bh(g,35,1,4,0)|0;f=k[f+20>>2]|0}while((f|0)!=0);e=k[e>>2]|0}while((e|0)!=0);break}case 15:{if(!R)break a;n=gq(T,R,I)|0;if(!n)break a;t=(k[30128+(t*12|0)>>2]|0)==0;o=n+46|0;D=t?3:6;h=j[(t?o:n+48|0)>>1]|0;p=h&65535;k[P>>2]=D;g=k[n+12>>2]|0;nq(Q,D);Fr(a,N);if(((i[(k[Q>>2]|0)+65>>0]|0)==0?(ah(k[Q+16>>2]|0,31256,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)?(ah((k[Q+16>>2]|0)+40|0,31176,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)ah((k[Q+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!t?(i[(k[Q>>2]|0)+65>>0]|0)==0:0)?(ah((k[Q+16>>2]|0)+120|0,31264,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)?(ah((k[Q+16>>2]|0)+160|0,31272,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)ah((k[Q+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(h<<16>>16))break a;f=n+4|0;e=n+28|0;d=n+32|0;n=g+4|0;g=0;do{D=j[(k[f>>2]|0)+(g<<1)>>1]|0;Bh(Q,25,g,1,0)|0;h=D<<16>>16;Bh(Q,25,h,2,0)|0;if(D<<16>>16<0)Bh(Q,28,0,3,0)|0;else{D=k[(k[n>>2]|0)+(h*24|0)>>2]|0;Ch(Q,Bh(Q,97,0,3,0)|0,D,0)}if(!t){Bh(Q,25,l[(k[e>>2]|0)+g>>0]|0,4,0)|0;D=k[(k[d>>2]|0)+(g<<2)>>2]|0;Ch(Q,Bh(Q,97,0,5,0)|0,D,0);Bh(Q,25,(g|0)<(m[o>>1]|0)&1,6,0)|0}Bh(Q,35,1,k[P>>2]|0,0)|0;g=g+1|0}while((g|0)<(p|0));break}case 5:{if(!R)break a;D=(ni(R,1,0)|0)<<24>>24!=0;C=D?32e3:19240;Vh(T,19248,2,1,C,40,0,0,0)|0;Vh(T,19248,3,1,C,40,0,0,0)|0;Vh(T,19232,2,1,10352,40,0,0,0)|0;Tt(T,19232,12);Tt(T,19248,D?12:4);break a}case 17:{b=i[S>>0]|0;x=(k[c>>2]|0)==0?-1:N;k[P>>2]=6;nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,31464,-1,1,0)|0;k[w>>2]=100;if(R){In(R,w)|0;n=k[w>>2]|0;if((n|0)<1){k[w>>2]=100;n=100}}else n=100;Bh(Q,25,n,1,0)|0;J=T+20|0;t=k[J>>2]|0;if((t|0)>0){I=(x|0)<0;f=Q+32|0;F=Q+4|0;E=Q+24|0;K=(b&-33)<<24>>24==81;L=0;do{if(I|(L|0)==(x|0)){Fr(a,L);t=Bh(Q,137,1,0,0)|0;Bh(Q,24,0,0,0)|0;e=k[f>>2]|0;if(e>>>0>t>>>0)k[(k[F>>2]|0)+(t*20|0)+8>>2]=e;k[(k[E>>2]|0)+88>>2]=e+-1;d=(k[(k[O>>2]|0)+(L<<4)+12>>2]|0)+16|0;t=k[d>>2]|0;if(!t)b=0;else{b=0;do{e=k[t+8>>2]|0;if(!(i[e+44>>0]&32)){Bh(Q,25,k[e+32>>2]|0,b+2|0,0)|0;b=b+1|0}e=k[e+8>>2]|0;if(e)do{Bh(Q,25,k[e+40>>2]|0,b+2|0,0)|0;b=b+1|0;e=k[e+20>>2]|0}while((e|0)!=0);t=k[t>>2]|0}while((t|0)!=0)}z=k[P>>2]|0;t=b+8|0;k[P>>2]=(z|0)>(t|0)?z:t;Bh(Q,127,2,b,1)|0;t=k[F>>2]|0;if(t)i[t+(((k[f>>2]|0)+-1|0)*20|0)+3>>0]=L;b=Bh(Q,76,2,0,0)|0;k[D>>2]=k[(k[O>>2]|0)+(L<<4)>>2];t=zh(T,31480,D)|0;Ch(Q,Bh(Q,97,0,3,0)|0,t,-1);Bh(Q,32,2,4,1)|0;Bh(Q,94,4,3,2)|0;Bh(Q,35,2,1,0)|0;t=k[f>>2]|0;if(t>>>0>b>>>0)k[(k[F>>2]|0)+(b*20|0)+8>>2]=t;k[(k[E>>2]|0)+88>>2]=t+-1;t=k[d>>2]|0;if(!((t|0)==0|K))do{u=k[t+8>>2]|0;G=u+8|0;b=k[G>>2]|0;do if(b){f:do if(!(i[u+44>>0]&32))b=0;else while(1){if((i[b+51>>0]&3)==2)break f;b=k[b+20>>2]|0;if(!b){b=0;break}}while(0);e=Bh(Q,137,1,0,0)|0;Bh(Q,24,0,0,0)|0;d=k[f>>2]|0;if(d>>>0>e>>>0)k[(k[F>>2]|0)+(e*20|0)+8>>2]=d;k[(k[E>>2]|0)+88>>2]=d+-1;ft(a);ut(a,u,54,1,0,A,B)|0;Bh(Q,25,0,7,0)|0;d=k[G>>2]|0;if(!d)e=8;else{e=0;while(1){Bh(Q,25,0,e+8|0,0)|0;d=k[d+20>>2]|0;if(!d)break;else e=e+1|0}e=e+9|0}H=k[P>>2]|0;k[P>>2]=(H|0)>(e|0)?H:e;Bh(Q,108,k[A>>2]|0,0,0)|0;H=Bh(Q,37,7,1,0)|0;p=u+38|0;e=j[p>>1]|0;if(e<<16>>16>0){c=u+36|0;q=u+4|0;o=0;do{do if((o|0)!=(j[c>>1]|0)){if(!(i[(k[q>>2]|0)+(o*24|0)+20>>0]|0))break;st(Q,u,k[A>>2]|0,o,3);e=k[F>>2]|0;if(e)i[e+(((k[f>>2]|0)+-1|0)*20|0)+3>>0]=-128;e=Bh(Q,77,3,0,0)|0;Bh(Q,37,1,-1,0)|0;g=k[(k[q>>2]|0)+(o*24|0)>>2]|0;k[D>>2]=k[u>>2];k[D+4>>2]=g;g=zh(T,31504,D)|0;Ch(Q,Bh(Q,97,0,3,0)|0,g,-1);Bh(Q,35,3,1,0)|0;g=Bh(Q,137,1,0,0)|0;Bh(Q,24,0,0,0)|0;h=k[f>>2]|0;if(h>>>0>e>>>0)k[(k[F>>2]|0)+(e*20|0)+8>>2]=h;e=h+-1|0;d=(k[E>>2]|0)+88|0;k[d>>2]=e;if(h>>>0>g>>>0)k[(k[F>>2]|0)+(g*20|0)+8>>2]=h;k[d>>2]=e;e=j[p>>1]|0}while(0);o=o+1|0}while((o|0)<(e<<16>>16|0))}e=k[G>>2]|0;if(e){w=u+4|0;v=0;h=0;d=-1;while(1){g=Cs(Q)|0;if((b|0)!=(e|0)){d=Ut(a,e,k[A>>2]|0,0,0,C,h,d)|0;Bh(Q,37,v+8|0,1,0)|0;u=m[e+48>>1]|0;g=Bh(Q,69,(k[B>>2]|0)+v|0,g,d)|0;Ch(Q,g,u,-14);Bh(Q,37,1,-1,0)|0;Ch(Q,Bh(Q,97,0,3,0)|0,31528,-2);Bh(Q,94,7,3,3)|0;Ch(Q,Bh(Q,97,0,4,0)|0,31536,-2);Bh(Q,94,4,3,3)|0;u=k[e>>2]|0;q=Bh(Q,97,0,4,0)|0;Ch(Q,q,u,0);Bh(Q,94,4,3,3)|0;Bh(Q,35,3,1,0)|0;u=Bh(Q,137,1,0,0)|0;Bh(Q,24,0,0,0)|0;h=k[f>>2]|0;if(h>>>0>g>>>0)k[(k[F>>2]|0)+(g*20|0)+8>>2]=h;g=k[E>>2]|0;k[g+88>>2]=h+-1;if(i[e+50>>0]|0){c=Cs(Q)|0;p=e+46|0;g=j[p>>1]|0;if(g<<16>>16){o=e+4|0;h=0;do{if(!(i[(k[w>>2]|0)+((j[(k[o>>2]|0)+(h<<1)>>1]|0)*24|0)+20>>0]|0)){Bh(Q,76,h+d|0,c,0)|0;g=j[p>>1]|0}h=h+1|0}while((h|0)<(g&65535|0))}g=Bh(Q,9,(k[B>>2]|0)+v|0,0,0)|0;Bh(Q,16,0,c,0)|0;h=k[f>>2]|0;if(h>>>0>g>>>0)k[(k[F>>2]|0)+(g*20|0)+8>>2]=h;k[(k[E>>2]|0)+88>>2]=h+-1;g=m[p>>1]|0;Ch(Q,Bh(Q,114,(k[B>>2]|0)+v|0,c,d)|0,g,-14);Bh(Q,37,1,-1,0)|0;Ch(Q,Bh(Q,97,0,3,0)|0,31560,-2);Bh(Q,16,0,q,0)|0;g=k[E>>2]|0;o=~c;do if((c|0)<0){h=k[g+112>>2]|0;if(!h)break;k[h+(o<<2)>>2]=k[f>>2]}while(0);h=k[f>>2]|0;k[g+88>>2]=h+-1}if(h>>>0>u>>>0)k[(k[F>>2]|0)+(u*20|0)+8>>2]=h;k[g+88>>2]=h+-1;Vt(a,k[C>>2]|0);h=e}e=k[e+20>>2]|0;if(!e)break;else v=v+1|0}}Bh(Q,9,k[A>>2]|0,H,0)|0;e=H+-1|0;d=k[f>>2]|0;if(d>>>0>e>>>0)k[(k[F>>2]|0)+(e*20|0)+8>>2]=d;k[(k[E>>2]|0)+88>>2]=d+-1;Ch(Q,Bh(Q,97,0,2,0)|0,31592,-2);e=k[G>>2]|0;if(!e)break;else g=0;while(1){if((b|0)!=(e|0)){d=k[f>>2]|0;Bh(Q,137,1,d+2|0,0)|0;Bh(Q,24,0,0,0)|0;Bh(Q,50,(k[B>>2]|0)+g|0,3,0)|0;Bh(Q,79,g+8|0,d+8|0,3)|0;d=k[F>>2]|0;if(d)i[d+(((k[f>>2]|0)+-1|0)*20|0)+3>>0]=-112;Bh(Q,37,1,-1,0)|0;z=k[e>>2]|0;Ch(Q,Bh(Q,97,0,3,0)|0,z,0);Bh(Q,94,3,2,7)|0;Bh(Q,35,7,1,0)|0}e=k[e+20>>2]|0;if(!e)break;else g=g+1|0}}while(0);t=k[t>>2]|0}while((t|0)!=0);t=k[J>>2]|0}L=L+1|0}while((L|0)<(t|0))}else f=Q+32|0;e=Dh(Q,3,31448)|0;f=k[f>>2]|0;if(f>>>0>e>>>0){k[(k[Q+4>>2]|0)+(e*20|0)+12>>2]=0-n;k[(k[Q+4>>2]|0)+(e*20|0)+8>>2]=f}k[(k[Q+24>>2]|0)+88>>2]=f+-1;Ch(Q,e+1|0,31624,-2);break a}case 21:{do if(R){if(id(R,30904)|0)if(!(id(R,30896)|0))d=0;else{M=66;break}else d=1;if(!(k[y>>2]|0)){n=k[T+20>>2]|0;if((n|0)>2){g=k[O>>2]|0;f=d&255;h=2;do{e=k[k[(k[g+(h<<4)+4>>2]|0)+4>>2]>>2]|0;do if(!(i[e+12>>0]|0)){D=k[e+208>>2]|0;if((D|0)!=0?(i[D+43>>0]|0)==2:0)break;i[e+4>>0]=f}while(0);h=h+1|0}while((h|0)<(n|0))}else f=d&255;i[T+66>>0]=f;M=74}else M=74}else M=66;while(0);if((M|0)==66)if(!(k[y>>2]|0))e=T+66|0;else{d=-1;M=74}if((M|0)==74){f=k[k[(k[z+(N<<4)+4>>2]|0)+4>>2]>>2]|0;do if((d|0)>-1?(i[f+12>>0]|0)==0:0){D=k[f+208>>2]|0;if((D|0)!=0?(i[D+43>>0]|0)==2:0)break;i[f+4>>0]=d}while(0);e=f+4|0}e=(i[e>>0]|0)==1?30904:30896;nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,30920,-1,1,0)|0;Ch(Q,Bh(Q,97,0,1,0)|0,e,0);Bh(Q,35,1,1,0)|0;break a}case 9:{nq(Q,3);k[P>>2]=3;if(((i[(k[Q>>2]|0)+65>>0]|0)==0?(ah(k[Q+16>>2]|0,31288,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)?(ah((k[Q+16>>2]|0)+40|0,31184,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)ah((k[Q+16>>2]|0)+80|0,31352,-1,1,0)|0;e=T+20|0;f=k[e>>2]|0;if((f|0)>0)g=0;else break a;do{if(k[(k[O>>2]|0)+(g<<4)+4>>2]|0){Bh(Q,25,g,1,0)|0;d=k[(k[O>>2]|0)+(g<<4)>>2]|0;Ch(Q,Bh(Q,97,0,2,0)|0,d,0);d=k[k[(k[(k[O>>2]|0)+(g<<4)+4>>2]|0)+4>>2]>>2]|0;if(!(i[d+15>>0]|0))d=k[d+168>>2]|0;else d=10360;Ch(Q,Bh(Q,97,0,3,0)|0,d,0);Bh(Q,35,1,3,0)|0;f=k[e>>2]|0}g=g+1|0}while((g|0)<(f|0));break}case 6:{nq(Q,2);k[P>>2]=2;if((i[(k[Q>>2]|0)+65>>0]|0)==0?(ah(k[Q+16>>2]|0,31288,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)ah((k[Q+16>>2]|0)+40|0,31184,-1,1,0)|0;f=k[T+436>>2]|0;if(!f)break a;else e=0;while(1){D=k[f+8>>2]|0;Bh(Q,25,e,1,0)|0;D=k[D>>2]|0;Ch(Q,Bh(Q,97,0,2,0)|0,D,0);Bh(Q,35,1,2,0)|0;f=k[f>>2]|0;if(!f)break;else e=e+1|0}break}case 13:{if(!R)break a;d=di(T,R,I)|0;if(!d)break a;b=Tq(a)|0;g=k[d+16>>2]|0;if(!g)break a;nq(b,8);k[P>>2]=8;Fr(a,N);do if((((i[(k[b>>2]|0)+65>>0]|0)==0?(ah(k[b+16>>2]|0,31360,-1,1,0)|0,(i[(k[b>>2]|0)+65>>0]|0)==0):0)?(ah((k[b+16>>2]|0)+40|0,31288,-1,1,0)|0,(i[(k[b>>2]|0)+65>>0]|0)==0):0)?(ah((k[b+16>>2]|0)+80|0,31232,-1,1,0)|0,(i[(k[b>>2]|0)+65>>0]|0)==0):0){ah((k[b+16>>2]|0)+120|0,31368,-1,1,0)|0;if(i[(k[b>>2]|0)+65>>0]|0)break;ah((k[b+16>>2]|0)+160|0,31376,-1,1,0)|0;if(i[(k[b>>2]|0)+65>>0]|0)break;ah((k[b+16>>2]|0)+200|0,31384,-1,1,0)|0;if(i[(k[b>>2]|0)+65>>0]|0)break;ah((k[b+16>>2]|0)+240|0,31400,-1,1,0)|0;if(i[(k[b>>2]|0)+65>>0]|0)break;ah((k[b+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);q=d+4|0;t=0;while(1){d=g+20|0;if((k[d>>2]|0)>0){f=g+25|0;e=g+26|0;o=g+8|0;c=0;do{p=k[g+(c<<3)+40>>2]|0;n=l[f>>0]|0;if((n|0)==8)h=32072;else if((n|0)==9)h=32088;else if((n|0)==6)h=32096;else if((n|0)==7)h=32056;else h=32112;n=l[e>>0]|0;if((n|0)==8)n=32072;else if((n|0)==9)n=32088;else if((n|0)==6)n=32096;else if((n|0)==7)n=32056;else n=32112;Bh(b,25,t,1,0)|0;Bh(b,25,c,2,0)|0;D=k[o>>2]|0;Ch(b,Bh(b,97,0,3,0)|0,D,0);D=k[(k[q>>2]|0)+((k[g+(c<<3)+36>>2]|0)*24|0)>>2]|0;Ch(b,Bh(b,97,0,4,0)|0,D,0);Ch(b,Bh(b,(p|0)!=0?97:28,0,5,0)|0,p,0);Ch(b,Bh(b,97,0,6,0)|0,n,0);Ch(b,Bh(b,97,0,7,0)|0,h,0);Ch(b,Bh(b,97,0,8,0)|0,31424,0);Bh(b,35,1,8,0)|0;c=c+1|0}while((c|0)<(k[d>>2]|0))}g=k[g+4>>2]|0;if(!g)break;else t=t+1|0}break}case 12:{b=k[P>>2]|0;E=b+1|0;F=b+5|0;G=b+6|0;k[P>>2]=G;H=Tq(a)|0;nq(H,4);if((((i[(k[H>>2]|0)+65>>0]|0)==0?(ah(k[H+16>>2]|0,31232,-1,1,0)|0,(i[(k[H>>2]|0)+65>>0]|0)==0):0)?(ah((k[H+16>>2]|0)+40|0,20456,-1,1,0)|0,(i[(k[H>>2]|0)+65>>0]|0)==0):0)?(ah((k[H+16>>2]|0)+80|0,31432,-1,1,0)|0,(i[(k[H>>2]|0)+65>>0]|0)==0):0)ah((k[H+16>>2]|0)+120|0,31440,-1,1,0)|0;Fr(a,N);t=k[(k[(k[O>>2]|0)+(N<<4)+12>>2]|0)+16>>2]|0;if(!t)break a;p=(R|0)==0;c=a+68|0;q=H+32|0;A=H+4|0;B=H+24|0;C=b+2|0;D=b+3|0;x=b+4|0;o=a+8|0;while(1){if(p){y=k[t>>2]|0;z=k[t+8>>2]|0}else{y=0;z=xh(a,0,R,I)|0}if((z|0)!=0?(J=z+16|0,(k[J>>2]|0)!=0):0){ls(a,N,k[z+32>>2]|0,0,k[z>>2]|0);b=(j[z+38>>1]|0)+G|0;if((b|0)>(k[P>>2]|0))k[P>>2]=b;Vq(a,0,N,z,54);t=k[z>>2]|0;Ch(H,Bh(H,97,0,E,0)|0,t,0);t=k[J>>2]|0;if(!t)b=1;else{b=1;do{e=di(T,k[t+8>>2]|0,I)|0;do if(e){k[L>>2]=0;ls(a,N,k[e+32>>2]|0,0,k[e>>2]|0);if(Rt(a,e,t,L,0)|0)break a;f=k[L>>2]|0;if(!f){Vq(a,b,N,e,54);break}else{Bh(H,54,b,k[f+40>>2]|0,N)|0;w=k[o>>2]|0;Ch(w,-1,ms(a,f)|0,-6);break}}while(0);b=b+1|0;t=k[t+4>>2]|0}while((t|0)!=0)}if((k[c>>2]|0)<(b|0))k[c>>2]=b;n=Bh(H,108,0,0,0)|0;b=k[J>>2]|0;if(b){w=z+36|0;v=1;while(1){u=b+8|0;t=di(T,k[u>>2]|0,I)|0;k[L>>2]=0;k[K>>2]=0;h=(t|0)!=0;do if(h){Rt(a,t,b,L,K)|0;e=k[L>>2]|0;f=Cs(H)|0;if(!(h&(e|0)==0)){t=f;M=306;break}t=k[b+36>>2]|0;if((t|0)==(j[w>>1]|0))Bh(H,103,0,G,0)|0;else{Bh(H,47,0,t,G)|0;St(H,z,t,G);Bh(H,76,G,f,0)|0;Bh(H,38,G,(k[q>>2]|0)+3|0,0)|0}Bh(H,70,v,0,G)|0;Bh(H,16,0,f,0)|0;t=k[q>>2]|0;if(t>>>0>1)k[(k[A>>2]|0)+((t+-2|0)*20|0)+8>>2]=t;k[(k[B>>2]|0)+88>>2]=t+-1;t=f}else{t=Cs(H)|0;e=0;M=306}while(0);do if((M|0)==306){M=0;g=b+20|0;f=k[g>>2]|0;if((f|0)>0){d=0;do{f=k[K>>2]|0;if(!f)f=b+(d<<3)+36|0;else f=f+(d<<2)|0;O=d+G|0;st(H,z,0,k[f>>2]|0,O);Bh(H,76,O,t,0)|0;d=d+1|0;f=k[g>>2]|0}while((d|0)<(f|0))}if(!h)break;d=tt(H,e)|0;e=k[g>>2]|0;Ch(H,Bh(H,49,G,f,F)|0,d,e);Ch(H,Bh(H,69,v,t,F)|0,0,-14)}while(0);Bh(H,103,0,C,0)|0;e=k[u>>2]|0;Ch(H,Bh(H,97,0,D,0)|0,e,0);Bh(H,25,v+-1|0,x,0)|0;Bh(H,35,E,4,0)|0;e=k[B>>2]|0;f=~t;do if((t|0)<0){t=k[e+112>>2]|0;if(!t)break;k[t+(f<<2)>>2]=k[q>>2]}while(0);k[e+88>>2]=(k[q>>2]|0)+-1;rg(T,k[K>>2]|0);b=k[b+4>>2]|0;if(!b)break;else v=v+1|0}}Bh(H,9,0,n+1|0,0)|0;b=k[q>>2]|0;if(b>>>0>n>>>0)k[(k[A>>2]|0)+(n*20|0)+8>>2]=b;k[(k[B>>2]|0)+88>>2]=b+-1}if(!y)break;else t=y}break}case 11:{if(!R){if(Ln(a)|0)break a;nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,31784,-1,1,0)|0;Bh(Q,97,0,1,0)|0;Ch(Q,-1,k[31632+(l[(k[a>>2]|0)+62>>0]<<3)>>2]|0,-2);Bh(Q,35,1,1,0)|0;break a}d=k[(k[O>>2]|0)+12>>2]|0;if((j[d+78>>1]&5)==1)break a;else{f=31632;e=31704}do{if(!(id(R,e)|0)){q=f;M=415;break}f=f+8|0;e=k[f>>2]|0}while((e|0)!=0);if((M|0)==415?(C=i[q+4>>0]|0,C=C<<24>>24==0?2:C,i[T+62>>0]=C,i[d+77>>0]=C,(k[q>>2]|0)!=0):0)break a;k[D>>2]=R;yh(a,31800,D);break a}case 0:{n=k[30128+(t*12|0)>>2]|0;C=Q+96|0;k[C>>2]=k[C>>2]|1<>2]|0)>>>0>f>>>0)k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;e=f+1|0;k[D>>2]=0;In(R,D)|0;d=k[d>>2]|0;if(d>>>0>e>>>0)k[(k[Q+4>>2]|0)+(e*20|0)+4>>2]=k[D>>2];f=f+2|0;if(d>>>0<=f>>>0)break a;k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;k[(k[Q+4>>2]|0)+(f*20|0)+8>>2]=n;break a}f=Dh(Q,3,31848)|0;d=k[Q+32>>2]|0;if(d>>>0>f>>>0)k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;f=f+1|0;if(d>>>0>f>>>0){k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;k[(k[Q+4>>2]|0)+(f*20|0)+12>>2]=n}nq(Q,1);if(i[(k[Q>>2]|0)+65>>0]|0)break a;ah(k[Q+16>>2]|0,S,-1,1,-1)|0;break a}case 7:{nq(Q,1);k[P>>2]=1;if(!(i[(k[Q>>2]|0)+65>>0]|0)){ah(k[Q+16>>2]|0,31864,-1,1,0)|0;e=0}else e=0;do{D=k[8648+(e<<2)>>2]|0;e=e+1|0;Ch(Q,Bh(Q,97,0,1,0)|0,D,0);Bh(Q,35,1,1,0)|0}while((e|0)!=4);break}case 35:{f=(k[c>>2]|0)!=0?N:10;if(R)if(id(R,31880)|0)if(!(id(R,31888)|0))e=2;else{e=(id(R,31896)|0)==0;e=e?3:0}else e=1;else e=0;nq(Q,3);k[P>>2]=3;if(((i[(k[Q>>2]|0)+65>>0]|0)==0?(ah(k[Q+16>>2]|0,31912,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)?(ah((k[Q+16>>2]|0)+40|0,31920,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)ah((k[Q+16>>2]|0)+80|0,31928,-1,1,0)|0;Bh(Q,11,f,e,1)|0;Bh(Q,35,1,3,0)|0;break a}case 26:{tf(T)|0;break a}case 34:{if(!R)e=k[T+216>>2]|0;else{k[D>>2]=0;In(R,D)|0;e=k[D>>2]|0;if((e|0)>0)f=21;else{e=0;f=0}k[T+216>>2]=f;k[T+220>>2]=e;e=f}if((e|0)==21){e=k[T+220>>2]|0;f=e;e=((e|0)<0)<<31>>31}else{f=0;e=0}Ot(a,31944,f,e);break a}case 27:{if((R|0)!=0?(oi(R,u)|0)==0:0){D=u;Uc(k[D>>2]|0,k[D+4>>2]|0)|0}C=(Qc()|0)==0;D=9032;Ot(a,31976,C?k[D>>2]|0:-1,C?k[D+4>>2]|0:-1);break a}case 33:{if((R|0)!=0?(B=(oi(R,n)|0)==0,D=n,C=k[D+4>>2]|0,B&((C|0)>-1|(C|0)==-1&(k[D>>2]|0)>>>0>4294967295)):0)k[T+132>>2]=0;D=k[T+132>>2]|0;Ot(a,31992,D,((D|0)<0)<<31>>31);break a}case 16:{if(!R)break a;d=di(T,R,I)|0;if(!d)break a;g=Tq(a)|0;nq(g,5);k[P>>2]=5;Fr(a,N);if(((((i[(k[g>>2]|0)+65>>0]|0)==0?(ah(k[g+16>>2]|0,31288,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)?(ah((k[g+16>>2]|0)+40|0,31184,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)?(ah((k[g+16>>2]|0)+80|0,31296,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)?(ah((k[g+16>>2]|0)+120|0,31304,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)ah((k[g+16>>2]|0)+160|0,31312,-1,1,0)|0;f=k[d+8>>2]|0;if(!f)break a;else e=0;while(1){Bh(g,25,e,1,0)|0;D=k[f>>2]|0;Ch(g,Bh(g,97,0,2,0)|0,D,0);Bh(g,25,(i[f+50>>0]|0)!=0&1,3,0)|0;D=k[31336+((i[f+51>>0]&3)<<2)>>2]|0;Ch(g,Bh(g,97,0,4,0)|0,D,0);Bh(g,25,(k[f+36>>2]|0)!=0&1,5,0)|0;Bh(g,35,1,5,0)|0;f=k[f+20>>2]|0;if(!f)break;else e=e+1|0}break}case 10:{g=1<>2]=k[C>>2]|g;if(R){k[D>>2]=0;In(R,D)|0;d=k[D>>2]|0;if((d|0)<=-1)d=(d|0)==-2147483648?2147483647:0-d|0;D=k[a+408>>2]|0;Fr(a,N);D=((D|0)==0?a:D)+328|0;k[D>>2]=k[D>>2]|g;Bh(Q,25,d,1,0)|0;Bh(Q,52,N,3,1)|0;k[(k[z+(N<<4)+12>>2]|0)+80>>2]=d;uq(k[z+(N<<4)+4>>2]|0,d);break a}nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,30848,-1,1,0)|0;k[P>>2]=(k[P>>2]|0)+2;d=Dh(Q,9,30808)|0;e=k[Q+32>>2]|0;if(e>>>0>d>>>0)k[(k[Q+4>>2]|0)+(d*20|0)+4>>2]=N;f=d+1|0;if(e>>>0>f>>>0)k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;f=d+6|0;if(e>>>0<=f>>>0)break a;k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=2e3;break a}case 2:{if(!R){Ot(a,b,(k[30128+(t*12|0)>>2]&k[T+24>>2]|0)!=0&1,0);break a}e=k[30128+(t*12|0)>>2]|0;e=(i[T+63>>0]|0)==0?e&-524289:e;if(!((ni(R,1,0)|0)<<24>>24)){D=T+24|0;k[D>>2]=k[D>>2]&~e;if((e|0)==16777216){D=T+512|0;k[D>>2]=0;k[D+4>>2]=0}}else{D=T+24|0;k[D>>2]=k[D>>2]|e}Bh(Q,144,0,0,0)|0;Qt(T);break a}default:{if(!R)e=k[T+492>>2]|0;else{k[D>>2]=0;In(R,D)|0;e=k[D>>2]|0;D=(e|0)>0;e=D?e:0;k[T+444>>2]=D?74:0;k[T+448>>2]=D?T:0;k[h>>2]=0;k[T+492>>2]=e}Ot(a,31968,e,((e|0)<0)<<31>>31);break a}}while(0)}else if(!b){d=k[g>>2]|0;if(!d)break;f=(k[P>>2]|0)+1|0;k[P>>2]=f;Ch(Q,Bh(Q,97,0,f,0)|0,d,0);nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,30112,-1,1,0)|0;Bh(Q,35,f,1,0)|0;$c(k[g>>2]|0);break}else{d=k[g>>2]|0;if(d){k[D>>2]=d;yh(a,10344,D);$c(k[g>>2]|0)}D=a+64|0;k[D>>2]=(k[D>>2]|0)+1;k[a+12>>2]=b;break}}while(0);rg(T,S);rg(T,R)}}while(0);r=U;return}function Lr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;a:do if(!b)b=0;else{d=b;while(1){if((i[d>>0]|0)==-121){b=k[a>>2]|0;if(!(i[(k[b>>2]|0)+145>>0]|0))break;i[d>>0]=101}b=k[d+4>>2]|0;if(b&16384){b=0;break a}c=d+20|0;if(!(b&2048)){if(Mr(a,k[c>>2]|0)|0){b=1;break a}}else if(kr(a,k[c>>2]|0)|0){b=1;break a}if(Lr(a,k[d+16>>2]|0)|0){b=1;break a}d=k[d+12>>2]|0;if(!d){b=0;break a}}k[e>>2]=k[a+16>>2];yh(b,29984,e);b=1}while(0);r=f;return b|0}function Mr(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if((b|0)!=0?(k[b>>2]|0)>0:0){c=0;d=k[b+4>>2]|0;while(1){if(Lr(a,k[d>>2]|0)|0){c=1;break a}c=c+1|0;if((c|0)>=(k[b>>2]|0)){c=0;break}else d=d+20|0}}else c=0;while(0);return c|0}function Nr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;Ch(a,Bh(a,122,b,0,0)|0,c,-1);c=k[(k[a>>2]|0)+20>>2]|0;if((c|0)>0){d=a+96|0;b=k[d>>2]|0;a=0;do{b=b|1<>2]=b}return}function Or(a,b){a=a|0;b=b|0;var c=0,d=0;c=b+8|0;d=Zr(a,0,c)|0;b=b+24|0;pg(k[a>>2]|0,k[b>>2]|0);k[b>>2]=d;if(d){b=d+40|0;j[b>>1]=(j[b>>1]|0)+1<<16>>16}c=(Wt(a,c)|0)==0;return (c?d:0)|0}function Pr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();j=l;a:do if((b|0)!=0?(e=k[a+12>>2]|0,(k[b>>2]|0)>0):0){f=a+8|0;g=a+4|0;h=0;i=b+8|0;while(1){if(!(k[f>>2]|0)){d=i+4|0;c=k[d>>2]|0;if((c|0)!=0?(id(c,e)|0)!=0:0)break;rg(k[k[a>>2]>>2]|0,c);k[d>>2]=0;k[i>>2]=k[g>>2]}if(kr(a,k[i+20>>2]|0)|0){c=1;break a}if(Lr(a,k[i+44>>2]|0)|0){c=1;break a}h=h+1|0;if((h|0)>=(k[b>>2]|0)){c=0;break a}else i=i+72|0}b=k[a>>2]|0;i=k[a+20>>2]|0;k[j>>2]=k[a+16>>2];k[j+4>>2]=i;k[j+8>>2]=c;yh(b,29936,j);c=1}else c=0;while(0);r=l;return c|0}function Qr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=r;r=r+16|0;if((r|0)>=(s|0))ka();c=d;e=k[a>>2]|0;if((((i[e+145>>0]|0)==0?(i[a+18>>0]|0)==0:0)?(k[e+24>>2]&2048|0)==0:0)?(Kc(b,25568,7)|0)==0:0){k[c>>2]=b;yh(a,28440,c);a=1}else a=0;r=d;return a|0}function Rr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();u=v;do if(b){p=c&1;t=(d|0)!=0;if(t){e=k[d>>2]|0;n=32768}else{e=Xt(b,c)|0;e=rh(a,e,((e|0)<0)<<31>>31)|0;n=0}k[u>>2]=e;if(e){h=(p|0)==0;if(!h)if(!(k[b+12>>2]|0))m=(k[b+20>>2]|0)==0?16396:8220;else m=8220;else m=48;o=m&60;q=b+4|0;j=k[q>>2]|0;if((j&1024|0)==0?(f=k[b+8>>2]|0,(f|0)!=0):0){g=f;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;l=(g-f&1073741823)+1|0}else l=0;if(h){if(!(j&16384))g=(j&8192|0)==0?48:28;else g=12;pw(e|0,b|0,g|0)|0;kw(e+g|0,0,48-g|0)|0}else pw(e|0,b|0,o|0)|0;j=e+4|0;f=m&24576|n|k[j>>2]&-122881;k[j>>2]=f;if(l){f=e+o|0;k[e+8>>2]=f;pw(f|0,k[b+8>>2]|0,l|0)|0;f=k[j>>2]|0}g=k[q>>2]|0;do if(!((f|g)&16384)){f=b+20|0;if(!(g&2048)){p=Ur(a,k[f>>2]|0,p)|0;k[e+20>>2]=p;break}else{p=lr(a,k[f>>2]|0,p)|0;k[e+20>>2]=p;break}}while(0);f=k[j>>2]|0;if(!(f&24576)){if(k[q>>2]&16384)break;p=Rr(a,k[b+12>>2]|0,0,0)|0;k[e+12>>2]=p;p=Rr(a,k[b+16>>2]|0,0,0)|0;k[e+16>>2]=p;break}p=Yt(b,c)|0;k[u>>2]=(k[u>>2]|0)+p;if(f&8192){p=Rr(a,k[b+12>>2]|0,1,u)|0;k[e+12>>2]=p;p=Rr(a,k[b+16>>2]|0,1,u)|0;k[e+16>>2]=p}if(t)k[d>>2]=k[u>>2]}}else e=0;while(0);r=v;return e|0}function Sr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(c=rh(a,8,0)|0,(c|0)!=0):0){f=b+4|0;k[c+4>>2]=k[f>>2];d=rh(a,k[f>>2]<<3,0)|0;k[c>>2]=d;if(!d){rg(a,c);c=0;break}if((k[f>>2]|0)>0){e=0;while(1){g=k[b>>2]|0;h=ph(a,k[g+(e<<3)>>2]|0)|0;k[d+(e<<3)>>2]=h;k[d+(e<<3)+4>>2]=k[g+(e<<3)+4>>2];e=e+1|0;if((e|0)>=(k[f>>2]|0))break a;d=k[c>>2]|0}}}else c=0;while(0);return c|0}function Tr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=c+4|0;e=(k[d>>2]|0)+40|0;a=rh(a,e,0)|0;if(a){kw(a|0,0,e|0)|0;e=a+40|0;pw(e|0,k[c>>2]|0,k[d>>2]|0)|0;k[a+12>>2]=e;k[a+16>>2]=k[d>>2];i[a>>0]=b}return a|0}function Ur(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;do if((b|0)!=0?(d=rh(a,8,0)|0,(d|0)!=0):0){e=k[b>>2]|0;k[d>>2]=e;if(!(c&1)){f=k[b>>2]|0;e=1;while(1)if((e|0)<(f|0))e=e<<1;else break}e=rh(a,e*20|0,0)|0;k[d+4>>2]=e;if(!e){rg(a,d);d=0;break}if((k[b>>2]|0)>0){g=0;f=k[b+4>>2]|0;while(1){h=Rr(a,k[f>>2]|0,c,0)|0;k[e>>2]=h;h=ph(a,k[f+4>>2]|0)|0;k[e+4>>2]=h;h=ph(a,k[f+8>>2]|0)|0;k[e+8>>2]=h;i[e+12>>0]=i[f+12>>0]|0;h=e+13|0;j=i[h>>0]|0;i[h>>0]=j&-2;i[h>>0]=i[f+13>>0]&2|j&-4;k[e+16>>2]=k[f+16>>2];g=g+1|0;if((g|0)>=(k[b>>2]|0))break;else{e=e+20|0;f=f+20|0}}}}else d=0;while(0);return d|0}function Vr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();h=m;i=k[a>>2]|0;e=k[b+20>>2]|0;a:do if(e){d=k[i+20>>2]|0;if((d|0)>0){c=k[i+16>>2]|0;g=0;while(1){f=g+1|0;if((k[c+(g<<4)+12>>2]|0)==(e|0)){f=g;break a}if((f|0)<(d|0))g=f;else break}}else f=0}else f=-1e6;while(0);c=gn((k[b+24>>2]|0)+8|0,k[b+4>>2]|0,h)|0;if(!c)e=0;else e=k[c+8>>2]|0;c=k[(k[i+16>>2]|0)+(f<<4)>>2]|0;d=(f|0)==1;if((((Xq(a,d?14:16,k[b>>2]|0,k[e>>2]|0,c)|0)==0?(Xq(a,9,d?13184:13208,0,c)|0)==0:0)?(j=Tq(a)|0,(j|0)!=0):0)?(l=k[a+408>>2]|0,Fr(a,f),l=((l|0)==0?a:l)+328|0,k[l>>2]=k[l>>2]|1<>2]|0,0),Ch(j,l+4|0,10720,-2),Ir(a,f),Bh(j,61,0,0,0)|0,l=k[b>>2]|0,Ch(j,Bh(j,126,f,0,0)|0,l,0),l=a+72|0,(k[l>>2]|0)<3):0)k[l>>2]=3;r=m;return}function Wr(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,l=0,m=0,n=0,o=0,p=0,q=0;q=r;r=r+32|0;if((r|0)>=(s|0))ka();h=q;o=k[a>>2]|0;k[h+0>>2]=0;k[h+4>>2]=0;k[h+8>>2]=0;k[h+12>>2]=0;k[h+16>>2]=0;k[h+20>>2]=0;k[h+24>>2]=0;k[h+28>>2]=0;k[h>>2]=a;do if(e)if((i[e>>0]|0)!=27)if(!(qs(h,e)|0)){p=5;break}else{p=13;break}else{i[e>>0]=97;p=5;break}else p=5;while(0);a:do if((p|0)==5){do if(f)if((i[f>>0]|0)!=27)if(!(qs(h,f)|0))break;else{p=13;break a}else{i[f>>0]=97;break}while(0);do if(g)if((i[g>>0]|0)!=27)if(!(qs(h,g)|0))break;else{p=13;break a}else{i[g>>0]=97;break}while(0);if(d){if((i[d>>0]|0)==97)d=k[d+8>>2]|0;else d=0;if(Xq(a,b,d,0,0)|0)break}n=Tq(a)|0;h=a+60|0;d=k[h>>2]|0;l=a+56|0;m=k[l>>2]|0;if((m|0)<4){m=a+72|0;d=k[m>>2]|0;k[m>>2]=d+4;d=d+1|0}else{k[h>>2]=d+4;k[l>>2]=m+-4}Wq(a,e,d);Wq(a,f,d+1|0);Wq(a,g,d+2|0);if(n){d=d+3|0;Bh(n,1,0,d-(j[c>>1]|0)|0,d)|0;d=k[n+4>>2]|0;if(d)i[d+(((k[n+32>>2]|0)+-1|0)*20|0)+3>>0]=j[c>>1];Ch(n,-1,c,-5);Bh(n,144,(b|0)==24&1,0,0)|0}}while(0);if((p|0)==13){c=a+64|0;k[c>>2]=(k[c>>2]|0)+1}Lk(o,e);Lk(o,f);Lk(o,g);r=q;return}function Xr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;e=j+4|0;f=k[a>>2]|0;a:do if(!(Ln(a)|0)){if(!b){Zt(a,0);break}if(!((c|0)!=0?(k[c>>2]|0)!=0:0))d=6;do if((d|0)==6){d=$q(k[a>>2]|0,b)|0;if(!d)break a;if(!(bo(f,i[f+62>>0]|0,d,0)|0)){rg(f,d);break}else{Zt(a,d);rg(f,d);break a}}while(0);b=jr(a,b,c,e)|0;if((b|0)>=0?(g=$q(f,k[e>>2]|0)|0,(g|0)!=0):0){c=k[(k[f+16>>2]|0)+(b<<4)>>2]|0;d=di(f,g,c)|0;if(d){_t(a,d,0);rg(f,g);break}c=gq(f,g,c)|0;rg(f,g);if(!c){yh(a,28872,h);break}else{d=k[a+408>>2]|0;Fr(a,b);d=((d|0)==0?a:d)+328|0;k[d>>2]=k[d>>2]|1<=(s|0))ka();e=g;f=k[a>>2]|0;if(!(Ln(a)|0)){do if(!b){b=f+20|0;d=k[b>>2]|0;if((d|0)>0){c=0;do{if((c|0)!=1){$t(a,c);d=k[b>>2]|0}c=c+1|0}while((c|0)<(d|0))}}else{if(k[c+4>>2]|0){d=jr(a,b,c,e)|0;if((d|0)<=-1)break;d=k[(k[f+16>>2]|0)+(d<<4)>>2]|0;b=$q(f,k[e>>2]|0)|0;if(!b)break;c=gq(f,b,d)|0;if(!c){d=xh(a,0,b,d)|0;if(d)au(a,d,0)}else au(a,k[c+12>>2]|0,c);rg(f,b);break}c=$q(f,b)|0;d=_h(f,c)|0;rg(f,c);if((d|0)>-1){$t(a,d);break}c=$q(f,b)|0;if(c){d=gq(f,c,0)|0;if(!d){d=xh(a,0,c,0)|0;if(d)au(a,d,0)}else au(a,k[d+12>>2]|0,d);rg(f,c)}}while(0);d=Tq(a)|0;if(d)Bh(d,144,0,0,0)|0}r=g;return}function Zr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=k[c>>2]|0;if(!e)d=c+4|0;else{h=k[a>>2]|0;f=k[h+20>>2]|0;h=k[h+16>>2]|0;a:do if((f|0)>0){g=0;while(1){d=g+1|0;if((k[h+(g<<4)+12>>2]|0)==(e|0)){d=g;break a}if((d|0)<(f|0))g=d;else break}}else d=0;while(0);d=h+(d<<4)|0}return xh(a,b,k[c+8>>2]|0,k[d>>2]|0)|0}function _r(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();d=e;if(b){c=b;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;if((c-b&1073741823)>>>0>6?(Kc(b,25568,7)|0)==0:0){k[d>>2]=b;yh(a,25576,d);c=1}else c=0}else c=0;r=e;return c|0}function $r(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();d=e;if(!b){k[d>>2]=c;a=zh(a,25992,d)|0}else{k[d>>2]=b;k[d+4>>2]=c;d=zh(a,26e3,d)|0;rg(a,b);a=d}r=e;return a|0}function as(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;d=k[a>>2]|0;e=k[(k[d+16>>2]|0)+28>>2]|0;if((k[b+68>>2]|0)!=(e|0)?(c=Fs(a,b)|0,(c|0)!=0):0){b=c;c=0;do{if((k[b+20>>2]|0)==(e|0))c=$r(d,c,k[b>>2]|0)|0;b=k[b+32>>2]|0}while((b|0)!=0);if(c){b=k[a>>2]|0;k[f>>2]=c;b=zh(b,25968,f)|0;rg(k[a>>2]|0,c);c=b}else c=0}else c=0;r=g;return c|0}function bs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();l=o;m=Tq(a)|0;if(m){d=k[a>>2]|0;g=k[b+68>>2]|0;a:do if(g){h=k[d+20>>2]|0;if((h|0)>0){e=k[d+16>>2]|0;f=0;while(1){d=f+1|0;if((k[e+(f<<4)+12>>2]|0)==(g|0))break a;if((d|0)<(h|0))f=d;else{f=d;break}}}else f=0}else f=-1e6;while(0);d=Fs(a,b)|0;if(d)do{e=k[a>>2]|0;i=k[d+20>>2]|0;b:do if(i){j=k[e+20>>2]|0;if((j|0)>0){h=k[e+16>>2]|0;g=0;while(1){e=g+1|0;if((k[h+(g<<4)+12>>2]|0)==(i|0)){e=g;break b}if((e|0)<(j|0))g=e;else break}}else e=0}else e=-1e6;while(0);j=k[d>>2]|0;Ch(m,Bh(m,126,e,0,0)|0,j,0);d=k[d+32>>2]|0}while((d|0)!=0);d=k[b>>2]|0;Ch(m,Bh(m,124,f,0,0)|0,d,0);d=k[a>>2]|0;k[l>>2]=c;d=zh(d,25952,l)|0;if((d|0)!=0?(Nr(m,f,d),n=as(a,b)|0,(n|0)!=0):0)Nr(m,1,n)}r=o;return}
function lh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,q=0,u=0,v=0,w=0,x=0,y=0.0,z=0,A=0.0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ja=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,Yb=0,Zb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,hc=0,ic=0,jc=0,kc=0,lc=0,mc=0,nc=0,pc=0,sc=0,tc=0,vc=0,xc=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,Sc=0,Tc=0,Uc=0,Vc=0,Wc=0,Xc=0,Yc=0,Zc=0,_c=0,ad=0,bd=0,cd=0,dd=0,ed=0,fd=0,jd=0,kd=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=r;r=r+1040|0;if((r|0)>=(s|0))ka();ge=ke+400|0;Qc=ke+792|0;ad=ke+392|0;Yc=ke+788|0;Pd=ke+320|0;ed=ke+784|0;kd=ke+780|0;nd=ke+280|0;Kd=ke+680|0;Xc=ke+240|0;Nd=ke+200|0;Wc=ke+676|0;Tc=ke+672|0;Ld=ke+160|0;Rc=ke+644|0;qd=ke+152|0;Gd=ke+112|0;cd=ke+640|0;Id=ke+636|0;Uc=ke+632|0;rd=ke+628|0;xd=ke+624|0;td=ke+604|0;yd=ke+600|0;jd=ke+596|0;ud=ke+576|0;Pc=ke+840|0;zd=ke+572|0;Md=ke+104|0;Ad=ke+568|0;Zc=ke+564|0;_c=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;bd=ke+508|0;sd=ke+504|0;Vc=ke+488|0;Jd=ke+48|0;Sc=ke+456|0;Oc=ke+444|0;Hd=ke+8|0;pd=ke+440|0;Fd=ke+412|0;Ed=ke;tc=a+4|0;f=k[tc>>2]|0;he=k[a>>2]|0;Gc=i[he+62>>0]|0;Kc=a+8|0;v=k[Kc>>2]|0;je=he+32|0;c=je;d=k[c>>2]|0;c=k[c+4>>2]|0;ie=a+80|0;a:do if((k[ie>>2]|0)==7){u=he+65|0;v=a+44|0;e=d;b=0;g=0;d=0;ee=1317}else{k[ie>>2]=0;$d=a+136|0;k[$d>>2]=0;k[$d+4>>2]=0;$d=a+20|0;k[$d>>2]=0;k[he+452>>2]=0;zc=he+240|0;b:do if(!(k[zc>>2]|0)){Zd=he+292|0;if(k[Zd>>2]|0){e=k[a+124>>2]|0;b=he+300|0;u=k[b>>2]|0;if(!e)sc=b;else{sc=b;u=(e>>>0)%(u>>>0)|0}}else{sc=he+300|0;u=0}de=a+76|0;ce=he+65|0;Vd=he+296|0;pb=a+176|0;qb=a+184|0;rb=a+92|0;sb=he+80|0;tb=he+84|0;ub=Gc&255;vb=Gc<<24>>24==1;wb=he+88|0;xb=a+60|0;Wd=a+144|0;be=a+86|0;fe=a+44|0;yb=a+12|0;zb=Rc+4|0;Ab=Rc+16|0;Bb=Rc+12|0;Cb=Rc+25|0;Db=Rc+20|0;Eb=a+200|0;Fb=a+56|0;Xd=a+72|0;Gb=Gd+16|0;Hb=Gd+8|0;Ib=Gd+24|0;Jb=a+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=a+88|0;Tb=a+104|0;Ub=a+152|0;Vb=a+160|0;Wb=he+152|0;Xb=he+64|0;Yb=td+4|0;Zb=td+6|0;_b=td+8|0;$b=ud+4|0;ac=ud+8|0;bc=he+212|0;cc=he+208|0;dc=a+116|0;ec=vd+4|0;hc=vd+6|0;ic=vd+8|0;jc=Xc+8|0;kc=Xc+32|0;lc=Xc+24|0;mc=Xc+16|0;nc=Xc+12|0;pc=wd+4|0;T=wd+6|0;U=wd+8|0;X=nd+8|0;Y=nd+32|0;Z=nd+24|0;_=nd+12|0;$=nd+16|0;aa=he+164|0;ba=Vc+8|0;ca=Vc+4|0;da=he+145|0;ea=Vc+12|0;fa=Pd+4|0;ja=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=a+28|0;Aa=a+36|0;Ba=a+32|0;Ca=a+196|0;Da=Sc+4|0;Ea=Sc+8|0;Fa=Jd+8|0;Ga=Jd+32|0;Ha=Jd+24|0;Ia=Sc+20|0;Ja=Sc+12|0;Ka=Sc+16|0;La=Sc+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=a+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;R=0;S=0;b=0;n=0;g=k[de>>2]|0;q=0;c:while(1){e=d;d:while(1){if(i[ce>>0]|0){u=ce;v=fe;d=q;ee=1317;break a}d=b+1|0;if(!(i[f+(g*20|0)+2>>0]&2))I=n;else{n=k[f+(g*20|0)+8>>2]|0;b=v+(n*40|0)|0;n=v+(n*40|0)+8|0;if(j[n>>1]&9312)Ag(b);j[n>>1]=4;I=b}z=f+(g*20|0)|0;F=i[z>>0]|0;n=F&255;e:do switch(n|0){case 20:{b=d;d=e;ee=24;break d}case 21:{b=d;d=e;n=I;ee=25;break d}case 22:{b=d;d=e;n=I;ee=26;break d}case 23:{b=d;d=e;n=I;e=g;ee=27;break d}case 24:{b=d;d=e;n=I;e=g;ee=28;break d}case 29:{b=d;d=e;e=g;ee=65;break d}case 30:{b=d;d=e;n=I;e=g;ee=66;break d}case 28:{b=d;d=e;n=I;e=g;ee=60;break d}case 32:{b=d;d=e;e=g;ee=72;break d}case 17:{b=d;d=e;n=I;ee=22;break d}case 18:{b=d;d=e;n=I;ee=23;break d}case 25:{b=d;d=e;n=I;e=g;ee=44;break d}case 26:{b=d;d=e;n=I;e=g;ee=45;break d}case 133:{b=d;d=e;n=I;e=g;ee=46;break d}case 97:{i[z>>0]=27;z=f+(g*20|0)+16|0;o=k[z>>2]|0;if(!o)b=0;else{b=o;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;b=b-o&1073741823}w=f+(g*20|0)+4|0;k[w>>2]=b;if(vb)n=0;else{n=ah(I,o,-1,1,0)|0;if((n|0)==18){b=d;d=e;h=q;ee=1316;break c}if(bm(I,ub)|0){u=ce;v=fe;b=d;d=q;ee=1317;break a}k[I+24>>2]=0;b=I+8|0;j[b>>1]=m[b>>1]|2048;b=f+(g*20|0)+1|0;if((i[b>>0]|0)==-1)rg(he,k[z>>2]|0);i[b>>0]=-1;o=k[I+16>>2]|0;k[z>>2]=o;b=k[I+12>>2]|0;k[w>>2]=b}if((b|0)>(k[wb>>2]|0)){b=d;d=e;h=q;ee=1316;break c}else ee=57;break}case 31:{b=d;d=e;n=I;e=g;ee=67;break d}case 34:{b=d;d=e;e=g;ee=79;break d}case 35:{b=d;d=e;h=q;ee=80;break c}case 33:{b=d;d=e;ee=74;break d}case 94:{b=d;d=e;ee=94;break d}case 93:case 92:case 91:case 90:case 89:{b=d;N=z;d=e;e=g;ee=112;break d}case 27:{o=k[f+(g*20|0)+16>>2]|0;b=k[f+(g*20|0)+4>>2]|0;n=0;ee=57;break}case 16:{g=(k[f+(g*20|0)+8>>2]|0)+-1|0;n=0;ee=19;break}case 36:{b=d;d=e;F=I;e=g;ee=166;break d}case 1:{Q=i[f+(g*20|0)+3>>0]|0;z=Q&255;x=k[yb>>2]|0;b=v+((k[f+(g*20|0)+12>>2]|0)*40|0)|0;k[Rc>>2]=b;if(Q<<24>>24){w=0;b=v+((k[f+(g*20|0)+8>>2]|0)*40|0)|0;while(1){k[x+(w<<2)>>2]=b;if((j[b+8>>1]&4096)!=0?(_l(b)|0)!=0:0){u=ce;v=fe;b=d;d=q;ee=1317;break a}w=w+1|0;if((w|0)>=(z|0))break;else b=b+40|0}b=k[Rc>>2]|0}Q=k[f+(g*20|0)+16>>2]|0;k[zb>>2]=Q;k[Ab>>2]=g;k[Bb>>2]=a;P=b+8|0;j[P>>1]=m[P>>1]&48640|1;i[Cb>>0]=0;P=je;k[P>>2]=e;k[P+4>>2]=c;rc[k[Q+12>>2]&63](Rc,z,x);c=je;e=k[c>>2]|0;c=k[c+4>>2]|0;if(!(i[Cb>>0]|0))b=0;else{if(!(k[Db>>2]|0))b=0;else{b=Xg(k[Rc>>2]|0,1)|0;k[ge>>2]=b;ih(fe,he,10344,ge);b=k[Db>>2]|0}jm(a,g,k[f+(g*20|0)+4>>2]|0)}bm(k[Rc>>2]|0,ub)|0;o=k[Rc>>2]|0;w=m[o+8>>1]|0;if(w&18){n=k[o+12>>2]|0;if(w&16384)n=(k[o>>2]|0)+n|0;if((n|0)>(k[(k[o+32>>2]|0)+88>>2]|0)){b=d;d=e;h=q;ee=1316;break c}else{z=I;P=g;n=b}}else{z=I;P=g;n=b}break}case 88:case 87:case 86:case 85:{b=d;D=z;d=e;e=g;ee=184;break d}case 39:{b=d;d=e;F=I;e=g;ee=208;break d}case 37:{b=d;d=e;n=I;e=g;ee=202;break d}case 38:{b=d;d=e;F=I;e=g;ee=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{b=d;E=F;d=e;n=I;ee=213;break d}case 40:{Q=k[f+(g*20|0)+4>>2]|0;b=v+(Q*40|0)|0;if(!(j[v+(Q*40|0)+8>>1]&16384))n=0;else n=Wg(b)|0;lm(b,k[f+(g*20|0)+8>>2]&255,Gc);z=I;P=g;break}case 41:{b=d;d=e;n=I;e=g;ee=248;break d}case 42:{b=d;d=e;n=I;e=g;ee=249;break d}case 43:{b=d;d=e;n=I;ee=256;break d}case 71:case 72:{b=d;d=e;e=g;ee=261;break d}case 76:{b=d;d=e;n=I;e=g;ee=286;break d}case 19:{b=d;d=e;e=g;ee=268;break d}case 96:{b=d;d=e;e=g;ee=273;break d}case 44:{b=d;d=e;n=I;e=g;ee=278;break d}case 46:case 45:{b=d;d=e;n=I;e=g;ee=281;break d}case 77:{b=d;d=e;n=I;e=g;ee=288;break d}case 47:{b=d;d=e;n=I;ee=290;break d}case 48:{b=d;d=e;n=I;e=g;ee=368;break d}case 49:{b=d;d=e;ee=371;break d}case 50:{B=k[k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]>>2]|0;f:do if(k[B+60>>2]|0){b=vm(B)|0;if(!b){J=B+76|0;H=B+44|0;w=B+72|0;o=0;n=0;g:while(1){z=j[J>>1]|0;F=k[B+(z<<16>>16<<2)+120>>2]|0;if(!(i[F+5>>0]|0)){if(!(i[F+2>>0]|0)){o=ow(m[F+18>>1]|0,0,o|0,n|0)|0;n=L}}else{o=ow(m[F+18>>1]|0,0,o|0,n|0)|0;n=L;while(1){if(!(z<<16>>16))break g;if(F){Gg(k[F+68>>2]|0);z=j[J>>1]|0}z=z+-1<<16>>16;j[J>>1]=z;j[H>>1]=0;i[w>>0]=l[w>>0]&249;F=z<<16>>16;x=B+(F<<1)+78|0;E=j[x>>1]|0;F=k[B+(F<<2)+120>>2]|0;if((E&65535)<(m[F+18>>1]|0)){z=E;break}}j[x>>1]=z+1<<16>>16;F=j[J>>1]|0;z=F;F=k[B+(F<<16>>16<<2)+120>>2]|0}z=j[B+(z<<16>>16<<1)+78>>1]|0;x=k[F+56>>2]|0;if(z<<16>>16==(j[F+18>>1]|0)){b=l[F+6>>0]|0;b=wm(B,l[x+(b+9)>>0]<<16|l[x+(b+8)>>0]<<24|l[x+(b+10)>>0]<<8|l[x+(b+11)>>0])|0}else{b=(z&65535)<<1;Q=k[F+64>>2]|0;b=(l[Q+b>>0]<<8|l[Q+(b|1)>>0])&m[F+20>>1];b=wm(B,l[x+(b+1)>>0]<<16|l[x+b>>0]<<24|l[x+(b+2)>>0]<<8|l[x+(b+3)>>0])|0}if(b){o=0;n=0;break f}}b=vm(B)|0}else{o=0;n=0}}else{b=0;o=0;n=0}while(0);z=I;k[z>>2]=o;k[z+4>>2]=n;z=I;P=g;n=b;break}case 2:{M=k[f+(g*20|0)+4>>2]|0;o=k[f+(g*20|0)+16>>2]|0;if(!M){b=d;d=e;n=I;e=g;ee=446;break d}w=k[Mb>>2]|0;if(!w){f=o;b=d;d=e;h=q;ee=460;break c}else b=0;while(1){if(!(id(k[w>>2]|0,o)|0)){F=b;break}w=k[w+24>>2]|0;if(!w){f=o;b=d;d=e;h=q;ee=460;break c}else b=b+1|0}J=(M|0)==1;if((k[Yd>>2]|0)>0&J){b=d;d=e;h=q;ee=462;break c}H=w+24|0;if(!(k[H>>2]|0)){x=(i[Pb>>0]|0)!=0;if(x&J){b=ym(a,1)|0;if(b)break a;i[ae>>0]=1;if((Wl(a)|0)==5){b=g;ee=467;break c}i[Pb>>0]=0;x=1;n=k[ie>>2]|0}else ee=469}else{x=0;ee=469}if((ee|0)==469){ee=0;o=(k[Lb>>2]|0)-F+-1|0;if((M|0)==2){z=(k[Qb>>2]|0)>>>1&1;if((k[Rb>>2]|0)>0){F=z^1;E=0;while(1){D=Nl(k[(k[Td>>2]|0)+(E<<4)+4>>2]|0,516,F)|0;E=E+1|0;if(D){b=d;d=e;h=D;ee=1318;break c}b=k[Rb>>2]|0;if((E|0)>=(b|0)){ee=475;break}}}}else{b=k[Rb>>2]|0;z=0;ee=475}if((ee|0)==475){ee=0;if((b|0)>0){B=0;do{F=zm(k[(k[Td>>2]|0)+(B<<4)+4>>2]|0,M,o)|0;B=B+1|0;if(F){b=d;d=e;h=F;ee=1318;break c}}while((B|0)<(k[Rb>>2]|0))}}if(!z){F=o;n=0}else{z=k[Sb>>2]|0;if(z)do{Q=z+88|0;j[Q>>1]=j[Q>>1]|8;z=k[z+52>>2]|0}while((z|0)!=0);Jg(he);k[Qb>>2]=k[Qb>>2]|2;F=o;n=0}}z=k[Mb>>2]|0;if((z|0)!=(w|0))do{k[Mb>>2]=k[z+24>>2];rg(he,z);k[Lb>>2]=(k[Lb>>2]|0)+-1;z=k[Mb>>2]|0}while((z|0)!=(w|0));if(J){k[Mb>>2]=k[H>>2];rg(he,w);if(x){z=I;P=g;break e}else{b=d;z=M;d=e;x=F;n=I;e=g;ee=486;break d}}else{Q=w+8|0;P=k[Q+4>>2]|0;O=Nb;k[O>>2]=k[Q>>2];k[O+4>>2]=P;O=w+16|0;P=k[O+4>>2]|0;Q=Ob;k[Q>>2]=k[O>>2];k[Q+4>>2]=P;if(x){z=I;P=g;break e}else{z=M;b=d;d=e;x=F;n=I;e=g;ee=488;break d}}}case 3:{h=q;ee=489;break c}case 4:{w=f+(g*20|0)+8|0;b=k[w>>2]|0;if((b|0)!=0?(k[Qb>>2]&33554432|0)!=0:0){b=d;d=e;h=8;ee=1318;break c}E=f+(g*20|0)+4|0;F=k[(k[Td>>2]|0)+(k[E>>2]<<4)+4>>2]|0;if(!F){n=0;w=0;b=0}else{z=Dg(F,b)|0;if((z|0)==5){b=g;ee=508;break c}else if(z){b=d;d=e;h=z;ee=1318;break c}do if((k[w>>2]|0)!=0?(j[Ud>>1]&32)!=0:0){if((i[ae>>0]|0)!=0?(k[Wb>>2]|0)<=1:0){b=0;break}b=k[Tb>>2]|0;if(!b){b=(k[Kb>>2]|0)+1|0;k[Kb>>2]=b;b=(k[Lb>>2]|0)+b|0;k[Tb>>2]=b}b=xm(he,0,b+-1|0)|0;if(!b){b=k[Tb>>2]|0;Q=k[F+4>>2]|0;k[Q+4>>2]=k[F>>2];b=ml(k[Q>>2]|0,b)|0}Q=Nb;P=k[Q+4>>2]|0;O=Ub;k[O>>2]=k[Q>>2];k[O+4>>2]=P;O=Ob;P=k[O+4>>2]|0;Q=Vb;k[Q>>2]=k[O>>2];k[Q+4>>2]=P}else b=0;while(0);n=k[F+4>>2]|0;k[n+4>>2]=k[F>>2];n=k[(k[n+12>>2]|0)+56>>2]|0;n=l[n+41>>0]<<16|l[n+40>>0]<<24|l[n+42>>0]<<8|l[n+43>>0];w=k[(k[(k[Td>>2]|0)+(k[E>>2]<<4)+12>>2]|0)+4>>2]|0}if(i[f+(g*20|0)+3>>0]|0){if((n|0)!=(k[f+(g*20|0)+12>>2]|0)){b=d;f=E;d=e;h=q;ee=522;break c}if((w|0)!=(k[f+(g*20|0)+16>>2]|0)){b=d;f=E;d=e;h=q;ee=522;break c}else{z=I;P=g;n=b}}else{z=I;P=g;n=b}break}case 53:{b=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;if((b|0)!=0?(k[b+28>>2]|0)==(k[f+(g*20|0)+8>>2]|0):0){w=f+(g*20|0)+3|0;n=0;ee=548}else ee=536;break}case 51:{b=d;d=e;n=I;e=g;ee=525;break d}case 52:{x=f+(g*20|0)+4|0;w=k[x>>2]|0;b=k[Td>>2]|0;z=k[f+(g*20|0)+12>>2]|0;o=v+(z*40|0)|0;n=_g(o)|0;Q=o;k[Q>>2]=n;k[Q+4>>2]=L;z=v+(z*40|0)+8|0;j[z>>1]=m[z>>1]&48640|4;z=f+(g*20|0)+8|0;n=Ig(k[b+(w<<4)+4>>2]|0,k[z>>2]|0,n)|0;z=k[z>>2]|0;if((z|0)==1){k[k[b+(w<<4)+12>>2]>>2]=k[o>>2];k[Qb>>2]=k[Qb>>2]|2}else if((z|0)==2)i[(k[b+(w<<4)+12>>2]|0)+76>>0]=k[o>>2];if((k[x>>2]|0)==1){b=k[Sb>>2]|0;if(b)do{Q=b+88|0;j[Q>>1]=j[Q>>1]|8;b=k[b+52>>2]|0}while((b|0)!=0);j[Ud>>1]=j[Ud>>1]&-9;z=I;P=g}else{z=I;P=g}break}case 55:case 54:{ee=536;break}case 57:case 56:{w=Cm(a,k[f+(g*20|0)+4>>2]|0,k[f+(g*20|0)+8>>2]|0,-1,1)|0;if(!w){u=ce;v=fe;b=d;d=q;ee=1317;break a}i[w+25>>0]=1;F=w+27|0;i[F>>0]=i[F>>0]|1;b=w+4|0;E=f+(g*20|0)+3|0;n=Em(k[he>>2]|0,0,he,b,l[E>>0]|5,1054)|0;do if(!n){n=Dg(k[b>>2]|0,1)|0;if(!n){x=k[f+(g*20|0)+16>>2]|0;z=k[b>>2]|0;if(!x){n=Dm(z,1,1,0,k[w>>2]|0)|0;i[F>>0]=i[F>>0]|4;break}n=Fm(z,rd,l[E>>0]|2)|0;if(!n){k[w+8>>2]=x;n=Dm(k[b>>2]|0,k[rd>>2]|0,1,x,k[w>>2]|0)|0}i[F>>0]=i[F>>0]&-5}}while(0);i[F>>0]=((i[E>>0]|0)!=8&1)<<3&255|i[F>>0]&-9;z=I;P=g;break}case 58:{b=d;d=e;ee=558;break d}case 60:{b=d;d=e;n=I;ee=568;break d}case 61:{b=d;d=e;n=I;e=g;ee=570;break d}case 59:{b=d;d=e;n=I;e=g;ee=566;break d}case 65:case 64:case 63:case 62:{b=d;w=n;d=e;n=I;e=g;ee=571;break d}case 66:{b=d;d=e;n=I;e=g;ee=596;break d}case 69:case 68:case 67:{b=d;H=z;d=e;n=I;ee=597;break d}case 73:{b=d;d=e;n=I;e=g;ee=624;break d}case 70:{Q=k[f+(g*20|0)+12>>2]|0;b=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;n=k[b>>2]|0;k[zd>>2]=0;Q=v+(Q*40|0)|0;P=k[Q>>2]|0;Q=k[Q+4>>2]|0;n=Hm(n,0,P,Q,0,zd)|0;o=b+48|0;k[o>>2]=P;k[o+4>>2]=Q;i[b+25>>0]=0;k[b+60>>2]=0;i[b+26>>0]=0;o=k[zd>>2]|0;if(o)g=(k[f+(g*20|0)+8>>2]|0)+-1|0;k[b+12>>2]=o;z=I;P=g;break}case 74:{J=Md;k[J>>2]=0;k[J+4>>2]=0;k[Ad>>2]=0;J=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;b=k[J>>2]|0;if(!b){n=0;o=0;b=0}else{o=J+27|0;do if(!(i[o>>0]&2)){z=Mm(b,Ad)|0;if(z){b=d;d=e;h=z;ee=1318;break c}if(k[Ad>>2]|0){Q=Md;k[Q>>2]=1;k[Q+4>>2]=0;break}pm(k[J>>2]|0,Md);n=Md;b=k[n>>2]|0;n=k[n+4>>2]|0;if((b|0)==-1&(n|0)==2147483647){i[o>>0]=i[o>>0]|2;break}else{P=ow(b|0,n|0,1,0)|0;Q=Md;k[Q>>2]=P;k[Q+4>>2]=L;break}}while(0);F=k[f+(g*20|0)+12>>2]|0;if(F){b=k[pb>>2]|0;if(!b)z=v;else{while(1){w=k[b+4>>2]|0;if(!w)break;else b=w}z=k[b+16>>2]|0}E=z+(F*40|0)|0;x=_g(E)|0;b=L;Q=E;k[Q>>2]=x;k[Q+4>>2]=b;Q=z+(F*40|0)+8|0;j[Q>>1]=m[Q>>1]&48640|4;if((x|0)==-1&(b|0)==2147483647){b=d;d=e;h=13;ee=1318;break c}if(i[o>>0]&2){b=d;d=e;h=13;ee=1318;break c}w=Md;n=k[w>>2]|0;w=k[w+4>>2]|0;z=ow(x|0,b|0,1,0)|0;x=L;if((w|0)<(x|0)|(w|0)==(x|0)&n>>>0>>0){w=Md;k[w>>2]=z;k[w+4>>2]=x;w=x}else z=n;Q=E;k[Q>>2]=z;k[Q+4>>2]=w}h:do if(!(i[o>>0]&2))b=0;else{n=0;while(1){hd(8,Md);Q=Md;Q=ow(k[Q>>2]|0,k[Q+4>>2]&1073741823|0,1,0)|0;b=L;P=Md;k[P>>2]=Q;k[P+4>>2]=b;b=Hm(k[J>>2]|0,0,Q,b,0,Ad)|0;if(k[Ad>>2]|b)break h;n=n+1|0;if((n|0)>=100){b=d;d=e;h=13;ee=1318;break c}}}while(0);i[J+26>>0]=0;k[J+60>>2]=0;o=Md;n=k[o>>2]|0;o=k[o+4>>2]|0}z=I;k[z>>2]=n;k[z+4>>2]=o;z=I;P=g;n=b;break}case 84:case 75:{b=d;z=F;d=e;n=I;e=g;ee=647;break d}case 95:{b=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;n=Om(k[b>>2]|0)|0;k[b+60>>2]=0;if((((n|0)==0?(Dc=k[bc>>2]|0,(Dc|0)!=0):0)?(Ec=k[f+(g*20|0)+16>>2]|0,(Ec|0)!=0):0)?(i[b+27>>0]&4)!=0:0){Q=b+48|0;gc[Dc&1](k[cc>>2]|0,9,k[(k[Td>>2]|0)+(i[b+24>>0]<<4)>>2]|0,Ec,k[Q>>2]|0,k[Q+4>>2]|0)}if(!(k[f+(g*20|0)+8>>2]&1)){z=I;P=g}else{k[rb>>2]=(k[rb>>2]|0)+1;z=I;P=g}break}case 98:{b=d;d=e;n=I;e=g;ee=671;break d}case 99:{b=d;d=e;n=I;e=g;ee=672;break d}case 100:{n=k[f+(g*20|0)+8>>2]|0;z=v+(n*40|0)|0;b=k[(k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0)+56>>2]|0;if(!(i[b+56>>0]|0)){w=k[b+36>>2]|0;b=w;w=w+8|0}else{Q=k[b+20>>2]|0;w=k[(k[Q+8>>2]|0)+4>>2]|0;Q=k[Q+12>>2]|0;b=Q+(w*56|0)+20|0;w=k[Q+(w*56|0)+32>>2]|0}b=k[b>>2]|0;if(!(kh(z,b)|0)){k[v+(n*40|0)+12>>2]=b;Q=v+(n*40|0)+8|0;j[Q>>1]=m[Q>>1]&48640|16;pw(k[v+(n*40|0)+16>>2]|0,w|0,b|0)|0;n=0}else n=7;k[(k[(k[Fb>>2]|0)+(k[f+(g*20|0)+12>>2]<<2)>>2]|0)+60>>2]=0;P=g;break}case 102:case 101:{o=k[f+(g*20|0)+8>>2]|0;F=v+(o*40|0)|0;x=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;z=k[x>>2]|0;x=x+27|0;if(i[x>>0]&4){qm(z,Zc);b=k[Zc>>2]|0;if(b>>>0>(k[wb>>2]|0)>>>0){b=d;d=e;h=q;ee=1316;break c}}else{pm(z,_c);O=_c;b=k[O>>2]|0;O=k[O+4>>2]|0;Q=k[wb>>2]|0;P=((Q|0)<0)<<31>>31;if((O|0)>(P|0)|(O|0)==(P|0)&b>>>0>Q>>>0){b=d;d=e;h=q;ee=1316;break c}k[Zc>>2]=b}if(kh(F,b>>>0>32?b:32)|0){u=ce;v=fe;b=d;d=q;ee=1317;break a}k[v+(o*40|0)+12>>2]=b;w=v+(o*40|0)+8|0;j[w>>1]=m[w>>1]&48640|16;w=k[Zc>>2]|0;b=k[v+(o*40|0)+16>>2]|0;if(!(i[x>>0]&4))n=Qm(z,0,w,b,0)|0;else n=Ih(z,0,w,b)|0;i[v+(o*40|0)+10>>0]=1;z=F;P=g;break}case 103:{n=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;o=n+25|0;if(i[o>>0]|0){b=d;d=e;n=I;e=g;ee=700;break d}do if(!(i[n+26>>0]|0)){b=k[n+32>>2]|0;if(b){Q=k[b>>2]|0;n=wc[k[(k[Q>>2]|0)+48>>2]&127](b,Od)|0;Rm(a,Q);break}if((i[(k[n>>2]|0)+73>>0]|0)!=1){z=om(n)|0;if(z){b=d;d=e;h=z;ee=1318;break c}if(i[o>>0]|0){b=d;d=e;n=I;e=g;ee=708;break d}}pm(k[n>>2]|0,Od);n=0}else{P=n+48|0;Q=k[P+4>>2]|0;n=Od;k[n>>2]=k[P>>2];k[n+4>>2]=Q;n=0}while(0);Q=Od;P=k[Q+4>>2]|0;z=I;k[z>>2]=k[Q>>2];k[z+4>>2]=P;z=I;P=g;break}case 108:{ee=715;break}case 104:{b=d;d=e;n=I;e=g;ee=711;break d}case 107:case 106:{k[dc>>2]=(k[dc>>2]|0)+1;ee=715;break}case 105:{P=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;n=k[P>>2]|0;k[Bd>>2]=0;n=Mm(n,Bd)|0;Q=k[Bd>>2]|0;i[P+25>>0]=Q;i[P+26>>0]=0;k[P+60>>2]=0;P=k[f+(g*20|0)+8>>2]|0;z=I;P=(P|0)>0&(Q|0)!=0?P+-1|0:g;break}case 7:case 6:{if(!(k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0)){b=d;d=e;O=v;w=f;P=R;Q=S;n=I;e=g;break d}else ee=765;break}case 5:{b=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;k[Cd>>2]=0;w=k[b+56>>2]|0;if(i[w+56>>0]|0){n=$m(k[w+20>>2]|0,Cd)|0;ee=766;break e}n=w+36|0;o=k[n>>2]|0;Q=o+4|0;k[n>>2]=k[Q>>2];k[Q>>2]=0;if(!((k[w+40>>2]|0)!=0|(o|0)==0))rg(he,o);k[Cd>>2]=(k[n>>2]|0)==0&1;n=0;ee=766;break}case 9:case 8:{ee=765;break}case 110:case 109:{x=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;O=k[f+(g*20|0)+8>>2]|0;b=k[x>>2]|0;z=f+(g*20|0)+3|0;if(i[z>>0]&1)k[rb>>2]=(k[rb>>2]|0)+1;if((j[v+(O*40|0)+8>>1]&16384)!=0?(Rd=Wg(v+(O*40|0)|0)|0,(Rd|0)!=0):0){b=d;d=e;f=Rd;h=q;ee=1309;break c}B=k[x+56>>2]|0;P=v+(O*40|0)+12|0;N=k[P>>2]|0;if(!B){if(!(i[z>>0]&16))w=0;else w=k[x+12>>2]|0;n=Nm(b,k[v+(O*40|0)+16>>2]|0,N,((N|0)<0)<<31>>31,10360,0,0,k[f+(g*20|0)+12>>2]|0,w)|0;k[x+60>>2]=0;z=I;P=g;break e}z=N;w=((N|0)<0)<<31>>31;x=0;do{x=x+1|0;z=rw(z|0,w|0,7)|0;w=L}while(((z|0)!=0|(w|0)!=0)&(x|0)<9);o=N+8|0;E=x+N|0;J=B+4|0;x=k[J>>2]|0;do if(!x)n=0;else{if(!(k[B+40>>2]|0)){z=B+44|0;Q=k[z>>2]|0;if((Q|0)<=(x|0)?!((k[2265]|0)!=0?(Q|0)>(k[B>>2]|0):0):0){n=0;break}}else{Q=k[B+48>>2]|0;if(!((Q|0)!=0&(Q+o|0)>(x|0))){n=0;break}z=B+44|0}n=Tm(B)|0;k[z>>2]=0;k[B+48>>2]=0}while(0);z=B+36|0;F=B+44|0;k[F>>2]=(k[F>>2]|0)+E;F=B+8|0;if((E|0)>(k[F>>2]|0))k[F>>2]=E;H=B+40|0;F=k[H>>2]|0;if(!F){w=vg(o,((o|0)<0)<<31>>31)|0;if(!w){b=d;d=e;f=7;h=q;ee=1309;break c}k[w+4>>2]=k[z>>2]}else{w=B+48|0;E=k[w>>2]|0;o=E+o|0;b=B+52|0;D=k[b>>2]|0;if((o|0)>(D|0)){E=D;do E=E<<1;while((E|0)<(o|0));Q=k[J>>2]|0;E=(E|0)>(Q|0)?Q:E;E=(E|0)<(o|0)?o:E;F=wg(F,E,((E|0)<0)<<31>>31)|0;if(!F){b=d;d=e;f=7;h=q;ee=1309;break c}x=F+((k[z>>2]|0)-(k[H>>2]|0))|0;k[z>>2]=x;k[H>>2]=F;k[b>>2]=E;E=k[w>>2]|0}else x=k[z>>2]|0;k[w>>2]=E+(N+15&-8);k[F+(E+4)>>2]=x-F;w=F+E|0}pw(w+8|0,k[v+(O*40|0)+16>>2]|0,k[P>>2]|0)|0;k[w>>2]=k[P>>2];k[z>>2]=w;z=I;P=g;break}case 112:{b=d;d=e;e=g;ee=801;break d}case 111:{w=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;b=k[w>>2]|0;k[vd>>2]=k[w+8>>2];j[ec>>1]=k[f+(g*20|0)+12>>2];i[hc>>0]=0;k[ic>>2]=v+((k[f+(g*20|0)+8>>2]|0)*40|0);n=Hm(b,vd,0,0,0,Dd)|0;if(!(k[Dd>>2]|n))n=Om(b)|0;k[w+60>>2]=0;z=I;P=g;break}case 116:case 115:case 114:case 113:{w=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;k[wd>>2]=k[w+8>>2];j[pc>>1]=k[f+(g*20|0)+16>>2];i[T>>0]=((F&255)<115)<<31>>31;k[U>>2]=v+((k[f+(g*20|0)+12>>2]|0)*40|0);Q=Pd;k[Q>>2]=0;k[Q+4>>2]=0;pm(k[w>>2]|0,Pd);Q=Pd;b=k[Q>>2]|0;Q=ow(b|0,k[Q+4>>2]|0,-1,-1)|0;P=L;if(!(P>>>0>0|(P|0)==0&Q>>>0>2147483646)){j[X>>1]=0;k[Y>>2]=he;k[Z>>2]=0;b=sm(k[w>>2]|0,0,b,1,nd)|0;if(!b){n=Pm(k[_>>2]|0,k[$>>2]|0,wd,0)|0;if((j[X>>1]&9312)==0&(k[Z>>2]|0)==0)b=0;else{Vg(nd);b=0}}else n=0}else{k[ge>>2]=68730;k[ge+4>>2]=10788;gd(11,13600,ge);b=11;n=0}if((((i[z>>0]&1)==0?n+1|0:0-n|0)|0)>0){z=I;P=(k[f+(g*20|0)+8>>2]|0)+-1|0;n=b}else{z=I;P=g;n=b}break}case 117:{M=I+8|0;j[M>>1]=1;if((k[Wb>>2]|0)>((k[aa>>2]|0)+1|0)){b=d;d=e;h=q;ee=832;break c}K=k[f+(g*20|0)+12>>2]|0;J=k[(k[Td>>2]|0)+(K<<4)+4>>2]|0;N=f+(g*20|0)+4|0;E=k[N>>2]|0;z=J+4|0;o=k[z>>2]|0;k[o+4>>2]=k[J>>2];k[ge>>2]=0;do if(!(k[o+8>>2]|0)){n=il(o,E,ge,0)|0;if(!n){n=an(J,E,0)|0;if(n){w=k[ge>>2]|0;if(!w){x=0;break}Gg(k[w+68>>2]|0);x=0;break}if(E>>>0<=1){w=k[ge>>2]|0;ul(w,9);if(!w){n=0;x=0;break}Gg(k[w+68>>2]|0);n=0;x=0;break}if(!(i[o+17>>0]|0)){w=k[ge>>2]|0;n=bn(k[w+52>>2]|0,w,k[w+72>>2]|0)|0;if(!w){x=0;break}Gg(k[w+68>>2]|0);x=0;break}F=k[z>>2]|0;k[F+4>>2]=k[J>>2];F=k[(k[F+12>>2]|0)+56>>2]|0;F=l[F+53>>0]<<16|l[F+52>>0]<<24|l[F+54>>0]<<8|l[F+55>>0];z=k[ge>>2]|0;if((F|0)==(E|0)){n=bn(k[z+52>>2]|0,z,k[z+72>>2]|0)|0;if(z)Gg(k[z+68>>2]|0);if(!n)x=0;else{x=0;break}}else{if(z)Gg(k[z+68>>2]|0);n=il(o,F,Pd,0)|0;if(n){x=0;break}z=k[Pd>>2]|0;n=cn(o,z,1,0,E,0)|0;if(z)Gg(k[z+68>>2]|0);if(n){x=0;break}k[Pd>>2]=0;n=il(o,F,Pd,0)|0;z=k[Pd>>2]|0;if(n){if(!z){x=0;break}}else n=bn(k[z+52>>2]|0,z,k[z+72>>2]|0)|0;Gg(k[z+68>>2]|0);if(!n)x=F;else{x=0;break}}D=((k[2514]|0)>>>0)/((k[o+32>>2]|0)>>>0)|0;C=D+1|0;E=o+36|0;while(1){z=F+-1|0;if((z|0)==(C|0)){F=z;continue}if(z>>>0<2)B=0;else{B=F+-3|0;B=B-((B>>>0)%(((((k[E>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;B=((B+1|0)==(D|0)?3:2)+B|0}if((B|0)==(z|0))F=z;else break}n=Ig(J,4,z)|0}else x=0}else{n=262;x=0}while(0);j[M>>1]=4;Q=I;k[Q>>2]=x;k[Q+4>>2]=((x|0)<0)<<31>>31;if((n|0)==0&(x|0)!=0){b=d;J=K;z=N;d=e;n=I;e=g;ee=865;break d}else{z=I;P=g}break}case 118:{k[bd>>2]=0;b=f+(g*20|0)+12|0;n=an(k[(k[Td>>2]|0)+(k[f+(g*20|0)+8>>2]<<4)+4>>2]|0,k[f+(g*20|0)+4>>2]|0,(k[b>>2]|0)!=0?bd:0)|0;b=k[b>>2]|0;if((b|0)!=0?(Fc=k[bd>>2]|0,k[rb>>2]=(k[rb>>2]|0)+Fc,(b|0)>0):0){z=v+(b*40|0)|0;P=z;P=ow(k[P>>2]|0,k[P+4>>2]|0,Fc|0,((Fc|0)<0)<<31>>31|0)|0;k[z>>2]=P;k[z+4>>2]=L;z=I;P=g}else{z=I;P=g}break}case 121:case 120:{k[sd>>2]=0;n=Fm(k[(k[Td>>2]|0)+(k[f+(g*20|0)+4>>2]<<4)+4>>2]|0,sd,F<<24>>24==121?1:2)|0;P=k[sd>>2]|0;z=I;k[z>>2]=P;k[z+4>>2]=((P|0)<0)<<31>>31;z=I;P=g;break}case 119:{b=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;n=k[b+56>>2]|0;if(n){b=d;d=e;F=I;e=g;ee=878;break d}n=k[b>>2]|0;z=I;P=g;n=an(k[n>>2]|0,k[n+60>>2]|0,0)|0;break}case 123:{z=I;P=g;n=fn(he,k[f+(g*20|0)+4>>2]|0)|0;break}case 124:{b=d;d=e;n=I;e=g;ee=886;break d}case 122:{b=d;d=e;F=I;e=g;ee=881;break d}case 126:{b=d;d=e;n=I;e=g;ee=895;break d}case 125:{b=d;d=e;F=I;e=g;ee=887;break d}case 127:{b=d;d=e;n=I;ee=903;break d}case 128:{b=d;d=e;F=I;ee=947;break d}case 129:{o=k[f+(g*20|0)+4>>2]|0;n=v+(o*40|0)|0;o=v+(o*40|0)+8|0;b=j[o>>1]|0;do if(b&32){B=k[n>>2]|0;b=B+26|0;w=j[b>>1]|0;if(!(w&2)){if(!(w&1)){w=B+8|0;Q=pn(k[w>>2]|0)|0;k[w>>2]=Q;w=j[b>>1]|0}j[b>>1]=w&65535|2}z=B+8|0;x=k[z>>2]|0;if(!x){b=j[o>>1]|0;break}o=x;w=k[o>>2]|0;o=k[o+4>>2]|0;Q=k[x+8>>2]|0;k[z>>2]=Q;if(!Q)cl(B);n=k[f+(g*20|0)+12>>2]|0;b=v+(n*40|0)|0;n=v+(n*40|0)+8|0;if(!(j[n>>1]&9312)){ee=b;k[ee>>2]=w;k[ee+4>>2]=o;j[n>>1]=4;n=0;ee=19;break e}else{ch(b,w,o);n=0;ee=19;break e}}while(0);if(!(b&9312))j[o>>1]=1;else Ag(n);g=(k[f+(g*20|0)+8>>2]|0)+-1|0;n=0;ee=19;break}case 130:{b=d;d=e;n=I;ee=966;break d}case 131:{b=d;d=e;n=I;e=g;ee=993;break d}case 132:{b=d;d=e;n=I;e=g;ee=1009;break d}case 134:{b=d;d=e;F=I;e=g;ee=1010;break d}case 135:{b=d;d=e;n=I;e=g;ee=1015;break d}case 136:{b=d;d=e;e=g;ee=1022;break d}case 137:{b=d;d=e;n=I;e=g;ee=1028;break d}case 138:{b=d;d=e;n=I;e=g;ee=1030;break d}case 139:{b=d;d=e;F=I;e=g;ee=1032;break d}case 140:{b=d;d=e;n=I;e=g;ee=1034;break d}case 141:{b=d;d=e;n=I;e=g;ee=1036;break d}case 10:{Q=i[f+(g*20|0)+3>>0]|0;w=Q&255;b=k[yb>>2]|0;if(Q<<24>>24){n=0;o=v+((k[f+(g*20|0)+8>>2]|0)*40|0)|0;while(1){k[b+(n<<2)>>2]=o;n=n+1|0;if((n|0)>=(w|0))break;else o=o+40|0}}Q=k[f+(g*20|0)+16>>2]|0;k[Da>>2]=Q;P=k[f+(g*20|0)+12>>2]|0;k[Ea>>2]=v+(P*40|0);P=v+(P*40|0)+12|0;k[P>>2]=(k[P>>2]|0)+1;j[Fa>>1]=1;k[Ga>>2]=he;k[Ha>>2]=0;k[Sc>>2]=Jd;k[Ia>>2]=0;k[Ja>>2]=a;k[Ka>>2]=g;i[La>>0]=0;rc[k[Q+16>>2]&63](Sc,w,b);if(!(k[Ia>>2]|0))n=0;else{n=Xg(Jd,1)|0;k[ge>>2]=n;ih(fe,he,10344,ge);n=k[Ia>>2]|0}do if((i[La>>0]|0)!=0?(Jc=k[f+((g+-1|0)*20|0)+4>>2]|0,(Jc|0)!=0):0){b=v+(Jc*40|0)|0;o=v+(Jc*40|0)+8|0;if(!(j[o>>1]&9312)){Q=b;k[Q>>2]=1;k[Q+4>>2]=0;j[o>>1]=4;break}else{ch(b,1,0);break}}while(0);if((j[Fa>>1]&9312)==0&(k[Ha>>2]|0)==0){z=I;P=g}else{Vg(Jd);z=I;P=g}break}case 11:{k[Oc>>2]=0;k[Ma>>2]=-1;k[Na>>2]=-1;b=$h(he,k[f+(g*20|0)+4>>2]|0,k[f+(g*20|0)+8>>2]|0,Na,Ma)|0;if((b|0)==5){k[Oc>>2]=1;b=0}n=0;o=v+((k[f+(g*20|0)+12>>2]|0)*40|0)|0;while(1){z=k[Oc+(n<<2)>>2]|0;x=((z|0)<0)<<31>>31;w=o+8|0;if(!(j[w>>1]&9312)){Q=o;k[Q>>2]=z;k[Q+4>>2]=x;j[w>>1]=4}else ch(o,z,x);n=n+1|0;if((n|0)==3){z=I;P=g;n=b;break}else o=o+40|0}break}case 142:{z=k[f+(g*20|0)+4>>2]|0;w=v+(z*40|0)|0;n=bl(w,k[f+(g*20|0)+16>>2]|0)|0;if(n){Q=Xg(w,1)|0;k[ge>>2]=Q;ih(fe,he,10344,ge)}bm(w,ub)|0;o=m[v+(z*40|0)+8>>1]|0;if(o&18){b=k[v+(z*40|0)+12>>2]|0;if(o&16384)b=(k[w>>2]|0)+b|0;if((b|0)>(k[(k[v+(z*40|0)+32>>2]|0)+88>>2]|0)){b=d;d=e;h=q;ee=1316;break c}else{z=I;P=g}}else{z=I;P=g}break}case 12:{b=k[f+(g*20|0)+12>>2]|0;I=k[(k[Td>>2]|0)+(k[f+(g*20|0)+4>>2]<<4)+4>>2]|0;H=k[k[I+4>>2]>>2]|0;F=i[H+5>>0]|0;w=F&255;b=(b|0)==-1?w:b;do if((l[H+16>>0]|0)>2)b=w;else if((k[k[H+64>>2]>>2]|0)!=0?(Q=H+72|0,P=k[Q+4>>2]|0,(P|0)>0|(P|0)==0&(k[Q>>2]|0)>>>0>0):0){b=w;break}while(0);if(!(i[H+15>>0]|0))x=k[H+168>>2]|0;else x=10360;o=(b|0)==5;if(o)if(x){z=x;while(1)if(!(i[z>>0]|0))break;else z=z+1|0;if(z-x&1073741823){z=k[k[H+60>>2]>>2]|0;if(!(i[H+4>>0]|0))if((k[z>>2]|0)>1?!((k[z+52>>2]|0)==0|(b|0)==(w|0)):0)ee=1077;else{b=w;n=0}else ee=1076}else{b=w;n=0}}else{b=w;n=0}else ee=1076;if((ee|0)==1076){ee=0;if((b|0)==(w|0)){b=w;n=0}else ee=1077}do if((ee|0)==1077){ee=0;z=F<<24>>24==5;if(z|o){if(!(i[ae>>0]|0)){b=d;f=o;d=e;h=q;ee=1080;break c}if((k[Wb>>2]|0)>1){b=d;f=o;d=e;h=q;ee=1080;break c}if(!z){if(F<<24>>24==4)xn(H,2)|0}else{F=H+208|0;if(!(k[F>>2]|0)){k[Wc>>2]=0;n=kl(H,1)|0;if(n)break;n=k[H>>2]|0;n=uc[k[n+32>>2]&31](n,k[H+212>>2]|0,0,Wc)|0;if((n|0)==0&(k[Wc>>2]|0)!=0)n=un(H)|0;if(n)break;if(k[F>>2]|0)ee=1088}else ee=1088;if((ee|0)==1088){ee=0;n=vn(H)|0;if(n)break;n=wn(k[F>>2]|0,l[H+9>>0]|0,k[H+152>>2]|0,k[H+200>>2]|0)|0;k[F>>2]=0;if(n)break}xn(H,b)|0}n=Kg(I,o?2:1)|0}else n=0}while(0);b=xn(H,(n|0)==0?b:w)|0;z=k[f+(g*20|0)+8>>2]|0;F=v+(z*40|0)|0;j[v+(z*40|0)+8>>1]=2562;if((b|0)==6){k[v+(z*40|0)+16>>2]=0;b=0}else{b=k[32216+(b<<2)>>2]|0;k[v+(z*40|0)+16>>2]=b;w=b;while(1)if(!(i[w>>0]|0))break;else w=w+1|0;b=w-b&1073741823}k[v+(z*40|0)+12>>2]=b;i[v+(z*40|0)+10>>0]=1;bm(F,ub)|0;z=F;P=g;break}case 13:{if(!(i[ae>>0]|0)){b=d;d=e;h=q;ee=1101;break c}if((k[Oa>>2]|0)>1){b=d;d=e;h=q;ee=1103;break c}O=k[Qb>>2]|0;K=k[sb>>2]|0;o=k[tb>>2]|0;b=k[Pa>>2]|0;k[Qb>>2]=O&-2762753|2107392;k[Pa>>2]=0;H=k[(k[Td>>2]|0)+4>>2]|0;N=H+4|0;E=i[(k[k[N>>2]>>2]|0)+15>>0]|0;Q=k[Rb>>2]|0;n=yn(he,fe,(i[Xb>>0]|0)==2?42432:42464)|0;F=k[Rb>>2]|0;if((F|0)>(Q|0))w=(k[Td>>2]|0)+(F+-1<<4)|0;else w=0;i:do if(!n){M=k[(k[Td>>2]|0)+(F+-1<<4)+4>>2]|0;zn(M)|0;P=k[N>>2]|0;k[P+4>>2]=k[H>>2];P=(k[P+32>>2]|0)-(k[P+36>>2]|0)|0;n=yn(he,fe,42488)|0;if(!n){n=yn(he,fe,42528)|0;if(!n){n=Dg(H,2)|0;if(!n){F=k[N>>2]|0;if((i[(k[F>>2]|0)+5>>0]|0)==5)k[Qa>>2]=0;if(!(Cg(M,k[F+32>>2]|0,P,0)|0)){if(E<<24>>24==0?(Cg(M,k[Qa>>2]|0,P,0)|0)!=0:0){n=7;break}if(i[ce>>0]|0){n=7;break}F=i[Ra>>0]|0;do if(F<<24>>24>-1)F=F<<24>>24;else{F=k[N>>2]|0;k[F+4>>2]=k[H>>2];if(!(i[F+17>>0]|0)){F=0;break}F=(i[F+18>>0]|0)==0?1:2}while(0);An(M,F)|0;n=Bn(he,fe,42536)|0;if(n)break;n=Bn(he,fe,42688)|0;if(n)break;n=Bn(he,fe,42792)|0;if(n)break;n=Bn(he,fe,42912)|0;if(n)break;n=Bn(he,fe,43112)|0;if(n)break;n=Bn(he,fe,43232)|0;if(n)break;n=yn(he,fe,43392)|0;if(!n)F=0;else break;do{n=l[43576+F>>0]|0;Bm(H,n,Yc);n=Ig(M,n,(l[43576+(F|1)>>0]|0)+(k[Yc>>2]|0)|0)|0;F=F+2|0;if(n)break i}while((F|0)<10);D=k[N>>2]|0;k[D+4>>2]=k[H>>2];F=k[M>>2]|0;J=M+4|0;E=k[J>>2]|0;k[E+4>>2]=F;D=k[(k[D>>2]|0)+60>>2]|0;C=k[D>>2]|0;if(C){Q=k[E+32>>2]|0;Q=xw(k[E+44>>2]|0,0,Q|0,((Q|0)<0)<<31>>31|0)|0;n=ad;k[n>>2]=Q;k[n+4>>2]=L;n=fc[k[C+40>>2]&63](D,11,ad)|0;n=(n|0)==12?0:n;if(n)break;F=k[M>>2]|0}Q=Qc+0|0;C=Q+48|0;do{k[Q>>2]=0;Q=Q+4|0}while((Q|0)<(C|0));k[Sa>>2]=F;k[Ta>>2]=M;k[Ua>>2]=H;k[Va>>2]=1;ld(Qc,2147483647)|0;n=md(Qc)|0;if(n){z=k[k[(k[Ua>>2]|0)+4>>2]>>2]|0;if(i[z+15>>0]|0)break;if(i[z+12>>0]|0)break;Cn(z);break}n=(k[N>>2]|0)+22|0;j[n>>1]=m[n>>1]&65533;n=zn(M)|0;if(n)break;F=k[J>>2]|0;k[F+4>>2]=k[M>>2];if(!(i[F+17>>0]|0))B=0;else B=(i[F+18>>0]|0)==0?1:2;An(H,B)|0;n=Cg(H,k[(k[J>>2]|0)+32>>2]|0,P,1)|0}else n=7}}}}while(0);k[Qb>>2]=O;k[sb>>2]=K;k[tb>>2]=o;k[Pa>>2]=b;Cg(H,-1,-1,1)|0;i[ae>>0]=1;if(w){Q=w+4|0;Rl(k[Q>>2]|0);k[Q>>2]=0;k[w+12>>2]=0}Jg(he);z=I;P=g;break}case 143:{Q=k[(k[Td>>2]|0)+(k[f+(g*20|0)+4>>2]<<4)+4>>2]|0;E=k[Q+4>>2]|0;k[E+4>>2]=k[Q>>2];if(!(i[E+17>>0]|0)){b=d;d=e;n=I;ee=1157;break d}B=E+44|0;D=k[B>>2]|0;x=E+12|0;z=k[(k[x>>2]|0)+56>>2]|0;z=l[z+37>>0]<<16|l[z+36>>0]<<24|l[z+38>>0]<<8|l[z+39>>0];C=Jl(E,D,z)|0;if(D>>>0>>0){b=d;d=e;h=q;ee=1145;break c}if(!z){b=d;d=e;n=I;ee=1157;break d}F=E+8|0;w=k[F>>2]|0;do if(w){z=w;do{if(z){ee=1150;break}z=k[2]|0}while((z|0)!=0);if((ee|0)==1150){ee=0;n=Kl(z,0,0)|0;if(n)break;w=k[F>>2]|0}if(w){do{Q=w+72|0;i[Q>>0]=l[Q>>0]&251;w=k[w+8>>2]|0}while((w|0)!=0);ee=1154}else ee=1154}else ee=1154;while(0);if((ee|0)==1154){ee=0;n=Ll(E,C,D,0)|0;if(!n){n=Lg(k[(k[x>>2]|0)+68>>2]|0)|0;Q=k[(k[x>>2]|0)+56>>2]|0;P=k[B>>2]|0;i[Q+28>>0]=P>>>24;i[Q+29>>0]=P>>>16;i[Q+30>>0]=P>>>8;i[Q+31>>0]=P}}if((n|0)==101){b=d;d=e;n=I;ee=1157;break d}else{z=I;P=g}break}case 145:{b=k[f+(g*20|0)+12>>2]|0;if((b&255|0)==0?(k[Qb>>2]&16384|0)!=0:0){b=d;d=e;O=v;w=f;P=R;Q=S;n=I;e=g;break d}z=k[(k[Td>>2]|0)+(k[f+(g*20|0)+4>>2]<<4)+4>>2]|0;x=k[f+(g*20|0)+8>>2]|0;if(!(i[z+9>>0]|0)){b=d;d=e;O=v;w=f;P=R;Q=S;n=I;e=g;break d}w=b+1&255;o=z+4|0;k[(k[o>>2]|0)+4>>2]=k[z>>2];n=gl(z,x,w)|0;if(!n){b=d;d=e;n=I;e=g;ee=1166;break d}if((n&255|0)!=6){b=d;d=e;f=n;h=q;ee=1309;break c}k[ge>>2]=k[f+(g*20|0)+16>>2];ih(fe,he,42224,ge);z=I;P=g;break}case 144:{b=d;d=e;n=I;e=g;ee=1158;break d}case 146:{F=k[f+(g*20|0)+16>>2]|0;n=k[Wa>>2]|0;w=(n|0)>0;if(w?(k[Xa>>2]|0)==0:0){n=6;ee=1188}else ee=1179;j:do if((ee|0)==1179){ee=0;if(!F){b=d;d=e;O=v;w=f;P=R;Q=S;n=I;e=g;break d}b=F+8|0;o=(k[k[b>>2]>>2]|0)+56|0;if(k[o>>2]|0){if(w){z=k[Xa>>2]|0;x=0;do{if((k[z+(x<<2)>>2]|0)==(F|0)){n=0;ee=1188;break j}x=x+1|0}while((x|0)<(n|0))}n=Dn(he)|0;if(!n){n=qc[k[o>>2]&127](k[b>>2]|0)|0;if(!n){n=k[Wa>>2]|0;k[Wa>>2]=n+1;k[(k[Xa>>2]|0)+(n<<2)>>2]=F;n=F+12|0;k[n>>2]=(k[n>>2]|0)+1;n=0}}else ee=1188}else n=0}while(0);if((ee|0)==1188){ee=0;if(!F){z=I;P=g;break e}b=F+8|0}Rm(a,k[b>>2]|0);z=I;P=g;break}case 147:{Q=Hd+0|0;C=Q+40|0;do{k[Q>>2]=0;Q=Q+4|0}while((Q|0)<(C|0));k[Ya>>2]=he;b=dh(Hd,v+((k[f+(g*20|0)+8>>2]|0)*40|0)|0)|0;n=Xg(Hd,1)|0;k:do if(n){w=di(he,n,k[(k[Td>>2]|0)+(k[f+(g*20|0)+4>>2]<<4)>>2]|0)|0;b=k[k[w+56>>2]>>2]|0;n=gn($a,b,Tc)|0;if((n|0)!=0?(Lc=k[n+8>>2]|0,(Lc|0)!=0):0){b=En(he,w,Lc,k[(k[Lc>>2]|0)+4>>2]|0,fe)|0;if(b)break;w=w+60|0;b=k[w>>2]|0;if(!b){b=0;break}while(1){if((k[b>>2]|0)==(he|0))break;b=k[b+24>>2]|0;if(!b){b=0;break k}}b=Dn(he)|0;if(b)break;b=k[w>>2]|0;l:do if(!b)b=0;else while(1){if((k[b>>2]|0)==(he|0))break l;b=k[b+24>>2]|0;if(!b){b=0;break}}while(0);Q=k[Wa>>2]|0;k[Wa>>2]=Q+1;k[(k[Xa>>2]|0)+(Q<<2)>>2]=b;b=b+12|0;k[b>>2]=(k[b>>2]|0)+1;b=0;break}k[ge>>2]=b;b=zh(he,28320,ge)|0;k[fe>>2]=b;b=1}while(0);if((j[Za>>1]&9312)==0&(k[_a>>2]|0)==0){z=I;P=g;n=b}else{Vg(Hd);z=I;P=g;n=b}break}case 148:{k[aa>>2]=(k[aa>>2]|0)+1;b=di(he,k[f+(g*20|0)+16>>2]|0,k[(k[Td>>2]|0)+(k[f+(g*20|0)+4>>2]<<4)>>2]|0)|0;m:do if((b|0)!=0?(Mc=b+60|0,Nc=k[Mc>>2]|0,(Nc|0)!=0):0){n=Nc;do{if((k[(k[n+8>>2]|0)+4>>2]|0)>0){n=6;break m}n=k[n+24>>2]|0}while((n|0)!=0);b=Tk(he,b)|0;o=b+8|0;n=qc[k[(k[k[b+4>>2]>>2]|0)+20>>2]&127](k[o>>2]|0)|0;if(!n){k[o>>2]=0;k[Mc>>2]=0;Fn(b);n=0}}else n=0;while(0);k[aa>>2]=(k[aa>>2]|0)+-1;z=I;P=g;break}case 149:{b=d;d=e;n=I;e=g;ee=1213;break d}case 150:{b=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;z=k[f+(g*20|0)+12>>2]|0;x=v+(z*40|0)|0;if(i[b+25>>0]|0){b=d;d=e;n=I;e=g;ee=1226;break d}Q=b+32|0;n=k[k[Q>>2]>>2]|0;P=k[n>>2]|0;k[Fd+0>>2]=0;k[Fd+4>>2]=0;k[Fd+8>>2]=0;k[Fd+12>>2]=0;k[Fd+16>>2]=0;k[Fd+20>>2]=0;k[Fd+24>>2]=0;k[Fd>>2]=x;w=v+(z*40|0)+8|0;j[w>>1]=m[w>>1]&48640|1;Q=fc[k[P+44>>2]&63](k[Q>>2]|0,Fd,k[f+(g*20|0)+8>>2]|0)|0;Rm(a,n);n=k[ab>>2]|0;n=(n|0)==0?Q:n;bm(x,ub)|0;w=m[w>>1]|0;if(w&18){b=k[v+(z*40|0)+12>>2]|0;if(w&16384)b=(k[x>>2]|0)+b|0;if((b|0)>(k[(k[v+(z*40|0)+32>>2]|0)+88>>2]|0)){b=d;d=e;h=q;ee=1316;break c}else{z=I;P=g}}else{z=I;P=g}break}case 14:{x=k[f+(g*20|0)+12>>2]|0;z=x+1|0;C=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;F=k[C+32>>2]|0;E=k[F>>2]|0;D=k[E>>2]|0;B=k[v+(z*40|0)>>2]|0;x=k[v+(x*40|0)>>2]|0;w=k[yb>>2]|0;if((B|0)>0){b=0;do{Q=b;b=b+1|0;k[w+(Q<<2)>>2]=v+((b+z|0)*40|0)}while((b|0)!=(B|0))}n=yc[k[D+32>>2]&31](F,x,k[f+(g*20|0)+16>>2]|0,B,w)|0;Rm(a,E);if((n|0)==0?(qc[k[D+40>>2]&127](F)|0)!=0:0)g=(k[f+(g*20|0)+8>>2]|0)+-1|0;i[C+25>>0]=0;z=I;P=g;break}case 151:{b=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;if(i[b+25>>0]|0){b=d;d=e;O=v;w=f;P=R;Q=S;n=I;e=g;break d}b=b+32|0;o=k[b>>2]|0;Q=k[o>>2]|0;n=k[Q>>2]|0;o=qc[k[n+36>>2]&127](o)|0;Rm(a,Q);if((o|0)==0?(qc[k[n+40>>2]&127](k[b>>2]|0)|0)!=0:0){n=0;ee=19;break e}g=(k[f+(g*20|0)+8>>2]|0)+-1|0;n=o;ee=19;break}case 15:{C=f+(g*20|0)+16|0;b=k[(k[C>>2]|0)+8>>2]|0;if(!b){b=d;d=e;f=6;h=q;ee=1309;break c}w=k[b>>2]|0;if(!w){b=d;d=e;f=6;h=q;ee=1309;break c}E=k[f+(g*20|0)+8>>2]|0;B=w+52|0;z=k[B>>2]|0;if(!z){b=d;d=e;O=v;w=f;P=R;Q=S;n=I;e=g;break d}D=i[bb>>0]|0;F=k[yb>>2]|0;if((E|0)>0){z=0;x=v+((k[f+(g*20|0)+12>>2]|0)*40|0)|0;while(1){k[F+(z<<2)>>2]=x;z=z+1|0;if((z|0)==(E|0))break;else x=x+40|0}z=k[B>>2]|0}x=f+(g*20|0)+3|0;i[bb>>0]=i[x>>0]|0;n=uc[z&31](b,E,F,Ed)|0;i[bb>>0]=D;Rm(a,b);if(!n){if(k[f+(g*20|0)+4>>2]|0){c=Ed;e=k[c>>2]|0;c=k[c+4>>2]|0;Q=je;k[Q>>2]=e;k[Q+4>>2]=c}}else if((n&255|0)==19?(i[(k[C>>2]|0)+16>>0]|0)!=0:0){b=i[x>>0]|0;if(b<<24>>24==5)b=2;else if(b<<24>>24==4){b=d;d=e;O=v;w=f;P=R;Q=S;n=I;e=g;break d}i[be>>0]=b;z=I;P=g;break e}k[rb>>2]=(k[rb>>2]|0)+1;z=I;P=g;break}case 152:{b=k[(k[f+(g*20|0)+16>>2]|0)+8>>2]|0;n=k[f+(g*20|0)+4>>2]|0;o=v+(n*40|0)|0;if(((j[v+(n*40|0)+8>>1]&2)!=0?(i[v+(n*40|0)+10>>0]|0)!=1:0)?(Sd=Gn(o,1)|0,(Sd|0)!=0):0){b=d;d=e;f=Sd;h=q;ee=1309;break c}n=wc[k[(k[b>>2]|0)+76>>2]&127](b,k[v+(n*40|0)+16>>2]|0)|0;Rm(a,b);j[Ud>>1]=j[Ud>>1]&-9;z=I;P=g;break}case 153:{b=d;d=e;n=I;e=g;ee=1257;break d}case 155:{b=d;d=e;ee=1264;break d}case 154:{b=d;d=e;F=I;e=g;ee=1258;break d}default:{b=d;d=e;O=v;w=f;P=R;Q=S;n=I;e=g;break d}}while(0);n:do if((ee|0)==57){ee=0;w=I+8|0;j[w>>1]=2562;k[I+16>>2]=o;k[I+12>>2]=b;i[I+10>>0]=Gc;if((i[f+(g*20|0)+3>>0]|0)!=0?(Q=v+((k[f+(g*20|0)+12>>2]|0)*40|0)|0,!((k[Q>>2]|0)==0&(k[Q+4>>2]|0)==0)):0){j[w>>1]=2576;z=I;P=g}else{z=I;P=g}}else if((ee|0)==536){if(j[Ud>>1]&8){b=d;d=e;f=516;h=q;ee=1309;break c}z=k[f+(g*20|0)+8>>2]|0;E=k[f+(g*20|0)+12>>2]|0;b=k[Td>>2]|0;D=k[b+(E<<4)+4>>2]|0;if(F<<24>>24==55){b=i[(k[b+(E<<4)+12>>2]|0)+76>>0]|0;if((b&255)<(l[Jb>>0]|0)){i[Jb>>0]=b;F=1}else F=1}else F=0;w=f+(g*20|0)+3|0;if(i[w>>0]&4){Q=v+(z*40|0)|0;b=_g(Q)|0;k[Q>>2]=b;k[Q+4>>2]=L;Q=v+(z*40|0)+8|0;j[Q>>1]=m[Q>>1]&48640|4;if((b|0)<2){b=d;d=e;f=q;ee=542;break c}else B=b}else B=z;n=f+(g*20|0)+1|0;z=i[n>>0]|0;if(z<<24>>24==-6){x=k[f+(g*20|0)+16>>2]|0;z=(m[x+8>>1]|0)+(m[x+6>>1]|0)|0}else if(z<<24>>24==-14){z=k[f+(g*20|0)+16>>2]|0;x=0}else{z=0;x=0}b=Cm(a,k[f+(g*20|0)+4>>2]|0,z,E,1)|0;if(!b){u=ce;v=fe;b=d;d=q;ee=1317;break a}i[b+25>>0]=1;Q=b+27|0;i[Q>>0]=i[Q>>0]|8;k[b+28>>2]=B;ee=Dm(D,B,F,x,k[b>>2]|0)|0;k[b+8>>2]=x;i[Q>>0]=((i[n>>0]|0)!=-6&1)<<2&255|i[Q>>0]&-5;n=ee;ee=548}else if((ee|0)==715){ee=0;G=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;x=k[G+56>>2]|0;do if(!x){n=k[G>>2]|0;b=vm(n)|0;if(!b)if(!(i[n+73>>0]|0)){w=1;b=0}else{w=0;b=_m(n)|0}else w=1;i[G+26>>0]=0;k[G+60>>2]=0;i[G+25>>0]=w;if(!w){z=I;P=g;n=b;break n}}else{do if(!(i[x+56>>0]|0)){b=x+36|0;if(!(k[b>>2]|0)){b=0;ee=756}else{b=Sm(x+64|0,b)|0;ee=755}}else{b=Tm(x)|0;if(!b){Q=x+59|0;o:do if(!(i[Q>>0]|0)){n=0;b=0}else{H=0;w=0;p:while(1){P=x+(H<<6)+64|0;k[ge>>2]=0;O=x+(H<<6)+92|0;z=k[O>>2]|0;F=((z|0)<0)<<31>>31;do if((z|0)>16){E=16;D=0;B=0;while(1){E=nw(E|0,D|0,4)|0;D=L;C=B+1|0;if(!((D|0)<(F|0)|(D|0)==(F|0)&E>>>0>>0)){D=B;break}else B=C}N=Pd;k[N>>2]=0;k[N+4>>2]=0;if((z|0)<17){ee=726;break}n=Vm(16)|0;k[ge>>2]=n;F=(n|0)==0;E=k[O>>2]|0;if(!((E|0)>0&(F^1))){b=F?7:0;break}K=(D|0)>0;N=0;M=0;do{k[nd>>2]=0;b=E-N|0;b=Um(P,(b|0)<16?b:16,Pd,nd)|0;if(b){ee=747;break p}b=Wm(P,k[nd>>2]|0,kd)|0;do if(K){E=1;F=1;do{F=F<<4;E=E+1|0}while((E|0)!=(C|0));if(!b){J=1;E=n}else{F=k[kd>>2]|0;ee=743;break}while(1){o=(k[E+12>>2]|0)+((((M|0)/(F|0)|0|0)%16|0)*56|0)+48|0;E=k[o>>2]|0;if(!E){E=Vm(16)|0;if(!E){b=7;ee=738;break}b=Wm(P,E,o)|0;if(b){ee=738;break}E=k[o>>2]|0}E=k[E+4>>2]|0;J=J+1|0;if((J|0)>=(C|0)){ee=740;break}else F=(F|0)/16|0}if((ee|0)==738){F=k[kd>>2]|0;ee=743;break}else if((ee|0)==740){F=k[kd>>2]|0;ee=742;break}}else{F=k[kd>>2]|0;if(!b){E=n;ee=742}else ee=743}while(0);if((ee|0)==742){ee=0;k[(k[E+12>>2]|0)+(((M|0)%16|0)*56|0)+48>>2]=F;b=0}else if((ee|0)==743){ee=0;Xm(F)}M=M+1|0;N=N+16|0;E=k[O>>2]|0}while((N|0)<(E|0)&(b|0)==0)}else{ee=Pd;k[ee>>2]=0;k[ee+4>>2]=0;ee=726}while(0);if((ee|0)==726){ee=0;b=Um(P,z,Pd,ge)|0;n=k[ge>>2]|0}H=H+1|0;if(b){ee=746;break}if((H|0)>=(l[Q>>0]|0)){b=0;break o}else w=n}if((ee|0)==746)Ym(n);else if((ee|0)==747)Ym(n);Ym(w);n=0}while(0);if(!b){b=Zm(x+64|0,n)|0;k[x+20>>2]=n;if(!b){b=0;ee=755;break}else n=0}Ym(n);ee=755}else ee=756}while(0);if((ee|0)==755){ee=0;i[G+25>>0]=0;z=I;P=g;n=b;break n}else if((ee|0)==756){ee=0;i[G+25>>0]=1;break}}while(0);z=I;P=(k[f+(g*20|0)+8>>2]|0)+-1|0;n=b}else if((ee|0)==765){n=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;k[Cd>>2]=k[f+(g*20|0)+12>>2];b=n;n=wc[k[f+(g*20|0)+16>>2]&127](k[n>>2]|0,Cd)|0;ee=766}while(0);do if((ee|0)==548){ee=0;i[(k[b>>2]|0)+74>>0]=l[w>>0]&3;z=I;P=g}else if((ee|0)==766){k[b+60>>2]=0;b=b+25|0;if(!(k[Cd>>2]|0)){i[b>>0]=0;ee=(k[f+(g*20|0)+8>>2]|0)+-1|0;g=a+(l[f+(g*20|0)+3>>0]<<2)+108|0;k[g>>2]=(k[g>>2]|0)+1;g=ee;ee=19;break}else{i[b>>0]=1;ee=19;break}}while(0);if((ee|0)==19){ee=0;if(k[zc>>2]|0){h=fe;b=d;d=q;break b}b=k[Zd>>2]|0;if(!((b|0)==0|d>>>0>>0)){u=k[sc>>2]|0;if(!(qc[b&127](k[Vd>>2]|0)|0)){u=u+d-((d>>>0)%(u>>>0)|0)|0;z=I;P=g}else{b=d;f=9;d=q;ee=1311;break a}}else{z=I;P=g}}g=P+1|0;if(!n){b=d;n=z}else{b=d;f=n;d=q;ee=1311;break a}}q:switch(ee|0){case 22:{ee=0;O=k[f+(g*20|0)+4>>2]|0;j[v+(O*40|0)+8>>1]=4;O=v+(O*40|0)|0;k[O>>2]=g;k[O+4>>2]=((g|0)<0)<<31>>31;O=v;w=f;P=R;Q=S;e=(k[f+(g*20|0)+8>>2]|0)+-1|0;break}case 23:{ee=0;O=k[f+(g*20|0)+4>>2]|0;e=k[v+(O*40|0)>>2]|0;j[v+(O*40|0)+8>>1]=128;O=v;w=f;P=R;Q=S;break}case 24:{ee=0;e=k[f+(g*20|0)+4>>2]|0;n=v+(e*40|0)|0;w=(k[f+(g*20|0)+12>>2]|0)+-1|0;O=n;k[O>>2]=w;k[O+4>>2]=((w|0)<0)<<31>>31;j[v+(e*40|0)+8>>1]=4;e=k[f+(g*20|0)+8>>2]|0;O=v;w=f;P=R;Q=S;e=(e|0)==0?g:e+-1|0;break}case 25:{ee=0;O=k[f+(g*20|0)+4>>2]|0;e=(k[f+((k[v+(O*40|0)>>2]|0)*20|0)+8>>2]|0)+-1|0;j[v+(O*40|0)+8>>1]=128;O=v;w=f;P=R;Q=S;break}case 26:{ee=0;O=k[f+(g*20|0)+4>>2]|0;j[v+(O*40|0)+8>>1]=4;O=v+(O*40|0)|0;e=k[O>>2]|0;k[O>>2]=g;k[O+4>>2]=((g|0)<0)<<31>>31;O=v;w=f;P=R;Q=S;break}case 27:{ee=0;if(!(j[v+((k[f+(e*20|0)+12>>2]|0)*40|0)+8>>1]&1)){O=v;w=f;P=R;Q=S}else ee=28;break}case 44:{ee=0;w=k[f+(e*20|0)+4>>2]|0;O=n;k[O>>2]=w;k[O+4>>2]=((w|0)<0)<<31>>31;O=v;w=f;P=R;Q=S;break}case 45:{ee=0;P=k[f+(e*20|0)+16>>2]|0;w=k[P+4>>2]|0;O=n;k[O>>2]=k[P>>2];k[O+4>>2]=w;O=v;w=f;P=R;Q=S;break}case 46:{ee=0;j[n+8>>1]=8;p[n>>3]=+p[k[f+(e*20|0)+16>>2]>>3];O=v;w=f;P=R;Q=S;break}case 60:{ee=0;F=(k[f+(e*20|0)+12>>2]|0)-(k[f+(e*20|0)+8>>2]|0)|0;w=(k[f+(e*20|0)+4>>2]|0)!=0?257:1;j[n+8>>1]=w;if((F|0)>0){o=F;x=n;do{g=x+48|0;x=x+40|0;if(!(j[g>>1]&9312))j[g>>1]=1;else Ag(x);j[g>>1]=w;o=o+-1|0}while((o|0)>0);O=v;w=f;P=R;Q=S;n=n+(F*40|0)|0}else{O=v;w=f;P=R;Q=S}break}case 65:{ee=0;n=k[f+(e*20|0)+4>>2]|0;O=v+(n*40|0)+8|0;j[O>>1]=m[O>>1]&65406|1;O=v;w=f;P=R;Q=S;n=v+(n*40|0)|0;break}case 66:{ee=0;ah(n,k[f+(e*20|0)+16>>2]|0,k[f+(e*20|0)+4>>2]|0,0,0)|0;i[n+10>>0]=Gc;O=v;w=f;P=R;Q=S;break}case 67:{ee=0;z=(k[f+(e*20|0)+4>>2]|0)+-1|0;x=k[xb>>2]|0;o=x+(z*40|0)|0;g=m[x+(z*40|0)+8>>1]|0;if(g&18){w=k[x+(z*40|0)+12>>2]|0;if(g&16384)w=(k[o>>2]|0)+w|0;if((w|0)>(k[(k[x+(z*40|0)+32>>2]|0)+88>>2]|0)){g=e;h=q;ee=1316;break c}}cm(n,o,2048);O=v;w=f;P=R;Q=S;break}case 72:{ee=0;g=k[f+(e*20|0)+12>>2]|0;o=k[f+(e*20|0)+8>>2]|0;F=g+o|0;n=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;o=v+(o*40|0)|0;while(1){dm(o,n);g=g+-1|0;if(!g)break;else{n=n+40|0;o=o+40|0}}O=v;w=f;P=R;Q=S;n=v+(F*40|0)|0;break}case 74:{ee=0;e=k[f+(g*20|0)+12>>2]|0;n=v+((k[f+(g*20|0)+4>>2]|0)*40|0)|0;F=v+((k[f+(g*20|0)+8>>2]|0)*40|0)|0;while(1){cm(F,n,4096);if((j[F+8>>1]&4096)!=0?(_l(F)|0)!=0:0){u=ce;v=fe;e=d;d=q;ee=1317;break a}if(!e){O=v;w=f;P=R;Q=S;n=F;e=g;break q}e=e+-1|0;n=n+40|0;F=F+40|0}}case 79:{ee=0;n=v+((k[f+(e*20|0)+8>>2]|0)*40|0)|0;cm(n,v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0,4096);O=v;w=f;P=R;Q=S;break}case 94:{ee=0;G=k[f+(g*20|0)+4>>2]|0;F=v+(G*40|0)|0;H=k[f+(g*20|0)+8>>2]|0;E=v+(H*40|0)|0;I=k[f+(g*20|0)+12>>2]|0;n=v+(I*40|0)|0;D=v+(G*40|0)+8|0;B=j[D>>1]|0;C=v+(H*40|0)+8|0;z=j[C>>1]|0;if((z|B)&1){e=v+(I*40|0)+8|0;if(!(j[e>>1]&9312)){j[e>>1]=1;O=v;w=f;P=R;Q=S;e=g;break}else{Ag(n);O=v;w=f;P=R;Q=S;e=g;break}}if(B&16384){if(Wg(F)|0){u=ce;v=fe;e=d;d=q;ee=1317;break a}z=j[C>>1]|0}if((z&16384)!=0?(Wg(E)|0)!=0:0){u=ce;v=fe;e=d;d=q;ee=1317;break a}if((j[D>>1]&18)==0?(gm(F,Gc,0)|0)!=0:0){u=ce;v=fe;e=d;d=q;ee=1317;break a}if((j[C>>1]&18)==0?(gm(E,Gc,0)|0)!=0:0){u=ce;v=fe;e=d;d=q;ee=1317;break a}B=v+(G*40|0)+12|0;x=v+(H*40|0)+12|0;w=(k[x>>2]|0)+(k[B>>2]|0)|0;if((w|0)>(k[wb>>2]|0)){h=q;ee=1316;break c}e=(I|0)==(H|0);if(jh(n,w+2|0,e&1)|0){u=ce;v=fe;e=d;d=q;ee=1317;break a}o=v+(I*40|0)+8|0;j[o>>1]=m[o>>1]&48640|2;z=v+(I*40|0)+16|0;if(!e)pw(k[z>>2]|0,k[v+(H*40|0)+16>>2]|0,k[x>>2]|0)|0;pw((k[z>>2]|0)+(k[x>>2]|0)|0,k[v+(G*40|0)+16>>2]|0,k[B>>2]|0)|0;i[(k[z>>2]|0)+w>>0]=0;i[(k[z>>2]|0)+(w+1)>>0]=0;j[o>>1]=m[o>>1]|512;k[v+(I*40|0)+12>>2]=w;i[v+(I*40|0)+10>>0]=Gc;O=v;w=f;P=R;Q=S;e=g;break}case 112:{ee=0;J=k[f+(e*20|0)+4>>2]|0;K=v+(J*40|0)|0;O=hm(K)|0;I=k[f+(e*20|0)+8>>2]|0;M=v+(I*40|0)|0;P=hm(M)|0;Q=k[f+(e*20|0)+12>>2]|0;n=v+(Q*40|0)|0;r:do if(!((j[v+(I*40|0)+8>>1]|j[v+(J*40|0)+8>>1])&1)){s:do if(!((O&4&P)<<16>>16))I=0;else{g=K;z=k[g>>2]|0;g=k[g+4>>2]|0;C=M;w=k[C>>2]|0;C=k[C+4>>2]|0;F=l[N>>0]|0;t:do if((F|0)==89){if((g|0)>-1|(g|0)==-1&z>>>0>4294967295){J=iw(-1,2147483647,w|0,C|0)|0;I=L;if(((C|0)>0|(C|0)==0&w>>>0>0)&((I|0)<(g|0)|(I|0)==(g|0)&J>>>0>>0)){I=1;break s}}else if((C|0)<0?(I=iw(1,-2147483648,w|0,C|0)|0,H=L,J=ow(z|0,g|0,1,0)|0,o=L,(H|0)>(o|0)|(H|0)==(o|0)&I>>>0>J>>>0):0){I=1;break s}w=ow(w|0,C|0,z|0,g|0)|0;g=L}else if((F|0)==91){I=vw(w|0,C|0,0,1)|0;o=L;E=ww(w|0,C|0,0,1)|0;F=L;H=vw(z|0,g|0,0,1)|0;x=L;G=ww(z|0,g|0,0,1)|0;J=L;D=ow(w|0,C|0,-1,0)|0;le=L;B=ow(z|0,g|0,-1,0)|0;me=L;B=me>>>0<1|(me|0)==1&B>>>0<4294967295;do if(le>>>0<1|(le|0)==1&D>>>0<4294967295)if(B){w=xw(w|0,C|0,z|0,g|0)|0;g=L;break t}else{D=xw(H|0,x|0,E|0,F|0)|0;C=L;break}else{if(!B){I=1;break s}D=xw(G|0,J|0,I|0,o|0)|0;C=L}while(0);I=ow(D|0,C|0,-2147483648,0)|0;o=L;if(o>>>0>0|(o|0)==0&I>>>0>4294967295){I=1;break s}F=xw(G|0,J|0,E|0,F|0)|0;E=L;if((E|0)>-1|(E|0)==-1&F>>>0>4294967295){J=iw(-1,2147483647,0,D|0)|0;I=L;if(((C|0)>0|(C|0)==0&D>>>0>0)&((I|0)<(E|0)|(I|0)==(E|0)&J>>>0>>0)){I=1;break s}}else if((C|0)<0?(I=iw(1,-2147483648,0,D|0)|0,g=L,J=ow(F|0,E|0,1,0)|0,o=L,(g|0)>(o|0)|(g|0)==(o|0)&I>>>0>J>>>0):0){I=1;break s}w=ow(0,D|0,F|0,E|0)|0;g=L}else if((F|0)==90){if((z|0)==0&(g|0)==-2147483648){if((C|0)>-1|(C|0)==-1&w>>>0>4294967295){I=1;break s}g=C^-2147483648;break}if((g|0)<0|(g|0)==0&z>>>0<1){J=iw(0,0,z|0,g|0)|0;o=L;I=iw(-1,2147483647,w|0,C|0)|0;H=L;if(((C|0)>0|(C|0)==0&w>>>0>0)&((H|0)<(o|0)|(H|0)==(o|0)&I>>>0>>0)){I=1;break s}}else if((C|0)<0?(I=iw(1,-2147483648,w|0,C|0)|0,H=L,J=iw(1,0,z|0,g|0)|0,o=L,(H|0)>(o|0)|(H|0)==(o|0)&I>>>0>J>>>0):0){I=1;break s}w=iw(w|0,C|0,z|0,g|0)|0;g=L}else if((F|0)==92){if((z|0)==0&(g|0)==0)break r;if((z|0)==-1&(g|0)==-1&((w|0)==0&(C|0)==-2147483648)){I=1;break s}w=vw(w|0,C|0,z|0,g|0)|0;g=L}else{if((z|0)==-1){if((g|0)==-1){z=1;g=0}}else if((z|0)==0?(g|0)==0:0)break r;w=ww(w|0,C|0,z|0,g|0)|0;g=L}while(0);O=n;k[O>>2]=w;k[O+4>>2]=g;O=v+(Q*40|0)+8|0;j[O>>1]=m[O>>1]&48640|4;O=v;w=f;P=R;Q=S;break q}while(0);A=+Zg(K);y=+Zg(M);z=l[N>>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=+W(A)>=1.0?(A>0.0?~~+ia(+V(A/4294967296.0),4294967295.0)>>>0:~~+ga((A-+(~~A>>>0))/4294967296.0)>>>0):0;E=~~y>>>0;F=+W(y)>=1.0?(y>0.0?~~+ia(+V(y/4294967296.0),4294967295.0)>>>0:~~+ga((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}N=ww(E|0,F|0,B|0,z|0)|0;y=+(N>>>0)+4294967296.0*+(L|0)}p[ge>>3]=y;p[Pd>>3]=+p[ge>>3];if(!(+p[ge>>3]!=+p[Pd>>3])){p[n>>3]=y;Q=v+(Q*40|0)+8|0;j[Q>>1]=m[Q>>1]&48640|8;if(((P|O)&8)!=0|I<<24>>24!=0){O=v;w=f;P=R;Q=S;break q}im(n);O=v;w=f;P=R;Q=S;break q}}while(0);g=v+(Q*40|0)+8|0;if(!(j[g>>1]&9312)){j[g>>1]=1;O=v;w=f;P=R;Q=S;break}else{Ag(n);O=v;w=f;P=R;Q=S;break}}case 166:{ee=0;g=k[f+(e*20|0)+4>>2]|0;if(g){n=v+(g*40|0)|0;g=v+(g*40|0)+8|0;if(!(j[g>>1]&9312)){O=n;k[O>>2]=0;k[O+4>>2]=0;j[g>>1]=4;O=v;w=f;P=R;Q=S;n=F;break}else{ch(n,0,0);O=v;w=f;P=R;Q=S;n=F;break}}else{O=v;w=f;P=R;Q=S;n=F}break}case 184:{ee=0;z=k[f+(e*20|0)+4>>2]|0;w=k[f+(e*20|0)+8>>2]|0;o=k[f+(e*20|0)+12>>2]|0;n=v+(o*40|0)|0;if((j[v+(w*40|0)+8>>1]|j[v+(z*40|0)+8>>1])&1){g=v+(o*40|0)+8|0;if(!(j[g>>1]&9312)){j[g>>1]=1;O=v;w=f;P=R;Q=S;break}else{Ag(n);O=v;w=f;P=R;Q=S;break}}x=_g(v+(w*40|0)|0)|0;I=L;F=_g(v+(z*40|0)|0)|0;E=L;w=i[D>>0]|0;z=w&255;do if(w<<24>>24==86){x=F|x;g=E|I}else if(w<<24>>24!=85)if(!((F|0)==0&(E|0)==0)){if((E|0)<0){w=175-z&255;z=iw(0,0,F|0,E|0)|0;if((E|0)>-1|(E|0)==-1&F>>>0>4294967232){E=L;ee=194}}else{z=F;ee=194}if((ee|0)==194){ee=0;if(!((E|0)>0|(E|0)==0&z>>>0>63)){if(w<<24>>24==87){x=nw(x|0,I|0,z|0)|0;g=L;break}x=rw(x|0,I|0,z|0)|0;g=L;if((I|0)>=0)break;Q=iw(64,0,z|0,E|0)|0;Q=nw(-1,-1,Q|0)|0;x=Q|x;g=L|g;break}}if((I|0)>-1|(I|0)==-1&x>>>0>4294967295){x=0;g=0}else{g=(w<<24>>24!=87)<<31>>31;x=g;g=((g|0)<0)<<31>>31}}else g=I;else{x=F&x;g=E&I}while(0);O=n;k[O>>2]=x;k[O+4>>2]=g;O=v+(o*40|0)+8|0;j[O>>1]=m[O>>1]&48640|4;O=v;w=f;P=R;Q=S;break}case 202:{ee=0;w=k[f+(e*20|0)+4>>2]|0;O=v+(w*40|0)|0;P=_g(O)|0;w=v+(w*40|0)+8|0;j[w>>1]=m[w>>1]&48640|4;w=k[f+(e*20|0)+8>>2]|0;w=ow(P|0,L|0,w|0,((w|0)<0)<<31>>31|0)|0;k[O>>2]=w;k[O+4>>2]=L;O=v;w=f;P=R;Q=S;break}case 203:{ee=0;n=k[f+(e*20|0)+4>>2]|0;w=v+(n*40|0)+8|0;g=j[w>>1]|0;if(!(g&4)){km(v+(n*40|0)|0,67,Gc);g=j[w>>1]|0;if(!(g&4)){B=k[f+(e*20|0)+8>>2]|0;if(!B){g=e;h=20;ee=1318;break c}O=v;w=f;P=R;Q=S;n=F;e=B+-1|0;break}}j[w>>1]=g&48640|4;O=v;w=f;P=R;Q=S;n=F;break}case 208:{ee=0;g=k[f+(e*20|0)+4>>2]|0;n=v+(g*40|0)+8|0;if(!(j[n>>1]&4)){O=v;w=f;P=R;Q=S;n=F}else{O=v+(g*40|0)|0;y=+Zg(O);p[O>>3]=y;j[n>>1]=m[n>>1]&48640|8;O=v;w=f;P=R;Q=S;n=F}break}case 213:{ee=0;K=k[f+(g*20|0)+4>>2]|0;I=v+(K*40|0)|0;G=k[f+(g*20|0)+12>>2]|0;o=v+(G*40|0)|0;K=v+(K*40|0)+8|0;H=j[K>>1]|0;G=v+(G*40|0)+8|0;J=j[G>>1]|0;D=H&65535;w=J&65535;C=f+(g*20|0)+3|0;F=l[C>>0]|0;do if(!((J|H)&1)){F=F&71;if(F>>>0>66){if((D&14|0)==2){wh(I,0);x=j[G>>1]|0}else x=J;if((x&14)==2){wh(o,0);F=H;B=J}else{F=H;B=J}}else if((F|0)==66){if((D&2|0)!=0|(D&12|0)==0){E=J;F=H}else{gm(I,Gc,1)|0;E=j[G>>1]|0;F=(m[K>>1]&65024|D&511)&65535}Q=E&65535;if((Q&2|0)!=0|(Q&12|0)==0)B=J;else{gm(o,Gc,1)|0;B=(m[G>>1]&65024|w&511)&65535}}else{F=H;B=J}if(j[K>>1]&16384){Wg(I)|0;F=F&49151}if(j[G>>1]&16384){Wg(o)|0;B=B&49151}if(i[ce>>0]|0){u=ce;v=fe;e=d;d=q;ee=1317;break a}Q=mm(o,I,k[f+(g*20|0)+16>>2]|0)|0;E=i[z>>0]|0;e=g;z=Q}else{if(F&128){F=H;B=J;e=g;z=(H&1&J)<<16>>16!=0&(w&256|0)==0&1^1;break}if(F&32){n=k[f+(g*20|0)+8>>2]|0;O=v+(n*40|0)+8|0;j[O>>1]=m[O>>1]&48640|1;O=v;w=f;P=R;Q=S;n=v+(n*40|0)|0;e=g;break q}if(!(F&16)){O=v;w=f;P=R;Q=S;e=g;break q}O=v;w=f;P=R;Q=S;e=(k[f+(g*20|0)+8>>2]|0)+-1|0;break q}while(0);switch(E&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(!(i[C>>0]&32)){if(z)e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{Q=k[f+(e*20|0)+8>>2]|0;n=v+(Q*40|0)|0;Q=v+(Q*40|0)+8|0;j[Q>>1]=m[Q>>1]&48640|4;Q=n;k[Q>>2]=z;k[Q+4>>2]=0}j[K>>1]=F;j[G>>1]=B;O=v;w=f;P=R;Q=S;break}case 248:{ee=0;O=v;w=f;P=k[f+(e*20|0)+16>>2]|0;Q=S;break}case 249:{ee=0;o=(i[f+(e*20|0)+3>>0]&1)==0?0:R;C=k[f+(e*20|0)+12>>2]|0;D=k[f+(e*20|0)+16>>2]|0;E=k[f+(e*20|0)+4>>2]|0;F=k[f+(e*20|0)+8>>2]|0;if((C|0)>0){w=(o|0)==0;g=D+16|0;B=0;while(1){if(w)x=B;else x=k[o+(B<<2)>>2]|0;z=i[(k[g>>2]|0)+B>>0]|0;x=mm(v+((x+E|0)*40|0)|0,v+((x+F|0)*40|0)|0,k[D+(B<<2)+20>>2]|0)|0;B=B+1|0;if(x)break;if((B|0)>=(C|0)){O=v;w=f;P=0;Q=0;break q}}O=v;w=f;P=0;Q=z<<24>>24==0?x:0-x|0}else{O=v;w=f;P=0;Q=S}break}case 256:{ee=0;if((S|0)<0){O=v;w=f;P=R;Q=S;e=(k[f+(g*20|0)+4>>2]|0)+-1|0;break}if(!S){O=v;w=f;P=R;Q=0;e=(k[f+(g*20|0)+8>>2]|0)+-1|0;break}else{O=v;w=f;P=R;Q=S;e=(k[f+(g*20|0)+12>>2]|0)+-1|0;break}}case 261:{ee=0;g=k[f+(e*20|0)+4>>2]|0;if(!(j[v+(g*40|0)+8>>1]&1)){n=_g(v+(g*40|0)|0)|0;n=(n|0)!=0|(L|0)!=0?3:0}else n=6;g=k[f+(e*20|0)+8>>2]|0;if(!(j[v+(g*40|0)+8>>1]&1)){g=_g(v+(g*40|0)|0)|0;g=((g|0)!=0|(L|0)!=0)&1}else g=2;g=i[((i[z>>0]|0)==72?41680:41696)+(g+n)>>0]|0;n=k[f+(e*20|0)+12>>2]|0;F=v+(n*40|0)|0;if(g<<24>>24==2){O=v+(n*40|0)+8|0;j[O>>1]=m[O>>1]&48640|1;O=v;w=f;P=R;Q=S;n=F;break}else{O=F;k[O>>2]=g&255;k[O+4>>2]=0;O=v+(n*40|0)+8|0;j[O>>1]=m[O>>1]&48640|4;O=v;w=f;P=R;Q=S;n=F;break}}case 268:{ee=0;g=k[f+(e*20|0)+4>>2]|0;n=k[f+(e*20|0)+8>>2]|0;F=v+(n*40|0)|0;n=v+(n*40|0)+8|0;if(!(j[n>>1]&9312))j[n>>1]=1;else Ag(F);if(!(j[v+(g*40|0)+8>>1]&1)){j[n>>1]=4;w=_g(v+(g*40|0)|0)|0;O=F;k[O>>2]=(w|0)==0&(L|0)==0&1;k[O+4>>2]=0;O=v;w=f;P=R;Q=S;n=F}else{O=v;w=f;P=R;Q=S;n=F}break}case 273:{ee=0;g=k[f+(e*20|0)+4>>2]|0;n=k[f+(e*20|0)+8>>2]|0;F=v+(n*40|0)|0;n=v+(n*40|0)+8|0;if(!(j[n>>1]&9312))j[n>>1]=1;else Ag(F);if(!(j[v+(g*40|0)+8>>1]&1)){j[n>>1]=4;w=_g(v+(g*40|0)|0)|0;O=F;k[O>>2]=~w;k[O+4>>2]=~L;O=v;w=f;P=R;Q=S;n=F}else{O=v;w=f;P=R;Q=S;n=F}break}case 278:{ee=0;g=(k[Eb>>2]|0)+(k[f+(e*20|0)+4>>2]|0)|0;if(!(i[g>>0]|0)){i[g>>0]=1;O=v;w=f;P=R;Q=S;break}else{O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0;break}}case 281:{ee=0;g=k[f+(e*20|0)+4>>2]|0;if(!(j[v+(g*40|0)+8>>1]&1)){g=+Zg(v+(g*40|0)|0)!=0.0;g=(g^(i[z>>0]|0)==46)&1}else g=k[f+(e*20|0)+12>>2]|0;if(!g){O=v;w=f;P=R;Q=S}else{O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}break}case 286:{ee=0;if(!(j[v+((k[f+(e*20|0)+4>>2]|0)*40|0)+8>>1]&1)){O=v;w=f;P=R;Q=S}else{O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}break}case 288:{ee=0;if(!(j[v+((k[f+(e*20|0)+4>>2]|0)*40|0)+8>>1]&1)){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 290:{ee=0;P=k[f+(g*20|0)+8>>2]|0;x=k[f+(g*20|0)+12>>2]|0;B=v+(x*40|0)|0;O=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;H=k[O+80>>2]|0;w=k[O>>2]|0;if(!(i[O+26>>0]|0)){if((w|0)!=0?(i[w+73>>0]|0)!=1:0){Qd=om(O)|0;ee=295}}else{Qd=nm(O)|0;ee=295}if((ee|0)==295?(ee=0,(Qd|0)!=0):0){h=Qd;ee=1318;break c}I=O+60|0;z=k[Xd>>2]|0;u:do if((k[I>>2]|0)==(z|0)){z=j[O+22>>1]|0;if((z&65535|0)>(P|0))ee=350;else{E=O+72|0;ee=318}}else{do if(i[O+25>>0]|0){if(!w){F=k[O+16>>2]|0;C=k[v+(F*40|0)+12>>2]|0;k[O+68>>2]=C;k[O+64>>2]=C;F=k[v+(F*40|0)+16>>2]|0;o=O+76|0;k[o>>2]=F;break}e=v+(x*40|0)+8|0;if(!(j[e>>1]&9312)){j[e>>1]=1;break u}else{Ag(B);break u}}else{if(!(i[O+27>>0]&4)){pm(w,qd);E=m[w+40>>1]|0;F=k[w+32>>2]|0;k[O+76>>2]=F;z=k[qd>>2]|0;k[O+64>>2]=z}else{z=O+64|0;qm(w,z);E=m[w+40>>1]|0;F=k[w+32>>2]|0;k[O+76>>2]=F;z=k[z>>2]|0}k[O+68>>2]=z>>>0>E>>>0?E:z;if(z>>>0>(k[wb>>2]|0)>>>0){h=q;ee=1316;break c}o=O+76|0;z=k[Xd>>2]|0;C=E}while(0);k[I>>2]=z;z=i[F>>0]|0;if(z<<24>>24>-1){D=z&255;k[cd>>2]=D;F=1}else{F=rm(F,cd)|0;D=k[cd>>2]|0}E=O+72|0;k[E>>2]=F&255;j[O+22>>1]=0;k[H>>2]=D;if(D>>>0>98307){h=q;ee=313;break c}if(D>>>0>(k[O+64>>2]|0)>>>0){h=q;ee=313;break c}if(C>>>0>>0){k[o>>2]=0;k[O+68>>2]=0;z=0;ee=318}else{z=0;ee=318}}while(0);do if((ee|0)==318){ee=0;F=k[E>>2]|0;D=k[H>>2]|0;if(F>>>0>>0){N=O+76|0;C=k[N>>2]|0;if(!C){Q=Gd+0|0;C=Q+40|0;do{k[Q>>2]=0;Q=Q+4|0}while((Q|0)<(C|0));F=sm(w,0,k[H>>2]|0,((l[O+27>>0]|0)>>>2&1^1)&255,Gd)|0;if(F){f=F;h=q;ee=1309;break c}z=O+22|0;M=z;z=j[z>>1]|0;F=k[E>>2]|0;D=k[H>>2]|0;K=k[Gb>>2]|0}else{M=O+22|0;K=C}o=z&65535;J=k[H+(o<<2)>>2]|0;k[cd>>2]=J;e=K+D|0;F=K+F|0;while(1){C=i[F>>0]|0;if(C<<24>>24>-1){I=C&255;k[Id>>2]=I;F=F+1|0}else{F=F+((rm(F,Id)|0)&255)|0;I=k[Id>>2]|0}k[O+(o<<2)+84>>2]=I;if(I>>>0>11)C=(I+-12|0)>>>1;else C=l[34336+I>>0]|0;I=J+C|0;k[cd>>2]=I;if(I>>>0>>0){F=I;C=o;ee=331;break}C=o+1|0;k[H+(C<<2)>>2]=I;if((o|0)<(P|0)&F>>>0>>0){J=I;o=C}else break}if((ee|0)==331){ee=0;I=F;F=K+(D+1)|0}j[M>>1]=C;k[E>>2]=F-K;if(!(k[N>>2]|0)){if(!((j[Hb>>1]&9312)==0&(k[Ib>>2]|0)==0))Vg(Gd);j[Hb>>1]=1}if(F>>>0>=e>>>0){if(F>>>0>e>>>0){h=q;ee=343;break c}if((I|0)==(k[O+64>>2]|0))z=I;else{h=q;ee=343;break c}}else z=k[O+64>>2]|0;if(I>>>0>z>>>0){h=q;ee=343;break c}z=j[M>>1]|0}if((z&65535|0)<=(P|0)){if((i[f+(g*20|0)+1>>0]|0)==-8){cm(B,k[f+(g*20|0)+16>>2]|0,2048);e=v+(x*40|0)+8|0;break}e=v+(x*40|0)+8|0;if(!(j[e>>1]&9312)){j[e>>1]=1;break}else{Ag(B);break}}else ee=350}while(0);if((ee|0)==350){ee=0;e=v+(x*40|0)+8|0;if(j[e>>1]&9312)Ag(B);F=k[O+(P<<2)+84>>2]|0;k[Id>>2]=F;do if((k[O+68>>2]|0)>>>0<(k[H+(P+1<<2)>>2]|0)>>>0){Q=i[f+(g*20|0)+3>>0]|0;if(!((Q&255)>63?F>>>0>11&(F&1|0)==0|Q<<24>>24<0:0)){if(F>>>0>11)z=(F+-12|0)>>>1;else z=l[34336+F>>0]|0;if(z){z=sm(w,k[H+(P<<2)>>2]|0,z,((l[O+27>>0]|0)>>>2&1^1)&255,B)|0;if(z){f=z;h=q;ee=1309;break c}tm(k[v+(x*40|0)+16>>2]|0,F,B)|0;j[e>>1]=m[e>>1]&61439;break}}tm(F>>>0<14?qd:0,F,B)|0}else tm((k[O+76>>2]|0)+(k[H+(P<<2)>>2]|0)|0,F,B)|0;while(0);i[v+(x*40|0)+10>>0]=Gc}w=m[e>>1]|0;if((w&4096|0)!=0?(vc=v+(x*40|0)+16|0,xc=k[vc>>2]|0,(xc|0)!=0):0){o=k[v+(x*40|0)+12>>2]|0;if(kh(B,o+2|0)|0){u=ce;v=fe;e=d;d=q;ee=1317;break a}pw(k[vc>>2]|0,xc|0,o|0)|0;i[(k[vc>>2]|0)+o>>0]=0;i[(k[vc>>2]|0)+(o+1)>>0]=0;j[e>>1]=w&18|512;O=v;w=f;P=R;Q=S;e=g}else{O=v;w=f;P=R;Q=S;e=g}break}case 368:{ee=0;o=k[f+(e*20|0)+16>>2]|0;g=i[o>>0]|0;if(!(g<<24>>24)){O=v;w=f;P=R;Q=S}else{w=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;while(1){o=o+1|0;km(w,g,Gc);g=i[o>>0]|0;if(!(g<<24>>24)){O=v;w=f;P=R;Q=S;break}else w=w+40|0}}break}case 371:{ee=0;P=k[f+(g*20|0)+4>>2]|0;z=k[f+(g*20|0)+16>>2]|0;Q=v+(P*40|0)|0;P=v+((P+-1+(k[f+(g*20|0)+8>>2]|0)|0)*40|0)|0;x=i[Jb>>0]|0;O=k[f+(g*20|0)+12>>2]|0;n=v+(O*40|0)|0;if(z){w=i[z>>0]|0;e=Q;while(1){z=z+1|0;km(e,w,Gc);w=i[z>>0]|0;if(!(w<<24>>24))break;else e=e+40|0}}K=(x&255)>3;I=0;o=0;M=0;e=0;H=P;while(1){J=j[H+8>>1]|0;E=J&65535;v:do if(!(E&1)){do if(!(E&4)){if(E&8){F=7;ee=388;break v}F=k[H+12>>2]|0;if(E&16384)F=(k[H>>2]|0)+F|0;F=(F<<1)+12|E>>>1&1}else{E=H;F=k[E>>2]|0;E=k[E+4>>2]|0;D=jw(F|0,E|0,63)|0;D=D^F;C=L^E;if(C>>>0<0|(C|0)==0&D>>>0<128){if(!((F&1|0)==(F|0)&0==(E|0)&K)){F=1;ee=388;break v}F=D+8|0;break}if(C>>>0<0|(C|0)==0&D>>>0<32768){F=2;ee=388;break v}if(C>>>0<0|(C|0)==0&D>>>0<8388608){F=3;ee=388;break v}if(C>>>0<0|(C|0)==0&D>>>0<2147483648){F=4;ee=388;break v}F=C>>>0<32768|(C|0)==32768&D>>>0<0?5:6;ee=388;break v}while(0);k[H+28>>2]=F;if(F>>>0>11){E=F;F=(F+-12|0)>>>1}else ee=391}else{F=0;ee=388}while(0);if((ee|0)==388){k[H+28>>2]=F;ee=391}if((ee|0)==391){ee=0;E=F;F=l[34336+F>>0]|0}do if(J&16384)if((I|0)==0&(o|0)==0){J=k[H>>2]|0;F=F-J|0;J=J+e|0;break}else{Wg(H)|0;J=e;break}else J=e;while(0);I=ow(F|0,((F|0)<0)<<31>>31|0,I|0,o|0)|0;o=L;if(E>>>0<128)F=1;else{D=0;F=0;do{F=F+1|0;E=rw(E|0,D|0,7)|0;D=L}while(((E|0)!=0|(D|0)!=0)&(F|0)<9)}F=F+M|0;H=H+-40|0;if(H>>>0>>0){C=F;break}else{M=F;e=J}}if((C|0)<127)E=C+1|0;else{E=C;D=((C|0)<0)<<31>>31;F=0;do{F=F+1|0;E=rw(E|0,D|0,7)|0;D=L}while(((E|0)!=0|(D|0)!=0)&(F|0)<9);C=F+C|0;E=C;D=((C|0)<0)<<31>>31;z=0;do{z=z+1|0;E=rw(E|0,D|0,7)|0;D=L}while(((E|0)!=0|(D|0)!=0)&(z|0)<9);E=((F|0)<(z|0)&1)+C|0}F=((E|0)<0)<<31>>31;e=ow(E|0,F|0,I|0,o|0)|0;K=L;N=k[wb>>2]|0;M=((N|0)<0)<<31>>31;if((K|0)>(M|0)|(K|0)==(M|0)&e>>>0>N>>>0){h=q;ee=1316;break c}if(kh(n,e)|0){u=ce;v=fe;e=d;d=q;ee=1317;break a}H=k[v+(O*40|0)+16>>2]|0;if(E>>>0<128){i[H>>0]=E;o=1;I=Q}else{o=(um(H,E,F)|0)&255;I=Q}while(1){D=k[I+28>>2]|0;if(D>>>0<128){i[H+o>>0]=D;F=1}else F=(um(H+o|0,D,0)|0)&255;o=F+o|0;F=H+E|0;if(!(D>>>0<8&(D|0)!=0))if(D>>>0>11){z=k[I+12>>2]|0;pw(F|0,k[I+16>>2]|0,z|0)|0}else z=0;else{F=I;if(D>>>0>11)z=(D+-12|0)>>>1;else z=l[34336+D>>0]|0;C=k[F>>2]|0;F=k[F+4>>2]|0;D=z;while(1){D=D+-1|0;i[H+(D+E)>>0]=C;C=rw(C|0,F|0,8)|0;if(!D)break;else F=L}}I=I+40|0;if(I>>>0>P>>>0)break;else E=z+E|0}k[v+(O*40|0)+12>>2]=e;e=v+(O*40|0)+8|0;j[e>>1]=16;if(J){k[n>>2]=J;j[e>>1]=16400}i[v+(O*40|0)+10>>0]=1;O=v;w=f;P=R;Q=S;e=g;break}case 446:{ee=0;if((k[Yd>>2]|0)>0){h=q;ee=447;break c}if(!o)w=0;else{g=o;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;w=g-o&1073741823}z=xm(he,0,(k[Lb>>2]|0)+(k[Kb>>2]|0)|0)|0;if(z){g=e;h=z;ee=1318;break c}g=rh(he,w+33|0,0)|0;if(!g){O=v;w=f;P=R;Q=S}else{Q=g+32|0;k[g>>2]=Q;pw(Q|0,o|0,w+1|0)|0;if(!(i[ae>>0]|0))k[Lb>>2]=(k[Lb>>2]|0)+1;else{i[ae>>0]=0;i[Pb>>0]=1}k[g+24>>2]=k[Mb>>2];k[Mb>>2]=g;O=Nb;w=k[O+4>>2]|0;P=g+8|0;k[P>>2]=k[O>>2];k[P+4>>2]=w;P=Ob;w=k[P+4>>2]|0;O=g+16|0;k[O>>2]=k[P>>2];k[O+4>>2]=w;O=v;w=f;P=R;Q=S}break}case 486:{k[Lb>>2]=(k[Lb>>2]|0)+-1;ee=488;break}case 525:{ee=0;Bm(k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+4>>2]|0,k[f+(e*20|0)+12>>2]|0,Uc);w=k[Uc>>2]|0;O=n;k[O>>2]=w;k[O+4>>2]=((w|0)<0)<<31>>31;O=v;w=f;P=R;Q=S;break}case 558:{ee=0;n=Cm(a,k[f+(g*20|0)+4>>2]|0,k[f+(g*20|0)+8>>2]|0,-1,1)|0;if(!n){u=ce;v=fe;e=d;d=q;ee=1317;break a}w=k[f+(g*20|0)+16>>2]|0;z=n+8|0;k[z>>2]=w;x=k[f+(g*20|0)+12>>2]|0;w=m[w+6>>1]<<2;e=w+148|0;o=rh(he,e,0)|0;if(!o){f=n;h=q;ee=560;break c}kw(o|0,0,e|0)|0;k[n+56>>2]=o;Q=o+128|0;k[o+28>>2]=Q;pw(Q|0,k[z>>2]|0,w+20|0)|0;k[o+140>>2]=0;if(x)j[o+134>>1]=x;e=k[Td>>2]|0;n=k[(k[(k[e+4>>2]|0)+4>>2]|0)+32>>2]|0;k[o+12>>2]=n;i[o+59>>0]=1;i[o+57>>0]=0;k[o+24>>2]=he;k[o+72>>2]=o;if(((i[Xb>>0]|0)!=2?(Ac=k[2242]|0,Q=ha(Ac,n)|0,k[o>>2]=Q,Q=k[(k[e+12>>2]|0)+80>>2]|0,Q=(Q|0)<(Ac|0)?Ac:Q,Ac=((n|0)<0)<<31>>31,Q=xw(Q|0,((Q|0)<0)<<31>>31|0,n|0,Ac|0)|0,P=L,k[o+4>>2]=(P|0)<0|(P|0)==0&Q>>>0<536870912?Q:536870912,(k[2234]|0)==0):0)?(k[o+52>>2]=n,Q=vg(n,Ac)|0,k[o+40>>2]=Q,(Q|0)==0):0){f=7;h=q;ee=1309;break c}else{O=v;w=f;P=R;Q=S;n=I;e=g}break}case 566:{ee=0;O=(k[(k[Fb>>2]|0)+(k[f+(e*20|0)+4>>2]<<2)>>2]|0)+40|0;Q=O;P=k[Q>>2]|0;Q=k[Q+4>>2]|0;N=ow(P|0,Q|0,1,0)|0;k[O>>2]=N;k[O+4>>2]=L;if((P|0)==0&(Q|0)==0){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 568:{ee=0;e=Cm(a,k[f+(g*20|0)+4>>2]|0,k[f+(g*20|0)+12>>2]|0,-1,0)|0;if(!e){u=ce;v=fe;e=d;d=q;ee=1317;break a}i[e+25>>0]=1;k[e+16>>2]=k[f+(g*20|0)+8>>2];O=e+27|0;i[O>>0]=i[O>>0]|4;O=v;w=f;P=R;Q=S;e=g;break}case 570:{ee=0;O=f+(e*20|0)+4|0;Gm(a,k[(k[Fb>>2]|0)+(k[O>>2]<<2)>>2]|0);k[(k[Fb>>2]|0)+(k[O>>2]<<2)>>2]=0;O=v;w=f;P=R;Q=S;break}case 571:{ee=0;I=k[(k[Fb>>2]|0)+(k[f+(e*20|0)+4>>2]<<2)>>2]|0;i[I+25>>0]=0;if(!(i[I+27>>0]&4)){Q=k[f+(e*20|0)+16>>2]|0;k[td>>2]=k[I+8>>2];j[Yb>>1]=Q;i[Zb>>0]=(w<<1&2^2)+255;Q=k[f+(e*20|0)+12>>2]|0;g=v+(Q*40|0)|0;k[_b>>2]=g;if(j[v+(Q*40|0)+8>>1]&16384)Wg(g)|0;z=Hm(k[I>>2]|0,td,0,0,0,xd)|0;if(z){g=e;h=z;ee=1318;break c}}else{z=k[f+(e*20|0)+12>>2]|0;x=v+(z*40|0)|0;z=v+(z*40|0)+8|0;if((j[z>>1]&14)==2)wh(x,0);F=_g(x)|0;E=L;z=m[z>>1]|0;do if(!(z&4)){if(!(z&8)){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0;break q}y=+p[x>>3];A=+(F>>>0)+4294967296.0*+(E|0);if(y>31)+w|0;break}else{w=(y>A&(w&1|0)==0&1)+w|0;break}}while(0);z=Hm(k[I>>2]|0,0,F,E,0,xd)|0;Q=I+48|0;k[Q>>2]=F;k[Q+4>>2]=E;if(z){g=e;h=z;ee=1318;break c}}i[I+26>>0]=0;k[I+60>>2]=0;g=k[xd>>2]|0;do if((w|0)>63){if((g|0)>=0?!((g|0)==0&(w|0)==65):0){k[xd>>2]=0;O=v;w=f;P=R;Q=S;break q}k[xd>>2]=0;o=Im(k[I>>2]|0,xd)|0;if(!o)ee=593;else{g=e;h=o;ee=1318;break c}}else{if((g|0)<=0?!((g|0)==0&(w|0)==62):0){g=(i[(k[I>>2]|0)+73>>0]|0)!=1&1;k[xd>>2]=g;break}k[xd>>2]=0;o=Jm(k[I>>2]|0,xd)|0;if(!o)ee=593;else{g=e;h=o;ee=1318;break c}}while(0);if((ee|0)==593){ee=0;g=k[xd>>2]|0}if(!g){O=v;w=f;P=R;Q=S}else{O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}break}case 596:{ee=0;O=k[(k[Fb>>2]|0)+(k[f+(e*20|0)+4>>2]<<2)>>2]|0;i[O+25>>0]=0;P=_g(v+((k[f+(e*20|0)+8>>2]|0)*40|0)|0)|0;w=O+48|0;k[w>>2]=P;k[w+4>>2]=L;i[O+26>>0]=1;O=v;w=f;P=R;Q=S;break}case 597:{ee=0;J=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;w=k[f+(g*20|0)+12>>2]|0;F=v+(w*40|0)|0;k[jd>>2]=0;o=f+(g*20|0)+16|0;z=k[o>>2]|0;e=J+8|0;x=k[e>>2]|0;w:do if((z|0)>0){k[ud>>2]=x;z=z&65535;j[$b>>1]=z;k[ac>>2]=F;if(!(z<<16>>16))w=ud;else{w=F;x=0;while(1){if(j[w+(x*40|0)+8>>1]&16384){Wg(w+(x*40|0)|0)|0;z=j[$b>>1]|0}x=x+1|0;if((x|0)>=(z&65535|0)){w=ud;break w}w=k[ac>>2]|0}}}else{z=Km(x,Pc,191,jd)|0;if(!z){u=ce;v=fe;e=d;d=q;ee=1317;break a}if(j[v+(w*40|0)+8>>1]&16384)Wg(F)|0;Lm(k[e>>2]|0,k[v+(w*40|0)+12>>2]|0,k[v+(w*40|0)+16>>2]|0,z);w=z}while(0);i[w+6>>0]=0;x:do if((i[H>>0]|0)==67?(Bc=j[w+4>>1]|0,Bc<<16>>16!=0):0){z=k[w+8>>2]|0;x=0;while(1){if(j[z+(x*40|0)+8>>1]&1)break;x=x+1|0;if((x|0)>=(Bc&65535|0)){I=g;e=g;break x}}I=g;e=(k[f+(g*20|0)+8>>2]|0)+-1|0}else{I=g;e=g}while(0);z=Hm(k[J>>2]|0,w,0,0,0,yd)|0;if(!(k[o>>2]|0))rg(he,k[jd>>2]|0);if(z){g=e;f=z;h=q;ee=1309;break c}g=k[yd>>2]|0;k[J+12>>2]=g;g=(g|0)==0;i[J+25>>0]=g&1^1;i[J+26>>0]=0;k[J+60>>2]=0;if((i[H>>0]|0)==69){if(!g){O=v;w=f;P=R;Q=S;break}O=v;w=f;P=R;Q=S;e=(k[f+(I*20|0)+8>>2]|0)+-1|0;break}else{if(g){O=v;w=f;P=R;Q=S;break}O=v;w=f;P=R;Q=S;e=(k[f+(I*20|0)+8>>2]|0)+-1|0;break}}case 624:{ee=0;O=(k[(k[Fb>>2]|0)+(k[f+(e*20|0)+4>>2]<<2)>>2]|0)+40|0;w=O;P=k[w>>2]|0;w=k[w+4>>2]|0;Q=ow(P|0,w|0,1,0)|0;k[O>>2]=Q;k[O+4>>2]=L;O=n;k[O>>2]=P;k[O+4>>2]=w;O=v;w=f;P=R;Q=S;break}case 647:{ee=0;E=k[f+(e*20|0)+8>>2]|0;g=k[(k[Fb>>2]|0)+(k[f+(e*20|0)+4>>2]<<2)>>2]|0;w=k[f+(e*20|0)+12>>2]|0;if(z<<24>>24==75){C=v+(w*40|0)|0;B=k[C>>2]|0;C=k[C+4>>2]|0}else{B=w;C=((w|0)<0)<<31>>31}D=f+(e*20|0)+3|0;F=i[D>>0]|0;if(F&1)k[rb>>2]=(k[rb>>2]|0)+1;if(F&2){d=je;k[d>>2]=B;k[d+4>>2]=C;d=B;c=C}z=j[v+(E*40|0)+8>>1]|0;if(z&1){k[v+(E*40|0)+16>>2]=0;k[v+(E*40|0)+12>>2]=0}if(!(F&16))x=0;else x=k[g+12>>2]|0;if(!(z&16384))z=0;else z=k[v+(E*40|0)>>2]|0;z=Nm(k[g>>2]|0,0,B,C,k[v+(E*40|0)+16>>2]|0,k[v+(E*40|0)+12>>2]|0,z,(F&255)>>>3&1,x)|0;i[g+26>>0]=0;k[g+60>>2]=0;if(z){g=e;f=z;h=q;ee=1309;break c}w=k[bc>>2]|0;if((w|0)!=0?(Cc=k[f+(e*20|0)+16>>2]|0,(Cc|0)!=0):0){gc[w&1](k[cc>>2]|0,(i[D>>0]&4)!=0?23:18,k[(k[Td>>2]|0)+(i[g+24>>0]<<4)>>2]|0,Cc,B,C);O=v;w=f;P=R;Q=S}else{O=v;w=f;P=R;Q=S}break}case 671:{ee=0;O=k[rb>>2]|0;k[sb>>2]=O;k[tb>>2]=(k[tb>>2]|0)+O;k[rb>>2]=0;O=v;w=f;P=R;Q=S;break}case 672:{ee=0;F=k[(k[Fb>>2]|0)+(k[f+(e*20|0)+4>>2]<<2)>>2]|0;E=k[f+(e*20|0)+12>>2]|0;D=k[f+(e*20|0)+16>>2]|0;w=k[F+56>>2]|0;x=w+32|0;z=k[x>>2]|0;F=k[F+8>>2]|0;if(!z){z=Km(F,0,0,ed)|0;k[x>>2]=z;if(!z){g=e;f=7;h=q;ee=1309;break c}j[z+4>>1]=D}if(!(i[w+56>>0]|0)){w=k[w+36>>2]|0;x=w;w=w+8|0}else{Q=k[w+20>>2]|0;w=k[(k[Q+8>>2]|0)+4>>2]|0;Q=k[Q+12>>2]|0;x=Q+(w*56|0)+20|0;w=k[Q+(w*56|0)+32>>2]|0}Lm(F,k[x>>2]|0,w,z);y:do if((D|0)>0){w=k[z+8>>2]|0;g=0;while(1){if(j[w+(g*40|0)+8>>1]&1)break y;g=g+1|0;if((g|0)>=(D|0)){ee=682;break}}}else ee=682;while(0);if((ee|0)==682){ee=0;if(!(Pm(k[v+(E*40|0)+12>>2]|0,k[v+(E*40|0)+16>>2]|0,z,0)|0)){O=v;w=f;P=R;Q=S;break}}O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0;break}case 700:{ee=0;j[n+8>>1]=1;O=v;w=f;P=R;Q=S;break}case 708:{ee=0;j[n+8>>1]=1;O=v;w=f;P=R;Q=S;break}case 711:{ee=0;g=k[(k[Fb>>2]|0)+(k[f+(e*20|0)+4>>2]<<2)>>2]|0;i[g+25>>0]=1;k[g+60>>2]=0;g=k[g>>2]|0;if(!g){O=v;w=f;P=R;Q=S}else{O=g+56|0;$c(k[O>>2]|0);k[O>>2]=0;i[g+73>>0]=0;O=v;w=f;P=R;Q=S}break}case 801:{ee=0;g=k[(k[Fb>>2]|0)+(k[f+(e*20|0)+4>>2]<<2)>>2]|0;n=k[g>>2]|0;o=I+8|0;j[o>>1]=1;if((i[n+73>>0]|0)!=1?(h=om(g)|0,(h|0)!=0):0){g=e;ee=1318;break c}if(!(i[g+25>>0]|0)){g=Pd;k[g>>2]=0;k[g+4>>2]=0;pm(n,Pd);j[jc>>1]=0;k[kc>>2]=he;k[lc>>2]=0;g=sm(n,0,k[Pd>>2]|0,1,Xc)|0;do if(!g){g=k[mc>>2]|0;n=i[g>>0]|0;if(n<<24>>24>-1){z=n&255;k[nd>>2]=z}else{rm(g,nd)|0;z=k[nd>>2]|0}if(!(z>>>0<3?1:(z|0)>(k[nc>>2]|0))){w=(k[mc>>2]|0)+(z+-1)|0;g=i[w>>0]|0;if(g<<24>>24>-1){g=g&255;k[Kd>>2]=g}else{rm(w,Kd)|0;g=k[Kd>>2]|0}if(!((g+-1|0)>>>0>8|(g|0)==7)){if(g>>>0>11)w=(g+-12|0)>>>1;else w=l[34336+g>>0]|0;n=k[nc>>2]|0;if(n>>>0>=(w+z|0)>>>0){tm((k[mc>>2]|0)+(n-w)|0,g,Nd)|0;g=Nd;w=k[g>>2]|0;g=k[g+4>>2]|0;if((j[jc>>1]&9312)==0&(k[lc>>2]|0)==0){B=0;break}Vg(Xc);B=0;break}}}if(!((j[jc>>1]&9312)==0&(k[lc>>2]|0)==0))Vg(Xc);k[ge>>2]=68698;k[ge+4>>2]=10788;gd(11,13600,ge);B=11;w=0;g=0}else{B=g;w=0;g=0}while(0);if(B){g=e;h=B;ee=1318;break c}O=I;k[O>>2]=w;k[O+4>>2]=g;j[o>>1]=4;O=v;w=f;P=R;Q=S;n=I}else{O=v;w=f;P=R;Q=S;n=I}break}case 865:{ee=0;o=k[z>>2]|0;z=k[(k[Td>>2]|0)+(J<<4)+12>>2]|0;w=k[z+16>>2]|0;if(w)do{g=(k[w+8>>2]|0)+32|0;if((k[g>>2]|0)==(x|0))k[g>>2]=o;w=k[w>>2]|0}while((w|0)!=0);g=k[z+32>>2]|0;if(g)do{w=(k[g+8>>2]|0)+40|0;if((k[w>>2]|0)==(x|0))k[w>>2]=o;g=k[g>>2]|0}while((g|0)!=0);O=v;w=f;P=R;Q=S;q=J+1&255;break}case 878:{ee=0;dn(he,n);O=v;w=f;P=R;Q=S;n=F;break}case 881:{ee=0;Q=k[f+(e*20|0)+4>>2]|0;k[Vc>>2]=he;k[ba>>2]=Q;k[ca>>2]=fe;n=k[f+(e*20|0)+16>>2]|0;k[ge>>2]=k[(k[Td>>2]|0)+(Q<<4)>>2];k[ge+4>>2]=(Q|0)==1?13184:13208;k[ge+8>>2]=n;n=zh(he,42048,ge)|0;if(!n){g=e;h=q;ee=882;break c}i[da>>0]=1;k[ea>>2]=0;g=Ve(he,n,22,Vc,0)|0;g=(g|0)==0?k[ea>>2]|0:g;rg(he,n);i[da>>0]=0;if(!g){O=v;w=f;P=R;Q=S;n=F}else{f=g;g=e;h=q;ee=884;break c}break}case 886:{ee=0;pg(he,Nk((k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+12>>2]|0)+8|0,k[f+(e*20|0)+16>>2]|0,0)|0);k[Qb>>2]=k[Qb>>2]|2;O=v;w=f;P=R;Q=S;break}case 887:{ee=0;z=Nk((k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+12>>2]|0)+24|0,k[f+(e*20|0)+16>>2]|0,0)|0;if(z){g=(k[z+12>>2]|0)+8|0;n=k[g>>2]|0;z:do if((n|0)==(z|0))k[g>>2]=k[z+20>>2];else{do{if(!n)break z;g=n+20|0;n=k[g>>2]|0}while((n|0)!=(z|0));k[g>>2]=k[z+20>>2]}while(0);Ok(he,z)}k[Qb>>2]=k[Qb>>2]|2;O=v;w=f;P=R;Q=S;n=F;break}case 895:{ee=0;z=Nk((k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+12>>2]|0)+40|0,k[f+(e*20|0)+16>>2]|0,0)|0;if(!z){O=v;w=f;P=R;Q=S}else{g=k[z+20>>2]|0;if((g|0)==(k[z+24>>2]|0)){g=gn(g+8|0,k[z+4>>2]|0,ge)|0;if(!g)g=0;else g=k[g+8>>2]|0;o=g+64|0;while(1){Q=k[o>>2]|0;g=Q+32|0;if((Q|0)==(z|0))break;else o=g}k[o>>2]=k[g>>2]}og(he,z);k[Qb>>2]=k[Qb>>2]|2;O=v;w=f;P=R;Q=S}break}case 903:{ee=0;J=k[f+(g*20|0)+8>>2]|0;e=rh(he,(J<<2)+4|0,0)|0;if(!e){u=ce;v=fe;e=d;d=q;ee=1317;break a}x=k[f+(g*20|0)+12>>2]|0;H=k[f+(g*20|0)+4>>2]|0;G=v+(H*40|0)|0;if((J|0)>0){z=0;do{Q=_g(v+((z+H|0)*40|0)|0)|0;k[e+(z<<2)>>2]=Q;z=z+1|0}while((z|0)!=(J|0));z=J}else z=0;k[e+(z<<2)>>2]=0;E=k[(k[Td>>2]|0)+(l[f+(g*20|0)+3>>0]<<4)+4>>2]|0;N=v+(x*40|0)|0;Q=k[N>>2]|0;M=k[E+4>>2]|0;k[M+4>>2]=k[E>>2];E=k[M>>2]|0;o=k[(k[E+204>>2]|0)+12>>2]|0;k[Pd>>2]=M;k[fa>>2]=E;E=k[M+44>>2]|0;k[ja>>2]=E;k[la>>2]=Q;k[ma+0>>2]=0;k[ma+4>>2]=0;k[ma+8>>2]=0;k[ma+12>>2]=0;k[ma+16>>2]=0;do if(!E){x=0;z=0}else{F=(E>>>3)+1|0;D=vg(F,0)|0;if(!D){k[pa>>2]=0;x=0;z=1;break}kw(D|0,0,F|0)|0;k[pa>>2]=D;K=M+32|0;F=(((k[2514]|0)>>>0)/((k[K>>2]|0)>>>0)|0)+1|0;if(F>>>0<=E>>>0){Q=D+(F>>>3)|0;i[Q>>0]=l[Q>>0]|1<<(F&7)}k[ra>>2]=Kd;k[sa>>2]=Kd;k[qa>>2]=0;k[ta>>2]=0;k[ua>>2]=100;k[va>>2]=1e9;i[xa>>0]=0;i[wa>>0]=2;k[oa>>2]=43592;z=k[(k[M+12>>2]|0)+56>>2]|0;hn(Pd,1,l[z+33>>0]<<16|l[z+32>>0]<<24|l[z+34>>0]<<8|l[z+35>>0],l[z+37>>0]<<16|l[z+36>>0]<<24|l[z+38>>0]<<8|l[z+39>>0]);k[oa>>2]=0;z=k[la>>2]|0;if(!((J|0)<1|(z|0)==0)){C=M+17|0;D=0;do{E=e+(D<<2)|0;F=k[E>>2]|0;if(F){if((i[C>>0]|0)!=0&(F|0)>1){jn(Pd,F,1,0);F=k[E>>2]|0}k[oa>>2]=43608;kn(Pd,F,0,0)|0;k[oa>>2]=0;z=k[la>>2]|0}D=D+1|0}while(!((D|0)>=(J|0)|(z|0)==0))}if(!((k[ja>>2]|0)==0|(z|0)==0)){B=M+17|0;z=M+36|0;I=1;do{D=I>>>3;F=i[(k[pa>>2]|0)+D>>0]|0;C=1<<(I&7);do if(!(F&255&C)){if(I>>>0<2)E=0;else{E=I+-2|0;E=E-((E>>>0)%(((((k[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(((k[2514]|0)>>>0)/((k[K>>2]|0)>>>0)|0|0)?3:2)+E|0}if((E|0)==(I|0)?(i[B>>0]|0)!=0:0)break;k[ge>>2]=I;ln(Pd,43632,ge);F=i[(k[pa>>2]|0)+D>>0]|0}while(0);do if(F&255&C){if(I>>>0<2)F=0;else{F=I+-2|0;F=F-((F>>>0)%(((((k[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;F=((F+1|0)==(((k[2514]|0)>>>0)/((k[K>>2]|0)>>>0)|0|0)?3:2)+F|0}if((F|0)!=(I|0))break;if(!(i[B>>0]|0))break;k[ge>>2]=I;ln(Pd,43656,ge)}while(0);I=I+1|0}while(!((k[la>>2]|0)==0?1:I>>>0>(k[ja>>2]|0)>>>0))}z=k[(k[(k[M>>2]|0)+204>>2]|0)+12>>2]|0;if((o|0)!=(z|0)){k[ge>>2]=o;k[ge+4>>2]=z;ln(Pd,43696,ge)}$c(k[pa>>2]|0);if(k[na>>2]|0){mn(qa);x=0;z=(k[ma>>2]|0)+1|0;break}z=k[ma>>2]|0;if(!z)mn(qa);x=yg(qa)|0}while(0);rg(he,e);Q=N;Q=iw(k[Q>>2]|0,k[Q+4>>2]|0,z|0,((z|0)<0)<<31>>31|0)|0;w=N;k[w>>2]=Q;k[w+4>>2]=L;w=v+(H*40|0)+8|0;if(!(j[w>>1]&9312))j[w>>1]=1;else Ag(G);if(z){if(!x){u=ce;v=fe;e=d;d=q;ee=1317;break a}ah(G,x,-1,1,1)|0}bm(G,ub)|0;O=v;w=f;P=R;Q=S;e=g;break}case 947:{ee=0;o=k[f+(g*20|0)+4>>2]|0;e=v+(o*40|0)|0;n=k[f+(g*20|0)+8>>2]|0;o=v+(o*40|0)+8|0;if((j[o>>1]&32)==0?(nn(e),(j[o>>1]&32)==0):0){u=ce;v=fe;e=d;d=q;ee=1317;break a}O=v+(n*40|0)|0;on(k[e>>2]|0,k[O>>2]|0,k[O+4>>2]|0);O=v;w=f;P=R;Q=S;n=F;e=g;break}case 966:{ee=0;w=k[f+(g*20|0)+4>>2]|0;N=v+(w*40|0)|0;M=v+((k[f+(g*20|0)+12>>2]|0)*40|0)|0;K=k[f+(g*20|0)+16>>2]|0;w=v+(w*40|0)+8|0;if((j[w>>1]&32)==0?(nn(N),(j[w>>1]&32)==0):0){u=ce;v=fe;e=d;d=q;ee=1317;break a}if(K){I=k[N>>2]|0;G=M;J=k[G>>2]|0;G=k[G+4>>2]|0;o=I+28|0;if((k[o>>2]|0)!=(K|0)){e=I+8|0;F=k[e>>2]|0;if(F){E=I+20|0;H=I+26|0;if(!(j[H>>1]&1))F=pn(F)|0;D=k[E>>2]|0;A:do if(!D){dd=F;od=E;ee=978}else{while(1){E=D+12|0;C=k[E>>2]|0;if(!C)break;B=D+8|0;qn(C,ge,Pd);k[E>>2]=0;F=rn(k[ge>>2]|0,F)|0;D=k[B>>2]|0;if(!D){dd=F;od=B;ee=978;break A}}Q=sn(F)|0;k[E>>2]=Q}while(0);if((ee|0)==978?(ee=0,Hc=tn(I)|0,k[od>>2]=Hc,(Hc|0)!=0):0){Q=Hc;k[Q>>2]=0;k[Q+4>>2]=0;k[Hc+8>>2]=0;Q=sn(dd)|0;k[Hc+12>>2]=Q}k[e>>2]=0;k[I+12>>2]=0;j[H>>1]=m[H>>1]|1}k[o>>2]=K}z=k[I+20>>2]|0;B:do if(z){C:while(1){x=k[z+12>>2]|0;if(x)do{w=x;B=k[w>>2]|0;w=k[w+4>>2]|0;if((w|0)<(G|0)|(w|0)==(G|0)&B>>>0>>0)x=x+8|0;else{if(!((w|0)>(G|0)|(w|0)==(G|0)&B>>>0>J>>>0))break C;x=x+12|0}x=k[x>>2]|0}while((x|0)!=0);z=k[z+8>>2]|0;if(!z)break B}O=v;w=f;P=R;Q=S;e=(k[f+(g*20|0)+8>>2]|0)+-1|0;break q}while(0);if((K|0)>-1)z=M;else{O=v;w=f;P=R;Q=S;e=g;break}}else z=M;O=z;on(k[N>>2]|0,k[O>>2]|0,k[O+4>>2]|0);O=v;w=f;P=R;Q=S;e=g;break}case 993:{ee=0;o=k[f+(e*20|0)+16>>2]|0;E=k[f+(e*20|0)+12>>2]|0;I=v+(E*40|0)|0;if((i[f+(e*20|0)+3>>0]|0)!=0?(Ic=k[o+20>>2]|0,fd=k[pb>>2]|0,(fd|0)!=0):0){w=fd;while(1){if((k[w+28>>2]|0)==(Ic|0)){O=v;w=f;P=R;Q=S;break q}w=k[w+4>>2]|0;if(!w){g=e;break}}}else g=e;e=k[qb>>2]|0;if((e|0)>=(k[ya>>2]|0)){h=q;ee=998;break c}B=v+(E*40|0)+8|0;if(!(j[B>>1]&64)){z=o+12|0;x=k[z>>2]|0;w=x+(k[o+8>>2]|0)|0;f=o+16|0;x=(x<<2)+80+(k[f>>2]|0)+(w*40|0)|0;F=rh(he,x,((x|0)<0)<<31>>31)|0;if(!F){u=ce;v=fe;e=d;d=q;ee=1317;break a}kw(F|0,0,x|0)|0;if(!((j[B>>1]&9312)==0?(k[v+(E*40|0)+24>>2]|0)==0:0))Vg(I);j[B>>1]=64;k[I>>2]=F;k[F>>2]=a;k[F+60>>2]=w;k[F+64>>2]=k[z>>2];k[F+44>>2]=g;k[F+16>>2]=k[Kc>>2];k[F+52>>2]=k[za>>2];k[F+24>>2]=k[Fb>>2];k[F+40>>2]=k[Aa>>2];k[F+8>>2]=k[tc>>2];k[F+48>>2]=k[Ba>>2];k[F+28>>2]=k[o+20>>2];k[F+20>>2]=k[Eb>>2];k[F+56>>2]=k[Ca>>2];v=F+80|0;e=v+(w*40|0)|0;if((v|0)!=(e|0))do{j[v+8>>1]=128;k[v+32>>2]=he;v=v+40|0}while((v|0)!=(e|0));e=k[qb>>2]|0;v=F}else{f=o+16|0;v=k[I>>2]|0}k[qb>>2]=e+1;k[v+4>>2]=k[pb>>2];O=v+32|0;k[O>>2]=d;k[O+4>>2]=c;k[v+68>>2]=k[rb>>2];k[v+72>>2]=k[(k[a>>2]|0)+80>>2];k[rb>>2]=0;k[pb>>2]=v;O=v+40|0;k[Kc>>2]=O;P=k[v+60>>2]|0;k[za>>2]=P;Q=k[v+64>>2]&65535;k[Aa>>2]=Q;P=O+((P+1|0)*40|0)|0;k[Fb>>2]=P;w=k[o>>2]|0;k[tc>>2]=w;k[Ba>>2]=k[o+4>>2];Q=P+(Q<<2)|0;k[Eb>>2]=Q;P=k[f>>2]|0;k[Ca>>2]=P;kw(Q|0,0,P|0)|0;P=R;Q=S;e=-1;break}case 1009:{ee=0;O=k[pb>>2]|0;cm(n,(k[O+16>>2]|0)+(((k[(k[O+8>>2]|0)+((k[O+44>>2]|0)*20|0)+4>>2]|0)+(k[f+(e*20|0)+4>>2]|0)|0)*40|0)|0,4096);O=v;w=f;P=R;Q=S;break}case 1010:{ee=0;if(k[Qb>>2]&16777216){w=k[f+(e*20|0)+8>>2]|0;O=Ob;w=ow(k[O>>2]|0,k[O+4>>2]|0,w|0,((w|0)<0)<<31>>31|0)|0;O=Ob;k[O>>2]=w;k[O+4>>2]=L;O=v;w=f;P=R;Q=S;n=F;break}g=k[f+(e*20|0)+8>>2]|0;n=((g|0)<0)<<31>>31;if(!(k[f+(e*20|0)+4>>2]|0)){w=Wd;w=ow(k[w>>2]|0,k[w+4>>2]|0,g|0,n|0)|0;O=Wd;k[O>>2]=w;k[O+4>>2]=L;O=v;w=f;P=R;Q=S;n=F;break}else{w=Nb;w=ow(k[w>>2]|0,k[w+4>>2]|0,g|0,n|0)|0;O=Nb;k[O>>2]=w;k[O+4>>2]=L;O=v;w=f;P=R;Q=S;n=F;break}}case 1015:{ee=0;if(!(k[f+(e*20|0)+4>>2]|0)){Q=Wd;if(!((k[Q>>2]|0)==0&(k[Q+4>>2]|0)==0)){O=v;w=f;P=R;Q=S;break}Q=Ob;if(!((k[Q>>2]|0)==0&(k[Q+4>>2]|0)==0)){O=v;w=f;P=R;Q=S;break}O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0;break}else{Q=Nb;if(!((k[Q>>2]|0)==0&(k[Q+4>>2]|0)==0)){O=v;w=f;P=R;Q=S;break}Q=Ob;if(!((k[Q>>2]|0)==0&(k[Q+4>>2]|0)==0)){O=v;w=f;P=R;Q=S;break}O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0;break}}case 1022:{ee=0;g=k[pb>>2]|0;if(!g)o=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;else{while(1){n=k[g+4>>2]|0;if(!n)break;else g=n}o=(k[g+16>>2]|0)+((k[f+(e*20|0)+4>>2]|0)*40|0)|0}P=_g(o)|0;Q=o;k[Q>>2]=P;k[Q+4>>2]=L;Q=o+8|0;j[Q>>1]=m[Q>>1]&48640|4;Q=k[f+(e*20|0)+8>>2]|0;P=v+(Q*40|0)|0;g=_g(P)|0;n=L;k[P>>2]=g;k[P+4>>2]=n;Q=v+(Q*40|0)+8|0;j[Q>>1]=m[Q>>1]&48640|4;Q=o;P=k[Q+4>>2]|0;if((P|0)<(n|0)|((P|0)==(n|0)?(k[Q>>2]|0)>>>0>>0:0)){O=o;k[O>>2]=g;k[O+4>>2]=n;O=v;w=f;P=R;Q=S;n=I}else{O=v;w=f;P=R;Q=S;n=I}break}case 1028:{ee=0;Q=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;P=k[Q+4>>2]|0;if((P|0)>0|(P|0)==0&(k[Q>>2]|0)>>>0>0){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 1030:{ee=0;O=k[f+(e*20|0)+12>>2]|0;P=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;Q=P;O=ow(k[Q>>2]|0,k[Q+4>>2]|0,O|0,((O|0)<0)<<31>>31|0)|0;Q=L;k[P>>2]=O;k[P+4>>2]=Q;if((Q|0)<0){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 1032:{ee=0;g=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;o=g;n=k[o>>2]|0;o=k[o+4>>2]|0;if((n|0)==0&(o|0)==0){O=v;w=f;P=R;Q=S;n=F}else{w=k[f+(e*20|0)+12>>2]|0;w=ow(w|0,((w|0)<0)<<31>>31|0,n|0,o|0)|0;O=g;k[O>>2]=w;k[O+4>>2]=L;O=v;w=f;P=R;Q=S;n=F;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}break}case 1034:{ee=0;O=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;P=O;P=ow(k[P>>2]|0,k[P+4>>2]|0,-1,-1)|0;Q=L;k[O>>2]=P;k[O+4>>2]=Q;if((P|0)==0&(Q|0)==0){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 1036:{ee=0;O=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;Q=O;P=k[Q>>2]|0;Q=k[Q+4>>2]|0;N=ow(P|0,Q|0,1,0)|0;k[O>>2]=N;k[O+4>>2]=L;if((P|0)==0&(Q|0)==0){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 1157:{ee=0;O=v;w=f;P=R;Q=S;e=(k[f+(g*20|0)+8>>2]|0)+-1|0;break}case 1158:{ee=0;if(k[f+(e*20|0)+4>>2]|0){j[Ud>>1]=j[Ud>>1]|8;O=v;w=f;P=R;Q=S;break}g=k[Sb>>2]|0;if(!g){O=v;w=f;P=R;Q=S}else{do{Q=g+88|0;j[Q>>1]=j[Q>>1]|8;g=k[g+52>>2]|0}while((g|0)!=0);O=v;w=f;P=R;Q=S}break}case 1166:{ee=0;F=(k[o>>2]|0)+72|0;g=k[F>>2]|0;D:do if(g){while(1){if((k[g+4>>2]|0)==(x|0)?(k[g>>2]|0)==(z|0):0)break;g=k[g+12>>2]|0;if(!g){ee=1171;break D}}if(!g)ee=1171}else ee=1171;while(0);if((ee|0)==1171){ee=0;g=vg(16,0)|0;if(!g){g=e;f=7;h=q;ee=1309;break c}Q=g+0|0;C=Q+12|0;do{i[Q>>0]=0;Q=Q+1|0}while((Q|0)<(C|0));k[g+4>>2]=x;k[g>>2]=z;k[g+12>>2]=k[F>>2];k[F>>2]=g}g=g+8|0;if((l[g>>0]|0)<(w&255)){i[g>>0]=w;O=v;w=f;P=R;Q=S}else{O=v;w=f;P=R;Q=S}break}case 1213:{ee=0;k[pd>>2]=0;w=k[(k[f+(e*20|0)+16>>2]|0)+8>>2]|0;if(!w){g=e;f=6;h=q;ee=1309;break c}o=k[w>>2]|0;if(!o){g=e;f=6;h=q;ee=1309;break c}z=wc[k[o+24>>2]&127](w,pd)|0;Rm(a,w);if(z){g=e;f=z;h=q;ee=1309;break c}k[k[pd>>2]>>2]=w;g=Cm(a,k[f+(e*20|0)+4>>2]|0,0,-1,0)|0;if(!g){i[ce>>0]=1;qc[k[o+28>>2]&127](k[pd>>2]|0)|0;O=v;w=f;P=R;Q=S;break}else{k[g+32>>2]=k[pd>>2];O=w+4|0;k[O>>2]=(k[O>>2]|0)+1;O=v;w=f;P=R;Q=S;break}}case 1226:{ee=0;g=v+(z*40|0)+8|0;if(!(j[g>>1]&9312)){j[g>>1]=1;O=v;w=f;P=R;Q=S;break}else{Ag(x);O=v;w=f;P=R;Q=S;break}}case 1257:{ee=0;O=n;k[O>>2]=k[(k[(k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+4>>2]|0)+4>>2]|0)+44>>2];k[O+4>>2]=0;O=v;w=f;P=R;Q=S;break}case 1258:{ee=0;w=k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+4>>2]|0;g=k[f+(e*20|0)+12>>2]|0;n=k[w+4>>2]|0;if(!g)g=0;else{Q=k[n+44>>2]|0;g=Q>>>0>>0?g:Q}k[n+4>>2]=k[w>>2];n=(k[n>>2]|0)+156|0;if((g|0)>0)k[n>>2]=g;else g=k[n>>2]|0;O=F;k[O>>2]=g;k[O+4>>2]=((g|0)<0)<<31>>31;O=v;w=f;P=R;Q=S;n=F;break}case 1264:{ee=0;e=k[f+(g*20|0)+8>>2]|0;e=(e|0)==0?g:e+-1|0;if((k[Pa>>2]|0)!=0?(j[Ud>>1]&512)==0:0){g=k[f+(g*20|0)+16>>2]|0;if(!g){g=k[_d>>2]|0;if(!g){O=v;w=f;P=R;Q=S;n=I;break}}k[Pd>>2]=0;n=k[a>>2]|0;z=k[n+88>>2]|0;k[cb>>2]=Kd;k[db>>2]=Kd;k[eb>>2]=0;k[fb>>2]=100;k[gb>>2]=z;i[hb>>0]=1;i[ib>>0]=0;k[nd>>2]=n;z=i[g>>0]|0;w=z<<24>>24==0;E:do if((k[n+160>>2]|0)>1){if(!w){w=z;while(1){n=g;do{n=n+1|0;if(w<<24>>24==10)break;w=i[n>>0]|0}while(w<<24>>24!=0);Xk(nd,42288,3);Xk(nd,g,n-g|0);w=i[n>>0]|0;if(!(w<<24>>24))break;else g=n}}}else if(!w){o=n+62|0;w=z;J=1;do{F:do if(!(w<<24>>24)){x=0;w=0}else{z=g;w=0;while(1){x=Hn(z,ge)|0;if((k[ge>>2]|0)==135)break F;w=x+w|0;z=z+x|0;if(!(i[z>>0]|0)){x=0;break}}}while(0);Xk(nd,g,w);z=g+w|0;if(!x)break E;do if((i[z>>0]|0)==63)if((x|0)>1){In(g+(w+1)|0,Pd)|0;z=k[Pd>>2]|0;break}else{k[Pd>>2]=J;z=J;break}else{z=vh(a,z,x)|0;k[Pd>>2]=z}while(0);g=g+(w+x)|0;J=z+1|0;F=z+-1|0;E=k[xb>>2]|0;z=E+(F*40|0)|0;x=m[E+(F*40|0)+8>>1]|0;do if(!(x&1)){if(x&4){O=z;P=k[O+4>>2]|0;Q=ge;k[Q>>2]=k[O>>2];k[Q+4>>2]=P;Jn(nd,0,19920,ge);break}if(x&8){p[t>>3]=+p[z>>3];k[ge>>2]=k[t>>2];k[ge+4>>2]=k[t+4>>2];Jn(nd,0,20272,ge);break}if(!(x&2)){if(x&16384){k[ge>>2]=k[z>>2];Jn(nd,0,42304,ge);break}Xk(nd,42320,2);B=k[E+(F*40|0)+12>>2]|0;if((B|0)>0){z=E+(F*40|0)+16|0;x=0;do{k[ge>>2]=l[(k[z>>2]|0)+x>>0];Jn(nd,0,42328,ge);x=x+1|0}while((x|0)!=(B|0))}Xk(nd,42336,1);break}else{B=i[o>>0]|0;if(B<<24>>24==1){Q=k[E+(F*40|0)+16>>2]|0;k[ge>>2]=k[E+(F*40|0)+12>>2];k[ge+4>>2]=Q;Jn(nd,0,42296,ge);break}Q=Ld+0|0;C=Q+40|0;do{k[Q>>2]=0;Q=Q+4|0}while((Q|0)<(C|0));k[kb>>2]=n;ah(Ld,k[E+(F*40|0)+16>>2]|0,k[E+(F*40|0)+12>>2]|0,B,0)|0;Q=k[lb>>2]|0;if(!((Q&2|0)==0|(Q&16711680|0)==65536))Gn(Ld,1)|0;Q=k[nb>>2]|0;k[ge>>2]=k[mb>>2];k[ge+4>>2]=Q;Jn(nd,0,42296,ge);if((j[lb>>1]&9312)==0&(k[ob>>2]|0)==0)break;Vg(Ld);break}}else Xk(nd,20304,4);while(0);w=i[g>>0]|0}while(w<<24>>24!=0)}while(0);O=yg(nd)|0;oc[k[Pa>>2]&15](k[jb>>2]|0,O);rg(he,O);O=v;w=f;P=R;Q=S;n=I}else{O=v;w=f;P=R;Q=S;n=I}break}}if((ee|0)==28){ee=0;v=f+(e*20|0)+4|0;g=k[v>>2]|0;if(g){u=v;ee=34;break}v=k[pb>>2]|0;if(!v){ee=30;break}k[pb>>2]=k[v+4>>2];k[qb>>2]=(k[qb>>2]|0)+-1;c=k[rb>>2]|0;k[sb>>2]=c;k[tb>>2]=(k[tb>>2]|0)+c;v=am(v)|0;c=je;w=k[tc>>2]|0;if((k[f+(e*20|0)+8>>2]|0)==4)e=(k[w+(v*20|0)+8>>2]|0)+-1|0;else e=v;d=k[c>>2]|0;c=k[c+4>>2]|0;O=k[Kc>>2]|0;P=R;Q=S}else if((ee|0)==488){ee=0;w=xm(he,z,x)|0;if(!w){O=v;w=f;P=R;Q=S}else{g=e;h=w;ee=1318;break}}v=O;f=w;R=P;S=Q;g=e+1|0}switch(ee|0){case 30:{k[ie>>2]=g;i[be>>0]=k[f+(e*20|0)+8>>2];k[de>>2]=e;ee=41;break}case 34:{k[ie>>2]=g;i[be>>0]=k[f+(e*20|0)+8>>2];k[de>>2]=e;g=i[f+(e*20|0)+3>>0]|0;if(!(g<<24>>24)){f=k[f+(e*20|0)+16>>2]|0;if(!f){f=0;ee=39}else{k[ge>>2]=f;ih(fe,he,10344,ge)}}else{h=k[41536+((g&255)+-1<<2)>>2]|0;g=k[f+(e*20|0)+16>>2]|0;if(!g){f=h;ee=39}else{k[ge>>2]=h;k[ge+4>>2]=g;ih(fe,he,41624,ge)}}if((ee|0)==39){k[ge>>2]=f;ih(fe,he,41656,ge)}ee=k[u>>2]|0;kd=k[_d>>2]|0;nd=k[fe>>2]|0;k[ge>>2]=e;k[ge+4>>2]=kd;k[ge+8>>2]=nd;gd(ee,41600,ge);ee=41;break}case 80:{q=k[Zd>>2]|0;if(!((q|0)==0|b>>>0>>0)?(qc[q&127](k[Vd>>2]|0)|0)!=0:0){e=d;f=9;d=h;ee=1311;break a}nd=Wd;kd=k[nd+4>>2]|0;if((kd|0)>0|(kd|0)==0&(k[nd>>2]|0)>>>0>0){f=k[a>>2]|0;k[ie>>2]=787;i[be>>0]=2;ih(fe,f,34376,ge);f=1;ee=1309;break}q=em(a,1)|0;if(!q){k[Xd>>2]=(k[Xd>>2]|0)+2|1;u=k[f+(g*20|0)+4>>2]|0;k[$d>>2]=v+(u*40|0);e=f+(g*20|0)+8|0;if((k[e>>2]|0)>0){q=0;do{n=q+u|0;o=v+(n*40|0)|0;n=v+(n*40|0)+8|0;f=j[n>>1]|0;if(f&4096){if(_l(o)|0){u=ce;v=fe;e=d;d=h;ee=1317;break a}f=j[n>>1]|0}if((f&514)==2)fm(o)|0;q=q+1|0}while((q|0)<(k[e>>2]|0))}if(i[ce>>0]|0){u=ce;v=fe;e=d;d=h;ee=1317;break a}k[de>>2]=g+1;e=d;d=b;b=100;break a}else{f=q;ee=1309}break}case 313:{k[ge>>2]=73058;k[ge+4>>2]=10788;gd(11,13600,ge);f=11;ee=1309;break}case 343:{k[ge>>2]=73142;k[ge+4>>2]=10788;gd(11,13600,ge);f=11;ee=1309;break}case 447:{ih(fe,he,41712,ge);g=e;f=5;ee=1309;break}case 460:{k[ge>>2]=f;ih(fe,he,41768,ge);f=1;ee=1309;break}case 462:{ih(fe,he,41792,ge);f=5;ee=1309;break}case 467:{k[de>>2]=b;i[ae>>0]=0;k[ie>>2]=5;b=5;break a}case 489:{n=k[f+(g*20|0)+4>>2]|0;f=k[f+(g*20|0)+8>>2]|0;b=(n|0)!=0;if(b){f=(f|0)!=0;if(!(f|(i[ae>>0]|0)!=0))if((k[Yd>>2]|0)>0){ih(fe,he,41848,ge);b=d;d=e;f=5;ee=1309;break}else f=0}else f=(f|0)!=0;if((n|0)==(l[ae>>0]|0)){if(b)b=f?41952:42e3;else b=41904;ih(fe,he,b,ge);b=d;d=e;f=1;ee=1309;break}if(!f){b=ym(a,1)|0;if(b)break a;i[ae>>0]=n;if((Wl(a)|0)==5){k[de>>2]=g;i[ae>>0]=1-n;k[ie>>2]=5;b=5;break a}}else{Pl(he,516);i[ae>>0]=1}Ql(he);b=(k[ie>>2]|0)==0?101:1;break a}case 508:{k[de>>2]=b;k[ie>>2]=5;b=5;break a}case 522:{rg(he,k[fe>>2]|0);nd=ph(he,16040)|0;k[fe>>2]=nd;f=k[f>>2]|0;if((k[k[(k[Td>>2]|0)+(f<<4)+12>>2]>>2]|0)!=(n|0))Am(he,f);j[Ud>>1]=j[Ud>>1]|8;f=17;ee=1309;break}case 542:{k[ge>>2]=73997;k[ge+4>>2]=10788;gd(11,13600,ge);h=11;q=f;ee=1318;break}case 560:{k[f+56>>2]=0;f=7;ee=1309;break}case 832:{i[be>>0]=2;f=6;ee=1309;break}case 882:{Jg(he);u=ce;v=fe;e=d;d=h;ee=1317;break a}case 884:{Jg(he);if((f|0)==7){u=ce;v=fe;e=d;d=h;ee=1317;break a}else ee=1309;break}case 998:{ih(fe,he,42112,ge);f=1;ee=1309;break}case 1080:{k[ge>>2]=f?42208:42216;ih(fe,he,42152,ge);f=1;ee=1309;break}case 1101:{ih(fe,he,42344,ge);f=1;ee=1309;break}case 1103:{ih(fe,he,42384,ge);f=1;ee=1309;break}case 1145:{k[ge>>2]=56343;k[ge+4>>2]=10788;gd(11,13600,ge);f=11;ee=1309;break}case 1316:{ih(fe,he,10096,ge);e=d;f=18;d=h;ee=1311;break a}}if((ee|0)==41)if((Wl(a)|0)==5){k[ie>>2]=5;e=d;d=b;b=5;break a}else{e=d;d=b;b=(k[ie>>2]|0)!=0?1:101;break a}else if((ee|0)==1309){e=d;g=g+1|0;d=h;ee=1311;break a}else if((ee|0)==1318){h=(i[ce>>0]|0)==0?h:7;if((h|0)==3082){e=d;f=3082;d=q;ee=1311;break a}else if((h|0)!=516){e=h&255;if(e>>>0>26|(e|0)==2)f=16328;else f=k[15488+(e<<2)>>2]|0}else f=16344;k[ge>>2]=f;ih(fe,he,10344,ge);e=d;f=h;d=q;ee=1311;break a}}else{h=a+44|0;e=d;b=0;g=0;d=0}while(0);k[ie>>2]=9;k[ge>>2]=15832;ih(h,he,10344,ge);f=9;ee=1311}while(0);if((ee|0)==1317){i[u>>0]=1;ih(v,he,15776,ge);f=7;ee=1311}if((ee|0)==1311){k[ie>>2]=f;kd=k[a+168>>2]|0;nd=k[a+44>>2]|0;k[ge>>2]=g;k[ge+4>>2]=kd;k[ge+8>>2]=nd;gd(f,42256,ge);Wl(a)|0;if((f|0)==3082)i[he+65>>0]=1;if(!(d<<24>>24)){d=b;b=1}else{Am(he,(d&255)+-1|0);d=b;b=1}}nd=je;k[nd>>2]=e;k[nd+4>>2]=c;nd=a+124|0;k[nd>>2]=(k[nd>>2]|0)+d;r=ke;return b|0}
function Jv(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=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=a+20|0;r=a+14|0;b=i[r>>0]|0;w=a+13|0;c=i[w>>0]|0;a:do if((b&255)>(c&255))b=0;else{y=a+4|0;z=a+16|0;s=a+8|0;t=a+12|0;u=a+24|0;v=a+28|0;e=b&255;f=k[y>>2]|0;d=k[A>>2]|0;b:while(1){q=k[a+(e+-2<<2)+24>>2]|0;p=k[a+(e+-1<<2)+24>>2]|0;if(f){while(1){o=f+12|0;if((d|0)<(k[o>>2]|0)){c=d;b=(k[f+20>>2]|0)+(d*48|0)|0;while(1){do if((k[b+8>>2]|0)==(q|0)?(k[b+12>>2]|0)==(p|0):0){if((l[r>>0]|0)>=3?(k[(k[b>>2]|0)+4>>2]&1|0)!=0:0)break;n=b+18|0;d=j[n>>1]|0;if((d&1024)!=0?(x=i[w>>0]|0,(x&255)<22):0){e=k[(k[b>>2]|0)+16>>2]|0;c:do if(!e)e=0;else while(1){g=k[e+4>>2]|0;if(!(g&4096))break c;if(!(g&262144))e=e+12|0;else e=k[(k[e+20>>2]|0)+4>>2]|0;e=k[e>>2]|0;if(!e){e=0;break}}while(0);d:do if(!(x<<24>>24)){m=0;g=0}else{h=k[e+28>>2]|0;m=e+32|0;g=0;while(1){if((k[a+(g<<2)+24>>2]|0)==(h|0)?(k[a+((g|1)<<2)+24>>2]|0)==(j[m>>1]|0):0){m=x;break d}g=g+2|0;if((g|0)>=(x&255|0)){m=x;break}}}while(0);if((g|0)==(m&255|0)){k[a+(g<<2)+24>>2]=k[e+28>>2];k[a+((g|1)<<2)+24>>2]=j[e+32>>1];i[w>>0]=(l[w>>0]|0)+2}}e=d&65535;if(e&k[z>>2]){if((k[s>>2]|0)!=0&(e&128|0)==0){h=k[k[f>>2]>>2]|0;g=k[b>>2]|0;e=i[t>>0]|0;d=(sv(g)|0)<<24>>24;if((d|0)==66){if(e<<24>>24!=66)break}else if((d|0)!=65?e<<24>>24<=66:0)break;d=Tu(h,k[g+12>>2]|0,k[g+16>>2]|0)|0;if(!d)d=k[(k[h>>2]|0)+8>>2]|0;if(id(k[d>>2]|0,k[s>>2]|0)|0)break;d=j[n>>1]|0}if(!(d&2))break b;d=k[(k[b>>2]|0)+16>>2]|0;if((i[d>>0]|0)!=-102)break b;if((k[d+28>>2]|0)!=(k[u>>2]|0))break b;if((j[d+32>>1]|0)!=(k[v>>2]|0))break b}}while(0);c=c+1|0;if((c|0)>=(k[o>>2]|0))break;else b=b+48|0}c=k[y>>2]|0}else c=f;f=k[c+4>>2]|0;k[y>>2]=f;if(!f)break;else d=0}b=i[r>>0]|0;c=i[w>>0]|0}f=k[a>>2]|0;k[y>>2]=f;d=(b&255)+2|0;b=d&255;i[r>>0]=b;if((b&255)>(c&255)){b=0;break a}else{e=d&255;d=0}}k[A>>2]=c+1}while(0);return b|0}function Kv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0;c=k[a>>2]|0;h=k[k[c>>2]>>2]|0;a=k[a+16>>2]|0;a:do if(!a){c=c+16|0;e=k[c>>2]|0;g=b+36|0;if((k[g>>2]&512|0)!=0&(e|0)!=0){a=b+20|0;f=b+22|0;d=i[b+16>>0]|0;do{do if((i[e+16>>0]|0)==d<<24>>24?(k[e+36>>2]&512|0)!=0:0){if(Yv(e,b)|0){j[a>>1]=j[e+20>>1]|0;j[f>>1]=(m[e+22>>1]|0)+65535;break}if(Yv(b,e)|0){j[a>>1]=j[e+20>>1]|0;j[f>>1]=(m[e+22>>1]|0)+1}}while(0);e=k[e+52>>2]|0}while((e|0)!=0)}a=Zv(c,b)|0;if(a){c=k[a>>2]|0;b:do if(c){a=c+52|0;if(k[a>>2]|0)do{a=Zv(a,b)|0;if(!a)break b;d=k[a>>2]|0;if(!d)break b;k[a>>2]=k[d+52>>2];Ou(h,d);rg(h,d)}while((k[a>>2]|0)!=0)}else{c=rh(h,72,0)|0;k[a>>2]=c;if(!c){a=7;break a}k[c+48>>2]=c+56;j[c+40>>1]=0;j[c+44>>1]=3;k[c+36>>2]=0;k[c+52>>2]=0}while(0);Qv(h,c);do if(!(Su(h,c,m[b+40>>1]|0)|0)){d=c+0|0;a=b+0|0;e=d+44|0;do{k[d>>2]=k[a>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));pw(k[c+48>>2]|0,k[b+48>>2]|0,m[c+40>>1]<<2|0)|0;a=k[g>>2]|0;if(a&1024){i[b+28>>0]=0;break}if(a&16384)k[b+28>>2]=0}else{a=c+24|0;k[a+0>>2]=0;k[a+4>>2]=0;k[a+8>>2]=0}while(0);if(((k[c+36>>2]&1024|0)==0?(l=c+28|0,n=k[l>>2]|0,(n|0)!=0):0)?(k[n+40>>2]|0)==0:0){k[l>>2]=0;a=0}else a=0}else a=0}else{c=b;Pv(a,k[c>>2]|0,k[c+4>>2]|0,j[b+20>>1]|0,j[b+22>>1]|0);a=0}while(0);return a|0}function Lv(a,b){a=a|0;b=b|0;var c=0,d=0;c=a<<16>>16;d=b<<16>>16;do if(a<<16>>16>16)if((d|0)<=(c+49|0))if((d|0)>(c+31|0)){a=d+1&65535;break}else{a=(l[34032+(d-c)>>0]|0)+d&65535;break}else a=b;else if((c|0)<=(d+49|0))if((c|0)>(d+31|0)){a=c+1&65535;break}else{a=(l[34032+(c-d)>>0]|0)+c&65535;break}while(0);return a|0}function Mv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;do if(!(Hu(a,b,c)|0))d=1;else{d=i[b>>0]|0;if(d<<24>>24==71){if(Mv(a,k[b+12>>2]|0,c)|0){d=1;break}if(Mv(a,k[b+16>>2]|0,c)|0){d=1;break}if(d<<24>>24==77)e=6}else if(d<<24>>24==77)e=6;if(((e|0)==6?(Hu(k[a+12>>2]|0,k[b+12>>2]|0,c)|0)==0:0)?(d=i[a>>0]|0,!(d<<24>>24==73|d<<24>>24==76)):0){d=1;break}d=0}while(0);return d|0}function Nv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();u=v;q=b;t=b+8|0;d=t;p=~(k[d>>2]|k[q>>2]);q=~(k[d+4>>2]|k[q+4>>2]);d=k[a+12>>2]|0;n=a+20|0;a:do if((d|0)>0){o=b+40|0;a=b+22|0;l=b+48|0;b=0;i=k[n>>2]|0;while(1){if(j[i+20>>1]&2)break a;h=i+40|0;g=k[h>>2]|0;h=k[h+4>>2]|0;f=t;b:do if(((k[f>>2]&g|0)!=0?1:(k[f+4>>2]&h|0)!=0)&((g&p|0)==0&(h&q|0)==0)){e=j[o>>1]|0;c:do if(e<<16>>16){h=k[l>>2]|0;g=e&65535;while(1){e=g;g=g+-1|0;f=k[h+(g<<2)>>2]|0;if(f){if((f|0)==(i|0))break;f=k[f+4>>2]|0;if((f|0)>-1?((k[n>>2]|0)+(f*48|0)|0)==(i|0):0)break}if((g|0)<=0)break c}if((e|0)>=1)break b}while(0);e=j[i+16>>1]|0;if(e<<16>>16<1){j[a>>1]=(m[a>>1]|0)+(e&65535);break}j[a>>1]=(j[a>>1]|0)+-1<<16>>16;if(j[i+18>>1]&2){g=(Rs(k[(k[i>>2]|0)+16>>2]|0,u)|0)!=0;h=k[u>>2]|0;h=g&(h|0)>-2&(h|0)<2?10:20;k[u>>2]=h;b=(b<<16>>16|0)<(h|0)?h&65535:b}}while(0);d=d+-1|0;if((d|0)<=0)break;else i=i+48|0}}else{a=b+22|0;b=0}while(0);b=(c<<16>>16)-(b<<16>>16)|0;if((j[a>>1]|0)>(b|0))j[a>>1]=b;r=v;return}function Ov(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0;da=r;r=r+112|0;if((r|0)>=(s|0))ka();O=da;S=k[k[k[a>>2]>>2]>>2]|0;ba=k[a+12>>2]|0;if(!(i[S+65>>0]|0)){ca=ba+36|0;if(!(k[ca>>2]&32))if((k[c+40>>2]|0)<1)e=63;else e=(i[b+36>>0]&8)<<4^191;else e=24;T=c+51|0;$=ba+24|0;f=j[(k[c+4>>2]|0)+(m[$>>1]<<1)>>1]|0;K=f<<16>>16;L=a+4|0;e=Iv(O,k[L>>2]|0,k[b+40>>2]|0,K,(i[T>>0]&4)==0?e:e&131,c)|0;U=j[$>>1]|0;V=ba+42|0;Q=j[V>>1]|0;W=ba+40|0;R=j[W>>1]|0;X=k[ca>>2]|0;N=ba;M=k[N>>2]|0;N=k[N+4>>2]|0;Y=ba+22|0;Z=j[Y>>1]|0;j[ba+18>>1]=0;_=c+8|0;A=j[k[_>>2]>>1]|0;if(A<<16>>16<11)z=0;else{z=A<<16>>16;z=((ks(z,((z|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!e)e=0;else{B=f<<16>>16<0;C=b+16|0;D=ba+8|0;E=(R&65535)+1|0;F=ba+48|0;G=d<<16>>16==0;H=c+46|0;t=f<<16>>16>-1;u=c+50|0;v=c+44|0;w=ba+20|0;x=d<<16>>16;y=c+48|0;l=0;p=e;n=0;while(1){f=j[p+18>>1]|0;o=f&65535;if(f<<16>>16==128)if(!B?(i[(k[(k[C>>2]|0)+4>>2]|0)+(K*24|0)+20>>0]|0)==0:0)P=12;else{g=l;f=n;e=0}else P=12;if((P|0)==12){P=0;g=p+32|0;q=g;h=D;if(((k[h>>2]&k[q>>2]|0)==0?(k[h+4>>2]&k[q+4>>2]|0)==0:0)?(I=p+20|0,!((j[I>>1]&256)!=0&f<<16>>16==16)):0){k[ca>>2]=X;j[$>>1]=U;j[W>>1]=R;if(Su(S,ba,E)|0){e=0;break a}e=j[W>>1]|0;h=e+1<<16>>16;j[W>>1]=h;k[(k[F>>2]|0)+((e&65535)<<2)>>2]=p;e=g;f=D;g=(k[e+4>>2]|N)&~k[f+4>>2];q=ba;k[q>>2]=(k[e>>2]|M)&~k[f>>2];k[q+4>>2]=g;b:do if(!(o&1)){if(o&2){e=k[ca>>2]|0;f=e|1;k[ca>>2]=f;do if(!B){if(!G){q=0;break b}if((m[$>>1]|0)!=((m[H>>1]|0)+-1|0)){q=0;break b}if(!t)break;if(i[u>>0]|0)break;f=e|65537;k[ca>>2]=f;q=0;break b}while(0);f=e|4097;k[ca>>2]=f;q=0;break}if(o&128){f=k[ca>>2]|8;k[ca>>2]=f;q=0;break}e=k[ca>>2]|0;if(!(o&36)){f=e|18;k[ca>>2]=f;if(!(e&32)){q=0;l=0;n=p;break}q=0;l=k[(k[F>>2]|0)+((h&65535)+-2<<2)>>2]|0;n=p;break}f=e|34;k[ca>>2]=f;if(!(j[I>>1]&256)){q=0;l=p;n=0}else{e=p+48|0;if(Su(S,ba,(h&65535)+1|0)|0){e=0;break a}f=j[W>>1]|0;j[W>>1]=f+1<<16>>16;k[(k[F>>2]|0)+((f&65535)<<2)>>2]=e;f=k[ca>>2]|16;k[ca>>2]=f;q=0;l=p;n=e}}else{e=k[p>>2]|0;f=k[ca>>2]|4;k[ca>>2]=f;if(!(k[e+4>>2]&2048)){e=k[e+20>>2]|0;if((e|0)!=0?(J=k[e>>2]|0,(J|0)!=0):0)q=(ks(J,((J|0)<0)<<31>>31)|0)<<16>>16;else q=0}else q=46}while(0);do if(!(f&2)){e=(j[$>>1]|0)+1<<16>>16;j[$>>1]=e;e=e&65535;g=j[p+16>>1]|0;if(g<<16>>16<1&t){h=(g&65535)-q+(m[Y>>1]|0)&65535;j[Y>>1]=h;break}g=k[_>>2]|0;g=(m[Y>>1]|0)+((m[g+(e<<1)>>1]|0)-(m[g+(e+-1<<1)>>1]|0))|0;e=g&65535;j[Y>>1]=e;if(!(o&128))h=e;else{h=g+10&65535;j[Y>>1]=h}}else{e=j[Y>>1]|0;h=e<<16>>16;do if(l){g=j[l+16>>1]|0;if(g<<16>>16<1){e=(g&65535)+(e&65535)&65535;break}else{e=(e&65535)+65516&65535;break}}while(0);do if(n){g=j[n+16>>1]|0;if(g<<16>>16<1){e=(g&65535)+(e&65535)&65535;break}else{e=(e&65535)+65516&65535;break}}while(0);g=(l|0)!=0;do if(g?(j[l+16>>1]|0)>0&(n|0)!=0:0){if((j[n+16>>1]|0)<=0)break;e=(e&65535)+65516&65535}while(0);h=(((n|0)!=0)<<31>>31)+(g<<31>>31)+h|0;p=e<<16>>16<10?10:e<<16>>16;h=((p|0)<(h|0)?p:h)&65535;j[Y>>1]=h}while(0);e=h&65535;g=Lv(z,e+1+(((j[v>>1]|0)*15|0)/(j[(k[C>>2]|0)+42>>1]|0)|0)&65535)|0;if(!(f&320))g=Lv(g,e+16&65535)|0;f=q+x|0;j[w>>1]=(g&65535)+f;j[Y>>1]=e+f;Nv(k[L>>2]|0,ba,A);e=Kv(a,ba)|0;q=k[ca>>2]|0;j[Y>>1]=(q&2|0)==0?h:Z;if((q&16|0)==0?(m[$>>1]|0)<(m[y>>1]|0):0)Ov(a,b,c,f&65535)|0;j[Y>>1]=Z;g=l;f=n}else{g=l;f=n;e=0}}p=Jv(O)|0;if(!((e|0)==0&(p|0)!=0))break;else{l=g;n=f}}}while(0);f=ba;k[f>>2]=M;k[f+4>>2]=N;j[$>>1]=U;j[V>>1]=Q;k[ca>>2]=X;j[Y>>1]=Z;j[W>>1]=R;f=U&65535;if(((U<<16>>16==Q<<16>>16?(aa=f+1|0,aa>>>0<(m[c+46>>1]|0)>>>0):0)?(i[T>>0]&64)==0:0)?(j[(k[_>>2]|0)+(aa<<1)>>1]|0)>41:0){e=Su(S,ba,(R&65535)+1|0)|0;if(!e){j[$>>1]=(j[$>>1]|0)+1<<16>>16;j[V>>1]=(j[V>>1]|0)+1<<16>>16;e=j[W>>1]|0;j[W>>1]=e+1<<16>>16;k[(k[ba+48>>2]|0)+((e&65535)<<2)>>2]=0;k[ca>>2]=k[ca>>2]|32768;e=k[_>>2]|0;e=(m[e+(f<<1)>>1]|0)-(m[e+(aa<<1)>>1]|0)|0;j[Y>>1]=(m[Y>>1]|0)-e;Ov(a,b,c,(((e<<16)+327680|0)>>>16)+(d&65535)&65535)|0;j[Y>>1]=Z;j[$>>1]=U;j[V>>1]=U;k[ca>>2]=X;e=0}}}else e=7;r=da;return e|0}function Pv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,l=0,m=0,n=0,o=0,p=0;l=j[a>>1]|0;f=a+8|0;a:do if(l<<16>>16){h=l;i=f;while(1){g=j[i+8>>1]|0;if(g<<16>>16>=d<<16>>16?(p=i,(k[p>>2]&b|0)==(b|0)?(k[p+4>>2]&c|0)==(c|0):0):0){n=i;o=14;break a}if(g<<16>>16<=d<<16>>16?(g=i,p=k[g>>2]|0,g=k[g+4>>2]|0,(p&b|0)==(p|0)&(g&c|0)==(g|0)):0)break a;h=h+-1<<16>>16;if(!(h<<16>>16))break;else i=i+16|0}if((l&65535)>=3){g=j[a+16>>1]|0;i=1;do{if(g<<16>>16>(j[a+(i<<4)+16>>1]|0))f=a+(i<<4)+8|0;i=i+1|0;g=j[f+8>>1]|0}while((i&65535)<(l&65535));if(g<<16>>16>d<<16>>16){n=f;o=14}}else o=9}else o=9;while(0);if((o|0)==9){n=l&65535;j[a>>1]=l+1<<16>>16;j[a+(n<<4)+18>>1]=e;n=a+(n<<4)+8|0;o=14}if((o|0)==14?(m=n,k[m>>2]=b,k[m+4>>2]=c,j[n+8>>1]=d,m=n+10|0,(j[m>>1]|0)>e<<16>>16):0)j[m>>1]=e;return}function Qv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=k[b+36>>2]|0;do if(c&17408){if((c&1024|0)!=0?(f=b+28|0,(i[f>>0]|0)!=0):0){c=b+32|0;$c(k[c>>2]|0);i[f>>0]=0;k[c>>2]=0;break}if((c&16384|0)!=0?(d=b+28|0,e=k[d>>2]|0,(e|0)!=0):0){rg(a,k[e+16>>2]|0);rg(a,k[d>>2]|0);k[d>>2]=0}}while(0);return}function Rv(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,n=0,o=0,p=0,q=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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0;qa=r;r=r+32|0;if((r|0)>=(s|0))ka();la=qa;n=k[k[a>>2]>>2]|0;ja=e&65535;if(e<<16>>16!=0?(j[n+60>>1]&128)!=0:0)h=0;else ma=3;a:do if((ma|0)==3){pa=k[b>>2]|0;h=pa&65535;if(h>>>0<=63){na=nw(1,0,h|0)|0;na=ow(na|0,L|0,-1,-1)|0;oa=L;b:do if((na|0)==0&(oa|0)==0){b=0;c=0;n=1}else{da=c+24|0;ea=a+4|0;fa=(h|0)==0;ba=b+4|0;ca=(d&768)==0;aa=n+8|0;T=(d&256)==0;U=a+68|0;V=la+20|0;W=la+4|0;Z=la+24|0;_=a+328|0;X=0;Y=0;b=0;c=0;d=0;o=0;$=0;n=1;e=0;while(1){if(($|0)>0){R=e+8|0;S=k[R>>2]|d;o=k[R+4>>2]|o}else S=d;if(($|0)<(ja|0))e=k[(k[da>>2]|0)+($<<2)>>2]|0;else e=f;y=e+36|0;d=k[y>>2]|0;if(d&1024)break;R=k[(k[ea>>2]|0)+((l[e+16>>0]|0)*72|0)+48>>2]|0;if(!fa){d=~S;q=~o;v=0;do{x=nw(1,0,v|0)|0;w=L;c:do if((x&b|0)==0&(w&c|0)==0){p=k[(k[ba>>2]|0)+(v*20|0)>>2]|0;u=k[p+4>>2]|0;if(u&4096)do{if(!(u&262144))p=p+12|0;else p=k[(k[p+20>>2]|0)+4>>2]|0;p=k[p>>2]|0;u=k[p+4>>2]|0}while((u&4096|0)!=0);if(((i[p>>0]|0)==-102?(k[p+28>>2]|0)==(R|0):0)?(ga=p+32|0,ha=Ku(_,R,j[ga>>1]|0,d,q,130,0)|0,(ha|0)!=0):0){do if(j[ha+18>>1]&2){if((j[ga>>1]|0)<=-1)break;p=hu(k[a>>2]|0,k[(k[ba>>2]|0)+(v*20|0)>>2]|0)|0;if(!p)p=k[aa>>2]|0;u=k[p>>2]|0;t=hu(k[a>>2]|0,k[ha>>2]|0)|0;if(!t)t=k[aa>>2]|0;if(id(u,k[t>>2]|0)|0)break c}while(0);b=x|b;c=w|c}}while(0);v=v+1|0}while((v|0)<(h|0));d=k[y>>2]|0}do if(!(d&4096)){if(!(d&256)){p=k[e+28>>2]|0;if(!p){h=0;break a}if(i[p+51>>0]&4){h=0;break a}d=j[p+48>>1]|0;n=(i[p+50>>0]|0)!=0&1;if(!(d<<16>>16)){ma=71;break}else{P=d&65535;Q=j[p+46>>1]|0}}else{P=1;Q=0;p=0}F=e+24|0;G=e+42|0;H=e+48|0;I=(p|0)==0;J=p+32|0;K=nw(1,0,$|0)|0;M=L;N=p+4|0;O=p+28|0;E=p+12|0;d=0;p=0;x=0;D=0;d:while(1){w=(p|0)<(m[F>>1]|0);if((w?(j[G>>1]|0)==0:0)?(ia=m[(k[(k[H>>2]|0)+(p<<2)>>2]|0)+18>>1]|0,(ia&130|0)!=0):0){n=(ia&128|0)==0?n:0;w=D}else{if(!I){u=j[(k[N>>2]|0)+(p<<1)>>1]|0;t=i[(k[O>>2]|0)+p>>0]|0;q=k[E>>2]|0;u=u<<16>>16==(j[q+36>>1]|0)?-1:u<<16>>16;v=(u|0)>-1;if(n<<24>>24!=0&v)if(w){v=1;C=u}else{v=1;C=u;n=(i[(k[q+4>>2]|0)+(u*24|0)+20>>0]|0)==0?0:n}else C=u}else{v=0;C=-1;t=0}if(fa){ma=68;break}else{w=1;B=0}e:while(1){z=nw(1,0,B|0)|0;A=L;do if((z&b|0)==0&(A&c|0)==0){q=k[(k[ba>>2]|0)+(B*20|0)>>2]|0;u=k[q+4>>2]|0;if(!(u&4096))y=q;else{y=q;do{if(!(u&262144))u=y+12|0;else u=k[(k[y+20>>2]|0)+4>>2]|0;y=k[u>>2]|0;u=k[y+4>>2]|0}while((u&4096|0)!=0)}w=ca?0:w;if((i[y>>0]|0)!=-102)break;if((k[y+28>>2]|0)!=(R|0))break;if((j[y+32>>1]|0)!=(C|0))break;if(!v){y=z;v=A;w=B;break e}u=hu(k[a>>2]|0,q)|0;if(!u)u=k[aa>>2]|0;if(!(id(k[u>>2]|0,k[(k[J>>2]|0)+(p<<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)<(h|0))){ma=68;break d}}do if(T){if(D<<24>>24)if((t^x)<<24>>24==(i[(k[ba>>2]|0)+(w*20|0)+12>>0]|0)){w=D;break}else{ma=68;break d}q=i[(k[ba>>2]|0)+(w*20|0)+12>>0]|0;x=q^t;if(t<<24>>24==q<<24>>24){w=1;break}q=g;t=k[q+4>>2]|M;w=g;k[w>>2]=k[q>>2]|K;k[w+4>>2]=t;w=1}else w=D;while(0);b=y|b;c=v|c;d=(C|0)<0?1:d}p=p+1|0;if((p|0)>=(P|0))break;else D=w}if((ma|0)==68){ma=0;n=(p|0)==0|(p|0)<(Q&65535|0)?0:n}if(!(d<<24>>24))ma=71;else n=1}else ma=71;while(0);if((ma|0)==71){ma=0;if(!(n<<24>>24)){n=0;break b}}R=e+8|0;X=k[R>>2]|X;Y=k[R+4>>2]|Y;if(!fa){w=~X;x=~Y;v=0;do{p=nw(1,0,v|0)|0;u=L;do if((p&b|0)==0&(u&c|0)==0){d=k[(k[ba>>2]|0)+(v*20|0)>>2]|0;q=Fv(U,d)|0;t=L;if((q|0)==0&(t|0)==0?(k[la+0>>2]=0,k[la+4>>2]=0,k[la+8>>2]=0,k[la+12>>2]=0,k[la+16>>2]=0,k[la+20>>2]=0,i[V>>0]=1,k[la>>2]=78,k[W>>2]=79,k[Z>>2]=0,ws(la,d)|0,(i[V>>0]|0)==0):0)break;R=(q&w|0)==0&(t&x|0)==0;b=(R?p:0)|b;c=(R?u:0)|c}while(0);v=v+1|0}while((v|0)<(h|0))}if(c>>>0>oa>>>0|(c|0)==(oa|0)&b>>>0>=na>>>0|n<<24>>24==0|($|0)>=(ja|0))break b;else{d=S;$=$+1|0}}ca=(i[e+29>>0]|0)==0;b=ca?b:na;c=ca?c:oa}while(0);if((b|0)==(na|0)&(c|0)==(oa|0)){h=pa&255;break}if(!(n<<24>>24)){do{h=h+-1|0;if((h|0)<=0){h=0;break a}ba=nw(1,0,h|0)|0;ba=ow(ba|0,L|0,-1,-1)|0;ca=L}while(!((ba&b|0)==(ba|0)&(ca&c|0)==(ca|0)));h=h&255}else h=-1}else h=0}while(0);r=qa;return h|0}function Sv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(b)Xk(a,33920,5);if(!c)b=0;else{b=c;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;b=b-c&1073741823}Xk(a,c,b);Xk(a,d,1);Xk(a,13552,1);return}function Tv(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=k[k[k[a>>2]>>2]>>2]|0;b=k[a+12>>2]|0;e=a+20|0;if((b|0)>0){f=k[e>>2]|0;while(1){b=b+-1|0;d=f+20|0;c=j[d>>1]|0;if(c&1){Lk(g,k[f>>2]|0);c=j[d>>1]|0}c=c&65535;if(!(c&16)){if(c&32){c=k[f+12>>2]|0;Tv(c);rg(g,c)}}else{c=k[f+12>>2]|0;Tv(c);rg(g,c)}if((b|0)<=0)break;else f=f+48|0}}b=k[e>>2]|0;if((b|0)!=(a+24|0))rg(g,b);return}function Uv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0;q=r;r=r+32|0;if((r|0)>=(s|0))ka();p=q;e=k[a+8>>2]|0;f=k[a>>2]|0;if(b){g=(c|0)==10;h=a+437|0;j=p+4|0;m=p+1|0;n=p+8|0;o=p+12|0;d=c&255;do{if(g)c=i[b+1>>0]|0;else c=d;i[h>>0]=c;c=l[b>>0]|0;if((c|0)==108){u=_v(a,b)|0;t=lr(f,k[b+8>>2]|0,0)|0;c=Sr(f,k[b+28>>2]|0)|0;yr(a,u,t,c,l[h>>0]|0)}else if((c|0)==110){u=_v(a,b)|0;t=Ur(f,k[b+24>>2]|0,0)|0;c=Rr(f,k[b+20>>2]|0,0,0)|0;xr(a,u,t,c,l[h>>0]|0)}else if((c|0)==109){c=_v(a,b)|0;wr(a,c,Rr(f,k[b+20>>2]|0,0,0)|0)}else{c=lr(f,k[b+8>>2]|0,0)|0;i[p>>0]=4;k[j>>2]=0;i[m>>0]=0;k[n>>2]=0;k[o>>2]=0;nr(a,c,p)|0;Rk(f,c,1)}if((i[b>>0]|0)!=119)Bh(e,98,0,0,0)|0;b=k[b+32>>2]|0}while((b|0)!=0)}r=q;return}function Vv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();e=h;g=k[a>>2]|0;k[e>>2]=0;k[e+4>>2]=0;e=sr(g,159,e,0)|0;do if(!e)e=0;else{f=d<<16>>16;if(d<<16>>16>-1?(j[b+36>>1]|0)!=d<<16>>16:0){d=k[b+4>>2]|0;k[e+28>>2]=c+1+f;i[e+1>>0]=i[d+(f*24|0)+21>>0]|0;f=k[d+(f*24|0)+16>>2]|0;if(!f)f=k[k[g+8>>2]>>2]|0;e=Cv(a,e,f)|0;break}k[e+28>>2]=c;i[e+1>>0]=68}while(0);r=h;return e|0}function Wv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a=rh(a,48,0)|0;if(a){e=a+0|0;f=e+44|0;do{i[e>>0]=0;e=e+1|0}while((e|0)<(f|0));i[a>>0]=-102;j[a+34>>1]=-1;k[a+24>>2]=1;e=k[b+(c*72|0)+24>>2]|0;k[a+44>>2]=e;k[a+28>>2]=k[b+(c*72|0)+48>>2];if((j[e+36>>1]|0)==(d|0))j[a+32>>1]=-1;else{j[a+32>>1]=d;g=(d|0)>63;d=nw(1,0,d|0)|0;e=b+(c*72|0)+64|0;c=e;f=k[c+4>>2]|(g?-2147483648:L);k[e>>2]=k[c>>2]|(g?0:d);k[e+4>>2]=f}e=a+4|0;k[e>>2]=k[e>>2]|4}return a|0}function Xv(a,b){a=a|0;b=b|0;if((i[b>>0]|0)==-101){b=b+38|0;i[b>>0]=(l[b>>0]|0)+(k[a+24>>2]|0)}return 0}function Yv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=j[a+40>>1]|0;f=c&65535;e=j[a+42>>1]|0;h=m[b+40>>1]|0;d=j[b+42>>1]|0;a:do if(!((d&65535)>(e&65535)?1:(f-(e&65535)|0)>=(h-(d&65535)|0))){d=j[a+20>>1]|0;e=j[b+20>>1]|0;if(d<<16>>16>=e<<16>>16){if(d<<16>>16>e<<16>>16){c=0;break}if((j[a+22>>1]|0)>(j[b+22>>1]|0)){c=0;break}}if(!(c<<16>>16))c=1;else{g=k[a+48>>2]|0;b=b+48|0;a=f;while(1){a=a+-1|0;e=k[g+(a<<2)>>2]|0;if(e){c=h;while(1){d=c+-1|0;if((c|0)<=0){c=0;break a}if((k[(k[b>>2]|0)+(d<<2)>>2]|0)==(e|0))break;else c=d}if((c|0)<1){c=0;break a}}if((a|0)<=0){c=1;break}}}}else c=0;while(0);return c|0}function Zv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;c=k[a>>2]|0;a:do if(c){h=i[b+16>>0]|0;l=b+17|0;m=b+18|0;n=b+20|0;o=b+22|0;p=b+42|0;q=b+36|0;do{if((i[c+16>>0]|0)==h<<24>>24?(i[c+17>>0]|0)==(i[l>>0]|0):0){if((((k[c+36>>2]&16384|0)!=0?(j[p>>1]|0)==0:0)?(k[q>>2]&513|0)==513:0)?(f=c,g=b,e=k[g>>2]|0,g=k[g+4>>2]|0,(e&k[f>>2]|0)==(e|0)?(g&k[f+4>>2]|0)==(g|0):0):0)break a;r=c;s=k[r>>2]|0;r=k[r+4>>2]|0;e=b;d=k[e>>2]|0;e=k[e+4>>2]|0;f=d&s;g=e&r;if((((f|0)==(s|0)&(g|0)==(r|0)?(j[c+18>>1]|0)<=(j[m>>1]|0):0)?(j[c+20>>1]|0)<=(j[n>>1]|0):0)?(j[c+22>>1]|0)<=(j[o>>1]|0):0){a=0;break a}if(((f|0)==(d|0)&(g|0)==(e|0)?(j[c+20>>1]|0)>=(j[n>>1]|0):0)?(j[c+22>>1]|0)>=(j[o>>1]|0):0)break a}a=c+52|0;c=k[a>>2]|0}while((c|0)!=0)}while(0);return a|0}function _v(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=ur(k[a>>2]|0,0,b+12|0,0)|0;do if(g){f=k[a>>2]|0;e=k[(k[b+4>>2]|0)+20>>2]|0;a:do if(e){d=k[f+20>>2]|0;if((d|0)>0){b=k[f+16>>2]|0;c=0;while(1){a=c+1|0;if((k[b+(c<<4)+12>>2]|0)==(e|0)){a=c;c=7;break a}if((a|0)<(d|0))c=a;else{c=7;break}}}else a=0}else{a=-1e6;c=7}while(0);if((c|0)==7)if(!((a|0)==0|(a|0)>1))break;a=ph(f,k[(k[f+16>>2]|0)+(a<<4)>>2]|0)|0;k[g+(((k[g>>2]|0)+-1|0)*72|0)+12>>2]=a}while(0);return g|0}function $v(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=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=k[12266]|0;h=l>>>a;if(h&3){d=(h&1^1)+a|0;e=d<<1;b=49104+(e<<2)|0;e=49104+(e+2<<2)|0;f=k[e>>2]|0;g=f+8|0;h=k[g>>2]|0;do if((b|0)!=(h|0)){if(h>>>0<(k[12270]|0)>>>0)Tb();c=h+12|0;if((k[c>>2]|0)==(f|0)){k[c>>2]=b;k[e>>2]=h;break}else Tb()}else k[12266]=l&~(1<>2]=w|3;w=f+(w|4)|0;k[w>>2]=k[w>>2]|1;w=g;return w|0}j=k[12268]|0;if(p>>>0>j>>>0){if(h){e=2<>>12&16;e=e>>>a;d=e>>>5&8;e=e>>>d;c=e>>>2&4;e=e>>>c;f=e>>>1&2;e=e>>>f;g=e>>>1&1;g=(d|a|c|f|g)+(e>>>g)|0;e=g<<1;f=49104+(e<<2)|0;e=49104+(e+2<<2)|0;c=k[e>>2]|0;a=c+8|0;d=k[a>>2]|0;do if((f|0)!=(d|0)){if(d>>>0<(k[12270]|0)>>>0)Tb();h=d+12|0;if((k[h>>2]|0)==(c|0)){k[h>>2]=f;k[e>>2]=d;m=k[12268]|0;break}else Tb()}else{k[12266]=l&~(1<>2]=p|3;i=c+p|0;k[c+(p|4)>>2]=b|1;k[c+w>>2]=b;if(m){d=k[12271]|0;f=m>>>3;h=f<<1;e=49104+(h<<2)|0;g=k[12266]|0;f=1<>2]|0;if(h>>>0<(k[12270]|0)>>>0)Tb();else{n=g;o=h}}else{k[12266]=g|f;n=49104+(h+2<<2)|0;o=e}k[n>>2]=d;k[o+12>>2]=d;k[d+8>>2]=o;k[d+12>>2]=e}k[12268]=b;k[12271]=i;w=a;return w|0}a=k[12267]|0;if(a){g=(a&0-a)+-1|0;v=g>>>12&16;g=g>>>v;u=g>>>5&8;g=g>>>u;w=g>>>2&4;g=g>>>w;h=g>>>1&2;g=g>>>h;f=g>>>1&1;f=k[49368+((u|v|w|h|f)+(g>>>f)<<2)>>2]|0;g=(k[f+4>>2]&-8)-p|0;h=f;while(1){c=k[h+16>>2]|0;if(!c){c=k[h+20>>2]|0;if(!c){l=g;j=f;break}}h=(k[c+4>>2]&-8)-p|0;w=h>>>0>>0;g=w?h:g;h=c;f=w?c:f}a=k[12270]|0;if(j>>>0>>0)Tb();b=j+p|0;if(j>>>0>=b>>>0)Tb();i=k[j+24>>2]|0;f=k[j+12>>2]|0;do if((f|0)==(j|0)){g=j+20|0;h=k[g>>2]|0;if(!h){g=j+16|0;h=k[g>>2]|0;if(!h){d=0;break}}while(1){f=h+20|0;e=k[f>>2]|0;if(e){h=e;g=f;continue}f=h+16|0;e=k[f>>2]|0;if(!e)break;else{h=e;g=f}}if(g>>>0>>0)Tb();else{k[g>>2]=0;d=h;break}}else{e=k[j+8>>2]|0;if(e>>>0>>0)Tb();h=e+12|0;if((k[h>>2]|0)!=(j|0))Tb();g=f+8|0;if((k[g>>2]|0)==(j|0)){k[h>>2]=f;k[g>>2]=e;d=f;break}else Tb()}while(0);do if(i){h=k[j+28>>2]|0;g=49368+(h<<2)|0;if((j|0)==(k[g>>2]|0)){k[g>>2]=d;if(!d){k[12267]=k[12267]&~(1<>>0<(k[12270]|0)>>>0)Tb();h=i+16|0;if((k[h>>2]|0)==(j|0))k[h>>2]=d;else k[i+20>>2]=d;if(!d)break}g=k[12270]|0;if(d>>>0>>0)Tb();k[d+24>>2]=i;h=k[j+16>>2]|0;do if(h)if(h>>>0>>0)Tb();else{k[d+16>>2]=h;k[h+24>>2]=d;break}while(0);h=k[j+20>>2]|0;if(h)if(h>>>0<(k[12270]|0)>>>0)Tb();else{k[d+20>>2]=h;k[h+24>>2]=d;break}}while(0);if(l>>>0<16){w=l+p|0;k[j+4>>2]=w|3;w=j+(w+4)|0;k[w>>2]=k[w>>2]|1}else{k[j+4>>2]=p|3;k[j+(p|4)>>2]=l|1;k[j+(l+p)>>2]=l;c=k[12268]|0;if(c){d=k[12271]|0;f=c>>>3;h=f<<1;e=49104+(h<<2)|0;g=k[12266]|0;f=1<>2]|0;if(g>>>0<(k[12270]|0)>>>0)Tb();else{q=h;r=g}}else{k[12266]=g|f;q=49104+(h+2<<2)|0;r=e}k[q>>2]=d;k[r+12>>2]=d;k[d+8>>2]=r;k[d+12>>2]=e}k[12268]=l;k[12271]=b}w=j+8|0;return w|0}else r=p}else r=p}else if(a>>>0<=4294967231){a=a+11|0;r=a&-8;j=k[12267]|0;if(j){g=0-r|0;a=a>>>8;if(a)if(r>>>0>16777215)c=31;else{p=(a+1048320|0)>>>16&8;q=a<>>16&4;q=q<>>16&2;c=14-(o|p|c)+(q<>>15)|0;c=r>>>(c+7|0)&1|c<<1}else c=0;e=k[49368+(c<<2)>>2]|0;a:do if(!e){a=0;h=0}else{if((c|0)==31)h=0;else h=25-(c>>>1)|0;l=g;a=0;b=r<>2]&-8;g=d-r|0;if(g>>>0>>0)if((d|0)==(r|0)){a=e;h=e;break a}else h=e;else g=l;q=k[e+20>>2]|0;e=k[e+(b>>>31<<2)+16>>2]|0;a=(q|0)==0|(q|0)==(e|0)?a:q;if(!e)break;else{l=g;b=b<<1}}}while(0);if((a|0)==0&(h|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=k[49368+((m|n|o|p|a)+(q>>>a)<<2)>>2]|0}if(!a){o=g;p=h}else while(1){q=(k[a+4>>2]&-8)-r|0;e=q>>>0>>0;g=e?q:g;h=e?a:h;e=k[a+16>>2]|0;if(e){a=e;continue}a=k[a+20>>2]|0;if(!a){o=g;p=h;break}}if((p|0)!=0?o>>>0<((k[12268]|0)-r|0)>>>0:0){a=k[12270]|0;if(p>>>0>>0)Tb();m=p+r|0;if(p>>>0>=m>>>0)Tb();i=k[p+24>>2]|0;f=k[p+12>>2]|0;do if((f|0)==(p|0)){g=p+20|0;h=k[g>>2]|0;if(!h){g=p+16|0;h=k[g>>2]|0;if(!h){t=0;break}}while(1){f=h+20|0;e=k[f>>2]|0;if(e){h=e;g=f;continue}f=h+16|0;e=k[f>>2]|0;if(!e)break;else{h=e;g=f}}if(g>>>0>>0)Tb();else{k[g>>2]=0;t=h;break}}else{e=k[p+8>>2]|0;if(e>>>0>>0)Tb();h=e+12|0;if((k[h>>2]|0)!=(p|0))Tb();g=f+8|0;if((k[g>>2]|0)==(p|0)){k[h>>2]=f;k[g>>2]=e;t=f;break}else Tb()}while(0);do if(i){h=k[p+28>>2]|0;g=49368+(h<<2)|0;if((p|0)==(k[g>>2]|0)){k[g>>2]=t;if(!t){k[12267]=k[12267]&~(1<>>0<(k[12270]|0)>>>0)Tb();h=i+16|0;if((k[h>>2]|0)==(p|0))k[h>>2]=t;else k[i+20>>2]=t;if(!t)break}g=k[12270]|0;if(t>>>0>>0)Tb();k[t+24>>2]=i;h=k[p+16>>2]|0;do if(h)if(h>>>0>>0)Tb();else{k[t+16>>2]=h;k[h+24>>2]=t;break}while(0);h=k[p+20>>2]|0;if(h)if(h>>>0<(k[12270]|0)>>>0)Tb();else{k[t+20>>2]=h;k[h+24>>2]=t;break}}while(0);b:do if(o>>>0>=16){k[p+4>>2]=r|3;k[p+(r|4)>>2]=o|1;k[p+(o+r)>>2]=o;h=o>>>3;if(o>>>0<256){g=h<<1;e=49104+(g<<2)|0;f=k[12266]|0;h=1<>2]|0;if(g>>>0>=(k[12270]|0)>>>0){u=h;v=g;break}Tb()}while(0);k[u>>2]=m;k[v+12>>2]=m;k[p+(r+8)>>2]=v;k[p+(r+12)>>2]=e;break}c=o>>>8;if(c)if(o>>>0>16777215)e=31;else{v=(c+1048320|0)>>>16&8;w=c<>>16&4;w=w<>>16&2;e=14-(u|v|e)+(w<>>15)|0;e=o>>>(e+7|0)&1|e<<1}else e=0;h=49368+(e<<2)|0;k[p+(r+28)>>2]=e;k[p+(r+20)>>2]=0;k[p+(r+16)>>2]=0;g=k[12267]|0;f=1<>2]=m;k[p+(r+24)>>2]=h;k[p+(r+12)>>2]=m;k[p+(r+8)>>2]=m;break}c=k[h>>2]|0;if((e|0)==31)b=0;else b=25-(e>>>1)|0;c:do if((k[c+4>>2]&-8|0)!=(o|0)){g=o<>>31<<2)+16|0;h=k[b>>2]|0;if(!h)break;if((k[h+4>>2]&-8|0)==(o|0)){B=h;break c}else{g=g<<1;c=h}}if(b>>>0<(k[12270]|0)>>>0)Tb();else{k[b>>2]=m;k[p+(r+24)>>2]=c;k[p+(r+12)>>2]=m;k[p+(r+8)>>2]=m;break b}}else B=c;while(0);c=B+8|0;b=k[c>>2]|0;w=k[12270]|0;if(B>>>0>=w>>>0&b>>>0>=w>>>0){k[b+12>>2]=m;k[c>>2]=m;k[p+(r+8)>>2]=b;k[p+(r+12)>>2]=B;k[p+(r+24)>>2]=0;break}else Tb()}else{w=o+r|0;k[p+4>>2]=w|3;w=p+(w+4)|0;k[w>>2]=k[w>>2]|1}while(0);w=p+8|0;return w|0}}}else r=-1;while(0);a=k[12268]|0;if(a>>>0>=r>>>0){b=a-r|0;c=k[12271]|0;if(b>>>0>15){k[12271]=c+r;k[12268]=b;k[c+(r+4)>>2]=b|1;k[c+a>>2]=b;k[c+4>>2]=r|3}else{k[12268]=0;k[12271]=0;k[c+4>>2]=a|3;w=c+(a+4)|0;k[w>>2]=k[w>>2]|1}w=c+8|0;return w|0}a=k[12269]|0;if(a>>>0>r>>>0){v=a-r|0;k[12269]=v;w=k[12272]|0;k[12272]=w+r;k[w+(r+4)>>2]=v|1;k[w+4>>2]=r|3;w=w+8|0;return w|0}do if(!(k[12384]|0)){a=Bb(30)|0;if(!(a+-1&a)){k[12386]=a;k[12385]=a;k[12387]=-1;k[12388]=-1;k[12389]=0;k[12377]=0;v=(Ub(0)|0)&-16^1431655768;k[12384]=v;break}else Tb()}while(0);l=r+48|0;b=k[12386]|0;j=r+47|0;c=b+j|0;b=0-b|0;m=c&b;if(m>>>0<=r>>>0){w=0;return w|0}a=k[12376]|0;if((a|0)!=0?(u=k[12374]|0,v=u+m|0,v>>>0<=u>>>0|v>>>0>a>>>0):0){w=0;return w|0}d:do if(!(k[12377]&4)){a=k[12272]|0;e:do if(a){e=49512|0;while(1){h=k[e>>2]|0;if(h>>>0<=a>>>0?(s=e+4|0,(h+(k[s>>2]|0)|0)>>>0>a>>>0):0){d=e;g=s;a=e;break}e=k[e+8>>2]|0;if(!e){G=181;break e}}if(a){a=c-(k[12269]|0)&b;if(a>>>0<2147483647){h=xb(a|0)|0;if((h|0)==((k[d>>2]|0)+(k[g>>2]|0)|0))G=190;else G=191}else a=0}else G=181}else G=181;while(0);do if((G|0)==181){h=xb(0)|0;if((h|0)!=(-1|0)){a=h;g=k[12385]|0;e=g+-1|0;if(!(e&a))a=m;else a=m-a+(e+a&0-g)|0;g=k[12374]|0;e=g+a|0;if(a>>>0>r>>>0&a>>>0<2147483647){v=k[12376]|0;if((v|0)!=0?e>>>0<=g>>>0|e>>>0>v>>>0:0){a=0;break}g=xb(a|0)|0;if((g|0)==(h|0))G=190;else{h=g;G=191}}else a=0}else a=0}while(0);f:do if((G|0)==190){if((h|0)!=(-1|0)){x=h;G=201;break d}}else if((G|0)==191){g=0-a|0;do if((h|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(w=k[12386]|0,w=j-a+w&0-w,w>>>0<2147483647):0)if((xb(w|0)|0)==(-1|0)){xb(g|0)|0;a=0;break f}else{a=w+a|0;break}while(0);if((h|0)==(-1|0))a=0;else{x=h;G=201;break d}}while(0);k[12377]=k[12377]|4;G=198}else{a=0;G=198}while(0);if((((G|0)==198?m>>>0<2147483647:0)?(x=xb(m|0)|0,y=xb(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){h=(k[12374]|0)+a|0;k[12374]=h;if(h>>>0>(k[12375]|0)>>>0)k[12375]=h;l=k[12272]|0;g:do if(l){d=49512|0;do{h=k[d>>2]|0;g=d+4|0;e=k[g>>2]|0;if((x|0)==(h+e|0)){C=h;D=g;E=e;F=d;G=213;break}d=k[d+8>>2]|0}while((d|0)!=0);if(((G|0)==213?(k[F+12>>2]&8|0)==0:0)?l>>>0>=C>>>0&l>>>0>>0:0){k[D>>2]=E+a;b=(k[12269]|0)+a|0;c=l+8|0;if(!(c&7))c=0;else c=0-c&7;w=b-c|0;k[12272]=l+c;k[12269]=w;k[l+(c+4)>>2]=w|1;k[l+(b+4)>>2]=40;k[12273]=k[12388];break}h=k[12270]|0;if(x>>>0>>0){k[12270]=x;j=x}else j=h;h=x+a|0;g=49512|0;do{if((k[g>>2]|0)==(h|0)){H=g;I=g;G=223;break}g=k[g+8>>2]|0}while((g|0)!=0);if((G|0)==223?(k[I+12>>2]&8|0)==0:0){k[H>>2]=x;h=I+4|0;k[h>>2]=(k[h>>2]|0)+a;h=x+8|0;if(!(h&7))p=0;else p=0-h&7;h=x+(a+8)|0;if(!(h&7))c=0;else c=0-h&7;h=x+(c+a)|0;o=p+r|0;n=x+o|0;m=h-(x+p)-r|0;k[x+(p+4)>>2]=r|3;h:do if((h|0)!=(l|0)){if((h|0)==(k[12271]|0)){w=(k[12268]|0)+m|0;k[12268]=w;k[12271]=n;k[x+(o+4)>>2]=w|1;k[x+(w+o)>>2]=w;break}l=a+4|0;i=k[x+(l+c)>>2]|0;if((i&3|0)==1){b=i&-8;e=i>>>3;i:do if(i>>>0>=256){d=k[x+((c|24)+a)>>2]|0;f=k[x+(a+12+c)>>2]|0;do if((f|0)==(h|0)){f=c|16;g=x+(l+f)|0;i=k[g>>2]|0;if(!i){g=x+(f+a)|0;i=k[g>>2]|0;if(!i){N=0;break}}while(1){f=i+20|0;e=k[f>>2]|0;if(e){i=e;g=f;continue}f=i+16|0;e=k[f>>2]|0;if(!e)break;else{i=e;g=f}}if(g>>>0>>0)Tb();else{k[g>>2]=0;N=i;break}}else{e=k[x+((c|8)+a)>>2]|0;if(e>>>0