Lines Matching refs:Nr
6 function cs(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,q=0,t=0,u=0,v=0,w=0,x=0;x=r;r=r+16|0;if((r|0)>=(s|0))ka();u=x;v=x+8|0;k[v>>2]=0;a:do if(!b){k[e>>2]=0;f=0}else{g=i[b>>0]|0;if(g<<24>>24==-98)do{b=k[b+12>>2]|0;g=i[b>>0]|0}while(g<<24>>24==-98);if(g<<24>>24==-97)n=l[b+38>>0]|0;else n=g&255;if((n|0)==157){b=k[b+12>>2]|0;n=i[b>>0]|0;if((n&-2)<<24>>24==-124){h=-1;g=-1;t=n&255;n=26016;w=12}else w=30}else if((n|0)==38){h=ar(k[b+8>>2]|0,0)|0;f=cs(a,k[b+12>>2]|0,c,h,e)|0;g=k[e>>2]|0;if(!g)break;lm(g,h,1);km(k[e>>2]|0,d,1);break}else{h=1;g=0;t=n;n=10360;w=12}b:do if((w|0)==12){c:do switch(t|0){case 97:case 132:case 133:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;do if(!(k[b+4>>2]&1024)){h=k[b+8>>2]|0;k[u>>2]=n;k[u+4>>2]=h;h=zh(a,19456,u)|0;if(!h)break c;if(f)ah(f,h,-1,1,75)|0}else{n=k[b+8>>2]|0;n=xw(n|0,((n|0)<0)<<31>>31|0,h|0,g|0)|0;h=L;b=f+8|0;if(!(j[b>>1]&9312)){v=f;k[v>>2]=n;k[v+4>>2]=h;j[b>>1]=4;break}else{ch(f,n,h);break}}while(0);if((t&-2|0)==132&d<<24>>24==65)km(f,67,1);else km(f,d,1);g=f+8|0;b=m[g>>1]|0;if(b&12)j[g>>1]=b&65533;if(c<<24>>24==1){g=f;f=0;break b}g=f;f=bm(f,c&255)|0;break b}case 101:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}else{o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;g=f;f=0;break b}}case 157:{b=k[b+12>>2]|0;w=30;break b}case 134:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;g=(k[b+8>>2]|0)+2|0;b=g;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;v=(b-g&1073741823)+-1|0;ah(f,bu(a,g,v)|0,(v|0)/2|0,0,75)|0;g=f;f=0;break b}default:{g=0;f=0;break b}}while(0);i[a+65>>0]=1;rg(a,0);Rh(f);f=7;break a}while(0);if((w|0)==30){u=(cs(a,b,c,d,v)|0)==0;g=k[v>>2]|0;if(u&(g|0)!=0){tp(g);h=g+8|0;b=j[h>>1]|0;do if(!(b&8)){n=g;f=k[n>>2]|0;n=k[n+4>>2]|0;if((f|0)==0&(n|0)==-2147483648){p[g>>3]=9223372036854775808.0;j[h>>1]=b&48640|8;break}else{u=iw(0,0,f|0,n|0)|0;v=g;k[v>>2]=u;k[v+4>>2]=L;break}}else p[g>>3]=-+p[g>>3];while(0);km(g,d,c);f=0}else f=0}k[e>>2]=g}while(0);r=x;return f|0}function ds(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;do if((b|0)!=0?(e=a+19|0,f=i[e>>0]|0,(f&255)<8):0){d=0;c=a+116|0;while(1){if((k[c+12>>2]|0)==(b|0)){d=5;break}d=d+1|0;if((d|0)>=10){d=7;break}else c=c+20|0}if((d|0)==5){i[c+6>>0]=1;break}else if((d|0)==7){i[e>>0]=f+1<<24>>24;k[a+((f&255)<<2)+24>>2]=b;break}}while(0);return}function es(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;m=r;r=r+32|0;if((r|0)>=(s|0))ka();l=m;c=a+484|0;h=k[c>>2]|0;j=k[a>>2]|0;do if((h|0)!=0?(gs(a),k[a+512>>2]=0,(k[h+52>>2]|0)>=1):0){if(i[j+145>>0]|0)if(!(Nk((k[h+68>>2]|0)+8|0,k[h>>2]|0,h)|0)){k[c>>2]=0;break}else{i[j+65>>0]=1;break}if(b)k[a+500>>2]=(k[b>>2]|0)-(k[a+496>>2]|0)+(k[b+4>>2]|0);k[l>>2]=a+496;g=zh(j,25256,l)|0;b=k[h+68>>2]|0;a:do if(b){d=k[j+20>>2]|0;if((d|0)>0){e=k[j+16>>2]|0;f=0;while(1){c=f+1|0;if((k[e+(f<<4)+12>>2]|0)==(b|0)){c=f;break a}if((c|0)<(d|0))f=c;else break}}else c=0}else c=-1e6;while(0);e=k[h>>2]|0;f=k[a+384>>2]|0;k[l>>2]=k[(k[j+16>>2]|0)+(c<<4)>>2];k[l+4>>2]=(c|0)==1?13184:13208;k[l+8>>2]=e;k[l+12>>2]=e;k[l+16>>2]=g;k[l+20>>2]=f;Gr(a,25280,l);rg(j,g);g=Tq(a)|0;Ir(a,c);Bh(g,144,0,0,0)|0;k[l>>2]=k[h>>2];Nrnr(a,d,c)|0;k[h>>2]=e;if(b)break a;b=d+24|0;k[b>>2]=f;k[b+4>>2]=g;b=k[d+56>>2]|0;if(!b){b=0;break a}d=b;e=k[b+52>>2]|0}}while(0);return b|0}function Os(a,b){a=a|0;b=b|0;var c=0,d=0;d=r;r=r+16|0;if((r|0)>=(s|0))ka();c=d;if(!(j[b+6>>1]&128)){b=l[b+4>>0]|0;if((b|0)==116)b=35320;else if((b|0)==118)b=35336;else if((b|0)==117)b=35352;else b=35360;k[c>>2]=b;yh(a,35232,c)}else yh(a,35184,c);r=d;return}function Ps(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,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;E=r;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k[g+112>>2]|0,(p|0)!=0):0)k[p+(e<<2)>>2]=k[q+32>>2];f=q+32|0;k[g+88>>2]=(k[f>>2]|0)+-1;k[t>>2]=0;nr(a,b,v)|0;k[t>>2]=u;Bh(q,16,0,h,0)|0;d=k[d>>2]|0;e=~w;if((w|0)<0?(D=k[d+112>>2]|0,(D|0)!=0):0)k[D+(e<<2)>>2]=k[f>>2];k[d+88>>2]=(k[f>>2]|0)+-1}Sk(k[a>>2]|0,k[B>>2]|0);k[B>>2]=C;k[x>>2]=y;k[z>>2]=A}r=E;return}function Qs(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;X=r;r=r+48|0;if((r|0)>=(s|0))ka();p=X+40|0;I=X+20|0;J=X;T=k[a>>2]|0;Q=k[a+8>>2]|0;S=Cs(Q)|0;P=Cs(Q)|0;U=b+4|0;K=i[U>>0]|0;V=b+52|0;W=k[V>>2]|0;t=b+48|0;f=k[t>>2]|0;e=k[f>>2]|0;N=K<<24>>24==116;a:do if(!N?(n=T+65|0,(i[n>>0]|0)==0):0){g=p+4|0;o=1;while(1){if((o|0)>(k[k[b>>2]>>2]|0)){M=e;q=14;break a}b:do if((e|0)>0){d=0;h=k[f+4>>2]|0;while(1){if((m[h+16>>1]|0)==(o|0))break b;d=d+1|0;if((d|0)<(e|0))h=h+20|0;else break}}else d=0;while(0);if((d|0)==(e|0)){k[p>>2]=0;k[g>>2]=0;d=sr(T,132,p,0)|0;if(!d){d=7;break a}F=d+4|0;k[F>>2]=k[F>>2]|1024;k[d+8>>2]=o;f=qr(a,f,d)|0;if(!f)f=0;else{j[(k[f+4>>2]|0)+(e*20|0)+16>>1]=o;e=e+1|0}}if(!(i[n>>0]|0))o=o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0;nr(a,W,I)|0;Bh(Q,21,x,0,0)|0;o=k[D>>2]|0;if(o>>>0>p>>>0)k[(k[Q+4>>2]|0)+(p*20|0)+8>>2]=o;z=Q+24|0;k[(k[z>>2]|0)+88>>2]=o+-1;v=Bh(Q,20,y,0,o+1|0)|0;d=k[g>>2]|0;f=b+12|0;t=k[f>>2]|0;k[g>>2]=q;k[f>>2]=0;C=k[n>>2]|0;nrnr
7 function Yt(a,b){a=a|0;b=b|0;var c=0;if(b&1)if(!(k[a+12>>2]|0))b=(k[a+20>>2]|0)==0?12:28;else b=28;else b=48;if((k[a+4>>2]&1024|0)==0?(c=k[a+8>>2]|0,(c|0)!=0):0){a=c;while(1)if(!(i[a>>0]|0))break;else a=a+1|0;b=(b|1)+(a-c&1073741823)|0}return b+7&-8|0}function Zt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=k[a>>2]|0;g=d+20|0;c=k[g>>2]|0;if((c|0)>0){f=0;e=k[d+16>>2]|0;while(1){d=k[(k[e+12>>2]|0)+16>>2]|0;if(d){c=d;do{_t(a,k[c+8>>2]|0,b);c=k[c>>2]|0}while((c|0)!=0);c=k[g>>2]|0}f=f+1|0;if((f|0)>=(c|0))break;else e=e+16|0}}return}function _t(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,m=0,n=0;d=k[b+8>>2]|0;if(d){m=(c|0)==0;i=b+68|0;l=a+408|0;do{a:do if(!m){g=d+32|0;b=j[d+48>>1]|0;if(b<<16>>16){f=k[d+4>>2]|0;b=b&65535;e=0;do{if((j[f+(e<<1)>>1]|0)>-1?(id(k[(k[g>>2]|0)+(e<<2)>>2]|0,c)|0)==0:0){n=9;break a}e=e+1|0}while((e|0)<(b|0))}}else n=9;while(0);if((n|0)==9){n=0;b=k[a>>2]|0;e=k[i>>2]|0;b:do if(e){h=k[b+20>>2]|0;if((h|0)>0){f=k[b+16>>2]|0;g=0;while(1){b=g+1|0;if((k[f+(g<<4)+12>>2]|0)==(e|0)){b=g;break b}if((b|0)<(h|0))g=b;else break}}else b=0}else b=-1e6;while(0);h=k[l>>2]|0;Fr(a,b);h=((h|0)==0?a:h)+328|0;k[h>>2]=k[h>>2]|1<<b;As(a,d,-1)}d=k[d+20>>2]|0}while((d|0)!=0)}return}function $t(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=k[(k[(k[a>>2]|0)+16>>2]|0)+(b<<4)+12>>2]|0;f=k[a+408>>2]|0;Fr(a,b);f=((f|0)==0?a:f)+328|0;k[f>>2]=k[f>>2]|1<<b;f=a+68|0;d=k[f>>2]|0;k[f>>2]=d+3;mv(a,b,d,0,0);e=(k[a+72>>2]|0)+1|0;f=k[f>>2]|0;c=k[c+16>>2]|0;if(c)do{nv(a,k[c+8>>2]|0,0,d,e,f);c=k[c>>2]|0}while((c|0)!=0);ov(a,b);return}function au(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;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;d=0;while(1){f=d+1|0;if((k[e+(d<<4)+12>>2]|0)==(g|0)){f=d;break a}if((f|0)<(h|0))d=f;else break}}else f=0}else f=-1e6;while(0);d=k[a+408>>2]|0;Fr(a,f);d=((d|0)==0?a:d)+328|0;k[d>>2]=k[d>>2]|1<<f;d=a+68|0;e=k[d>>2]|0;k[d>>2]=e+3;if(!c)mv(a,f,e,k[b>>2]|0,28544);else mv(a,f,e,k[c>>2]|0,28536);nv(a,b,c,e,(k[a+72>>2]|0)+1|0,k[d>>2]|0);ov(a,f);return}function bu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=((c|0)/2|0)+1|0;e=rh(a,e,((e|0)<0)<<31>>31)|0;a=c+-1|0;if(e){if((a|0)>0){d=0;do{f=i[b+d>>0]|0;g=i[b+(d|1)>>0]|0;i[e+((d|0)/2|0)>>0]=(0-(g>>>6&1)&9)+g&15|(0-(f>>>6&1)&9)+f<<4;d=d+2|0}while((d|0)<(a|0));a=(c&-2|0)/2|0}else a=0;i[e+a>>0]=0}return e|0}function cu(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;j=r;r=r+16|0;if((r|0)>=(s|0))ka();f=j+8|0;h=j;g=k[a+8>>2]|0;e=b+8|0;do if(!(k[b+4>>2]&1024)){e=k[e>>2]|0;b=oi(e,h)|0;if((b|0)!=0?!((b|0)==2&(c|0)!=0):0)if(!(Kc(e,29144,2)|0)){k[f>>2]=e;yh(a,29152,f);break}else{du(g,e,c,d);break}if(c){if((b|0)==2){b=0;e=-2147483648}else{b=h;b=iw(0,0,k[b>>2]|0,k[b+4>>2]|0)|0;e=L}c=h;k[c>>2]=b;k[c+4>>2]=e}b=rh(k[g>>2]|0,8,0)|0;if(b){c=h;f=k[c>>2]|0;c=k[c+4>>2]|0;e=b;a=e;i[a>>0]=f;i[a+1>>0]=f>>8;i[a+2>>0]=f>>16;i[a+3>>0]=f>>24;e=e+4|0;i[e>>0]=c;i[e+1>>0]=c>>8;i[e+2>>0]=c>>16;i[e+3>>0]=c>>24}Ch(g,Bh(g,26,0,d,0)|0,b,-13)}else{b=k[e>>2]|0;Bh(g,25,(c|0)==0?b:0-b|0,d,0)|0}while(0);r=j;return}function du(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;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;if(b){e=b;while(1)if(!(i[e>>0]|0))break;else e=e+1|0;Yl(b,f,e-b&1073741823,1)|0;if(c)p[f>>3]=-+p[f>>3];e=rh(k[a>>2]|0,8,0)|0;if(e){b=f;h=k[b>>2]|0;b=k[b+4>>2]|0;c=e;f=c;i[f>>0]=h;i[f+1>>0]=h>>8;i[f+2>>0]=h>>16;i[f+3>>0]=h>>24;c=c+4|0;i[c>>0]=b;i[c+1>>0]=b>>8;i[c+2>>0]=b>>16;i[c+3>>0]=b>>24}Ch(a,Bh(a,133,0,d,0)|0,e,-12)}r=g;return}function eu(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+32|0;if((r|0)>=(s|0))ka();e=j;a:do if(!b)g=0;else while(1){d=k[b+4>>2]|0;if(!(d&4096)){g=b;break a}if(!(d&262144))b=b+12|0;else b=k[(k[b+20>>2]|0)+4>>2]|0;b=k[b>>2]|0;if(!b){g=0;break}}while(0);b:do if(((i[a+23>>0]|0)!=0?(i[g>>0]|0)!=-97:0)?(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,d=e+20|0,i[d>>0]=2,k[e>>2]=78,k[e+4>>2]=79,k[e+24>>2]=0,ws(e,g)|0,(i[d>>0]|0)!=0):0){d=k[a+316>>2]|0;k[c>>2]=0;c:do if((d|0)!=0?(f=k[d>>2]|0,(f|0)>0):0){b=f;d=k[d+4>>2]|0;while(1){if((i[d+13>>0]&4)!=0?(Hu(k[d>>2]|0,g,-1)|0)==0:0)break;b=b+-1|0;if((b|0)<=0)break c;else d=d+20|0}d=k[d+16>>2]|0;break b}while(0);b=a+72|0;d=(k[b>>2]|0)+1|0;k[b>>2]=d;Lt(a,g,d,1)}else h=18;while(0);do if((h|0)==18){b=a+19|0;d=i[b>>0]|0;if(!(d<<24>>24)){b=a+72|0;d=(k[b>>2]|0)+1|0;k[b>>2]=d}else{d=d+-1<<24>>24;i[b>>0]=d;d=k[a+((d&255)<<2)+24>>2]|0}b=ns(a,g,d)|0;if((b|0)==(d|0)){k[c>>2]=d;break}else{ds(a,d);k[c>>2]=0;d=b;break}}while(0);r=j;return d|0}function fu(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 j=0,l=0;l=Tu(a,b,c)|0;j=Gu(b,pv(c)|0)|0;c=a+8|0;b=k[c>>2]|0;Ch(b,Bh(b,d,f,g,e)|0,l,-4);c=k[c>>2]|0;b=k[c+4>>2]|0;if(b)i[b+(((k[c+32>>2]|0)+-1|0)*20|0)+3>>0]=j&255|h;return}function gu(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;b=a+100|0;k[b>>2]=(k[b>>2]|0)+-1;e=a+19|0;h=0;j=a+116|0;while(1){f=j+12|0;g=k[f>>2]|0;if((g|0)!=0?(k[j+8>>2]|0)>(k[b>>2]|0):0){c=j+6|0;if(i[c>>0]|0){d=i[e>>0]|0;if((d&255)<8){i[e>>0]=d+1<<24>>24;k[a+((d&255)<<2)+24>>2]=g}i[c>>0]=0}k[f>>2]=0}h=h+1|0;if((h|0)==10)break;else j=j+20|0}return}function hu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=k[a>>2]|0;a:do if(b){b:while(1){d=k[b+4>>2]|0;if(d&512){b=0;h=21;break a}switch(i[b>>0]|0){case 62:case -102:case -100:{h=8;break}case 38:case -98:{b=k[b+12>>2]|0;break}case 95:{h=7;break b}case -97:{if((i[b+38>>0]|0)==95){h=7;break b}else h=8;break}default:h=11}if((h|0)==8){c=k[b+44>>2]|0;if(!c)h=11;else{h=9;break}}c:do if((h|0)==11){h=0;if(!(d&256)){b=0;h=21;break a}c=k[b+12>>2]|0;if((c|0)!=0?(k[c+4>>2]&256|0)!=0:0){b=c;continue b}e=k[b+16>>2]|0;c=k[b+20>>2]|0;if((c|0)!=0&(d&2048|0)==0?(f=k[c>>2]|0,(f|0)>0):0){c=k[c+4>>2]|0;d=0;while(1){b=k[c+(d*20|0)>>2]|0;d=d+1|0;if(k[b+4>>2]&256)break c;if((d|0)>=(f|0)){b=e;break}}}else b=e}while(0);if(!b){b=0;h=21;break a}}if((h|0)==7)b=Bs(a,i[g+62>>0]|0,0,k[b+8>>2]|0)|0;else if((h|0)==9){b=j[b+32>>1]|0;if(b<<16>>16<=-1){b=0;h=21;break}b=bo(g,i[g+62>>0]|0,k[(k[c+4>>2]|0)+((b<<16>>16)*24|0)+16>>2]|0,0)|0}if(b)if(!(Bs(a,i[(k[a>>2]|0)+62>>0]|0,b,k[b>>2]|0)|0))b=0;else h=21;else{b=0;h=21}}else{b=0;h=21}while(0);return b|0}function iu(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;p=r;r=r+16|0;if((r|0)>=(s|0))ka();o=p+4|0;n=p;k[o>>2]=0;k[n>>2]=0;if((((d|0)!=0?(i[d>>0]|0)==-102:0)?(g=k[d+44>>2]|0,(g|0)!=0):0)?(i[g+44>>0]&16)!=0:0){d=g+60|0;while(1){d=k[d>>2]|0;if((k[d>>2]|0)==(a|0))break;else d=d+24|0}f=k[d+8>>2]|0;e=(k[f>>2]|0)+72|0;if((k[e>>2]|0)!=0?(l=b+24|0,h=ph(a,k[l>>2]|0)|0,(h|0)!=0):0){g=i[h>>0]|0;if(g<<24>>24){d=h;do{i[d>>0]=i[9328+(g&255)>>0]|0;d=d+1|0;g=i[d>>0]|0}while(g<<24>>24!=0)}c=yc[k[e>>2]&31](f,c,h,o,n)|0;rg(a,h);if(c){d=k[l>>2]|0;if(!d){d=37;f=0}else{f=d;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;d=(f-d&1073741823)+37|0;f=0}e=rh(a,d,f)|0;if(e){kw(e|0,0,d|0)|0;g=e+0|0;f=b+0|0;d=g+36|0;do{k[g>>2]=k[f>>2];g=g+4|0;f=f+4|0}while((g|0)<(d|0));g=e+36|0;k[e+24>>2]=g;d=k[l>>2]|0;if(!d)f=1;else{f=d;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;f=(f-d&1073741823)+1|0}pw(g|0,d|0,f|0)|0;k[e+12>>2]=k[o>>2];k[e+4>>2]=k[n>>2];n=e+2|0;j[n>>1]=m[n>>1]|16}else e=b}else e=b}else e=b}else e=b;r=p;return e|0}function ju(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,w=0,x=0,y=0,z=0;z=r;r=r+80|0;if((r|0)>=(s|0))ka();x=z;v=z+72|0;m=z+52|0;w=z+48|0;l=z+28|0;y=Tq(a)|0;a:do if(!y)e=0;else{e=a+100|0;k[e>>2]=(k[e>>2]|0)+1;e=b+4|0;if(!(k[e>>2]&32)){o=Tq(a)|0;j=a+80|0;f=k[j>>2]|0;k[j>>2]=f+1;f=Bh(o,44,f,0,0)|0}else f=-1;if((i[a+450>>0]|0)==2){h=k[a>>2]|0;j=(i[b>>0]|0)==75?29104:29112;o=k[a+468>>2]|0;k[x>>2]=(f|0)>-1?10360:29088;k[x+4>>2]=j;k[x+8>>2]=o;h=zh(h,29056,x)|0;Ch(y,Bh(y,157,k[a+464>>2]|0,0,0)|0,h,-1);h=b}else h=b;j=i[h>>0]|0;b:do if(j<<24>>24==75){l=b+12|0;g=pv(k[l>>2]|0)|0;i[v>>0]=g;q=a+68|0;t=k[q>>2]|0;k[q>>2]=t+1;q=b+28|0;k[q>>2]=t;p=(d|0)!=0;t=Bh(y,57,t,p&1^1,0)|0;if(p)u=0;else u=Ws(k[a>>2]|0,1,1)|0;j=b+20|0;do if(!(k[e>>2]&2048)){j=k[j>>2]|0;if(j){if(!(g<<24>>24))i[v>>0]=65;if(u){o=hu(a,k[l>>2]|0)|0;k[u+20>>2]=o}d=a+19|0;g=i[d>>0]|0;if(g<<24>>24){o=g+-1<<24>>24;i[d>>0]=o;h=k[a+((o&255)<<2)+24>>2]|0;if(!(o<<24>>24))n=24;else{o=g+-2<<24>>24;i[d>>0]=o;o=k[a+((o&255)<<2)+24>>2]|0}}else{n=a+72|0;h=(k[n>>2]|0)+1|0;k[n>>2]=h;n=24}if((n|0)==24){n=a+72|0;o=(k[n>>2]|0)+1|0;k[n>>2]=o}if(p)Bh(y,28,0,o,0)|0;l=k[j>>2]|0;if((l|0)>0){g=x+20|0;e=x+4|0;n=x+24|0;m=y+32|0;d=k[j+4>>2]|0;while(1){j=k[d>>2]|0;do if((f|0)>-1){k[x+0>>2]=0;k[x+4>>2]=0;k[x+8>>2]=0;k[x+12>>2]=0;k[x+16>>2]=0;k[x+20>>2]=0;i[g>>0]=1;k[x>>2]=78;k[e>>2]=79;k[n>>2]=0;ws(x,j)|0;if(i[g>>0]|0)break;Eh(y,f);f=-1}while(0);do if(p)if(!(Rs(j,w)|0)){j=ns(a,j,h)|0;Bh(y,38,j,(k[m>>2]|0)+2|0,0)|0;Bh(y,75,k[q>>2]|0,o,j)|0;break}else{Bh(y,84,k[q>>2]|0,o,k[w>>2]|0)|0;break}else{j=ns(a,j,h)|0;Ch(y,Bh(y,49,j,1,o)|0,v,1);it(a,j,1);Bh(y,110,k[q>>2]|0,o,0)|0}while(0);l=l+-1|0;if((l|0)<=0)break;else d=d+20|0}}ds(a,h);ds(a,o)}if(!u){g=f;e=0;break b}}else{h=k[j>>2]|0;o=k[q>>2]|0;i[m>>0]=11;k[m+4>>2]=o;k[m+8>>2]=0;k[m+12>>2]=0;i[m+1>>0]=g;k[h+8>>2]=0;if(!(nr(a,h,m)|0)){o=Tu(a,k[l>>2]|0,k[k[(k[h>>2]|0)+4>>2]>>2]|0)|0;k[u+20>>2]=o;break}if(!u){e=0;break a}o=(k[u>>2]|0)+-1|0;k[u>>2]=o;if(o){e=0;break a}$c(u);e=0;break a}while(0);Ch(y,t,u,-6);g=f;e=0}else{g=k[b+20>>2]|0;h=a+72|0;e=(k[h>>2]|0)+1|0;k[h>>2]=e;i[l>>0]=0;h=l+4|0;k[h>>2]=e;i[l+1>>0]=0;d=l+8|0;k[d>>2]=0;k[l+12>>2]=0;if(j<<24>>24==119){i[l>>0]=10;k[d>>2]=e;Bh(y,28,0,e,0)|0}else{i[l>>0]=3;Bh(y,25,0,e,0)|0}o=g+60|0;Lk(k[a>>2]|0,k[o>>2]|0);n=cr(a,132,0,0,20624)|0;k[o>>2]=n;k[g+8>>2]=0;if(nr
11 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<<n;Y=Y+20|0;i[Y>>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<<x;Bh(q,25,o,d,0)|0;f=Bh(q,83,d,0,h)|0;e=q+4|0;g=k[e>>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<<f;if(Tq($)|0)Ir($,f)}}}while(0);Io(t,c);break}case 309:{es($,0);break}case 310:{es($,a+(aa<<4)+16|0);break}case 311:{d=a+(aa<<4)+16|0;Zq($,a+(aa+-3<<4)+16|0,a+(aa+-2<<4)+16|0,0,0,1,k[a+(aa+-4<<4)+16>>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;nrnr(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];NrNr
12 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];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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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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<<v&y|0)!=0:0){_=138;break}if(i[(k[w>>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<<m&v)break;Bh(S,28,0,m+J|0,0)|0;break i}while(0);st(S,ga,o,m,m+J|0)}while(0);m=m+1|0}while((m|0)<(j[fa>>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<<m;Y=Y+20|0;i[Y>>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|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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]|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 NrNr(m,f,d),n=as(a,b)|0,(n|0)!=0):0)Nr(m,1,n)}r=o;return}
14 nrg|0;a=l>>31;b=g-32|0;j=b>>31;h=g;i=l-1>>31&m>>>(b>>>0)|(m<<l|n>>>(g>>>0))&j;j=j&m>>>(g>>>0);f=n<<p&a;g=(m<<p|n>>>(b>>>0))&a|n<<l&g-33>>31;break}if(e){k[e>>2]=i&n;k[e+4>>2]=0}if((j|0)==1){l=l|b&0;m=a|0|0;return (L=l,m)|0}else{a=tw(j|0)|0;l=m>>>(a>>>0)|0;m=m<<32-a|n>>>(a>>>0)|0;return (L=l,m)|0}}else{if(i){if(e){k[e>>2]=(m>>>0)%(j>>>0);k[e+4>>2]=0}l=0;m=(m>>>0)/(j>>>0)>>>0;return (L=l,m)|0}if(!n){if(e){k[e>>2]=0;k[e+4>>2]=(m>>>0)%(h>>>0)}l=0;m=(m>>>0)/(h>>>0)>>>0;return (L=l,m)|0}i=h-1|0;if(!(i&h)){if(e){k[e>>2]=a|0;k[e+4>>2]=i&m|b&0}l=0;m=m>>>((tw(h|0)|0)>>>0);return (L=l,m)|0}g=(ja(h|0)|0)-(ja(m|0)|0)|0;if(g>>>0<=30){j=g+1|0;g=31-g|0;h=j;i=m<<g|n>>>(j>>>0);j=m>>>(j>>>0);f=0;g=n<<g;break}if(!e){l=0;m=0;return (L=l,m)|0}k[e>>2]=a|0;k[e+4>>2]=l|b&0;l=0;m=0;return (L=l,m)|0}while(0);if(!h){l=g;h=0;g=0}else{m=c|0|0;l=o|d&0;b=ow(m,l,-1,-1)|0;a=L;c=g;g=0;do{p=c;c=f>>>31|c<<1;f=g|f<<1;p=i<<1|p>>>31|0;o=i>>>31|j<<1|0;iw(b,a,p,o)|0;n=L;d=n>>31|((n|0)<0?-1:0)<<1;g=d&1;i=iw(p,o,d&m,(((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1)&l)|0;j=L;h=h-1|0}while((h|0)!=0);l=c;h=0}c=0;if(e){k[e>>2]=i;k[e+4>>2]=j}l=(f|0)>>>31|(l|c)<<1|(c<<1|f>>>31)&0|h;m=(f<<1|0>>>31)&-2|g;return (L=l,m)|0}function Bw(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;return ec[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function Cw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return fc[a&63](b|0,c|0,d|0)|0}function Dw(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;gc[a&1](b|0,c|0,d|0,e|0,f|0,g|0)}function Ew(a,b){a=a|0;b=b|0;hc[a&31](b|0)}function Fw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ic[a&1](b|0,c|0,d|0,e|0,f|0)}function Gw(a,b,c){a=a|0;b=b|0;c=c|0;return +jc[a&1](b|0,c|0)}function Hw(a,b,c){a=a|0;b=b|0;c=+c;kc[a&1](b|0,+c)}function Iw(a,b){a=a|0;b=b|0;return +lc[a&1](b|0)}function Jw(a){a=a|0;return mc[a&7]()|0}function Kw(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;return nc[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)|0}function Lw(a,b,c){a=a|0;b=b|0;c=c|0;oc[a&15](b|0,c|0)}function Mw(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;return pc[a&7](b|0,c|0,d|0,e|0,f|0,g|0)|0}function Nw(a,b){a=a|0;b=b|0;return qc[a&127](b|0)|0}function Ow(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;rc[a&63](b|0,c|0,d|0)}function Pw(a){a=a|0;sc[a&3]()}function Qw(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;return tc[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)|0}function Rw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return uc[a&31](b|0,c|0,d|0,e|0)|0}function Sw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;vc[a&15](b|0,c|0,d|0,e|0)}function Tw(a,b,c){a=a|0;b=b|0;c=c|0;return wc[a&127](b|0,c|0)|0}function Uw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return xc[a&1](b|0,c|0,+d)|0}function Vw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return yc[a&31](b|0,c|0,d|0,e|0,f|0)|0}function Ww(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;ma(0);return 0}function Xw(a,b,c){a=a|0;b=b|0;c=c|0;na(1);return 0}function Yw(a,b,c){a=a|0;b=b|0;c=c|0;return yb(a|0,b|0,c|0)|0}function Zw(a,b,c){a=a|0;b=b|0;c=c|0;return bc(a|0,b|0,c|0)|0}function _w(a,b,c){a=a|0;b=b|0;c=c|0;return Kb(a|0,b|0,c|0)|0}function $w(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;oa(2)}function ax(a){a=a|0;pa(3)}function bx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;qa(4)}function cx(a,b){a=a|0;b=b|0;ra(5);return 0.0}function dx(a,b){a=a|0;b=+b;sa(6)}function ex(a){a=a|0;ta(7);return 0.0}function fx(){ua(8);return 0}function gx(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;va(9);return 0}function hx(a,b){a=a|0;b=b|0;wa(10)}function ix(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;xa(11);return 0}function jx(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Zb(a|0,b|0,c|0,d|0,e|0,f|0)|0}function kx(a){a=a|0;ya(12);return 0}function lx(a){a=a|0;return ac(a|0)|0}function mx(a){a=a|0;return Ab(a|0)|0}function nx(a){a=a|0;return mb(a|0)|0}function ox(a,b,c){a=a|0;b=b|0;c=c|0;za(13)}function px(){Aa(14)}function qx(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;Ba(15);return 0}function rx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Ca(16);return 0}function sx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Da(17)}function tx(a,b){a=a|0;b=b|0;Ea(18);return 0}function ux(a,b){a=a|0;b=b|0;return jb(a|0,b|0)|0}function vx(a,b){a=a|0;b=b|0;return $b(a|0,b|0)|0}function wx(a,b){a=a|0;b=b|0;return Nb(a|0,b|0)|0}function xx(a,b){a=a|0;b=b|0;return kb(a|0,b|0)|0}function yx(a,b){a=a|0;b=b|0;return Eb(a|0,b|0)|0}function zx(a,b){a=a|0;b=b|0;return Cb(a|0,b|0)|0}function Ax(a,b){a=a|0;b=b|0;return Fb(a|0,b|0)|0}function Bx(a,b){a=a|0;b=b|0;return Yb(a|0,b|0)|0}function Cx(a,b,c){a=a|0;b=b|0;c=+c;Fa(19);return 0}function Dx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Ga(20);return 0}