Lines Matching refs:Kt
6 ktm=c[l+8>>2]|0,(m|0)!=0):0){O=(h|0)==0;H=(f|0)!=0;I=H&1;J=W+4|0;K=T+4|0;L=e+4|0;M=S+4|0;N=H?110:109;do{if(!(!O?(Zu(e,m,h,k)|0)==0:0)){E=c[d>>2]|0;D=a[m+I+25>>0]|0;F=D&255;G=m+(I<<2)+28|0;f=c[G>>2]|0;do if(!(D<<24>>24==0|(f|0)!=0)){c[R>>2]=0;c[Q>>2]=0;if(!(It(d,e,m,R,Q)|0)){r=m+20|0;if((c[r>>2]|0)>0){x=34352;w=c[x>>2]|0;x=c[x+4>>2]|0;z=34360;y=c[z>>2]|0;z=c[z+4>>2]|0;A=m+36|0;C=D<<24>>24!=6&(D<<24>>24!=9|H);B=0;o=0;l=0;n=0;do{f=V;c[f>>2]=w;c[f+4>>2]=x;f=U;c[f>>2]=y;c[f+4>>2]=z;f=c[Q>>2]|0;if(!f)f=A;else f=f+(B<<2)|0;q=c[f>>2]|0;s=c[R>>2]|0;if(!s)u=34368;else u=c[(c[L>>2]|0)+((b[(c[s+4>>2]|0)+(B<<1)>>1]|0)*24|0)>>2]|0;c[W>>2]=u;f=c[(c[(c[m>>2]|0)+4>>2]|0)+(q*24|0)>>2]|0;c[T>>2]=f;if(!u)t=0;else{v=u;while(1)if(!(a[v>>0]|0))break;else v=v+1|0;t=v-u&1073741823}c[J>>2]=t;if(!f)p=0;else{u=f;while(1)if(!(a[u>>0]|0))break;else u=u+1|0;p=u-f&1073741823}c[K>>2]=p;v=Vq(d,27,0,0,V)|0;v=Vq(d,122,v,Vq(d,27,0,0,W)|0,0)|0;n=os(E,n,Vq(d,79,v,Vq(d,27,0,0,T)|0,0)|0)|0;if(H){u=Vq(d,27,0,0,V)|0;u=Vq(d,122,u,Vq(d,27,0,0,W)|0,0)|0;v=Vq(d,27,0,0,U)|0;l=os(E,l,Vq(d,73,u,Vq(d,122,v,Vq(d,27,0,0,W)|0,0)|0,0)|0)|0}if(C){do if(D<<24>>24==8){f=c[(c[(c[m>>2]|0)+4>>2]|0)+(q*24|0)+4>>2]|0;if(!f){f=Vq(d,101,0,0,0)|0;break}else{f=Ir(E,f,0,0)|0;break}}else if(D<<24>>24==9){f=Vq(d,27,0,0,U)|0;f=Vq(d,122,f,Vq(d,27,0,0,W)|0,0)|0}else f=Vq(d,101,0,0,0)|0;while(0);o=hr(d,o,f)|0;ir(d,o,T,0)}B=B+1|0}while((B|0)<(c[r>>2]|0));f=m}else{f=m;o=0;l=0;n=0}ig(E,c[Q>>2]|0);v=c[c[f>>2]>>2]|0;if(!v)p=0;else{f=v;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;p=f-v&1073741823}if(D<<24>>24==6){c[S>>2]=v;c[M>>2]=p;f=pt(E,57,34376)|0;if(f)a[f+1>>0]=2;u=hr(d,0,f)|0;u=gr(d,u,lr(E,0,S,0)|0,n,0,0,0,0,0,0)|0;t=0}else{u=0;t=n}q=E+250|0;r=a[q>>0]|0;a[q>>0]=0;f=p+77|0;s=ih(E,f,0)|0;if(s){bw(s|0,0,f|0)|0;n=s+36|0;c[s+28>>2]=n;D=s+76|0;c[s+48>>2]=D;c[s+52>>2]=p;gw(D|0,v|0,p|0)|0;c[s+56>>2]=Ir(E,t,1,0)|0;c[s+60>>2]=Lr(E,o,1)|0;c[s+44>>2]=cr(E,u,1)|0;if(!l){f=s;l=0}else{l=Vq(d,19,l,0,0)|0;c[s+12>>2]=Ir(E,l,1,0)|0;f=s}}else{f=0;n=0}a[q>>0]=r;Ck(E,t);Ck(E,l);Jk(E,o);Ik(E,u,1);if((a[E+65>>0]|0)==1){Gk(E,f);f=0;break}if((F|0)==6)a[n>>0]=119;else if((F|0)==9?!H:0)a[n>>0]=109;else X=49;if((X|0)==49){X=0;a[n>>0]=110}c[n+4>>2]=f;F=c[P>>2]|0;c[s+20>>2]=F;c[s+24>>2]=F;c[G>>2]=f;a[s+8>>0]=N}else f=0}while(0);if(f)$u(d,f,e,g,2,0)}m=c[m+12>>2]|0}while((m|0)!=0)}i=Y;return}function zt(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=b[d+46>>1]|0;a:do if(f<<16>>16==(b[e+46>>1]|0)?(a[d+50>>0]|0)==(a[e+50>>0]|0):0){if(f<<16>>16){g=c[e+4>>2]|0;h=c[d+4>>2]|0;i=e+28|0;j=d+28|0;k=e+32|0;l=d+32|0;p=0;do{if((b[g+(p<<1)>>1]|0)!=(b[h+(p<<1)>>1]|0)){f=0;break a}if((a[(c[i>>2]|0)+p>>0]|0)!=(a[(c[j>>2]|0)+p>>0]|0)){f=0;break a}m=c[(c[k>>2]|0)+(p<<2)>>2]|0;n=c[(c[l>>2]|0)+(p<<2)>>2]|0;o=(n|0)==0;if(!m){if(!o){f=0;break a}}else{if(o){f=0;break a}if($c(m,n)|0){f=0;break a}}p=p+1|0}while((p|0)<(f&65535|0))}f=(yu(c[e+36>>2]|0,c[d+36>>2]|0,-1)|0)==0&1}else f=0;while(0);return f|0}function At(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;do if(!(a[e+44>>0]&8))f=0;else{h=c[b+408>>2]|0;h=(h|0)==0?b:h;g=h+404|0;f=c[g>>2]|0;a:do if(!f)i=5;else while(1){if((c[f+4>>2]|0)==(e|0))break a;f=c[f>>2]|0;if(!f){i=5;break}}while(0);if((i|0)==5){f=ih(c[b>>2]|0,16,0)|0;if(!f){f=0;break}c[f>>2]=c[g>>2];c[g>>2]=f;c[f+4>>2]=e;c[f+8>>2]=d;b=h+72|0;g=c[b>>2]|0;c[f+12>>2]=g+2;c[b>>2]=g+3}f=c[f+12>>2]|0}while(0);return f|0}function Bt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;g=b[e+36>>1]|0;h=c[a>>2]|0;f=c[e>>2]|0;if(g<<16>>16>-1){g=c[(c[e+4>>2]|0)+((g<<16>>16)*24|0)>>2]|0;c[k>>2]=f;c[k+4>>2]=g;g=1555;f=qh(h,27824,k)|0}else{c[k>>2]=f;g=2579;f=qh(h,34408,k)|0}vs(a,g,d,f,-1,2);i=l;return}function Ct(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[g>>2]|0;d=hr(b,h,Ir(c[b>>2]|0,d,0,0)|0)|0;if(d){b=(c[d>>2]|0)+-1|0;h=c[d+4>>2]|0;c[h+(b*20|0)+16>>2]=e;b=h+(b*20|0)+13|0;a[b>>0]=a[b>>0]&-5|f<<2&4}c[g>>2]=d;return}function Dt(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=c[e>>2]|0;if(!(g+-1&g)){i=_((g|0)==0?1:g<<1,d)|0;a=no(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[f>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){bw(a+(_(g,d)|0)|0,0,d|0)|0;c[f>>2]=g;c[e>>2]=(c[e>>2]|0)+1}return a|0}function Et(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;c[h>>2]=0;b=c[a+12>>2]|0;if((b|0)!=0?(d=c[b+24>>2]|0,(d|0)>0):0){c[h>>2]=d;b=d}else b=0;d=c[a+16>>2]|0;if((d|0)!=0?(e=c[d+24>>2]|0,(e|0)>(b|0)):0)c[h>>2]=e;f=a+4|0;b=a+20|0;if(!(c[f>>2]&2048)){d=c[b>>2]|0;if(d){pu(d,h);b=c[b>>2]|0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;do{b=c[(c[e+(d*20|0)>>2]|0)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[f>>2]=c[f>>2]|b}}else As(c[b>>2]|0,h);c[a+24>>2]=(c[h>>2]|0)+1;i=k;return}function Ft(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Kq(b)|0;i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h;b=ih(c[b>>2]|0,8,0)|0;if(b){i=b;c[i>>2]=e;c[i+4>>2]=f}th(g,sh(g,26,0,h,0)|0,b,-13);eq(g,1);if(!(a[(c[g>>2]|0)+65>>0]|0))Tg(c[g+16>>2]|0,d,-1,1,0)|0;sh(g,35,h,1,0)|0;return}function Gt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;d=c[b>>2]|0;e=d+16|0;f=c[(c[e>>2]|0)+20>>2]|0;do if(!f)d=0;else{if((a[d+63>>0]|0)!=0?(a[f+8>>0]|0)==0:0){Il(f);c[(c[e>>2]|0)+20>>2]=0;Ag(d);d=0;break}ph(b,32128,g);d=1}while(0);i=h;return d|0}function Ht(b){b=b|0;var e=0,f=0,g=0;if((a[b+63>>0]|0)!=0?(e=c[b+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[b+16>>2]|0;while(1){e=e+-1|0;b=c[f+4>>2]|0;if(b)po(b,c[g>>2]&28|d[f+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function It(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;x=c[g+20>>2]|0;m=c[g+40>>2]|0;if((x|0)==1){s=b[f+36>>1]|0;l=s<<16>>16;if(s<<16>>16>-1)if((m|0)!=0?($c(c[(c[f+4>>2]|0)+(l*24|0)>>2]|0,m)|0)!=0:0){v=0;y=8}else k=0;else{v=0;y=8}}else if(k){l=ih(c[d>>2]|0,x<<2,0)|0;if(!l)k=1;else{c[k>>2]=l;v=l;y=8}}else{v=0;y=8}a:do if((y|0)==8){k=c[f+8>>2]|0;b:do if(k){s=(m|0)==0;u=(x|0)>0;r=f+4|0;t=(v|0)==0;c:while(1){do if((e[k+46>>1]|0)==(x|0)?(a[k+50>>0]|0)!=0:0){if(s)if((a[k+51>>0]&3)==2){y=16;break c}else break;d:do if(u){n=c[k+4>>2]|0;o=c[r>>2]|0;p=c[k+32>>2]|0;q=0;while(1){f=b[n+(q<<1)>>1]|0;m=c[o+(f*24|0)+16>>2]|0;if($c(c[p+(q<<2)>>2]|0,(m|0)!=0?m:11152)|0){m=q;break d}m=c[o+(f*24|0)>>2]|0;l=0;while(1){f=l+1|0;if(!($c(c[g+(l<<3)+40>>2]|0,m)|0)){f=l;y=23;break}if((f|0)<(x|0))l=f;else break}if((y|0)==23){y=0;if(!t)c[v+(q<<2)>>2]=c[g+(f<<3)+36>>2]}m=q+1|0;if((f|0)==(x|0)){m=q;break d}if((m|0)<(x|0))q=m;else break}}else m=0;while(0);if((m|0)==(x|0))break c}while(0);k=c[k+20>>2]|0;if(!k)break b}if((y|0)==16)if(!(t|u^1)){l=0;do{c[v+(l<<2)>>2]=c[g+(l<<3)+36>>2];l=l+1|0}while((l|0)!=(x|0))}c[h>>2]=k;k=0;break a}while(0);if(!(a[d+438>>0]|0)){s=c[g+8>>2]|0;c[w>>2]=c[c[g>>2]>>2];c[w+4>>2]=s;ph(d,32008,w)}ig(c[d>>2]|0,v);k=1}while(0);i=z;return k|0}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!(c[d+12>>2]|0)){c[h>>2]=0;l=c[b>>2]|0;g=d+4|0;d=c[g>>2]|0;Vr(l,c[d+(e*24|0)+4>>2]|0,a[l+62>>0]|0,a[d+(e*24|0)+21>>0]|0,h)|0;d=c[h>>2]|0;if(d)th(b,-1,d,-8);if((a[(c[g>>2]|0)+(e*24|0)+21>>0]|0)==69)sh(b,39,f,0,0)|0}i=k;return}function Kt(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Oh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[g>>1]=e[g>>1]|f&255}return}function Lt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=c[d+8>>2]|0;r=c[e+12>>2]|0;do if(i){l=e+36|0;if(!(c[l>>2]|0)){c[i>>2]=0;break}else{c[i>>2]=ts(q)|0;c[d+96>>2]=f;p=d+100|0;c[p>>2]=(c[p>>2]|0)+1;ct(d,c[l>>2]|0,c[i>>2]|0,16);break}}while(0);if((h|0)!=0?(a[e+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[l>>1]|0;n=l&65535;o=d+60|0;h=c[o>>2]|0;p=d+56|0;i=c[p>>2]|0;if((i|0)<(n|0)){h=d+72|0;m=c[h>>2]|0;c[h>>2]=m+n;m=m+1|0}else{c[o>>2]=h+n;c[p>>2]=i-n;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[j+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[(c[k>>2]|0)+(l<<1)>>1]|0;if((b[(c[i>>2]|0)+(l<<1)>>1]|0)!=h<<16>>16)s=21}else{h=b[(c[k>>2]|0)+(l<<1)>>1]|0;s=21}if((s|0)==21){s=0;jt(q,r,f,h<<16>>16,l+m|0);Lq(q,39)|0}l=l+1|0}while((l|0)<(n|0))}if(g)sh(q,49,m,n,g)|0;$s(d,m,n);if((c[p>>2]|0)<(n|0)){c[p>>2]=n;c[o>>2]=m}return m|0}function Mt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[a+8>>2]|0;e=c[d+24>>2]|0;f=~b;if((b|0)<0?(g=c[e+112>>2]|0,(g|0)!=0):0)c[g+(f<<2)>>2]=c[d+32>>2];c[e+88>>2]=(c[d+32>>2]|0)+-1;Zt(a)}return}function Nt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[d+16>>2]|0;a:do if((e|0)!=0?(f=c[d+64>>2]|0,(f|0)!=0):0){e=c[e+8>>2]|0;b:do if(e){while(1){if(!($c(c[e>>2]|0,f)|0))break;e=c[e+20>>2]|0;if(!e)break b}c[d+68>>2]=e;e=0;break a}while(0);c[g>>2]=f;c[g+4>>2]=0;ph(b,28104,g);a[b+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function Ot(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Pt(a,b)|0;if(b&1){e=Ot(c[a+12>>2]|0,b)|0;return e+d+(Ot(c[a+16>>2]|0,b)|0)|0}}else d=0;return d|0}
7 kt(r,t)|0)|0;q=(t|0)!=0;if(!q)a[(c[d>>2]|0)+65>>0]=1;if(p<<16>>16){g=c[e+8>>2]|0;j=(f|0)!=0;sh(r,j?105:108,g,0,0)|0;k=sh(r,16,0,0,0)|0;l=p&65535;j=sh(r,j?62:65,g,0,i)|0;th(r,j,l,-14);c[e+20>>2]=j;j=c[r+32>>2]|0;if(j>>>0>k>>>0)c[(c[r+4>>2]|0)+(k*20|0)+8>>2]=j;c[(c[r+24>>2]|0)+88>>2]=j+-1;k=0;do{sh(r,47,g,k,k+i|0)|0;k=k+1|0}while((k|0)<(l|0))}if((p&65535)<(n&65535)){m=m+48|0;l=e+12|0;n=(o|0)==1;o=p&65535;k=i;while(1){j=c[(c[m>>2]|0)+(o<<2)>>2]|0;g=o+k|0;i=Mu(d,j,e,o,f,g)|0;do if((i|0)!=(g|0))if(n){Wr(d,k);break}else{sh(r,34,i,g,0)|0;i=k;break}else i=k;while(0);if(!(b[j+18>>1]&129)){g=c[(c[j>>2]|0)+16>>2]|0;if(Qu(g)|0)sh(r,76,i+o|0,c[l>>2]|0,0)|0;if(q){j=t+o|0;if((xu(g,a[j>>0]|0)|0)<<24>>24==65){a[j>>0]=65;k=65}else k=a[j>>0]|0;if(Ru(g,k)|0)a[j>>0]=65}}o=o+1|0;if((o|0)>=(s|0))break;else k=i}}c[h>>2]=t;return i|0}function Qu(d){d=d|0;var e=0;e=a[d>>0]|0;if((e+99&255)<2)do{d=c[d+12>>2]|0;e=a[d>>0]|0}while((e+99&255)<2);if(e<<24>>24==-97)e=a[d+38>>0]|0;switch(e&255|0){case 134:case 133:case 97:case 132:{d=0;break}case 154:{if(!(c[d+4>>2]&1048576)){e=b[d+32>>1]|0;if(e<<16>>16>-1)d=(a[(c[(c[d+44>>2]|0)+4>>2]|0)+((e<<16>>16)*24|0)+20>>0]|0)==0;else d=0}else d=1;d=d&1;break}default:d=1}return d|0}function Ru(d,e){d=d|0;e=e|0;var f=0;a:do if(e<<24>>24==65)d=1;else{f=a[d>>0]|0;if((f+99&255)<2)do{d=c[d+12>>2]|0;f=a[d>>0]|0}while((f+99&255)<2);if(f<<24>>24==-97)f=a[d+38>>0]|0;switch(f&255|0){case 154:{if((b[d+32>>1]|0)<0)d=(e+-67&255)<2;else d=0;d=d&1;break a}case 97:{d=e<<24>>24==66&1;break a}case 132:{d=(e+-67&255)<2&1;break a}case 134:{d=1;break a}case 133:{d=(e<<24>>24==69|e<<24>>24==67)&1;break a}default:{d=0;break a}}}while(0);return d|0}function Su(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;h=c[b+8>>2]|0;do if(f){a:do if((e|0)>0)while(1){if((a[f>>0]|0)!=65){g=f;break a}e=e+-1|0;d=d+1|0;f=f+1|0;if((e|0)<=0){g=f;break}}else g=f;while(0);while(1){if((e|0)<=1){i=8;break}f=e+-1|0;if((a[g+f>>0]|0)==65)e=f;else break}if((i|0)==8)if((e|0)<=0)break;sh(h,48,d,e,0)|0;th(h,-1,g,e);$s(b,d,e)}while(0);return}function Tu(a,b){a=a|0;b=b|0;var d=0,e=0;if(b){Kv(b+328|0);e=b+16|0;d=c[e>>2]|0;if(d)do{c[e>>2]=c[d+52>>2];Fu(a,d);ig(a,d);d=c[e>>2]|0}while((d|0)!=0);ig(a,b)}return}function Uu(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+32|0;if((i|0)>=(j|0))ba();e=d;c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;c[e+16>>2]=0;c[e+20>>2]=0;c[e>>2]=80;c[e+4>>2]=81;c[e+24>>2]=a;ns(e,b)|0;i=d;return}function Vu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p+4|0;o=p;m=c[b+8>>2]|0;c[n>>2]=0;c[o>>2]=0;if(!((m|0)==0|(d|0)==0)){h=a[d>>0]|0;g=h&255;a:do switch(g|0){case 72:{l=ts(m)|0;ct(b,c[d+12>>2]|0,l,f^16);g=b+100|0;c[g>>2]=(c[g>>2]|0)+1;Vu(b,c[d+16>>2]|0,e,f);g=c[m+24>>2]|0;h=~l;if((l|0)<0?(k=c[g+112>>2]|0,(k|0)!=0):0)c[k+(h<<2)>>2]=c[m+32>>2];c[g+88>>2]=(c[m+32>>2]|0)+-1;Zt(b);break}case 71:{Vu(b,c[d+12>>2]|0,e,f);m=b+100|0;c[m>>2]=(c[m>>2]|0)+1;Vu(b,c[d+16>>2]|0,e,f);Zt(b);break}case 19:{ct(b,c[d+12>>2]|0,e,f);break}case 148:case 73:{f=d+12|0;l=Xt(b,c[f>>2]|0,n)|0;k=d+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[f>>2]|0,c[k>>2]|0,h<<24>>24==73?79:78,l,m,e,128);break}case 75:{k=ts(m)|0;bu(b,d,k,(f|0)!=0?e:k);sh(m,16,0,e,0)|0;h=c[m+24>>2]|0;g=~k;if((k|0)<0?(l=c[h+112>>2]|0,(l|0)!=0):0)c[l+(g<<2)>>2]=c[m+32>>2];c[h+88>>2]=(c[m+32>>2]|0)+-1;break}case 79:case 78:case 83:case 80:case 81:case 82:{h=d+12|0;l=Xt(b,c[h>>2]|0,n)|0;k=d+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[h>>2]|0,c[k>>2]|0,g,l,m,e,f);break}case 77:case 76:{sh(m,g,Xt(b,c[d+12>>2]|0,n)|0,e,0)|0;break}case 74:{Wu(b,d,e,1,f);break}default:{if(Xu(d)|0){sh(m,16,0,e,0)|0;break a}if(!(iu(d)|0))sh(m,45,Xt(b,d,n)|0,e,(f|0)!=0&1)|0}}while(0);Wr(b,c[n>>2]|0);Wr(b,c[o>>2]|0)}i=p;return}function Wu(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;p=i;i=i+208|0;if((i|0)>=(j|0))ba();l=p+152|0;h=p+104|0;k=p+56|0;m=p+8|0;n=p;c[n>>2]=0;o=m+0|0;q=(c[d+12>>2]|0)+0|0;r=o+48|0;do{c[o>>2]=c[q>>2];o=o+4|0;q=q+4|0}while((o|0)<(r|0));a[l>>0]=72;c[l+12>>2]=h;c[l+16>>2]=k;a[h>>0]=83;c[h+12>>2]=m;d=c[(c[d+20>>2]|0)+4>>2]|0;c[h+16>>2]=c[d>>2];a[k>>0]=81;c[k+12>>2]=m;c[k+16>>2]=c[d+20>>2];d=Xt(b,m,n)|0;a[m+38>>0]=a[m>>0]|0;a[m>>0]=-97;c[m+28>>2]=d;d=m+4|0;c[d>>2]=c[d>>2]&-4097;if(!f)ct(b,l,e,g);else Vu(b,l,e,g);Wr(b,c[n>>2]|0);i=p;return}function Xu(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;c[b>>2]=0;if((c[a+4>>2]&1|0)==0?(Is(a,b)|0)!=0:0)a=(c[b>>2]|0)!=0&1;else a=0;i=d;return a|0}function Yu(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!((a|0)==0|(b|0)==0)){e=c[b>>2]|0;if((e|0)>0){b=c[b+4>>2]|0;d=0;while(1){if((sv(a,c[b+(d*20|0)+4>>2]|0)|0)>-1){b=1;break a}d=d+1|0;if((d|0)>=(e|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function Zu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;m=c[e+20>>2]|0;a:do if((m|0)>0){n=b[d+38>>1]|0;o=n<<16>>16>0;p=d+4|0;l=d+36|0;i=(g|0)!=0;j=0;while(1){g=c[e+(j<<3)+40>>2]|0;if(o){d=(g|0)==0;k=0;do{if(!((c[f+(k<<2)>>2]|0)<=-1?!((k|0)==(b[l>>1]|0)&i):0))q=7;do if((q|0)==7){q=0;h=c[p>>2]|0;if(d)if(!(a[h+(k*24|0)+23>>0]&1))break;else{d=1;break a}else if(!($c(c[h+(k*24|0)>>2]|0,g)|0)){d=1;break a}else break}while(0);k=k+1|0}while((k|0)<(n<<16>>16|0))}j=j+1|0;if((j|0)>=(m|0)){d=0;break}}}else d=0;while(0);return d|0}function _u(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+48|0;if((i|0)>=(j|0))ba();m=v;q=v+8|0;u=c[b+408>>2]|0;u=(u|0)==0?b:u;l=u+528|0;g=c[l>>2]|0;a:do if(!g)k=5;else while(1){if((c[g>>2]|0)==(d|0)?(c[g+12>>2]|0)==(f|0):0)break a;g=c[g+4>>2]|0;if(!g){k=5;break}}while(0);do if((k|0)==5){s=c[b>>2]|0;g=ih(s,24,0)|0;if(g){k=g+0|0;h=k+24|0;do{a[k>>0]=0;k=k+1|0}while((k|0)<(h|0));c[g+4>>2]=c[l>>2];c[l>>2]=g;r=ih(s,28,0)|0;if(!r){c[g+8>>2]=0;g=0;break}k=r+0|0;h=k+24|0;do{a[k>>0]=0;k=k+1|0}while((k|0)<(h|0));c[g+8>>2]=r;n=(c[u+8>>2]|0)+192|0;c[r+24>>2]=c[n>>2];c[n>>2]=r;c[g>>2]=d;c[g+12>>2]=f;n=g+16|0;c[n>>2]=-1;o=g+20|0;c[o>>2]=-1;p=ih(s,536,0)|0;if(p){bw(p|0,0,536)|0;c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=0;c[q+24>>2]=0;c[q+28>>2]=0;c[q>>2]=p;c[p>>2]=s;c[p+412>>2]=e;c[p+408>>2]=u;c[p+492>>2]=c[d>>2];a[p+436>>0]=a[d+8>>0]|0;c[p+424>>2]=c[b+424>>2];e=Kq(p)|0;if(e){c[m>>2]=c[d>>2];th(e,-1,qh(s,34152,m)|0,-1);k=c[d+12>>2]|0;if(!k)l=0;else{h=Ir(s,k,0,0)|0;if((hs(q,h)|0)==0?(a[s+65>>0]|0)==0:0){k=ts(e)|0;ct(p,h,k,16)}else k=0;Ck(s,h);l=k}Lv(p,c[d+28>>2]|0,f);if(l){k=c[e+24>>2]|0;h=~l;if((l|0)<0?(t=c[k+112>>2]|0,(t|0)!=0):0)c[t+(h<<2)>>2]=c[e+32>>2];c[k+88>>2]=(c[e+32>>2]|0)+-1}sh(e,24,0,0,0)|0;h=b+64|0;k=c[p+4>>2]|0;if(!(c[h>>2]|0)){c[b+4>>2]=k;c[h>>2]=c[p+64>>2]}else ig(c[p>>2]|0,k);if(!(a[s+65>>0]|0)){m=e+4|0;q=c[m>>2]|0;Fn(e,u+392|0);c[r+4>>2]=c[e+32>>2];c[m>>2]=0;c[r>>2]=q}c[r+8>>2]=c[p+72>>2];c[r+12>>2]=c[p+68>>2];c[r+16>>2]=c[p+80>>2];c[r+20>>2]=d;c[n>>2]=c[p+428>>2];c[o>>2]=c[p+432>>2];Ll(e)}yh(p);ig(s,p)}else g=0}else g=0}while(0);i=v;return g|0}function $u(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;i=Kq(b)|0;e=_u(b,d,e,g)|0;if(e){if(!(c[d>>2]|0))g=0;else g=((c[(c[b>>2]|0)+24>>2]|0)>>>18&1^1)&255;b=b+72|0;d=(c[b>>2]|0)+1|0;c[b>>2]=d;sh(i,131,f,h,d)|0;th(i,-1,c[e+8>>2]|0,-18);e=c[i+4>>2]|0;if(e)a[e+(((c[i+32>>2]|0)+-1|0)*20|0)+3>>0]=g}return}function av(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;f=c[a>>2]|0;h=c[(c[f+16>>2]|0)+(e<<4)>>2]|0;g=gc[c[f+284>>2]&7](c[f+288>>2]|0,20,b,d,h,c[a+492>>2]|0)|0;if((g|0)==1){if((e|0)!=0?1:(c[f+20>>2]|0)>2){c[k>>2]=h;c[k+4>>2]=b;c[k+8>>2]=d;ph(a,27688,k)}else{c[k>>2]=b;c[k+4>>2]=d;ph(a,27728,k)}c[a+12>>2]=23}else if(!((g|0)==0|(g|0)==2)){ph(a,25232,k);c[a+12>>2]=1}i=l;return g|0}function bv(e,f,g,h,i,j,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;y=Kq(e)|0;A=(c[e+68>>2]|0)+-1|0;B=ts(y)|0;if((l|0)<0)sh(y,135,d[i+24>>0]|0,B,0)|0;n=i+20|0;o=c[n>>2]|0;if((o|0)>0){q=k+1|0;p=0;do{sh(y,76,q+(c[j+(p<<2)>>2]|0)|0,B,0)|0;p=p+1|0;o=c[n>>2]|0}while((p|0)<(o|0))}do if(!m){if(!h){o=e+19|0;n=a[o>>0]|0;if(!(n<<24>>24)){h=e+72|0;q=(c[h>>2]|0)+1|0;c[h>>2]=q}else{q=n+-1<<24>>24;a[o>>0]=q;q=c[e+((q&255)<<2)+24>>2]|0}sh(y,34,k+1+(c[j>>2]|0)|0,q,0)|0;p=sh(y,38,q,0,0)|0;if(((l|0)==1?(c[i>>2]|0)==(g|0):0)?(sh(y,79,k,B,q)|0,r=c[y+4>>2]|0,(r|0)!=0):0)a[r+(((c[y+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;Mq(e,A,f,g,54);sh(y,70,A,0,q)|0;sh(y,16,0,B,0)|0;n=c[y+32>>2]|0;if(n>>>0>1)c[(c[y+4>>2]|0)+((n+-2|0)*20|0)+8>>2]=n;m=n+-1|0;o=(c[y+24>>2]|0)+88|0;c[o>>2]=m;if(n>>>0>p>>>0)c[(c[y+4>>2]|0)+(p*20|0)+8>>2]=n;c[o>>2]=m;Wr(e,q);break}w=e+60|0;q=c[w>>2]|0;x=e+56|0;p=c[x>>2]|0;if((p|0)<(o|0)){v=e+72|0;q=c[v>>2]|0;c[v>>2]=q+o;q=q+1|0}else{c[w>>2]=q+o;c[x>>2]=p-o}p=e+19|0;n=a[p>>0]|0;if(!(n<<24>>24)){m=e+72|0;v=(c[m>>2]|0)+1|0;c[m>>2]=v}else{v=n+-1<<24>>24;a[p>>0]=v;v=c[e+((v&255)<<2)+24>>2]|0}sh(y,54,A,c[h+40>>2]|0,f)|0;m=c[e+8>>2]|0;th(m,-1,ds(e,h)|0,-6);m=(o|0)>0;if(m){p=k+1|0;n=0;do{sh(y,33,p+(c[j+(n<<2)>>2]|0)|0,n+q|0,0)|0;n=n+1|0}while((n|0)!=(o|0))}if((l|0)==1?(c[i>>2]|0)==(g|0):0){t=y+32|0;u=o+1+(c[t>>2]|0)|0;if(m){f=k+1|0;s=h+4|0;p=g+36|0;n=y+4|0;r=0;do{m=b[(c[s>>2]|0)+(r<<1)>>1]|0;sh(y,78,f+(c[j+(r<<2)>>2]|0)|0,u,(m<<16>>16==(b[p>>1]|0)?0:(m<<16>>16)+1|0)+k|0)|0;m=c[n>>2]|0;if(m)a[m+(((c[t>>2]|0)+-1|0)*20|0)+3>>0]=16;r=r+1|0}while((r|0)!=(o|0))}sh(y,16,0,B,0)|0}k=kt
12 ktkt|0)==0:0)?(sh(ja,35,n,1,0)|0,eq(ja,1),(a[(c[ja>>2]|0)+65>>0]|0)==0):0)Tg(c[ja+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);zo(ka,f);Jk(ka,l);Ik(ka,g,1);Dk(ka,h);ig(ka,m);i=la;return}function qr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();f=h;if(!d){d=ih(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;g=g+4|0;a[g>>0]=0;a[g+1>>0]=0;a[g+2>>0]=0;a[g+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[d>>2]=Dt(b,c[d>>2]|0,8,d+4|0,f)|0;f=c[f>>2]|0;if((f|0)<0){Dk(b,d);d=0;break}else{b=Sq(b,e)|0;c[(c[d>>2]|0)+(f<<3)>>2]=b;break}}while(0);i=h;return d|0}function rr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[d+4>>2]|0)!=0?(f=jr(c[a>>2]|0,95,d,e)|0,(f|0)!=0):0){c[f+12>>2]=b;b=f+4|0;c[b>>2]=c[b>>2]|4352;b=f}return b|0}function sr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[a>>2]|0;d=jr(e,153,d,1)|0;if(!d){Jk(e,b);d=0}else{c[d+20>>2]=b;ur(a,d)}return d|0}function tr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[b>>2]|0;if((d|0)!=0&(e|0)!=0?(a[d>>0]|0)==101:0){a[e>>0]=f;f=e+16|0;Ck(b,c[f>>2]|0);c[f>>2]=0}return}function ur(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if((c[a+64>>2]|0)==0?(Et(b),d=c[(c[a>>2]|0)+100>>2]|0,(d|0)<(c[b+24>>2]|0)):0){c[e>>2]=d;ph(a,27152,e)}i=f;return}function vr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[a>>2]|0;i=d+20|0;e=c[i>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[g>>2]|0;do if(c[e+(f<<4)+4>>2]|0){if(!h?($c(b,c[e+(f<<4)>>2]|0)|0)!=0:0)break;wr(a,f);d=c[i>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function wr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[a+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[a>>2]|0;e=1<<b;if((d&e|0)==0?(g=c[f>>2]|0,c[a>>2]=d|e,c[f+(b<<2)+336>>2]=c[c[(c[g+16>>2]|0)+(b<<4)+12>>2]>>2],(b|0)==1):0)Wk(f)|0;return}function xr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+128|0;if((i|0)>=(j|0))ba();f=o+8|0;n=o;m=o+24|0;c[n>>2]=0;k=c[b>>2]|0;if((c[b+64>>2]|0)==0?(c[f>>2]=e,l=Sk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[d>>0]=(a[d>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[f>>0]=a[g>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(h|0));Hh(b,l,n)|0;ig(k,c[n>>2]|0);ig(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[f>>0]=a[g>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[d>>0]=(a[d>>0]|0)+-1<<24>>24}i=o;return}function yr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))ba();g=k;h=k+16|0;b=c[(c[(c[a>>2]|0)+16>>2]|0)+(b<<4)>>2]|0;f=1;do{c[g>>2]=f;Yc(24,h,33272,g)|0;if(Wh(c[a>>2]|0,h,b)|0){c[g>>2]=b;c[g+4>>2]=h;c[g+8>>2]=d;c[g+12>>2]=e;xr(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function zr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[e>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[f>>2]|0)+1|0;c[f>>2]=e}else{f=f+-1<<24>>24;a[e>>0]=f;e=c[b+((f&255)<<2)+24>>2]|0}f=c[b+8>>2]|0;sh(f,25,(c[c[(c[(c[b>>2]|0)+16>>2]|0)+(d<<4)+12>>2]>>2]|0)+1|0,e,0)|0;sh(f,52,d,1,e)|0;Wr(b,e);return}function Ar(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))ba();k=l;h=Kq(b)|0;f=b+19|0;g=a[f>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[g>>2]|0)+1|0;c[g>>2]=f}else{g=g+-1<<24>>24;a[f>>0]=g;f=c[b+((g&255)<<2)+24>>2]|0}sh(h,117,d,f,e)|0;g=c[b+408>>2]|0;a[((g|0)==0?b:g)+21>>0]=1;c[k>>2]=c[(c[(c[b>>2]|0)+16>>2]|0)+(e<<4)>>2];c[k+4>>2]=(e|0)==1?13184:13208;c[k+8>>2]=d;c[k+12>>2]=f;c[k+16>>2]=f;xr(b,33216,k);Wr(b,f);i=l;return}function Br(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0;U=i;i=i+96|0;if((i|0)>=(j|0))ba();D=U+24|0;t=U+80|0;n=U+64|0;x=U+16|0;q=U+60|0;r=U+56|0;L=U+52|0;K=U+48|0;w=U+44|0;A=U+40|0;B=U+36|0;C=U+32|0;u=U+8|0;p=U;T=c[f>>2]|0;Q=Kq(f)|0;do if((Q|0)!=0?(P=Q+88|0,b[P>>1]=b[P>>1]|16,P=f+72|0,c[P>>2]=2,N=ar(f,g,h,t)|0,(N|0)>=0):0){O=T+16|0;z=c[O>>2]|0;if((N|0)==1?(Wk(f)|0)!=0:0)break;S=Sq(T,c[t>>2]|0)|0;if(S){if(!l)R=Sq(T,k)|0;else{c[D>>2]=k;R=qh(T,30104,D)|0}y=h+4|0;if(!(c[y>>2]|0))I=0;else I=c[z+(N<<4)>>2]|0;a:do if(!(Oq(f,19,S,R,I)|0)){c[n>>2]=0;c[n+4>>2]=S;c[n+8>>2]=R;c[n+12>>2]=0;o=T+452|0;c[o>>2]=0;g=_f(T,I,14,n)|0;if(!g){k=c[n>>2]|0;if(!k)break;m=(c[P>>2]|0)+1|0;c[P>>2]=m;th(Q,sh(Q,97,0,m,0)|0,k,0);eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30112,-1,1,0)|0;sh(Q,35,m,1,0)|0;Sc(c[n>>2]|0);break}else if((g|0)==12){t=0;n=56;b:while(1){while(1){l=(t+n|0)/2|0;g=c[30120+(l*12|0)>>2]|0;k=$c(S,g)|0;if(!k){t=l;break b}if((k|0)<0){g=l;break}if((l|0)<(n|0))t=l+1|0;else break a}g=g+-1|0;if((t|0)>(g|0))break a;else n=g}if((a[30125+(t*12|0)>>0]&1)!=0?(Cn(f)|0)!=0:0)break;do switch(d[30124+(t*12|0)>>0]|0){case 25:{l=c[z+(N<<4)+4>>2]|0;if(R){m=(ei(R,1,0)|0)<<24>>24!=0&1;if((c[y>>2]|0)==0?(v=T+20|0,(c[v>>2]|0)>0):0){k=0;do{oo(c[(c[O>>2]|0)+(k<<4)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[v>>2]|0))}}else m=-1;D=oo(l,m)|0;Ft(f,30880,D,((D|0)<0)<<31>>31);break a}case 22:{wr(f,N);k=(c[P>>2]|0)+1|0;c[P>>2]=k;if((a[S>>0]&-33)<<24>>24==80)sh(Q,153,N,k,0)|0;else{c[D>>2]=0;if(R){zn(R,D)|0;m=c[D>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;sh(Q,154,N,k,m)|0}sh(Q,35,k,1,0)|0;eq(Q,1);if(a[(c[Q>>2]|0)+65>>0]|0)break a;Tg(c[Q+16>>2]|0,S,-1,1,-1)|0;break a}case 30:{if(!R)break a;h=Wh(T,R,I)|0;if(!h)break a;k=c[h+8>>2]|0;c:do if(!k)k=0;else while(1){if((a[k+51>>0]&3)==2)break c;k=c[k+20>>2]|0;if(!k){k=0;break}}while(0);eq(Q,6);c[P>>2]=6;wr(f,N);do if((((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31176,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0){Tg((c[Q+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[(c[Q>>2]|0)+65>>0]|0)break;Tg((c[Q+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[(c[Q>>2]|0)+65>>0]|0)break;Tg((c[Q+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);dr(f,h)|0;q=h+38|0;m=b[q>>1]|0;if(m<<16>>16<=0)break a;r=(k|0)==0;l=k+4|0;t=0;o=0;g=c[h+4>>2]|0;while(1){p=g+23|0;if(!(a[p>>0]&2)){sh(Q,25,t-o|0,1,0)|0;n=c[g>>2]|0;th(Q,sh(Q,97,0,2,0)|0,n,0);n=c[g+12>>2]|0;th(Q,sh(Q,97,0,3,0)|0,(n|0)==0?10360:n,0);sh(Q,25,(a[g+20>>0]|0)!=0&1,4,0)|0;n=c[g+8>>2]|0;if(!n)sh(Q,28,0,5,0)|0;else th(Q,sh(Q,97,0,5,0)|0,n,0);k=a[p>>0]&1;d:do if(k<<24>>24==0|r)n=(k^1)&255^1;else{n=b[q>>1]|0;if(n<<16>>16<1){n=1;break}m=c[l>>2]|0;p=n<<16>>16;k=1;while(1){n=k+1|0;if((b[m+(k+-1<<1)>>1]|0)==(t|0)){n=k;break d}if((k|0)<(p|0))k=n;else break}}while(0);sh(Q,25,n,6,0)|0;sh(Q,35,1,6,0)|0;m=b[q>>1]|0}else o=o+1|0;t=t+1|0;if((t|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 29:{if(!R){D=(d[z+(N<<4)+8>>0]|0)+-1|0;Ft(f,31104,D,((D|0)<0)<<31>>31);break a}if(!(a[T+63>>0]|0)){ph(f,31120,D);break a}else{a[z+(N<<4)+8>>0]=((ei(R,0,1)|0)&255)+1;Ht(T);break a}}case 21:{do if(R){if($c(R,30904)|0)if(!($c(R,30896)|0))k=0;else{M=66;break}else k=1;if(!(c[y>>2]|0)){p=c[T+20>>2]|0;if((p|0)>2){n=c[O>>2]|0;m=k&255;o=2;do{l=c[c[(c[n+(o<<4)+4>>2]|0)+4>>2]>>2]|0;do if(!(a[l+12>>0]|0)){D=c[l+208>>2]|0;if((D|0)!=0?(a[D+43>>0]|0)==2:0)break;a[l+4>>0]=m}while(0);o=o+1|0}while((o|0)<(p|0))}else m=k&255;a[T+66>>0]=m;M=74}else M=74}else M=66;while(0);if((M|0)==66)if(!(c[y>>2]|0))l=T+66|0;else{k=-1;M=74}if((M|0)==74){m=c[c[(c[z+(N<<4)+4>>2]|0)+4>>2]>>2]|0;do if((k|0)>-1?(a[m+12>>0]|0)==0:0){D=c[m+208>>2]|0;if((D|0)!=0?(a[D+43>>0]|0)==2:0)break;a[m+4>>0]=k}while(0);l=m+4|0}l=(a[l>>0]|0)==1?30904:30896;eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30920,-1,1,0)|0;th(Q,sh(Q,97,0,1,0)|0,l,0);sh(Q,35,1,1,0)|0;break a}case 19:{k=c[c[(c[z+(N<<4)+4>>2]|0)+4>>2]>>2]|0;D=x;c[D>>2]=-2;c[D+4>>2]=-1;if(R){fi(R,x)|0;m=x;l=c[m>>2]|0;m=c[m+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=x;c[l>>2]=-1;c[l+4>>2]=-1;l=-1;m=-1}D=k+160|0;c[D>>2]=l;c[D+4>>2]=m;k=c[k+208>>2]|0;if(k){D=k+16|0;c[D>>2]=l;c[D+4>>2]=m}}else{m=k+160|0;l=c[m>>2]|0;m=c[m+4>>2]|0}D=x;c[D>>2]=l;c[D+4>>2]=m;Ft(f,30952,l,m);break a}case 2:{if(!R){Ft(f,g,(c[30128+(t*12|0)>>2]&c[T+24>>2]|0)!=0&1,0);break a}l=c[30128+(t*12|0)>>2]|0;l=(a[T+63>>0]|0)==0?l&-524289:l;if(!((ei(R,1,0)|0)<<24>>24)){D=T+24|0;c[D>>2]=c[D>>2]&~l;if((l|0)==16777216){D=T+512|0;c[D>>2]=0;c[D+4>>2]=0}}else{D=T+24|0;c[D>>2]=c[D>>2]|l}sh(Q,144,0,0,0)|0;Ht(T);break a}case 28:{n=Kq(f)|0;eq(n,4);c[P>>2]=4;wr(f,N);if((((a[(c[n>>2]|0)+65>>0]|0)==0?(Tg(c[n+16>>2]|0,31232,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)?(Tg((c[n+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)?(Tg((c[n+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[(c[n>>2]|0)+65>>0]|0)==0):0)Tg((c[n+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[(c[z+(N<<4)+12>>2]|0)+16>>2]|0;if(!l)break a;do{m=c[l+8>>2]|0;D=c[m>>2]|0;th(n,sh(n,97,0,1,0)|0,D,0);sh(n,28,0,2,0)|0;D=Ss(b[m+42>>1]|0)|0;sh(n,25,D,3,0)|0;D=Ss(b[m+28>>1]|0)|0;sh(n,25,D,4,0)|0;sh(n,35,1,4,0)|0;m=c[m+8>>2]|0;if(m)do{D=c[m>>2]|0;th(n,sh(n,97,0,2,0)|0,D,0);D=Ss(b[m+44>>1]|0)|0;sh(n,25,D,3,0)|0;D=Ss(b[c[m+8>>2]>>1]|0)|0;sh(n,25,D,4,0)|0;sh(n,35,1,4,0)|0;m=c[m+20>>2]|0}while((m|0)!=0);l=c[l>>2]|0}while((l|0)!=0);break}case 15:{if(!R)break a;p=Zp(T,R,I)|0;if(!p)break a;t=(c[30128+(t*12|0)>>2]|0)==0;q=p+46|0;D=t?3:6;o=b[(t?q:p+48|0)>>1]|0;r=o&65535;c[P>>2]=D;n=c[p+12>>2]|0;eq(Q,D);wr(f,N);if(((a[(c[Q>>2]|0)+65>>0]|0)==0?(Tg(c[Q+16>>2]|0,31256,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!t?(a[(c[Q>>2]|0)+65>>0]|0)==0:0)?(Tg((c[Q+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)?(Tg((c[Q+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[(c[Q>>2]|0)+65>>0]|0)==0):0)Tg((c[Q+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(o<<16>>16))break a;m=p+4|0;l=p+28|0;k=p+32|0;p=n+4|0;n=0;do{D=b[(c[m>>2]|0)+(n<<1)>>1]|0;sh(Q,25,n,1,0)|0;o=D<<16>>16;sh(Q,25,o,2,0)|0;if(D<<16>>16<0)sh(Q,28,0,3,0)|0;else{D=c[(c[p>>2]|0)+(o*24|0)>>2]|0;th(Q,sh(Q,97,0,3,0)|0,D,0)}if(!t){sh(Q,25,d[(c[l>>2]|0)+n>>0]|0,4,0)|0;D=c[(c[k>>2]|0)+(n<<2)>>2]|0;th(Q,sh(Q,97,0,5,0)|0,D,0);sh(Q,25,(n|0)<(e[q>>1]|0)&1,6,0)|0}sh(Q,35,1,c[P>>2]|0,0)|0;n=n+1|0}while((n|0)<(r|0));break}case 5:{if(!R)break a;D=(ei(R,1,0)|0)<<24>>24!=0;C=D?32e3:19240;Mh(T,19248,2,1,C,40,0,0,0)|0;Mh(T,19248,3,1,C,40,0,0,0)|0;Mh(T,19232,2,1,10352,40,0,0,0)|0;Kt(T,19232,12);Ktkt