Lines Matching refs:Ar
6 0?(bi(e,h)|0)==27:0)?!((h|0)==0|i<<24>>24!=0):0)k=0;else{a[b+f>>0]=34;k=1;g=a[e>>0]|0;f=f+1|0}if(g<<24>>24){h=e;j=0;do{i=f+1|0;a[b+f>>0]=g;if((a[h>>0]|0)==34){a[b+i>>0]=34;f=f+2|0}else f=i;j=j+1|0;h=e+j|0;g=a[h>>0]|0}while(g<<24>>24!=0)}if(k){a[b+f>>0]=34;f=f+1|0}a[b+f>>0]=0;c[d>>2]=f;return}function ls(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=b+20|0;g=a[f>>0]|0;if(g<<24>>24==2?(c[e+4>>2]&1|0)!=0:0){a[f>>0]=0;f=2}else h=4;a:do if((h|0)==4)switch(d[e>>0]|0|0){case 135:if(g<<24>>24==5){a[e>>0]=101;f=0;break a}else if(g<<24>>24==4){a[f>>0]=0;f=2;break a}else{f=0;break a}case 153:{if((g&255)>3){f=0;break a}if(c[e+4>>2]&524288){f=0;break a}a[f>>0]=0;f=2;break a}case 156:case 155:case 154:case 27:{if(g<<24>>24==3?(c[e+28>>2]|0)==(c[b+24>>2]|0):0){f=0;break a}a[f>>0]=0;f=2;break a}default:{f=0;break a}}while(0);return f|0}function ms(b,c){b=b|0;c=c|0;a[b+20>>0]=0;return 2}function ns(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!b)b=0;else{d=nc[c[a>>2]&127](a,b)|0;do if((d|0)==0?(e=b+4|0,(c[e>>2]&16384|0)==0):0){if(ns(a,c[b+12>>2]|0)|0){b=2;break a}if(ns(a,c[b+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(c[e>>2]&2048))if(!(hu(a,c[b>>2]|0)|0))break;else{b=2;break a}else if(!(gu(a,c[b>>2]|0)|0))break;else{b=2;break a}}while(0);b=d&2}while(0);return b|0}function os(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;do if(e)if(!f)g=e;else{if((iu(e)|0)==0?(iu(f)|0)==0:0){g=ih(d,48,0)|0;if(g){h=g+0|0;i=h+48|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(i|0));a[g>>0]=72;b[g+34>>1]=-1;c[g+24>>2]=1}ps(d,g,e,f);break}Ck(d,e);Ck(d,f);g=jr(d,132,20616,0)|0}else g=f;while(0);return g|0}function ps(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if(!b){Ck(a,d);Ck(a,e)}else{if(e){c[b+16>>2]=e;a=b+4|0;c[a>>2]=c[a>>2]|c[e+4>>2]&2097408}if(d){c[b+12>>2]=d;a=b+4|0;c[a>>2]=c[a>>2]|c[d+4>>2]&2097408}Et(b)}return}function qs(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=d<<16>>16;j=(h<<2)+63&-8;k=h<<1;l=k+2|0;i=(h+7+k+l&-8)+j|0;g=i+e|0;e=ih(a,g,((g|0)<0)<<31>>31)|0;if(e){bw(e|0,0,g|0)|0;c[e+32>>2]=e+56;c[e+8>>2]=e+j;g=j+l|0;c[e+4>>2]=e+g;c[e+28>>2]=e+(g+k);b[e+48>>1]=d;b[e+46>>1]=h+65535;c[f>>2]=e+i}return e|0}function rs(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();t=z;p=c[d+12>>2]|0;o=b+68|0;w=c[o>>2]|0;y=w+1|0;c[o>>2]=w+2;n=c[b>>2]|0;l=c[d+24>>2]|0;a:do if(l){h=c[n+20>>2]|0;if((h|0)>0){g=c[n+16>>2]|0;m=0;while(1){k=m+1|0;if((c[g+(m<<4)+12>>2]|0)==(l|0)){k=m;break a}if((k|0)<(h|0))m=k;else break}}else k=0}else k=-1e6;while(0);if((Oq(b,27,c[d>>2]|0,0,c[(c[n+16>>2]|0)+(k<<4)>>2]|0)|0)==0?(cs(b,k,c[p+32>>2]|0,1,c[p>>2]|0),x=Kq(b)|0,(x|0)!=0):0){if((f|0)>-1)q=f;else q=c[d+40>>2]|0;u=ds(b,d)|0;v=c[o>>2]|0;c[o>>2]=v+1;s=d+46|0;h=e[s>>1]|0;if(u)c[u>>2]=(c[u>>2]|0)+1;th(x,sh(x,58,v,0,h)|0,u,-6);Mq(b,w,k,p,54);n=sh(x,108,w,0,0)|0;h=b+19|0;g=a[h>>0]|0;if(!(g<<24>>24)){p=b+72|0;r=(c[p>>2]|0)+1|0;c[p>>2]=r}else{r=g+-1<<24>>24;a[h>>0]=r;r=c[b+((r&255)<<2)+24>>2]|0}Lt(b,d,w,r,0,t,0,0)|0;sh(x,109,v,r,0)|0;Mt(b,c[t>>2]|0);sh(x,9,w,n+1|0,0)|0;p=x+32|0;m=c[p>>2]|0;if(m>>>0>n>>>0)c[(c[x+4>>2]|0)+(n*20|0)+8>>2]=m;l=x+24|0;c[(c[l>>2]|0)+88>>2]=m+-1;if((f|0)<0)sh(x,118,q,k,0)|0;th(x,sh(x,55,y,q,k)|0,u,-6);o=x+4|0;h=c[o>>2]|0;if(h)a[h+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=(f>>31)+4&252|1;n=sh(x,106,v,0,0)|0;h=c[p>>2]|0;if((a[d+50>>0]|0)!=0&(u|0)!=0){m=h+3|0;sh(x,16,0,m,0)|0;h=c[p>>2]|0;q=e[s>>1]|0;th(x,sh(x,99,v,m,r)|0,q,-14);ju(b,2,d)}sh(x,100,v,r,y)|0;sh(x,110,y,r,1)|0;g=c[o>>2]|0;if(g)a[g+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=16;Wr(b,r);sh(x,5,v,h,0)|0;g=c[p>>2]|0;if(g>>>0>n>>>0)c[(c[o>>2]|0)+(n*20|0)+8>>2]=g;c[(c[l>>2]|0)+88>>2]=g+-1;sh(x,61,w,0,0)|0;sh(x,61,y,0,0)|0;sh(x,61,v,0,0)|0}i=z;return}function ss(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r;p=c[e>>2]|0;if(!g){g=Un(p,f,h,0)|0;if(!g)n=4;else n=3}else n=3;if((n|0)==3)if(!(c[g+12>>2]|0))n=4;else n=14;if((n|0)==4){l=f&255;k=p+224|0;if(c[k>>2]|0){m=gh(p,h)|0;if(m){mc[c[k>>2]&15](c[p+232>>2]|0,p,l,m);ig(p,m);n=7}}else n=7;if((n|0)==7?(o=p+228|0,(c[o>>2]|0)!=0):0){k=ih(p,40,0)|0;if(!k)k=0;else{m=k+0|0;l=m+40|0;do{a[m>>0]=0;m=m+1|0}while((m|0)<(l|0));b[k+8>>1]=1;c[k+32>>2]=p;Tg(k,h,-1,1,0)|0}g=Og(k,2)|0;if(g)mc[c[o>>2]&15](c[p+232>>2]|0,p,d[p+62>>0]|0,g);Ih(k)}g=Un(p,f,h,0)|0;if(!g)n=19;else n=14}a:do if((n|0)==14)if(!(c[g+12>>2]|0)){l=c[g>>2]|0;m=0;while(1){k=Un(p,a[26816+m>>0]|0,l,0)|0;m=m+1|0;if(c[k+12>>2]|0)break;if((m|0)>=3){n=19;break a}}c[g+0>>2]=c[k+0>>2];c[g+4>>2]=c[k+4>>2];c[g+8>>2]=c[k+8>>2];c[g+12>>2]=c[k+12>>2];c[g+16>>2]=0}while(0);if((n|0)==19){c[q>>2]=h;ph(e,26784,q);g=0}i=r;return g|0}function ts(a){a=a|0;var b=0,d=0;a=c[a+24>>2]|0;d=a+108|0;b=c[d>>2]|0;c[d>>2]=b+1;if(!(b+-1&b)){d=a+112|0;a=Sl(c[a>>2]|0,c[d>>2]|0,b<<3|4,0)|0;c[d>>2]=a}else a=c[a+112>>2]|0;if(a)c[a+(b<<2)>>2]=-1;return ~b|0}function us(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;if(e){g=c[e>>2]|0;if((g|0)>0){h=(g*72|0)+8|0;g=h;h=((h|0)<0)<<31>>31}else{g=80;h=0}g=ih(d,g,h)|0;if(g){h=c[e>>2]|0;c[g+4>>2]=h;c[g>>2]=h;if((c[e>>2]|0)>0){h=g+8|0;j=0;do{c[h+(j*72|0)>>2]=c[e+(j*72|0)+8>>2];c[h+(j*72|0)+4>>2]=gh(d,c[e+(j*72|0)+12>>2]|0)|0;c[h+(j*72|0)+8>>2]=gh(d,c[e+(j*72|0)+16>>2]|0)|0;c[h+(j*72|0)+12>>2]=gh(d,c[e+(j*72|0)+20>>2]|0)|0;a[h+(j*72|0)+36>>0]=a[e+(j*72|0)+44>>0]|0;c[h+(j*72|0)+40>>2]=c[e+(j*72|0)+48>>2];c[h+(j*72|0)+24>>2]=c[e+(j*72|0)+32>>2];c[h+(j*72|0)+28>>2]=c[e+(j*72|0)+36>>2];k=e+(j*72|0)+45|0;i=h+(j*72|0)+37|0;l=a[i>>0]&-3|a[k>>0]&2;a[i>>0]=l;l=l&-5|a[k>>0]&4;a[i>>0]=l;a[i>>0]=l&-9|a[k>>0]&8;c[h+(j*72|0)+64>>2]=gh(d,c[e+(j*72|0)+72>>2]|0)|0;a[i>>0]=a[i>>0]&-2|a[k>>0]&1;c[h+(j*72|0)+68>>2]=c[e+(j*72|0)+76>>2];i=c[e+(j*72|0)+24>>2]|0;c[h+(j*72|0)+16>>2]=i;if(i){i=i+40|0;b[i>>1]=(b[i>>1]|0)+1<<16>>16}c[h+(j*72|0)+20>>2]=cr(d,c[e+(j*72|0)+28>>2]|0,f)|0;c[h+(j*72|0)+44>>2]=Ir(d,c[e+(j*72|0)+52>>2]|0,f,0)|0;c[h+(j*72|0)+48>>2]=Jr(d,c[e+(j*72|0)+56>>2]|0)|0;l=e+(j*72|0)+64|0;k=c[l+4>>2]|0;i=h+(j*72|0)+56|0;c[i>>2]=c[l>>2];c[i+4>>2]=k;j=j+1|0}while((j|0)<(c[e>>2]|0))}}else g=0}else g=0;return g|0}function vs(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,j=0,k=0;i=Kq(b)|0;if((e|0)==2){k=c[b+408>>2]|0;a[((k|0)==0?b:k)+21>>0]=1}th(i,sh(i,24,d,e,0)|0,f,g<<24>>24);if(h<<24>>24!=0?(j=c[i+4>>2]|0,(j|0)!=0):0)a[j+(((c[i+32>>2]|0)+-1|0)*20|0)+3>>0]=h;return}function ws(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(c[(c[b>>2]|0)+16>>2]|0)+28>>2]|0;do if(!(a[b+438>>0]|0)){h=c[d+68>>2]|0;if((e|0)!=(h|0)?(f=c[e+48>>2]|0,(f|0)!=0):0){g=d+64|0;e=0;while(1){b=c[f+8>>2]|0;if((c[b+24>>2]|0)==(h|0)?($c(c[b+4>>2]|0,c[d>>2]|0)|0)==0:0){if(!e)e=c[g>>2]|0;c[b+32>>2]=e}else b=e;f=c[f>>2]|0;if(!f)break;else e=b}if(b)break}b=c[d+64>>2]|0}else b=0;while(0);return b|0}function xs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=c[b+32>>2]|0;k=b+8|0;i=b+68|0;f=0;while(1){g=(f|0)==0;b=g|(j|0)<(f|0)?j:0;d=c[k>>2]|0;if(!d)h=b;else{do{e=c[d+40>>2]|0;b=(g|(e|0)<(f|0))&(e|0)>(b|0)?e:b;d=c[d+20>>2]|0}while((d|0)!=0);h=b}if(!h)break;b=c[a>>2]|0;f=c[i>>2]|0;a:do if(f){g=c[b+20>>2]|0;if((g|0)>0){d=c[b+16>>2]|0;e=0;while(1){b=e+1|0;if((c[d+(e<<4)+12>>2]|0)==(f|0)){b=e;break a}if((b|0)<(g|0))e=b;else break}}else b=0}else b=-1e6;while(0);Ar
11 function iq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0;ea=i;i=i+192|0;if((i|0)>=(j|0))ba();_=ea+48|0;Y=ea+24|0;X=ea+160|0;F=ea+156|0;P=ea+152|0;I=ea+148|0;S=ea+144|0;L=ea+140|0;E=ea+16|0;ca=ea;v=ea+128|0;u=ea+116|0;w=ea+96|0;l=ea+88|0;da=f+8|0;$=c[da>>2]|0;aa=c[f>>2]|0;c[ca+0>>2]=c[9286];c[ca+4>>2]=c[9287];c[ca+8>>2]=c[9288];a:do switch(g|0){case 5:{a[$+450>>0]=0;c[$+440>>2]=0;break}case 7:{a[$+450>>0]=2;c[$+440>>2]=0;break}case 6:{a[$+450>>0]=1;c[$+440>>2]=0;break}case 38:{_=c[f+(aa+-2<<4)+16>>2]|0;c[ca>>2]=_;c[ca+4>>2]=(c[$+504>>2]|0)-_+(c[$+508>>2]|0);break}case 39:{u=f+(aa<<4)+16|0;s=c[$>>2]|0;k=c[$+484>>2]|0;b:do if(k){t=k+38|0;if((b[t>>1]|0)>=(c[s+96>>2]|0)){c[_>>2]=c[k>>2];ph($,36528,_);break}r=Sq(s,u)|0;if(r){p=b[t>>1]|0;h=p<<16>>16;c:do if(p<<16>>16>0){q=a[9328+(d[r>>0]|0)>>0]|0;n=c[k+4>>2]|0;o=r+1|0;l=0;while(1){m=c[n+(l*24|0)>>2]|0;if(q<<24>>24==(a[9328+(d[m>>0]|0)>>0]|0)?($c(o,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break c}c[_>>2]=r;ph($,36552,_);ig(s,r);break b}else n=c[k+4>>2]|0;while(0);o=k+4|0;do if(!(h&7)){n=no(s,n,(h*24|0)+192|0,0)|0;if(!n){ig(s,r);break b}else{c[o>>2]=n;p=b[t>>1]|0;break}}while(0);_=p<<16>>16;Z=n+(_*24|0)|0;c[Z+0>>2]=0;c[Z+4>>2]=0;c[Z+8>>2]=0;c[Z+12>>2]=0;c[Z+16>>2]=0;c[Z+20>>2]=0;c[Z>>2]=r;a[n+(_*24|0)+21>>0]=65;a[n+(_*24|0)+22>>0]=1;b[t>>1]=(b[t>>1]|0)+1<<16>>16}}while(0);Y=u;Z=c[Y+4>>2]|0;_=ca;c[_>>2]=c[Y>>2];c[_+4>>2]=Z;c[$+324>>2]=0;break}case 22:{Pq($,0,f+(aa<<4)+16|0);break}case 23:{Pq($,1,f+(aa<<4)+16|0);break}case 8:{v=c[$>>2]|0;z=v+65|0;if(((a[z>>0]|0)==0?(a[$+18>>0]|0)==0:0)?(V=$+64|0,(c[V>>2]|0)==0):0){y=Kq($)|0;if(y){do{}while((Lq(y,61)|0)!=0);sh(y,24,0,0,0)|0;do if(!(a[z>>0]|0)){o=$+332|0;s=c[o>>2]|0;if((s|0)==0?(c[$+316>>2]|0)==0:0)break;p=y+32|0;q=c[p>>2]|0;if(q)c[(c[y+4>>2]|0)+8>>2]=q;c[(c[y+24>>2]|0)+88>>2]=q+-1;t=v+20|0;d:do if((c[t>>2]|0)>0){h=y+96|0;k=$+328|0;l=v+16|0;m=v+145|0;n=y+4|0;r=0;while(1){u=1<<r;if(((u&s|0)!=0?(c[h>>2]=c[h>>2]|u,_=c[(c[(c[l>>2]|0)+(r<<4)+12>>2]|0)+4>>2]|0,th(y,sh(y,4,r,(c[k>>2]&u|0)!=0&1,c[$+(r<<2)+336>>2]|0)|0,_,-14),(a[m>>0]|0)==0):0)?(K=c[n>>2]|0,(K|0)!=0):0)a[K+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=1;r=r+1|0;if((r|0)>=(c[t>>2]|0))break d;s=c[o>>2]|0}}while(0);p=$+452|0;if((c[p>>2]|0)>0){o=$+520|0;n=0;do{q=c[(c[(c[o>>2]|0)+(n<<2)>>2]|0)+60>>2]|0;e:do if(!q)q=0;else while(1){if((c[q>>2]|0)==(v|0))break e;q=c[q+24>>2]|0;if(!q){q=0;break}}while(0);th(y,sh(y,146,0,0,0)|0,q,-10);n=n+1|0}while((n|0)<(c[p>>2]|0))}c[p>>2]=0;p=Kq($)|0;o=$+396|0;if((c[o>>2]|0)>0){n=$+400|0;m=0;do{Y=c[n>>2]|0;_=c[Y+(m<<4)+12>>2]|0;th(p,sh(p,145,c[Y+(m<<4)>>2]|0,c[Y+(m<<4)+4>>2]|0,d[Y+(m<<4)+8>>0]|0)|0,_,-2);m=m+1|0}while((m|0)<(c[o>>2]|0))}k=c[$+8>>2]|0;q=c[$+404>>2]|0;if(q){h=(c[$>>2]|0)+16|0;r=k+32|0;s=k+4|0;do{o=c[q+8>>2]|0;p=c[q+12>>2]|0;Mq($,0,o,c[(c[(c[h>>2]|0)+(o<<4)+12>>2]|0)+72>>2]|0,54);o=p+1|0;sh(k,28,0,p,o)|0;n=c[r>>2]|0;l=p+-1|0;m=c[c[q+4>>2]>>2]|0;th(k,sh(k,97,0,l,0)|0,m,0);m=n+9|0;sh(k,108,0,m,0)|0;sh(k,47,0,0,p)|0;sh(k,78,l,n+7|0,p)|0;l=c[s>>2]|0;if(l)a[l+(((c[r>>2]|0)+-1|0)*20|0)+3>>0]=16;sh(k,103,0,o,0)|0;sh(k,47,0,1,p)|0;sh(k,16,0,m,0)|0;sh(k,9,0,n+2|0,0)|0;sh(k,25,0,p,0)|0;sh(k,61,0,0,0)|0;q=c[q>>2]|0}while((q|0)!=0)}p=c[$+316>>2]|0;if((p|0)!=0?(a[$+23>>0]=0,(c[p>>2]|0)>0):0){o=p+4|0;n=0;do{_=c[o>>2]|0;Nq($,c[_+(n*20|0)>>2]|0,c[_+(n*20|0)+16>>2]|0);n=n+1|0}while((n|0)<(c[p>>2]|0))}sh(y,16,0,1,0)|0}while(0);if((c[V>>2]|0)==0?(a[z>>0]|0)==0:0){if((c[$+404>>2]|0)!=0?(W=$+68|0,(c[W>>2]|0)==0):0)c[W>>2]=1;wh(y,$);c[$+12>>2]=101;a[$+16>>0]=0}else Z=48}else Z=48;if((Z|0)==48)c[$+12>>2]=1;c[$+68>>2]=0;c[$+72>>2]=0;c[$+76>>2]=0;c[$+440>>2]=0;c[$+332>>2]=0}break}case 58:{c[v>>2]=Vq($,157,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[v+4>>2]=c[f+(aa+-1<<4)+16>>2];c[v+8>>2]=c[f+(aa<<4)+24>>2];Uq($,v);break}case 59:{_=f+(aa<<4)+16|0;c[u>>2]=Vq($,97,0,0,_)|0;_=c[_>>2]|0;c[u+4>>2]=_;c[u+8>>2]=_+(c[f+(aa<<4)+20>>2]|0);Uq($,u);break}case 61:{k=c[f+(aa<<4)+16>>2]|0;l=c[$+484>>2]|0;if((l|0)!=0?(s=b[l+38>>1]|0,s<<16>>16>=1):0)a[(c[l+4>>2]|0)+(((s<<16>>16)+-1|0)*24|0)+20>>0]=k;break}case 70:{c[ca>>2]=0;break}case 62:{Wq($,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0);break}case 63:{Xq($,0,0,0,0,c[f+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 64:{Yq($,c[f+(aa+-1<<4)+16>>2]|0);break}case 9:{l=c[f+(aa+-1<<4)+16>>2]|0;k=c[$>>2]|0;if((Oq($,22,37104,0,0)|0)==0?(B=Kq($)|0,(B|0)!=0):0){if((l|0)!=7?(D=k+20|0,(c[D>>2]|0)>0):0){l=(l|0)==9?2:1;k=B+96|0;n=0;do{sh(B,4,n,l,0)|0;c[k>>2]=c[k>>2]|1<<n;n=n+1|0}while((n|0)<(c[D>>2]|0))}sh(B,3,0,0,0)|0}break}case 24:{Pq($,2,f+(aa<<4)+16|0);break}case 26:{Qq($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,0,0,c[f+(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:{c[ca>>2]=0;break}case 27:{a[(c[$>>2]|0)+250>>0]=0;Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[ca>>2]=1;break}case 32:{Rq($,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0,a[f+(aa<<4)+16>>0]|0,0);break}case 33:{_=f+(aa<<4)+16|0;Rq($,0,0,0,c[_>>2]|0);Ik(c[$>>2]|0,c[_>>2]|0,1);break}case 34:{a[ca>>0]=0;break}case 35:{l=c[f+(aa<<4)+20>>2]|0;k=c[f+(aa<<4)+16>>2]|0;if((l|0)==5?(Bc(k,20456,5)|0)==0:0){a[ca>>0]=32;break a}a[ca>>0]=0;c[_>>2]=l;c[_+4>>2]=k;ph($,20464,_);break}case 44:{l=f+(aa<<4)+16|0;k=c[$+484>>2]|0;if((k|0)!=0?(G=b[k+38>>1]|0,G<<16>>16>=1):0){_=(G<<16>>16)+-1|0;Z=c[k+4>>2]|0;$=Sq(c[$>>2]|0,l)|0;c[Z+(_*24|0)+12>>2]=$;a[Z+(_*24|0)+21>>0]=Tq($,Z+(_*24|0)+22|0)|0}break}case 65:{Zq($,0,f+(aa+-2<<4)+16|0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 66:{k=c[f+(aa<<4)+16>>2]|0;l=c[$+484>>2]|0;if((l|0)!=0?(r=c[l+16>>2]|0,(r|0)!=0):0)a[r+24>>0]=k;break}case 67:{n=c[$+484>>2]|0;if((n|0)!=0?(A=(b[n+38>>1]|0)+-1|0,o=c[$>>2]|0,m=Sq(o,f+(aa<<4)+16|0)|0,(m|0)!=0):0){if(!(_q($,m)|0)){ig(o,m);break a}p=n+4|0;ig(o,c[(c[p>>2]|0)+(A*24|0)+16>>2]|0);c[(c[p>>2]|0)+(A*24|0)+16>>2]=m;l=c[n+8>>2]|0;if(l)do{if((b[c[l+4>>2]>>1]|0)==(A|0))c[c[l+32>>2]>>2]=c[(c[p>>2]|0)+(A*24|0)+16>>2];l=c[l+20>>2]|0}while((l|0)!=0)}break}case 47:{$=c[f+(aa+-5<<4)+16>>2]|0;c[ca>>2]=$;c[ca+4>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-$;break}case 49:{$=c[f+(aa+-1<<4)+16>>2]|0;c[ca>>2]=$;c[ca+4>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-$;break}case 92:case 54:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=$+320|0;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 57:case 55:{Uq($,f+(aa<<4)+16|0);break}case 56:{Uq($,f+(aa+-1<<4)+16|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=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;break}case 46:{$=c[f+(aa+-3<<4)+16>>2]|0;c[ca>>2]=$;c[ca+4>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0)-$;break}case 224:{h=Vq($,119,0,0,0)|0;c[ca>>2]=h;if(!h)Ik(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,1);else{c[h+20>>2]=c[f+(aa+-1<<4)+16>>2];_=c[ca>>2]|0;Z=_+4|0;c[Z>>2]=c[Z>>2]|2099200;ur($,_)}c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 226:{l=aa+-1|0;k=f+(l<<4)+16|0;o=f+(aa<<4)+16|0;n=lr(c[$>>2]|0,0,k,o)|0;p=aa+-3|0;m=Vq($,75,c[f+(p<<4)+16>>2]|0,0,0)|0;c[ca>>2]=m;if(!m){zo(c[$>>2]|0,n);n=0}else{c[m+20>>2]=gr($,0,n,0,0,0,0,0,0,0)|0;n=c[ca>>2]|0;_=n+4|0;c[_>>2]=c[_>>2]|2099200;ur($,n)}if(c[f+(aa+-2<<4)+16>>2]|0)c[ca>>2]=Vq($,19,n,0,0)|0;c[ca+4>>2]=c[f+(p<<4)+20>>2];h=c[o>>2]|0;if(!h)h=(c[k>>2]|0)+(c[f+(l<<4)+20>>2]|0)|0;else h=h+(c[f+(aa<<4)+20>>2]|0)|0;c[ca+8>>2]=h;break}case 225:{l=aa+-4|0;h=Vq($,75,c[f+(l<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h){Ik(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,1);h=0}else{c[h+20>>2]=c[f+(aa+-1<<4)+16>>2];h=c[ca>>2]|0;_=h+4|0;c[_>>2]=c[_>>2]|2099200;ur($,h)}if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,h,0,0)|0;c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 227:{h=Vq($,20,0,0,0)|0;c[ca>>2]=h;if(!h)Ik(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,1);else{c[h+20>>2]=c[f+(aa+-1<<4)+16>>2];_=h+4|0;c[_>>2]=c[_>>2]|2099200;ur($,h)}c[ca+4>>2]=c[f+(aa+-3<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 228:{k=Vq($,136,c[f+(aa+-3<<4)+16>>2]|0,0,0)|0;c[ca>>2]=k;if(!k){Jk(c[$>>2]|0,c[f+(aa+-2<<4)+16>>2]|0);Ck(c[$>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)}else{l=c[f+(aa+-1<<4)+16>>2]|0;h=c[f+(aa+-2<<4)+16>>2]|0;if(l)h=hr($,h,l)|0;c[k+20>>2]=h;ur($,c[ca>>2]|0)}c[ca+4>>2]=c[f+(aa+-4<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 291:case 240:{c[ca>>2]=2;break}case 241:{c[ca>>2]=0;break}case 239:{Xq($,f+(aa+-7<<4)+16|0,f+(aa+-6<<4)+16|0,lr(c[$>>2]|0,0,f+(aa+-4<<4)+16|0,0)|0,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa+-10<<4)+16>>2]|0,f+(aa+-11<<4)+16|0,c[f+(aa<<4)+16>>2]|0,0,c[f+(aa+-8<<4)+16>>2]|0)|0;break}case 229:{c[ca>>2]=hr($,hr($,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 230:{c[ca>>2]=hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 237:{c[ca>>2]=hr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 238:{c[ca>>2]=hr($,0,c[f+(aa<<4)+16>>2]|0)|0;break}case 245:{h=hr($,0,rr($,0,f+(aa+-1<<4)+16|0,1)|0)|0;c[ca>>2]=h;ir($,h,f+(aa+-2<<4)+16|0,1);if(h){if((c[h>>2]|0)>(c[(c[$>>2]|0)+96>>2]|0)){c[_>>2]=20632;ph($,34544,_)}a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2]}break}case 244:{h=rr($,0,f+(aa+-1<<4)+16|0,1)|0;h=hr($,c[f+(aa+-4<<4)+16>>2]|0,h)|0;c[ca>>2]=h;ir($,h,f+(aa+-2<<4)+16|0,1);if(h){if((c[h>>2]|0)>(c[(c[$>>2]|0)+96>>2]|0)){c[_>>2]=20632;ph($,34544,_)}a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2]}break}case 248:{s=c[f+(aa<<4)+16>>2]|0;p=c[f+(aa+-1<<4)+16>>2]|0;r=c[$>>2]|0;do if((a[r+65>>0]|0)==0?(Cn($)|0)==0:0){o=s+12|0;k=Zp(r,c[s+16>>2]|0,c[o>>2]|0)|0;if(!k){if(!p){c[_>>2]=s;c[_+4>>2]=0;ph($,33056,_)}else vr($,c[o>>2]|0);a[$+17>>0]=1;break}if(a[k+51>>0]&3){c[_>>2]=0;ph($,33080,_);break}p=c[k+24>>2]|0;f:do if(p){o=c[r+20>>2]|0;if((o|0)>0){n=c[r+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0)){m=q;break f}if((m|0)<(o|0))q=m;else break}}else m=0}else m=-1e6;while(0);p=c[k+12>>2]|0;o=r+16|0;n=c[(c[o>>2]|0)+(m<<4)>>2]|0;l=(m|0)==1?13184:13208;if(((Oq($,9,l,0,n)|0)==0?(Oq($,(m|0)==0?10:12,c[k>>2]|0,c[p>>2]|0,n)|0)==0:0)?(H=Kq($)|0,(H|0)!=0):0){Z=c[$+408>>2]|0;Z=(Z|0)==0?$:Z;wr($,m);Y=Z+328|0;c[Y>>2]=c[Y>>2]|1<<m;Z=Z+20|0;a[Z>>0]=d[Z>>0]|1;Z=c[k>>2]|0;c[_>>2]=c[(c[o>>2]|0)+(m<<4)>>2];c[_+4>>2]=l;c[_+8>>2]=Z;xr($,33160,_);yr($,m,28536,c[k>>2]|0);zr($,m);Ar($,c[k+40>>2]|0,m);$=c[k>>2]|0;th(H,sh(H,125,m,0,0)|0,$,0)}}while(0);zo(r,s);break}case 246:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 250:case 249:{h=Kq($)|0;if(h){sh(h,13,0,0,0)|0;$=h+96|0;c[$>>2]=c[$>>2]|1}break}case 251:{Br($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0,0,0);break}case 252:{Br($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa<<4)+16|0,0);break}case 253:{Br($,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,f+(aa+-1<<4)+16|0,0);break}case 254:{Br($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa<<4)+16|0,1);break}case 255:{Br($,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,f+(aa+-1<<4)+16|0,1);break}case 264:{h=c[f+(aa+-3<<4)+16>>2]|0;l=(c[f+(aa<<4)+16>>2]|0)-h+(c[f+(aa<<4)+20>>2]|0)|0;k=c[f+(aa+-1<<4)+16>>2]|0;Z=$+488|0;w=c[Z>>2]|0;x=c[$>>2]|0;c[Z>>2]=0;g:do if((c[$+64>>2]|0)==0&(w|0)!=0){v=c[w>>2]|0;m=w+20|0;s=c[m>>2]|0;h:do if(s){r=c[x+20>>2]|0;if((r|0)>0){p=c[x+16>>2]|0;n=0;while(1){o=n+1|0;if((c[p+(n<<4)+12>>2]|0)==(s|0))break h;if((o|0)<(r|0))n=o;else{n=o;break}}}else n=0}else n=-1e6;while(0);c[w+28>>2]=k;u=(k|0)==0;if(!u){p=k;do{c[p+4>>2]=w;p=c[p+32>>2]|0}while((p|0)!=0)}c[X>>2]=v;if(!v)p=0;else{p=v;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;p=p-v&1073741823}c[X+4>>2]=p;c[Y>>2]=$;t=x+16|0;s=c[t>>2]|0;c[Y+12>>2]=c[s+(n<<4)>>2];c[Y+4>>2]=c[s+(n<<4)+12>>2];c[Y+16>>2]=10720;c[Y+20>>2]=X;s=(n|0)==1;c[Y+8>>2]=s&1;if(!u)do{if(br(Y,c[k+8>>2]|0)|0){k=0;l=w;break g}if(Cr(Y,c[k+20>>2]|0)|0){k=0;l=w;break g}if(Dr(Y,c[k+24>>2]|0)|0){k=0;l=w;break g}k=c[k+32>>2]|0}while((k|0)!=0);if(!(Cr(Y,c[w+12>>2]|0)|0)){p=x+145|0;if(!(a[p>>0]|0)){o=Kq($)|0;if(!o){k=0;l=w;break}Z=c[$+408>>2]|0;wr($,n);Z=((Z|0)==0?$:Z)+328|0;c[Z>>2]=c[Z>>2]|1<<n;if((h|0)!=0?(q=fw(l|0,0,1,0)|0,q=ih(x,q,C)|0,(q|0)!=0):0){gw(q|0,h|0,l|0)|0;a[q+l>>0]=0}else q=0;Z=c[w+4>>2]|0;c[_>>2]=c[(c[t>>2]|0)+(n<<4)>>2];c[_+4>>2]=s?13184:13208;c[_+8>>2]=v;c[_+12>>2]=Z;c[_+16>>2]=q;xr($,30008,_);ig(x,q);zr($,n);c[_>>2]=v;Er(o,n,qh(x,30072,_)|0);if(!(a[p>>0]|0)){k=0;l=w;break}}l=Ek((c[(c[t>>2]|0)+(n<<4)+12>>2]|0)+40|0,v,w)|0;if(l){a[x+65>>0]=1;k=0;break}k=c[m>>2]|0;if((k|0)==(c[w+24>>2]|0)){k=Zm(k+8|0,c[w+4>>2]|0,_)|0;if(!k)k=0;else k=c[k+8>>2]|0;k=k+64|0;c[w+32>>2]=c[k>>2];c[k>>2]=w;k=0}else k=0}else{k=0;l=w}}else l=w;while(0);fg(x,l);Bk(x,k);break}case 265:{A=f+(aa+-7<<4)+16|0;z=aa+-6|0;B=f+(z<<4)+16|0;o=c[f+(aa+-5<<4)+16>>2]|0;D=aa+-4|0;y=c[f+(D<<4)+16>>2]|0;D=c[f+(D<<4)+20>>2]|0;E=c[f+(aa+-2<<4)+16>>2]|0;F=c[f+(aa<<4)+16>>2]|0;k=c[f+(aa+-8<<4)+16>>2]|0;G=c[$>>2]|0;w=(c[f+(aa+-10<<4)+16>>2]|0)!=0;do if(w)if(!(c[f+(z<<4)+20>>2]|0)){c[Y>>2]=A;if(!E){p=0;q=0;break}else{s=1;Z=483;break}}else{ph($,29664,_);p=0;q=0;break}else{s=ararar(e,f,g,p)|0;a:do if((f|0)>=0){q=(h|0)!=0;if(q?(c[g+4>>2]|0)!=0&(f|0)!=1:0){ph(e,36976,r);break}t=q?1:f;g=c[p>>2]|0;q=g;f=c[q+4>>2]|0;p=e+496|0;c[p>>2]=c[q>>2];c[p+4>>2]=f;p=Sq(u,g)|0;if(p){b:do if((Hr(e,p)|0)==0?(o=(a[u+144>>0]|0)==1?1:h,s=u+16|0,n=c[(c[s>>2]|0)+(t<<4)>>2]|0,(Oq(e,18,(o|0)==1?13184:13208,0,n)|0)==0):0){h=(o|0)!=0;if(!k)f=h?4:2;else f=h?6:8;q=(l|0)!=0;if(!q?(Oq(e,f,p,0,n)|0)!=0:0)break;do if(!(a[e+451>>0]|0)){h=c[(c[s>>2]|0)+(t<<4)>>2]|0;if(Cn(e)|0)break b;if(!(Wh(u,p,h)|0)){if(!(Zp(u,p,h)|0))break;c[r>>2]=p;ph(e,37048,r);break b}if(!m){c[r>>2]=g;ph(e,37024,r);break b}else{wr(e,t);break b}}while(0);o=ih(u,76,0)|0;if(!o){a[u+65>>0]=1;c[e+12>>2]=7;s=e+64|0;c[s>>2]=(c[s>>2]|0)+1;break}n=o+0|0;h=n+76|0;do{a[n>>0]=0;n=n+1|0}while((n|0)<(h|0));c[o>>2]=p;b[o+36>>1]=-1;n=c[(c[s>>2]|0)+(t<<4)+12>>2]|0;c[o+68>>2]=n;b[o+40>>1]=1;b[o+28>>1]=200;c[e+484>>2]=o;if((a[e+18>>0]|0)==0?(Wv(p,26576)|0)==0:0)c[n+72>>2]=o;if(a[u+145>>0]|0)break a;g=Kq(e)|0;if(!g)break a;s=c[e+408>>2]|0;wr(e,t);n=1<<t;s=((s|0)==0?e:s)+328|0;c[s>>2]=c[s>>2]|n;if(q)sh(g,146,0,0,0)|0;o=e+72|0;f=c[o>>2]|0;p=f+1|0;c[e+384>>2]=p;q=f+2|0;c[e+388>>2]=q;f=f+3|0;c[o>>2]=f;sh(g,51,t,f,2)|0;o=g+96|0;c[o>>2]=c[o>>2]|n;o=sh(g,45,f,0,0)|0;sh(g,25,(c[u+24>>2]&32768|0)!=0?1:4,f,0)|0;sh(g,52,t,2,f)|0;sh(g,25,d[u+62>>0]|0,f,0)|0;sh(g,52,t,5,f)|0;h=g+32|0;n=c[h>>2]|0;if(n>>>0>o>>>0)c[(c[g+4>>2]|0)+(o*20|0)+8>>2]=n;c[(c[g+24>>2]|0)+88>>2]=n+-1;if(!(l|k))c[e+416>>2]=sh(g,121,t,q,0)|0;else sh(g,25,0,q,0)|0;fs(e,t);sh(g,74,0,p,0)|0;sh(g,28,0,f,0)|0;sh(g,75,0,f,p)|0;n=c[g+4>>2]|0;if(n)a[n+(((c[h>>2]|0)+-1|0)*20|0)+3>>0]=8;sh(g,61,0,0,0)|0;break a}while(0);ig(u,p)}}while(0);i=v;return}function Rq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;O=i;i=i+176|0;if((i|0)>=(j|0))ba();J=O+80|0;G=O+168|0;D=O;E=O+136|0;F=O+112|0;K=c[f>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(L=K+65|0,(a[L>>0]|0)==0):0)?(M=f+484|0,N=c[M>>2]|0,(N|0)!=0):0){I=K+145|0;if(a[I>>0]|0)c[N+32>>2]=c[K+140>>2];b:do if(k&32){p=N+44|0;o=d[p>>0]|0;if(o&8){ph(f,36584,J);break a}if(!(o&4)){c[J>>2]=c[N>>2];ph(f,36640,J);break}a[p>>0]=o|32;q=c[f+8>>2]|0;p=c[f+416>>2]|0;if(p){if((p|0)<0)p=(c[q+32>>2]|0)+-1|0;if(!(a[(c[q>>2]|0)+65>>0]|0))p=(c[q+4>>2]|0)+(p*20|0)|0;else p=29120;a[p>>0]=120}p=c[f+420>>2]|0;if(p){if((p|0)<0)p=(c[q+32>>2]|0)+-1|0;if(!(a[(c[q>>2]|0)+65>>0]|0))o=(c[q+4>>2]|0)+(p*20|0)|0;else o=29120;a[o>>0]=16}o=N+36|0;if((b[o>>1]|0)>-1){p=hr(f,0,0)|0;if(!p)break;z=gh(c[f>>2]|0,c[(c[N+4>>2]|0)+((b[o>>1]|0)*24|0)>>2]|0)|0;A=c[p+4>>2]|0;c[A+4>>2]=z;a[A+12>>0]=a[f+448>>0]|0;p=Xq(f,0,0,0,p,d[N+45>>0]|0,0,0,0,0)|0;if(!p)break;u=p+51|0;a[u>>0]=a[u>>0]&-4|2;b[o>>1]=-1;u=b[p+46>>1]|0}else{p=c[N+8>>2]|0;c:do if(!p)p=0;else while(1){if((a[p+51>>0]&3)==2)break c;p=c[p+20>>2]|0;if(!p){p=0;break}}while(0);v=p+46|0;q=b[v>>1]|0;if((q&65535)>1){t=c[p+4>>2]|0;s=p+48|0;u=1;o=1;do{m=b[t+(u<<1)>>1]|0;r=o;n=t;while(1){if((r|0)<=0){C=36;break}if((b[n>>1]|0)==m<<16>>16){C=35;break}else{r=r+-1|0;n=n+2|0}}if((C|0)==35){C=0;b[s>>1]=(b[s>>1]|0)+-1<<16>>16}else if((C|0)==36){C=0;b[t+(o<<1)>>1]=m;q=b[v>>1]|0;o=o+1|0}u=u+1|0}while((u|0)<(q&65535|0))}else o=1;u=o&65535;b[v>>1]=u}r=p+51|0;q=a[r>>0]|32;a[r>>0]=q;A=u&65535;if(!(a[K+147>>0]|0)){if(u<<16>>16){q=c[p+4>>2]|0;o=c[N+4>>2]|0;n=0;do{a[o+((b[q+(n<<1)>>1]|0)*24|0)+20>>0]=1;n=n+1|0}while((n|0)<(A|0));q=a[r>>0]|0}a[r>>0]=q|8}c[p+40>>2]=c[N+32>>2];r=c[N+8>>2]|0;if(r){x=u<<16>>16==0;y=p+4|0;z=p+32|0;do{d:do if((a[r+51>>0]&3)!=2){do if(x)q=b[r+46>>1]|0;else{s=c[r+4>>2]|0;q=b[r+46>>1]|0;n=q&65535;m=c[y>>2]|0;w=0;o=0;do{t=b[m+(w<<1)>>1]|0;v=n;u=s;while(1){if((v|0)<=0){u=1;break}if((b[u>>1]|0)==t<<16>>16){u=0;break}else{v=v+-1|0;u=u+2|0}}o=u+o|0;w=w+1|0}while((w|0)<(A|0));n=r+46|0;if(!o)break;if(gs(K,r,(q&65535)+o|0)|0)break b;if(x)break d;t=b[n>>1]|0;w=r+4|0;m=r+32|0;v=t;u=0;t=t&65535;while(1){q=c[w>>2]|0;o=b[(c[y>>2]|0)+(u<<1)>>1]|0;v=v&65535;s=q;while(1){if((v|0)<=0){C=63;break}if((b[s>>1]|0)==o<<16>>16)break;else{v=v+-1|0;s=s+2|0}}if((C|0)==63){C=0;b[q+(t<<1)>>1]=o;c[(c[m>>2]|0)+(t<<2)>>2]=c[(c[z>>2]|0)+(u<<2)>>2];t=t+1|0}u=u+1|0;if((u|0)>=(A|0))break d;v=b[n>>1]|0}}while(0);b[r+48>>1]=q}while(0);r=c[r+20>>2]|0}while((r|0)!=0)}v=N+38|0;q=b[v>>1]|0;o=q<<16>>16;if((A|0)>=(o|0)){b[p+48>>1]=q;break}if((gs(K,p,o)|0)==0?(B=b[v>>1]|0,B<<16>>16>0):0){s=p+4|0;u=p+32|0;q=B;t=0;p=A;do{n=c[s>>2]|0;r=p;o=n;while(1){if((r|0)<=0){C=74;break}if((b[o>>1]|0)==(t|0))break;else{r=r+-1|0;o=o+2|0}}if((C|0)==74){C=0;b[n+(p<<1)>>1]=t;c[(c[u>>2]|0)+(p<<2)>>2]=11152;q=b[v>>1]|0;p=p+1|0}t=t+1|0}while((t|0)<(q<<16>>16|0))}}while(0);C=N+68|0;p=c[C>>2]|0;e:do if(p){o=c[K+20>>2]|0;if((o|0)>0){n=c[K+16>>2]|0;q=0;while(1){m=q+1|0;if((c[n+(q<<4)+12>>2]|0)==(p|0))break e;if((m|0)<(o|0))q=m;else{q=m;break}}}else q=0}else q=-1e6;while(0);n=c[N+24>>2]|0;f:do if(n){c[E+0>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;c[E+12>>2]=0;c[E+16>>2]=0;c[E+20>>2]=0;c[E+24>>2]=0;c[E+28>>2]=0;p=D+0|0;o=p+80|0;do{c[p>>2]=0;p=p+4|0}while((p|0)<(o|0));c[D>>2]=1;c[D+16>>2]=c[N>>2];c[D+24>>2]=N;c[D+48>>2]=-1;c[E>>2]=f;c[E+4>>2]=D;b[E+28>>1]=4;p=n+4|0;if((c[n>>2]|0)>0){o=0;do{if(hs(E,c[(c[p>>2]|0)+(o*20|0)>>2]|0)|0)break f;o=o+1|0}while((o|0)<(c[n>>2]|0))}}while(0);A=N+38|0;m=b[A>>1]|0;if(m<<16>>16>0){p=m<<16>>16;o=c[N+4>>2]|0;n=0;while(1){n=(d[o+22>>0]|0)+n|0;p=p+-1|0;if((p|0)<=0)break;else o=o+24|0}}else n=0;b[N+42>>1]=bs(((e[N+36>>1]|0)>>>15&65535)+n<<2,0)|0;n=c[N+8>>2]|0;if(n)do{is(n);n=c[n+20>>2]|0}while((n|0)!=0);if(!(a[I>>0]|0)){B=Kq(f)|0;if(!B)break;sh(B,61,0,0,0)|0;y=(c[N+12>>2]|0)==0;o=y?36672:36680;y=y?31232:35480;do if(!l){n=k<<24>>24==0?h:f+504|0;l=c[n>>2]|0;p=c[f+496>>2]|0;m=l-p|0;if((a[l>>0]|0)!=59)m=(c[n+4>>2]|0)+m|0;c[J>>2]=o;c[J+4>>2]=m;c[J+8>>2]=p;p=f+388|0;m=N;o=qh(K,36688,J)|0}else{p=f+388|0;sh(B,55,1,c[p>>2]|0,q)|0;o=c[B+4>>2]|0;if(o)a[o+(((c[B+32>>2]|0)+-1|0)*20|0)+3>>0]=4;c[f+68>>2]=2;a[F>>0]=14;c[F+4>>2]=1;a[F+1>>0]=0;c[F+8>>2]=0;c[F+12>>2]=0;er(f,l,F)|0;sh(B,61,1,0,0)|0;if(!(c[f+64>>2]|0)){m=js(f,l)|0;if(!m)break a;F=m+38|0;b[A>>1]=b[F>>1]|0;l=m+4|0;c[N+4>>2]=c[l>>2];b[F>>1]=0;c[l>>2]=0;gg(K,m)}z=N+4|0;w=b[A>>1]|0;if(w<<16>>16>0){s=w<<16>>16;t=0;o=0;u=c[z>>2]|0;while(1){m=c[u>>2]|0;n=0;while(1){r=a[m>>0]|0;if(!(r<<24>>24))break;else if(r<<24>>24==34)n=n+1|0;m=m+1|0;n=n+1|0}o=o+7+n|0;t=t+1|0;if((t|0)==(s|0))break;else u=u+24|0}r=o+2|0}else r=2;m=c[N>>2]|0;o=0;while(1){n=a[m>>0]|0;if(n<<24>>24==34)o=o+1|0;else if(!(n<<24>>24))break;m=m+1|0;o=o+1|0}u=o+r|0;x=(u|0)<50;r=x?10360:36880;v=x?20240:36888;x=x?33952:36896;u=((w<<16>>16)*6|0)+35+u|0;o=mg(u,((u|0)<0)<<31>>31)|0;if(!o){a[L>>0]=1;m=N;o=0;break}Yc(u,o,36904,J)|0;n=o;while(1)if(!(a[n>>0]|0))break;else n=n+1|0;c[G>>2]=n-o&1073741823;ks(o,G,c[N>>2]|0);m=c[G>>2]|0;s=m+1|0;c[G>>2]=s;a[o+m>>0]=40;m=u-s|0;n=o+s|0;if((b[A>>1]|0)>0){w=0;t=c[z>>2]|0;while(1){Yc(m,n,r,J)|0;n=o+s|0;if(!n)n=0;else{r=n;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;n=r-n&1073741823}c[G>>2]=n+s;ks(o,G,c[t>>2]|0);n=c[36920+((a[t+21>>0]|0)+-65<<2)>>2]|0;r=n;while(1)if(!(a[r>>0]|0))break;else r=r+1|0;s=r-n&1073741823;r=c[G>>2]|0;gw(o+r|0,n|0,s|0)|0;s=r+s|0;c[G>>2]=s;r=w+1|0;m=u-s|0;n=o+s|0;if((r|0)<(b[A>>1]|0)){w=r;t=t+24|0;r=v}else break}}c[J>>2]=x;Yc(m,n,10344,J)|0;m=N}while(0);n=K+16|0;k=c[m>>2]|0;F=c[p>>2]|0;l=c[f+384>>2]|0;c[J>>2]=c[(c[n>>2]|0)+(q<<4)>>2];c[J+4>>2]=(q|0)==1?13184:13208;c[J+8>>2]=y;c[J+12>>2]=k;c[J+16>>2]=k;c[J+20>>2]=F;c[J+24>>2]=o;c[J+28>>2]=l;xr(f,36704,J);ig(K,o);zr(f,q);if((a[N+44>>0]&8)!=0?(H=c[n>>2]|0,(c[(c[H+(q<<4)+12>>2]|0)+72>>2]|0)==0):0){c[J>>2]=c[H+(q<<4)>>2];xr(f,36792,J)}c[J>>2]=c[m>>2];Er(B,q,qh(K,36840,J)|0);if(!(a[I>>0]|0))break}else m=N;if(Ek((c[C>>2]|0)+8|0,c[m>>2]|0,N)|0){a[L>>0]=1;break}c[M>>2]=0;l=K+24|0;c[l>>2]=c[l>>2]|2;if(!(c[N+12>>2]|0)){l=c[f+496>>2]|0;c[N+48>>2]=(Jn(l,(c[((c[g>>2]|0)==0?h:g)>>2]|0)-l|0)|0)+13}}while(0);i=O;return}function Sq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[d>>2]|0;d=c[d+4>>2]|0;if((f|0)!=0?(e=fw(d|0,0,1,0)|0,e=ih(b,e,C)|0,(e|0)!=0):0){gw(e|0,f|0,d|0)|0;a[e+d>>0]=0}else e=0;ho(e)}return e|0}function Tq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;a:do if(b){g=a[b>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[9328+(k&255)>>0]|0|h<<8;b=b+1|0;if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1667785074){f=66;h=1667785074;g=b;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){o=a[b>>0]|0;k=o;f=65;h=1651273570;g=o<<24>>24==40?b:g}else l=14;else if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h&16777215|0)==6909556){f=68;break b}else l=5;if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[b>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[e>>0]=1,f<<24>>24<67):0){if(!g){a[e>>0]=5;break}b=a[g>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[g>>0]|0;if(!(b<<24>>24))break a}c[m>>2]=0;zn(g,m)|0;g=((c[m>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[m>>2]=g;a[e>>0]=g}}}else f=67;while(0);i=n;return f|0}function Uq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=i;i=i+32|0;if((i|0)>=(j|0))ba();m=o;n=c[e>>2]|0;k=c[e+484>>2]|0;do if(k){h=(b[k+38>>1]|0)+-1|0;l=c[k+4>>2]|0;p=c[f>>2]|0;q=(d[n+145>>0]|0)+4|0;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;k=m+20|0;a[k>>0]=q;c[m>>2]=78;c[m+4>>2]=79;c[m+24>>2]=0;ns(m,p)|0;if(!(a[k>>0]|0)){c[m>>2]=c[l+(h*24|0)>>2];ph(e,36480,m);break}k=l+(h*24|0)+4|0;Ck(n,c[k>>2]|0);c[k>>2]=Ir(n,c[f>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;ig(n,c[l>>2]|0);h=c[f+4>>2]|0;k=(c[f+8>>2]|0)-h|0;if((h|0)!=0?(g=fw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=ih(n,g,C)|0,(g|0)!=0):0){gw(g|0,h|0,k|0)|0;a[g+k>>0]=0}else g=0;c[l>>2]=g}while(0);Ck(n,c[f>>2]|0);i=o;return}function Vq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[a+64>>2]|0)==0:0)b=os(c[a>>2]|0,d,e)|0;else{b=jr(c[a>>2]|0,b,f,1)|0;ps(c[a>>2]|0,b,d,e)}if((b|0)!=0?(g=c[(c[a>>2]|0)+100>>2]|0,(g|0)<(c[b+24>>2]|0)):0){c[h>>2]=g;ph(a,27152,h)}i=k;return b|0}function Wq(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))ba();z=A;x=c[e+484>>2]|0;do if((x|0)!=0?(a[e+451>>0]|0)==0:0){y=x+44|0;m=d[y>>0]|0;if(m&4){c[z>>2]=c[x>>2];ph(e,36376,z);break}v=m|4;a[y>>0]=v;w=(f|0)==0;if(w){m=(b[x+38>>1]|0)+-1|0;t=c[x+4>>2]|0;l=t+(m*24|0)+23|0;a[l>>0]=d[l>>0]|1;l=m;n=1;m=c[t+(m*24|0)+12>>2]|0}else{u=c[f>>2]|0;if((u|0)>0){r=f+4|0;s=x+4|0;q=b[x+38>>1]|0;t=0;m=0;do{a:do if(q<<16>>16>0){o=c[(c[r>>2]|0)+(t*20|0)+4>>2]|0;p=c[s>>2]|0;n=0;while(1){l=n+1|0;if(!($c(o,c[p+(n*24|0)>>2]|0)|0))break;if((l|0)<(q<<16>>16|0))n=l;else break a}l=p+(n*24|0)+23|0;a[l>>0]=d[l>>0]|1;l=n;m=c[p+(n*24|0)+12>>2]|0}else l=0;while(0);t=t+1|0}while((t|0)!=(u|0))}else{l=-1;m=0}n=(u|0)==1}if(n&(m|0)!=0?($c(m,11144)|0|k|0)==0:0){b[x+36>>1]=l;a[x+45>>0]=g;a[y>>0]=v|h<<3;if(w){f=0;break}a[e+448>>0]=a[(c[f+4>>2]|0)+12>>0]|0;break}if(h){ph(e,36424,z);break}m=c[e+8>>2]|0;l=(m|0)!=0;if(l)c[e+420>>2]=sh(m,156,0,0,0)|0;f=Xq(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(t=f+51|0,a[t>>0]=a[t>>0]&-4|2,l):0){f=c[e+420>>2]|0;l=c[m+32>>2]|0;if(l>>>0>f>>>0)c[(c[m+4>>2]|0)+(f*20|0)+8>>2]=l;c[(c[m+24>>2]|0)+88>>2]=l+-1;f=0}else f=0}while(0);Jk(c[e>>2]|0,f);i=A;return}function Xq(f,g,h,k,l,m,n,o,p,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;V=i;i=i+144|0;if((i|0)>=(j|0))ba();S=V;B=V+112|0;u=V+88|0;Q=V+84|0;K=V+80|0;U=c[f>>2]|0;c[Q>>2]=0;c[K>>2]=0;P=U+65|0;a:do if(((a[P>>0]|0)==0?(a[f+451>>0]|0)==0:0)?(Cn(f)|0)==0:0){R=(k|0)!=0;b:do if(R){g=arar(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;h=c[b>>2]|0;do if((f|0)!=0?(c[f+4>>2]|0)!=0:0){if(a[h+145>>0]|0){ph(b,28488,k);f=b+64|0;c[f>>2]=(c[f>>2]|0)+1;f=-1;break}c[g>>2]=f;g=Sq(h,e)|0;f=Rh(h,g)|0;ig(h,g);if((f|0)<0){c[k>>2]=e;ph(b,28512,k);f=b+64|0;c[f>>2]=(c[f>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[h+144>>0]|0;c[g>>2]=e}i=m;return f|0}function br(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Dr(a,c[b>>2]|0)|0){b=1;break a}if(Gr(a,c[b+32>>2]|0)|0){b=1;break a}if(Cr(a,c[b+36>>2]|0)|0){b=1;break a}if(Dr(a,c[b+40>>2]|0)|0){b=1;break a}if(Cr(a,c[b+44>>2]|0)|0){b=1;break a}if(Dr(a,c[b+48>>2]|0)|0){b=1;break a}if(Cr(a,c[b+60>>2]|0)|0){b=1;break a}if(Cr(a,c[b+64>>2]|0)|0){b=1;break a}b=c[b+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function cr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=ih(d,72,0)|0,(h|0)!=0):0){c[h>>2]=Lr(d,c[f>>2]|0,g)|0;c[h+32>>2]=us(d,c[f+32>>2]|0,g)|0;c[h+36>>2]=Ir(d,c[f+36>>2]|0,g,0)|0;c[h+40>>2]=Lr(d,c[f+40>>2]|0,g)|0;c[h+44>>2]=Ir(d,c[f+44>>2]|0,g,0)|0;c[h+48>>2]=Lr(d,c[f+48>>2]|0,g)|0;a[h+4>>0]=a[f+4>>0]|0;j=cr(d,c[f+52>>2]|0,g)|0;c[h+52>>2]=j;if(j)c[j+56>>2]=h;c[h+56>>2]=0;c[h+60>>2]=Ir(d,c[f+60>>2]|0,g,0)|0;c[h+64>>2]=Ir(d,c[f+64>>2]|0,g,0)|0;c[h+8>>2]=0;c[h+12>>2]=0;b[h+6>>1]=(e[f+6>>1]|0)&65527;c[h+16>>2]=-1;c[h+20>>2]=-1;l=f+24|0;j=c[l+4>>2]|0;g=h+24|0;c[g>>2]=c[l>>2];c[g+4>>2]=j;g=c[f+68>>2]|0;if((g|0)!=0?(k=c[g>>2]<<4|8,i=ih(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){bw(i|0,0,k|0)|0;c[i>>2]=c[g>>2];if((c[g>>2]|0)>0){f=i+8|0;j=0;do{c[f+(j<<4)+8>>2]=cr(d,c[g+(j<<4)+16>>2]|0,0)|0;c[f+(j<<4)+4>>2]=Lr(d,c[g+(j<<4)+12>>2]|0,0)|0;c[f+(j<<4)>>2]=gh(d,c[g+(j<<4)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[g>>2]|0))}}else i=0;c[h+68>>2]=i}else h=0;return h|0}function dr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))ba();p=t;k=t+8|0;m=t+4|0;s=c[d>>2]|0;n=f+44|0;h=a[n>>0]|0;a:do if(!(h&16))q=11;else{g=c[f+60>>2]|0;if(g)do{if((c[g>>2]|0)==(s|0)){q=11;break a}g=c[g+24>>2]|0}while((g|0)!=0);g=f+56|0;h=Zm(s+308|0,c[c[g>>2]>>2]|0,k)|0;if((h|0)!=0?(l=c[h+8>>2]|0,(l|0)!=0):0){c[m>>2]=0;l=(vn(s,f,l,c[(c[l>>2]|0)+8>>2]|0,m)|0)==0;h=c[m>>2]|0;if(l){ig(s,h);h=a[n>>0]|0;q=11;break}else{c[p>>2]=h;ph(d,10344,p);ig(s,h);g=1;break}}c[p>>2]=c[c[g>>2]>>2];ph(d,28320,p);g=1}while(0);do if((q|0)==11)if((h&16)==0?(r=f+38|0,o=b[r>>1]|0,o<<16>>16<=0):0){if(o<<16>>16<0){c[p>>2]=c[f>>2];ph(d,26752,p);g=1;break}h=cr(s,c[f+12>>2]|0,0)|0;if(!h)g=1;else{o=s+250|0;n=a[o>>0]|0;q=d+68|0;p=c[q>>2]|0;ys(d,c[h+32>>2]|0);b[r>>1]=-1;a[o>>0]=0;m=s+284|0;l=c[m>>2]|0;c[m>>2]=0;g=js(d,h)|0;c[m>>2]=l;a[o>>0]=n;c[q>>2]=p;if(!g){b[r>>1]=0;g=1}else{d=g+38|0;b[r>>1]=b[d>>1]|0;q=g+4|0;c[f+4>>2]=c[q>>2];b[d>>1]=0;c[q>>2]=0;gg(s,g);g=(c[f+68>>2]|0)+78|0;b[g>>1]=e[g>>1]|0|2;g=0}Ik(s,h,1)}}else g=0;while(0);i=t;return g|0}
12 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=arQ,11,m,l,1)|0;sh(Q,35,1,3,0)|0;break a}case 26:{kf(T)|0;break a}case 34:{if(!R)l=c[T+216>>2]|0;else{c[D>>2]=0;zn(R,D)|0;l=c[D>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[T+216>>2]=m;c[T+220>>2]=l;l=m}if((l|0)==21){l=c[T+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Ft(f,31944,m,l);break a}case 27:{if((R|0)!=0?(fi(R,u)|0)==0:0){D=u;Lc(c[D>>2]|0,c[D+4>>2]|0)|0}C=(Hc()|0)==0;D=9032;Ft(f,31976,C?c[D>>2]|0:-1,C?c[D+4>>2]|0:-1);break a}case 33:{if((R|0)!=0?(B=(fi(R,p)|0)==0,D=p,C=c[D+4>>2]|0,B&((C|0)>-1|(C|0)==-1&(c[D>>2]|0)>>>0>4294967295)):0)c[T+132>>2]=0;D=c[T+132>>2]|0;Ft(f,31992,D,((D|0)<0)<<31>>31);break a}case 12:{g=c[P>>2]|0;E=g+1|0;F=g+5|0;G=g+6|0;c[P>>2]=G;H=Kq(f)|0;eq(H,4);if((((a[(c[H>>2]|0)+65>>0]|0)==0?(Tg(c[H+16>>2]|0,31232,-1,1,0)|0,(a[(c[H>>2]|0)+65>>0]|0)==0):0)?(Tg((c[H+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[(c[H>>2]|0)+65>>0]|0)==0):0)?(Tg((c[H+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[(c[H>>2]|0)+65>>0]|0)==0):0)Tg((c[H+16>>2]|0)+120|0,31440,-1,1,0)|0;wr(f,N);t=c[(c[(c[O>>2]|0)+(N<<4)+12>>2]|0)+16>>2]|0;if(!t)break a;r=(R|0)==0;h=f+68|0;s=H+32|0;A=H+4|0;B=H+24|0;C=g+2|0;D=g+3|0;x=g+4|0;q=f+8|0;while(1){if(r){y=c[t>>2]|0;z=c[t+8>>2]|0}else{y=0;z=oh(f,0,R,I)|0}if((z|0)!=0?(J=z+16|0,(c[J>>2]|0)!=0):0){cs(f,N,c[z+32>>2]|0,0,c[z>>2]|0);g=(b[z+38>>1]|0)+G|0;if((g|0)>(c[P>>2]|0))c[P>>2]=g;Mq(f,0,N,z,54);t=c[z>>2]|0;th(H,sh(H,97,0,E,0)|0,t,0);t=c[J>>2]|0;if(!t)g=1;else{g=1;do{l=Wh(T,c[t+8>>2]|0,I)|0;do if(l){c[L>>2]=0;cs(f,N,c[l+32>>2]|0,0,c[l>>2]|0);if(It(f,l,t,L,0)|0)break a;m=c[L>>2]|0;if(!m){Mq(f,g,N,l,54);break}else{sh(H,54,g,c[m+40>>2]|0,N)|0;w=c[q>>2]|0;th(w,-1,ds(f,m)|0,-6);break}}while(0);g=g+1|0;t=c[t+4>>2]|0}while((t|0)!=0)}if((c[h>>2]|0)<(g|0))c[h>>2]=g;p=sh(H,108,0,0,0)|0;g=c[J>>2]|0;if(g){w=z+36|0;v=1;while(1){u=g+8|0;t=Wh(T,c[u>>2]|0,I)|0;c[L>>2]=0;c[K>>2]=0;o=(t|0)!=0;do if(o){It(f,t,g,L,K)|0;l=c[L>>2]|0;m=ts(H)|0;if(!(o&(l|0)==0)){t=m;M=306;break}t=c[g+36>>2]|0;if((t|0)==(b[w>>1]|0))sh(H,103,0,G,0)|0;else{sh(H,47,0,t,G)|0;Jt(H,z,t,G);sh(H,76,G,m,0)|0;sh(H,38,G,(c[s>>2]|0)+3|0,0)|0}sh(H,70,v,0,G)|0;sh(H,16,0,m,0)|0;t=c[s>>2]|0;if(t>>>0>1)c[(c[A>>2]|0)+((t+-2|0)*20|0)+8>>2]=t;c[(c[B>>2]|0)+88>>2]=t+-1;t=m}else{t=ts(H)|0;l=0;M=306}while(0);do if((M|0)==306){M=0;n=g+20|0;m=c[n>>2]|0;if((m|0)>0){k=0;do{m=c[K>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;O=k+G|0;jt(H,z,0,c[m>>2]|0,O);sh(H,76,O,t,0)|0;k=k+1|0;m=c[n>>2]|0}while((k|0)<(m|0))}if(!o)break;k=kt(H,l)|0;l=c[n>>2]|0;th(H,sh(H,49,G,m,F)|0,k,l);th(H,sh(H,69,v,t,F)|0,0,-14)}while(0);sh(H,103,0,C,0)|0;l=c[u>>2]|0;th(H,sh(H,97,0,D,0)|0,l,0);sh(H,25,v+-1|0,x,0)|0;sh(H,35,E,4,0)|0;l=c[B>>2]|0;m=~t;do if((t|0)<0){t=c[l+112>>2]|0;if(!t)break;c[t+(m<<2)>>2]=c[s>>2]}while(0);c[l+88>>2]=(c[s>>2]|0)+-1;ig(T,c[K>>2]|0);g=c[g+4>>2]|0;if(!g)break;else v=v+1|0}}sh(H,9,0,p+1|0,0)|0;g=c[s>>2]|0;if(g>>>0>p>>>0)c[(c[A>>2]|0)+(p*20|0)+8>>2]=g;c[(c[B>>2]|0)+88>>2]=g+-1}if(!y)break;else t=y}break}case 10:{n=1<<N;C=Q+96|0;c[C>>2]=c[C>>2]|n;if(R){c[D>>2]=0;zn(R,D)|0;k=c[D>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;D=c[f+408>>2]|0;wr(f,N);D=((D|0)==0?f:D)+328|0;c[D>>2]=c[D>>2]|n;sh(Q,25,k,1,0)|0;sh(Q,52,N,3,1)|0;c[(c[z+(N<<4)+12>>2]|0)+80>>2]=k;lq(c[z+(N<<4)+4>>2]|0,k);break a}eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30848,-1,1,0)|0;c[P>>2]=(c[P>>2]|0)+2;k=uh(Q,9,30808)|0;l=c[Q+32>>2]|0;if(l>>>0>k>>>0)c[(c[Q+4>>2]|0)+(k*20|0)+4>>2]=N;m=k+1|0;if(l>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;m=k+6|0;if(l>>>0<=m>>>0)break a;c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=2e3;break a}case 1:{k=c[z+(N<<4)+4>>2]|0;if(!R){m=c[k+4>>2]|0;c[m+4>>2]=c[k>>2];if(!(a[m+17>>0]|0)){m=0;l=0}else{l=(a[m+18>>0]|0)==0;m=l?1:2;l=l?0:0}Ft(f,30976,m,l);break a}if($c(R,32192)|0)if($c(R,31880)|0)if(!($c(R,32200)|0))m=2;else{c[D>>2]=0;zn(R,D)|0;m=c[D>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[T+67>>0]=m;o=m+-1|0;if(!((rn(k,m)|0)==0&o>>>0<2))break a;l=uh(Q,6,30992)|0;n=c[Q+32>>2]|0;if(n>>>0>l>>>0)c[(c[Q+4>>2]|0)+(l*20|0)+4>>2]=N;k=l+1|0;if(n>>>0>k>>>0)c[(c[Q+4>>2]|0)+(k*20|0)+4>>2]=N;k=l+2|0;m=l+4|0;if(n>>>0>k>>>0)c[(c[Q+4>>2]|0)+(k*20|0)+8>>2]=m;if(n>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=o;m=l+5|0;if(n>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+4>>2]=N;D=Q+96|0;c[D>>2]=c[D>>2]|1<<N;break a}case 14:{if(!((R|0)!=0?(D=(zn(R,q)|0)==0,m=c[q>>2]|0,!(D|(m|0)<1)):0)){c[q>>2]=2147483647;m=2147483647}l=c[f+408>>2]|0;wr(f,N);l=((l|0)==0?f:l)+328|0;c[l>>2]=c[l>>2]|1<<N;sh(Q,25,m,1,0)|0;m=sh(Q,143,N,0,0)|0;sh(Q,35,1,0,0)|0;sh(Q,37,1,-1,0)|0;sh(Q,137,1,m,0)|0;l=c[Q+32>>2]|0;if(l>>>0>m>>>0)c[(c[Q+4>>2]|0)+(m*20|0)+8>>2]=l;c[(c[Q+24>>2]|0)+88>>2]=l+-1;break a}case 18:{eq(Q,1);if(!(a[(c[Q>>2]|0)+65>>0]|0))Tg(c[Q+16>>2]|0,30936,-1,1,0)|0;f:do if(R){k=R;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;m=k-R&1073741823;k=0;while(1){if(!(Bc(R,c[32216+(k<<2)>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){M=91;break f}}if((k|0)!=-1)n=N;else M=91}else M=91;while(0);if((M|0)==91)if(!(c[y>>2]|0)){c[y>>2]=1;k=-1;n=0}else{k=-1;n=N}m=c[T+20>>2]|0;if((m|0)>0){l=Q+96|0;do{m=m+-1|0;do if(c[(c[O>>2]|0)+(m<<4)+4>>2]|0){if((m|0)!=(n|0)?(c[y>>2]|0)!=0:0)break;c[l>>2]=c[l>>2]|1<<m;sh(Q,12,m,1,k)|0}while(0)}while((m|0)>0)}sh(Q,35,1,1,0)|0;break a}default:{if(!R)l=c[T+492>>2]|0;else{c[D>>2]=0;zn(R,D)|0;l=c[D>>2]|0;D=(l|0)>0;l=D?l:0;c[T+444>>2]=D?74:0;c[T+448>>2]=D?T:0;c[o>>2]=0;c[T+492>>2]=l}Ft(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[n>>2]|0;if(k){c[D>>2]=k;ph(f,10344,D);Sc(c[n>>2]|0)}D=f+64|0;c[D>>2]=(c[D>>2]|0)+1;c[f+12>>2]=g;break}}while(0);ig(T,S);ig(T,R)}}while(0);i=U;return}function Cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[f>>0]|0)==-121){d=c[b>>2]|0;if(!(a[(c[d>>2]|0)+145>>0]|0))break;a[f>>0]=101}d=c[f+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Dr(b,c[e>>2]|0)|0){d=1;break a}}else if(br(b,c[e>>2]|0)|0){d=1;break a}if(Cr(b,c[f+16>>2]|0)|0){d=1;break a}f=c[f+12>>2]|0;if(!f){d=0;break a}}c[g>>2]=c[b+16>>2];ph(d,29984,g);d=1}while(0);i=h;return d|0}function Dr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[b>>2]|0)>0:0){d=0;e=c[b+4>>2]|0;while(1){if(Cr(a,c[e>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[b>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Er(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;th(a,sh(a,122,b,0,0)|0,d,-1);d=c[(c[a>>2]|0)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[e>>2]|0;a=0;do{b=b|1<<a;a=a+1|0}while((a|0)<(d|0));c[e>>2]=b}return}function Fr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Qr(a,0,e)|0;d=d+24|0;gg(c[a>>2]|0,c[d>>2]|0);c[d>>2]=f;if(f){d=f+40|0;b[d>>1]=(b[d>>1]|0)+1<<16>>16}e=(Nt(a,e)|0)==0;return (e?f:0)|0}function Gr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;a:do if((b|0)!=0?(f=c[a+12>>2]|0,(c[b>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[g>>2]|0)){e=l+4|0;d=c[e>>2]|0;if((d|0)!=0?($c(d,f)|0)!=0:0)break;ig(c[c[a>>2]>>2]|0,d);c[e>>2]=0;c[l>>2]=c[h>>2]}if(br(a,c[l+20>>2]|0)|0){d=1;break a}if(Cr(a,c[l+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[b>>2]|0)){d=0;break a}else l=l+72|0}b=c[a>>2]|0;l=c[a+20>>2]|0;c[m>>2]=c[a+16>>2];c[m+4>>2]=l;c[m+8>>2]=d;ph(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Hr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;g=c[b>>2]|0;if((((a[g+145>>0]|0)==0?(a[b+18>>0]|0)==0:0)?(c[g+24>>2]&2048|0)==0:0)?(Bc(d,25568,7)|0)==0:0){c[e>>2]=d;ph(b,28440,e);b=1}else b=0;i=f;return b|0}function Ir(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;do if(d){r=e&1;t=(f|0)!=0;if(t){g=c[f>>2]|0;p=32768}else{g=Ot(d,e)|0;g=ih(b,g,((g|0)<0)<<31>>31)|0;p=0}c[u>>2]=g;if(g){l=(r|0)==0;if(!l)if(!(c[d+12>>2]|0))o=(c[d+20>>2]|0)==0?16396:8220;else o=8220;else o=48;q=o&60;s=d+4|0;m=c[s>>2]|0;if((m&1024|0)==0?(h=c[d+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;n=(k-h&1073741823)+1|0}else n=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;gw(g|0,d|0,k|0)|0;bw(g+k|0,0,48-k|0)|0}else gw(g|0,d|0,q|0)|0;m=g+4|0;h=o&24576|p|c[m>>2]&-122881;c[m>>2]=h;if(n){h=g+q|0;c[g+8>>2]=h;gw(h|0,c[d+8>>2]|0,n|0)|0;h=c[m>>2]|0}k=c[s>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[g+20>>2]=Lr(b,c[h>>2]|0,r)|0;break}else{c[g+20>>2]=cr(b,c[h>>2]|0,r)|0;break}}while(0);h=c[m>>2]|0;if(!(h&24576)){if(c[s>>2]&16384)break;c[g+12>>2]=Ir(b,c[d+12>>2]|0,0,0)|0;c[g+16>>2]=Ir(b,c[d+16>>2]|0,0,0)|0;break}r=Pt(d,e)|0;c[u>>2]=(c[u>>2]|0)+r;if(h&8192){c[g+12>>2]=Ir(b,c[d+12>>2]|0,1,u)|0;c[g+16>>2]=Ir(b,c[d+16>>2]|0,1,u)|0}if(t)c[f>>2]=c[u>>2]}}else g=0;while(0);i=v;return g|0}function Jr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=ih(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[d+4>>2]=c[g>>2];e=ih(a,c[g>>2]<<3,0)|0;c[d>>2]=e;if(!e){ig(a,d);d=0;break}if((c[g>>2]|0)>0){f=0;while(1){h=c[b>>2]|0;c[e+(f<<3)>>2]=gh(a,c[h+(f<<3)>>2]|0)|0;c[e+(f<<3)+4>>2]=c[h+(f<<3)+4>>2];f=f+1|0;if((f|0)>=(c[g>>2]|0))break a;e=c[d>>2]|0}}}else d=0;while(0);return d|0}function Kr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[f>>2]|0)+40|0;b=ih(b,g,0)|0;if(b){bw(b|0,0,g|0)|0;g=b+40|0;gw(g|0,c[e>>2]|0,c[f>>2]|0)|0;c[b+12>>2]=g;c[b+16>>2]=c[f>>2];a[b>>0]=d}return b|0}function Lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=ih(b,8,0)|0,(f|0)!=0):0){g=c[d>>2]|0;c[f>>2]=g;if(!(e&1)){h=c[d>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=ih(b,g*20|0,0)|0;c[f+4>>2]=g;if(!g){ig(b,f);f=0;break}if((c[d>>2]|0)>0){i=0;h=c[d+4>>2]|0;while(1){c[g>>2]=Ir(b,c[h>>2]|0,e,0)|0;c[g+4>>2]=gh(b,c[h+4>>2]|0)|0;c[g+8>>2]=gh(b,c[h+8>>2]|0)|0;a[g+12>>0]=a[h+12>>0]|0;j=g+13|0;k=a[j>>0]|0;a[j>>0]=k&-2;a[j>>0]=a[h+13>>0]&2|k&-4;c[g+16>>2]=c[h+16>>2];i=i+1|0;if((i|0)>=(c[d>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Mr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o;l=c[a>>2]|0;f=c[b+20>>2]|0;a:do if(f){e=c[l+20>>2]|0;if((e|0)>0){d=c[l+16>>2]|0;h=0;while(1){g=h+1|0;if((c[d+(h<<4)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=Zm((c[b+24>>2]|0)+8|0,c[b+4>>2]|0,k)|0;if(!d)f=0;else f=c[d+8>>2]|0;d=c[(c[l+16>>2]|0)+(g<<4)>>2]|0;e=(g|0)==1;if((((Oq(a,e?14:16,c[b>>2]|0,c[f>>2]|0,d)|0)==0?(Oq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Kq(a)|0,(m|0)!=0):0)?(n=c[a+408>>2]|0,wr(a,g),n=((n|0)==0?a:n)+328|0,c[n>>2]=c[n>>2]|1<<g,fs(a,g),n=uh(m,9,29624)|0,th(m,n+1|0,c[b>>2]|0,0),th(m,n+4|0,10720,-2),zr(a,g),sh(m,61,0,0,0)|0,n=c[b>>2]|0,th(m,sh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[n>>2]|0)<3):0)c[n>>2]=3;i=o;return}function Nr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();m=s;q=c[d>>2]|0;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;c[m+24>>2]=0;c[m+28>>2]=0;c[m>>2]=d;do if(h)if((a[h>>0]|0)!=27)if(!(hs(m,h)|0)){r=5;break}else{r=13;break}else{a[h>>0]=97;r=5;break}else r=5;while(0);a:do if((r|0)==5){do if(k)if((a[k>>0]|0)!=27)if(!(hs(m,k)|0))break;else{r=13;break a}else{a[k>>0]=97;break}while(0);do if(l)if((a[l>>0]|0)!=27)if(!(hs(m,l)|0))break;else{r=13;break a}else{a[l>>0]=97;break}while(0);if(g){if((a[g>>0]|0)==97)g=c[g+8>>2]|0;else g=0;if(Oq(d,e,g,0,0)|0)break}p=Kq(d)|0;m=d+60|0;g=c[m>>2]|0;n=d+56|0;o=c[n>>2]|0;if((o|0)<4){o=d+72|0;g=c[o>>2]|0;c[o>>2]=g+4;g=g+1|0}else{c[m>>2]=g+4;c[n>>2]=o+-4}Nq(d,h,g);Nq(d,k,g+1|0);Nq(d,l,g+2|0);if(p){g=g+3|0;sh(p,1,0,g-(b[f>>1]|0)|0,g)|0;g=c[p+4>>2]|0;if(g)a[g+(((c[p+32>>2]|0)+-1|0)*20|0)+3>>0]=b[f>>1];th(p,-1,f,-5);sh(p,144,(e|0)==24&1,0,0)|0}}while(0);if((r|0)==13){f=d+64|0;c[f>>2]=(c[f>>2]|0)+1}Ck(q,h);Ck(q,k);Ck(q,l);i=s;return}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();l=m;g=m+4|0;h=c[b>>2]|0;a:do if(!(Cn(b)|0)){if(!d){Qt(b,0);break}if(!((e|0)!=0?(c[e>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Sq(c[b>>2]|0,d)|0;if(!f)break a;if(!(Un(h,a[h+62>>0]|0,f,0)|0)){ig(h,f);break}else{Qt(b,f);ig(h,f);break a}}while(0);d=arar(a,b,d,f)|0;if((e|0)<=-1)break;e=c[(c[g+16>>2]|0)+(e<<4)>>2]|0;b=Sq(g,c[f>>2]|0)|0;if(!b)break;d=Zp(g,b,e)|0;if(!d){e=oh(a,0,b,e)|0;if(e)Tt(a,e,0)}else Tt(a,c[d+12>>2]|0,d);ig(g,b);break}d=Sq(g,b)|0;e=Rh(g,d)|0;ig(g,d);if((e|0)>-1){St(a,e);break}d=Sq(g,b)|0;if(d){e=Zp(g,d,0)|0;if(!e){e=oh(a,0,d,0)|0;if(e)Tt(a,e,0)}else Tt(a,c[e+12>>2]|0,e);ig(g,d)}}while(0);e=Kq(a)|0;if(e)sh(e,144,0,0,0)|0}i=h;return}function Qr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[d>>2]|0;if(!f)e=d+4|0;else{i=c[a>>2]|0;g=c[i+20>>2]|0;i=c[i+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[i+(h<<4)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return oh(a,b,c[d+8>>2]|0,c[e>>2]|0)|0}function Rr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if(d){e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Bc(d,25568,7)|0)==0:0){c[f>>2]=d;ph(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Sr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if(!b){c[e>>2]=d;a=qh(a,25992,e)|0}else{c[e>>2]=b;c[e+4>>2]=d;e=qh(a,26e3,e)|0;ig(a,b);a=e}i=f;return a|0}function Tr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[a>>2]|0;f=c[(c[e+16>>2]|0)+28>>2]|0;if((c[b+68>>2]|0)!=(f|0)?(d=ws(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[b+20>>2]|0)==(f|0))d=Sr(e,d,c[b>>2]|0)|0;b=c[b+32>>2]|0}while((b|0)!=0);if(d){b=c[a>>2]|0;c[g>>2]=d;b=qh(b,25968,g)|0;ig(c[a>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;o=Kq(a)|0;if(o){e=c[a>>2]|0;h=c[b+68>>2]|0;a:do if(h){k=c[e+20>>2]|0;if((k|0)>0){f=c[e+16>>2]|0;g=0;while(1){e=g+1|0;if((c[f+(g<<4)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=ws(a,b)|0;if(e)do{f=c[a>>2]|0;l=c[e+20>>2]|0;b:do if(l){m=c[f+20>>2]|0;if((m|0)>0){k=c[f+16>>2]|0;h=0;while(1){f=h+1|0;if((c[k+(h<<4)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[e>>2]|0;th(o,sh(o,126,f,0,0)|0,m,0);e=c[e+32>>2]|0}while((e|0)!=0);e=c[b>>2]|0;th(o,sh(o,124,g,0,0)|0,e,0);e=c[a>>2]|0;c[n>>2]=d;e=qh(e,25952,n)|0;if((e|0)!=0?(Er(o,g,e),p=Tr(a,b)|0,(p|0)!=0):0)Er(o,1,p)}i=q;return}