Lines Matching refs:Yq
7317 yq(a,b){a=a|0;b=b|0;var d=0;d=i;c[a>>2]=(b|0)!=0?b:54984;bX(a+4|0,0,10)|0;i=d;return}function zq(b){b=b|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0.0;e=i;j=c[b>>2]|0;f=c[j>>2]|0;if((f|0)==0){g=b+8|0;f=j+4|0;k=1;while(1){c[g>>2]=k;if((k|0)<(c[f>>2]|0)){k=k<<1}else{break}}c[b+4>>2]=ye(da(k,k)|0,1)|0;s=(c[g>>2]|0)/2|0;Aq(b,s,s,1,s,1)}else if((f|0)==2){f=c[j+4>>2]|0;k=j+8|0;g=c[k>>2]<<1;s=(f|0)<(g|0)?g:f;c[b+8>>2]=s;c[b+4>>2]=ye(da(s,s)|0,1)|0;Cq(b,c[k>>2]|0)}else if((f|0)==1){f=c[j+4>>2]&-2;s=(f|0)<2?2:f;c[b+8>>2]=s;c[b+4>>2]=ye(da(s,s)|0,1)|0;Bq(b)}g=b+12|0;a[g]=-1;f=b+13|0;a[f]=0;t=+h[j+24>>3]*255.0+.5;if(t<=0.0){t=+R(+t)}k=~~t;k=(k&255|0)==0?1:k&255;t=+h[j+32>>3]*255.0+.5;if(t<=0.0){t=+R(+t)}l=~~t;l=(l|0)>255?-1:l&255;m=b+8|0;s=c[m>>2]|0;if((da(s,s)|0)==0){i=e;return}b=b+4|0;q=j+16|0;n=k&255;j=l&255;p=0;do{o=(c[b>>2]|0)+p|0;t=+U(+(+(d[o]|0)/255.0),+(+h[q>>3]))*255.0+.5;if(t<=0.0){t=+R(+t)}s=~~t;r=s&255;if(r>>>0<n>>>0){r=k}else{r=r>>>0<j>>>0?s&255:l}a[o]=r;do{if((r&255)<(d[g]|0)){a[g]=r}else{if((r&255)<=(d[f]|0)){break}a[f]=r}}while(0);p=p+1|0;s=c[m>>2]|0;}while((p|0)<(da(s,s)|0));i=e;return}function Aq(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 j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=i;k=b+8|0;if((g|0)==0){n=c[k>>2]|0}else{while(1){m=(g|0)/2|0;l=h<<2;Aq(b,d,e,f,m,l);n=g+d|0;p=c[k>>2]|0;o=g+e|0;Aq(b,(n|0)%(p|0)|0,(o|0)%(p|0)|0,h+f|0,m,l);Aq(b,(n|0)%(c[k>>2]|0)|0,e,(h<<1)+f|0,m,l);n=c[k>>2]|0;d=((g<<1)+d|0)%(n|0)|0;e=(o|0)%(n|0)|0;f=(h*3|0)+f|0;if((g+1|0)>>>0<3){break}else{h=l;g=m}}}o=(((f*254|0)+ -254|0)/((da(n,n)|0)+ -1|0)|0)+1&255;p=(da(n,d)|0)+e|0;a[(c[b+4>>2]|0)+p|0]=o;i=j;return}function Bq(b){b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0,t=0,u=0,v=0.0,w=0.0,x=0.0,y=0.0;f=i;d=b+8|0;l=c[d>>2]|0;e=l>>1;if((l|0)>0){g=b+4|0;j=0;do{if((l|0)>0){k=0;while(1){l=(da(l,j)|0)+k|0;a[(c[g>>2]|0)+l|0]=0;k=k+1|0;l=c[d>>2]|0;if((k|0)<(l|0)){}else{break}}}j=j+1|0;}while((j|0)<(l|0))}g=ye(da(l,e)|0,8)|0;j=(e|0)>0;do{if(j){n=e+ -1|0;w=+(e|0);m=0;do{v=+(m|0)+.5;l=da(m,e)|0;s=v-w;k=0;do{x=+(k|0)+.5;if((k+m|0)<(n|0)){y=v}else{x=x-w;y=s}h[g+(k+l<<3)>>3]=y*y+x*x;k=k+1|0;}while((k|0)<(e|0));m=m+1|0;}while((m|0)<(e|0));if(!j){break}s=+(e|0);k=0;do{w=+(k|0)+.5;v=w-s;l=da(k+e|0,e)|0;m=0;do{x=+(m|0)+.5;if((m|0)<(k|0)){y=v}else{x=x-s;y=w}h[g+(m+l<<3)>>3]=y*y+x*x;m=m+1|0;}while((m|0)<(e|0));k=k+1|0;}while((k|0)<(e|0))}}while(0);a[b+12|0]=1;a[b+13|0]=0;m=c[d>>2]|0;if((da(m,e)|0)<=0){Fe(g);i=f;return}k=b+4|0;b=e<<1;l=0;u=0;r=0;do{if(!((m|0)<1|j^1)){s=-1.0;q=0;do{n=da(m,q)|0;p=c[k>>2]|0;o=da(q,e)|0;t=0;do{do{if((a[p+(n+t)|0]|0)==0){v=+h[g+(t+o<<3)>>3];if(v<=s){break}s=v;u=t;r=q}}while(0);t=t+1|0;}while((t|0)<(e|0));q=q+1|0;}while((q|0)<(m|0))}t=((l*508|0)/((da(b,m)|0)+ -1|0)|0)+1&255;n=(da(m,r)|0)+u|0;a[(c[k>>2]|0)+n|0]=t;n=c[d>>2]|0;m=(((l<<1|1)*254|0)/((da(b,n)|0)+ -1|0)|0)+1&255;if((r|0)<(e|0)){t=u+e+(da(n,r+e|0)|0)|0;a[(c[k>>2]|0)+t|0]=m}else{t=u+e+(da(n,r-e|0)|0)|0;a[(c[k>>2]|0)+t|0]=m}l=l+1|0;m=c[d>>2]|0;}while((l|0)<(da(m,e)|0));Fe(g);i=f;return}function Cq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=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;f=i;Eb(123);g=b+8|0;e=c[g>>2]|0;e=ye(da(e,e)|0,12)|0;k=c[g>>2]|0;if((k|0)>0){j=0;h=0;do{if((k|0)>0){k=0;while(1){c[e+(j*12|0)>>2]=k;c[e+(j*12|0)+4>>2]=h;j=j+1|0;l=k+1|0;k=c[g>>2]|0;if((l|0)<(k|0)){k=l}else{break}}}h=h+1|0;}while((h|0)<(k|0))}j=da(k,k)|0;if((j|0)!=0){h=0;do{w=~~(+(j-h|0)*+(kb()|0)*4.656612873077393e-10)+h|0;r=e+(h*12|0)|0;t=c[r>>2]|0;s=e+(h*12|0)+4|0;v=c[s>>2]|0;u=e+(w*12|0)|0;c[r>>2]=c[u>>2];w=e+(w*12|0)+4|0;c[s>>2]=c[w>>2];c[u>>2]=t;c[w>>2]=v;h=h+1|0;w=c[g>>2]|0;j=da(w,w)|0;}while((h|0)<(j|0))}m=d+1|0;k=ye(da(m,m)|0,1)|0;l=(d|0)<0;if(!l){n=da(d,d)|0;o=0;while(1){j=da(o,m)|0;h=0;while(1){a[k+(h+j)|0]=(da(h,o)|0)<=(n|0)|0;if((h|0)<(d|0)){h=h+1|0}else{break}}if((o|0)<(d|0)){o=o+1|0}else{break}}}n=c[g>>2]|0;n=ye(da(n,n)|0,1)|0;o=c[g>>2]|0;if((o|0)>0){h=0;do{if((o|0)>0){j=0;while(1){a[n+((da(o,h)|0)+j)|0]=0;j=j+1|0;o=c[g>>2]|0;if((j|0)<(o|0)){}else{break}}}h=h+1|0;}while((h|0)<(o|0))}j=ye(32,12)|0;s=c[g>>2]|0;if((da(s,s)|0)==0){h=0}else{h=0;p=32;o=0;while(1){t=e+(o*12|0)|0;r=c[t>>2]|0;q=c[e+(o*12|0)+4>>2]|0;if((a[n+((da(q,s)|0)+r)|0]|0)==0){if((h|0)==(p|0)){w=h<<1;p=w;j=Ce(j,w,12)|0}s=h+1|0;$W(j+(h*12|0)|0,t|0,12)|0;a:do{if(!l){h=0;while(1){t=c[g>>2]|0;u=(h+q|0)%(t|0)|0;t=(q-h+t|0)%(t|0)|0;w=da(h,m)|0;v=0;while(1){if((a[k+(v+w)|0]|0)!=0){z=c[g>>2]|0;y=(v+r|0)%(z|0)|0;x=(r-v+z|0)%(z|0)|0;a[n+((da(z,u)|0)+y)|0]=1;a[n+((da(c[g>>2]|0,u)|0)+x)|0]=1;a[n+((da(c[g>>2]|0,t)|0)+y)|0]=1;a[n+((da(c[g>>2]|0,t)|0)+x)|0]=1}if((v|0)<(d|0)){v=v+1|0}else{break}}if((h|0)>=(d|0)){break a}h=h+1|0}}}while(0);q=c[g>>2]|0;h=s}else{q=s}o=o+1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*12|0)+8>>2]=(da(o,o)|0)+(da(s,s)|0);o=c[g>>2]|0;r=r+1|0}q=q+1|0;}while((q|0)<(o|0))}p=p+1|0;}while((p|0)<(o|0));pb(e|0,r|0,12,183);if((r|0)<=0){break}m=r+ -1|0;n=0;do{z=da(c[g>>2]|0,c[e+(n*12|0)+4>>2]|0)|0;a[(c[b>>2]|0)+(z+(c[e+(n*12|0)>>2]|0))|0]=255-((n*254|0)/(m|0)|0);n=n+1|0;}while((n|0)<(r|0))}else{pb(e|0,0,12,183)}}while(0);l=l+1|0;if((l|0)>=(h|0)){break}o=c[g>>2]|0}Fe(e);Fe(k);Fe(d);Fe(j);i=f;return}function Dq(a,b){a=a|0;b=b|0;i=i;return(c[a+8>>2]|0)-(c[b+8>>2]|0)|0}function Eq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;c[b>>2]=c[d>>2];g=c[d+8>>2]|0;f=b+8|0;c[f>>2]=g;g=ye(da(g,g)|0,1)|0;c[b+4>>2]=g;f=c[f>>2]|0;$W(g|0,c[d+4>>2]|0,da(f,f)|0)|0;a[b+12|0]=a[d+12|0]|0;a[b+13|0]=a[d+13|0]|0;i=e;return}function Fq(a){a=a|0;var b=0;b=i;Fe(c[a+4>>2]|0);i=b;return}function Gq(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;g=i;h=a+4|0;if((c[h>>2]|0)==0){zq(a)}if((d[a+12|0]|0)>(f&255)){b=0;i=g;return b|0}if((d[a+13|0]|0)<=(f&255)){b=1;i=g;return b|0}a=c[a+8>>2]|0;b=(b|0)%(a|0)|0;e=(e|0)%(a|0)|0;b=(da((e|0)<0?0-e|0:e,a)|0)+((b|0)<0?0-b|0:b)|0;b=(d[(c[h>>2]|0)+b|0]|0)<=(f&255)|0;i=g;return b|0}function Hq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var j=0,k=0,l=0;j=i;k=i;i=i+8|0;l=k;h[b>>3]=1.0;bX(b+8|0,0,16)|0;h[b+24>>3]=1.0;bX(b+32|0,0,16)|0;c[k>>2]=0;k=FW(8)|0;tq(k,l);c[b+48>>2]=k;k=FW(8)|0;tq(k,l);c[b+52>>2]=k;k=FW(16)|0;yqYq(e,a,d);i=b;return}function Xq(a,b){a=a|0;b=b|0;var d=0,e=0.0,f=0.0,g=0,j=0.0,k=0.0;d=i;if((c[a+48>>2]&64|0)==0){g=a;a=a+8|0}else{g=a+16|0;a=a+24|0}e=+h[a>>3];f=+h[g>>3];if((c[b+48>>2]&64|0)==0){g=b;b=b+8|0}else{g=b+16|0;b=b+24|0}j=+h[b>>3];k=+h[g>>3];if(e!=j){a=e<j;i=d;return a|0}else{a=f!=k&f<k;i=d;return a|0}return 0}function Yq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;e=i;h=i;i=i+56|0;r=i;i=i+56|0;o=i;i=i+56|0;q=i;i=i+56|0;n=i;i=i+56|0;E=i;i=i+56|0;G=i;i=i+56|0;C=i;i=i+56|0;F=i;i=i+56|0;D=i;i=i+56|0;z=i;i=i+56|0;J=i;i=i+56|0;y=i;i=i+56|0;B=i;i=i+56|0;f=i;i=i+56|0;g=f;p=i;i=i+56|0;k=i;i=i+56|0;j=i;i=i+56|0;l=i;i=i+56|0;w=i;i=i+56|0;t=i;i=i+56|0;v=i;i=i+56|0;s=i;i=i+56|0;u=i;i=i+56|0;M=i;i=i+56|0;L=i;i=i+56|0;I=i;i=i+56|0;H=i;i=i+56|0;x=i;i=i+56|0;A=i;i=i+56|0;a:while(1){m=b+ -56|0;b:while(1){O=b-a|0;switch((O|0)/56|0|0){case 2:{K=4;break a};case 3:{K=6;break a};case 5:{K=15;break a};case 4:{K=14;break a};case 1:case 0:{K=81;break a};default:{}}if((O|0)<1736){K=21;break a}P=(O|0)/112|0;N=a+(P*56|0)|0;do{if((O|0)>55944){Q=(O|0)/224|0;O=a+(Q*56|0)|0;Q=a+((Q+P|0)*56|0)|0;P=Zq(a,O,N,Q,d)|0;if(!(Bd[c[d>>2]&255](m,Q)|0)){break}$W(B|0,Q|0,56)|0;$W(Q|0,m|0,56)|0;$W(m|0,B|0,56)|0;if(!(Bd[c[d>>2]&255](Q,N)|0)){P=P+1|0;break}$W(J|0,N|0,56)|0;$W(N|0,Q|0,56)|0;$W(Q|0,J|0,56)|0;if(!(Bd[c[d>>2]&255](N,O)|0)){P=P+2|0;break}$W(z|0,O|0,56)|0;$W(O|0,N|0,56)|0;$W(N|0,z|0,56)|0;if(!(Bd[c[d>>2]&255](O,a)|0)){P=P+3|0;break}$W(y|0,a|0,56)|0;$W(a|0,O|0,56)|0;$W(O|0,y|0,56)|0;P=P+4|0}else{S=Bd[c[d>>2]&255](N,a)|0;O=Bd[c[d>>2]&255](m,N)|0;if(!S){if(!O){P=0;break}$W(D|0,N|0,56)|0;$W(N|0,m|0,56)|0;$W(m|0,D|0,56)|0;if(!(Bd[c[d>>2]&255](N,a)|0)){P=1;break}$W(C|0,a|0,56)|0;$W(a|0,N|0,56)|0;$W(N|0,C|0,56)|0;P=2;break}if(O){$W(E|0,a|0,56)|0;$W(a|0,m|0,56)|0;$W(m|0,E|0,56)|0;P=1;break}$W(G|0,a|0,56)|0;$W(a|0,N|0,56)|0;$W(N|0,G|0,56)|0;if(!(Bd[c[d>>2]&255](m,N)|0)){P=1;break}$W(F|0,N|0,56)|0;$W(N|0,m|0,56)|0;$W(m|0,F|0,56)|0;P=2}}while(0);do{if(Bd[c[d>>2]&255](a,N)|0){Q=m}else{Q=m;while(1){Q=Q+ -56|0;if((a|0)==(Q|0)){break}if(Bd[c[d>>2]&255](Q,N)|0){K=64;break}else{}}if((K|0)==64){K=0;$W(I|0,a|0,56)|0;$W(a|0,Q|0,56)|0;$W(Q|0,I|0,56)|0;P=P+1|0;break}O=a+56|0;if(!(Bd[c[d>>2]&255](a,m)|0)){if((O|0)==(m|0)){K=81;break a}while(1){N=O+56|0;if(Bd[c[d>>2]&255](a,O)|0){break}if((N|0)==(m|0)){K=81;break a}else{O=N}}$W(x|0,O|0,56)|0;$W(O|0,m|0,56)|0;$W(m|0,x|0,56)|0;O=N}if((O|0)==(m|0)){K=81;break a}else{N=m}while(1){while(1){P=O+56|0;if(Bd[c[d>>2]&255](a,O)|0){break}else{O=P}}do{N=N+ -56|0;}while(Bd[c[d>>2]&255](a,N)|0);if(O>>>0>=N>>>0){a=O;continue b}$W(H|0,O|0,56)|0;$W(O|0,N|0,56)|0;$W(N|0,H|0,56)|0;O=P}}}while(0);O=a+56|0;c:do{if(O>>>0<Q>>>0){while(1){S=O;while(1){O=S+56|0;if(Bd[c[d>>2]&255](S,N)|0){S=O}else{R=Q;break}}do{R=R+ -56|0;}while(!(Bd[c[d>>2]&255](R,N)|0));if(S>>>0>R>>>0){O=S;break c}$W(L|0,S|0,56)|0;$W(S|0,R|0,56)|0;$W(R|0,L|0,56)|0;Q=R;N=(N|0)==(S|0)?R:N;P=P+1|0}}}while(0);do{if((O|0)!=(N|0)){if(!(Bd[c[d>>2]&255](N,O)|0)){break}$W(M|0,O|0,56)|0;$W(O|0,N|0,56)|0;$W(N|0,M|0,56)|0;P=P+1|0}}while(0);if((P|0)==0){P=_q(a,O,d)|0;N=O+56|0;if(_q(N,b,d)|0){K=76;break}if(P){a=N;continue}}if((O-a|0)>=(b-O|0)){K=80;break}Yq(a,O,d);a=O+56|0}if((K|0)==76){K=0;if(P){K=81;break}else{b=O;continue}}else if((K|0)==80){K=0;Yq
7321 Q(b);if((a[h]|0)==0){h=0;i=e;return h|0}b=c[b+32>>2]|0;if((b|0)==0){h=0;i=e;return h|0}c[d>>2]=c[f>>2];h=b;i=e;return h|0}}while(0);h=AQ(b,d,1)|0;i=e;return h|0}function bP(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;e=i;k=a+16|0;h=b+4|0;if(k>>>0>(c[h>>2]|0)>>>0){wJ(b,8)}g=(d[a+5|0]|0)<<16|(d[a+4|0]|0)<<24|(d[a+6|0]|0)<<8|(d[a+7|0]|0);f=(d[a+13|0]|0)<<16|(d[a+12|0]|0)<<24|(d[a+14|0]|0)<<8|(d[a+15|0]|0);if(g>>>0>((c[h>>2]|0)-a|0)>>>0){wJ(b,8)}if(g>>>0<((f*12|0)+16|0)>>>0){wJ(b,8)}if((f|0)==0){i=e;return 0}h=b+8|0;g=b+172|0;a=0;j=0;n=k;while(1){m=(d[n+1|0]|0)<<16|(d[n]|0)<<24|(d[n+2|0]|0)<<8|(d[n+3|0]|0);k=(d[n+5|0]|0)<<16|(d[n+4|0]|0)<<24|(d[n+6|0]|0)<<8|(d[n+7|0]|0);l=n+12|0;if(m>>>0>k>>>0){f=9;break}if(!((j|0)==0|m>>>0>a>>>0)){f=11;break}if((c[h>>2]|0)!=0){if((k-m+((d[n+9|0]|0)<<16|(d[n+8|0]|0)<<24|(d[n+10|0]|0)<<8|(d[n+11|0]|0))|0)>>>0>=(c[g>>2]|0)>>>0){f=14;break}}j=j+1|0;if(j>>>0<f>>>0){n=l;a=k}else{f=16;break}}if((f|0)==9){wJ(b,8)}else if((f|0)==11){wJ(b,8)}else if((f|0)==14){wJ(b,16)}else if((f|0)==16){i=e;return 0}return 0}function cP(a,b){a=a|0;b=b|0;a=c[a+16>>2]|0;c[b+4>>2]=12;c[b>>2]=(d[a+9|0]|0)<<16|(d[a+8|0]|0)<<24|(d[a+10|0]|0)<<8|(d[a+11|0]|0);i=i;return 0}function dP(b,e){b=b|0;e=e|0;c[b+16>>2]=e;c[b+40>>2]=(d[e+13|0]|0)<<16|(d[e+12|0]|0)<<24|(d[e+14|0]|0)<<8|(d[e+15|0]|0);a[b+24|0]=0;i=i;return 0}function eP(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;e=i;i=i+8|0;c[e>>2]=b;b=yQ(a,e,0)|0;i=d;return b|0}function fP(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;f=b+28|0;g=c[f>>2]|0;if((g|0)==-1){h=0;i=e;return h|0}h=b+24|0;do{if((a[h]|0)!=0){if((g|0)!=(c[d>>2]|0)){break}xQ(b);if((a[h]|0)==0){h=0;i=e;return h|0}b=c[b+32>>2]|0;if((b|0)==0){h=0;i=e;return h|0}c[d>>2]=c[f>>2];h=b;i=e;return h|0}}while(0);h=yQ>>1]|0;b:do{switch(j|0){case 8:{g=DK(n,1)|0;c[r>>2]=g;if((g|0)==0){break b}c[r>>2]=83;g=83;i=q;return g|0};case 7:case 6:case 5:case 2:case 1:{s=d[f+46|0]|0;if((l|0)<0){g=6;i=q;return g|0}f=d[o+1|0]|0;if((f+l|0)>(c[k+80>>2]|0)|(m|0)<0){g=6;i=q;return g|0}t=d[o]|0;if((t+m|0)>(c[y>>2]|0)){g=6;i=q;return g|0}r=da(f,s)|0;switch(j|0){case 6:case 1:{if((s|0)==1){f=(f+7|0)>>>3}else if((s|0)==2){f=(f+3|0)>>>2}else if((s|0)==4){f=(f+1|0)>>>1}t=da(f,t)|0;h=1;break};case 7:case 5:case 2:{t=((da(t,r)|0)+7|0)>>>3;h=0;break};default:{g=3;i=q;return g|0}}t=MK(n,t)|0;if((t|0)!=0){g=t;i=q;return g|0}s=da(s,l)|0;v=a[o]|0;l=c[k+84>>2]|0;x=c[k+88>>2]|0;if((l|0)<0){x=x+(da((c[y>>2]|0)+ -1|0,0-l|0)|0)|0}if(v<<24>>24!=0){z=da(l,m)|0;p=s>>3;m=s&7;f=m&255;t=r>>>0>7;s=r+ -8|0;k=m<<24>>24==0;m=8-m<<24>>24&255;u=h<<24>>24==0;g=(15-r|0)>0?0:s>>>3;h=s-(g<<3)|0;o=c[n+32>>2]|0;y=0;w=v&255;v=x+(p+1+g+z)|0;x=x+(z+p)|0;p=0;while(1){if(t){z=o;A=y;y=s;j=x;while(1){if(p>>>0<8){o=z+1|0;A=(d[z]<<8-p|A&65535)&65535;p=p+8|0}else{o=z}z=(A&65535)>>>8&65535;if(k){a[j]=d[j]|z;j=j+1|0}else{a[j]=d[j]|z>>>f;j=j+1|0;a[j]=d[j]|z<<m}A=A<<8&65535;p=p+ -8|0;y=y+ -8|0;if((y|0)>-1){z=o}else{y=h;z=v;break}}}else{A=y;y=r;z=x}if((y|0)>0){if((p|0)<(y|0)){j=o+1|0;A=(d[o]<<8-p|A&65535)&65535;p=p+8|0}else{j=o}o=(A&65535)>>>8&65535&(255>>>y^255);a[z]=o>>>f|d[z];if((y|0)>(m|0)){g=z+1|0;a[g]=d[g]|o<<m}o=j;A=(A&65535)<<y&65535;p=p-y|0}w=w+ -1|0;if((w|0)>0){y=u?A:0;v=v+l|0;x=x+l|0;p=u?p:0}else{break}}}PK(n);g=0;i=q;return g|0};case 9:{break};default:{g=3;i=q;return g|0}}}while(0);y=EK(n,z)|0;o=c[r>>2]|0;if((o|0)!=0){g=o;i=q;return g|0}j=y&65535;o=oJ(s,4,0,j,0,z)|0;z=c[r>>2]|0;if((z|0)!=0){g=z;i=q;return g|0}g=MK(n,j<<2)|0;c[r>>2]=g;c:do{if((g|0)==0){j=y<<16>>16==0;if(j){PK(n);break}else{z=o;A=y}while(1){b[z>>1]=RK(n)|0;a[z+2|0]=QK(n)|0;a[z+3|0]=QK(n)|0;A=A+ -1<<16>>16;if(A<<16>>16==0){break}else{z=z+4|0}}PK(n);if(j){break}z=p+1|0;p=o;while(1){g=qQ(e[p>>1]|0,f,v,w)|0;c[r>>2]=g;if((g|0)!=0){break c}g=pQ(f,c[x>>2]|0,h,c[u>>2]|0,k,(a[p+2|0]|0)+l|0,(a[p+3|0]|0)+m|0,n,t,z)|0;c[r>>2]=g;if((g|0)!=0){break c}y=y+ -1<<16>>16;if(y<<16>>16==0){break}else{p=p+4|0}}}}while(0);lJ(s,o);g=c[r>>2]|0;i=q;return g|0}function qQ(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;a:do{if((e[d+40>>1]|0)>>>0<=a>>>0){if((e[d+42>>1]|0)>>>0<a>>>0){break}j=c[d+4>>2]|0;n=c[d>>2]|0;d=j+(n*40|0)|0;if(!((j|0)!=0&(n|0)>0)){break}while(1){k=e[j>>1]|0;if(k>>>0<=a>>>0){if((e[j+2>>1]|0)>>>0>=a>>>0){break}}j=j+40|0;if(j>>>0>=d>>>0){break a}}k=a-k|0;d=b[j+4>>1]|0;b:do{switch(d&65535|0){case 5:case 4:{k=c[j+24>>2]|0;if((k|0)==0){break a}m=c[j+32>>2]|0;n=0;while(1){l=n+1|0;if((e[m+(n<<1)>>1]|0|0)==(a|0)){break}if(l>>>0<k>>>0){n=l}else{break a}}if(d<<16>>16==4){c[g>>2]=c[(c[j+28>>2]|0)+(n<<2)>>2];break b}else{c[g>>2]=(da(c[j+12>>2]|0,n)|0)+(c[j+8>>2]|0);break b}break};case 3:case 1:{c[g>>2]=c[(c[j+28>>2]|0)+((k&65535)<<2)>>2];break};case 2:{c[g>>2]=(da(c[j+12>>2]|0,k&65535)|0)+(c[j+8>>2]|0);break};default:{break a}}}while(0);c[f>>2]=j;n=0;i=h;return n|0}}while(0);c[f>>2]=0;c[g>>2]=0;n=6;i=h;return n|0}function rQ(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=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;g=i;h=i;i=i+8|0;k=h;j=c[a+100>>2]|0;c[h>>2]=0;m=a+360|0;p=b[a+344>>1]|0;if(p<<16>>16==0){v=0;w=f;c[w>>2]=v;w=h;w=c[w>>2]|0;i=g;return w|0}q=0;u=-1;v=-1;r=-1;n=-1;s=0;t=0;o=c[m>>2]|0;while(1){do{if((b[o+6>>1]|0)==d<<16>>16){if((b[o+8>>1]|0)==0){break}w=e[o>>1]|0;if((w|0)==1){if((b[o+4>>1]|0)==0){u=q;break}v=(b[o+2>>1]|0)==0?q:v;break}else if((w|0)==3){if((n|0)!=-1){if((b[o+4>>1]&1023)!=9){break}}w=e[o+2>>1]|0;if(!((w|0)==10|(w|0)==1|(w|0)==0)){break}n=q;s=(b[o+4>>1]&1023)==9|0;break}else if((w|0)==2|(w|0)==0){r=q;break}else{break}}}while(0);t=t+1<<16>>16;if((t&65535)<(p&65535)){q=t&65535;o=o+20|0}else{break}}o=(u|0)>-1?u:v;do{if((n|0)>-1){if((o|0)>-1&s<<24>>24==0){l=17;break}m=c[m>>2]|0;w=e[m+(n*20|0)+2>>1]|0;if((w|0)==10|(w|0)==0|(w|0)==1){d=195;m=m+(n*20|0)|0;break}else{j=0}w=f;c[w>>2]=j;w=h;w=c[w>>2]|0;i=g;return w|0}else{l=17}}while(0);do{if((l|0)==17){if((o|0)>-1){d=196;m=(c[m>>2]|0)+(o*20|0)|0;break}if((r|0)>-1){d=195;m=(c[m>>2]|0)+(r*20|0)|0;break}else{v=0;w=f;c[w>>2]=v;w=h;w=c[w>>2]|0;i=g;return w|0}}}while(0);if((m|0)==0){v=0;w=f;c[w>>2]=v;w=h;w=c[w>>2]|0;i=g;return w|0}l=m+16|0;a:do{if((c[l>>2]|0)==0){n=c[a+364>>2]|0;a=m+8|0;c[l>>2]=oJ(j,1,0,e[a>>1]|0,0,k)|0;do{if((c[h>>2]|0)==0){w=PJ(n,c[m+12>>2]|0)|0;c[h>>2]=w;if((w|0)!=0){break}w=CK(n,c[l>>2]|0,e[a>>1]|0)|0;c[h>>2]=w;if((w|0)==0){break a}}}while(0);lJ(j,c[l>>2]|0);c[l>>2]=0;b[a>>1]=0;v=0;w=f;c[w>>2]=v;w=h;w=c[w>>2]|0;i=g;return w|0}}while(0);v=Bd[d&255](m,j)|0;w=f;c[w>>2]=v;w=h;w=c[w>>2]|0;i=g;return w|0}function sQ(a){a=a|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=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;f=i;k=i;i=i+168|0;c[k>>2]=0;o=i;i=i+16|0;h=o;g=i;i=i+176|0;p=i;i=i+8|0;j=p;m=c[a+500>>2]|0;n=a+504|0;l=m+(c[n>>2]|0)|0;q=m;if((q|0)==0){i=f;return}if((q+4|0)>>>0>l>>>0){i=f;return}G=q+2|0;q=G;if((d[G+ -1|0]|0|(d[G+ -2|0]|0)<<8&65535)<<16>>16!=0){i=f;return}q=q+2|0;u=(d[q+ -1|0]|0|(d[q+ -2|0]|0)<<8&65535)&65535;if((u|0)==0){i=f;return}z=h+8|0;A=h+10|0;r=h+4|0;w=a+264|0;x=g+172|0;y=g+16|0;v=g+12|0;while(1){if((q+8|0)>>>0>l>>>0){a=24;break}q=q+2|0;b[z>>1]=d[q+ -1|0]|0|(d[q+ -2|0]|0)<<8&65535;q=q+2|0;b[A>>1]=d[q+ -1|0]|0|(d[q+ -2|0]|0)<<8&65535;c[o>>2]=a;c[r>>2]=0;q=q+4|0;B=(d[q+ -3|0]|0)<<16|(d[q+ -4|0]|0)<<24|(d[q+ -2|0]|0)<<8|(d[q+ -1|0]|0);do{if((B|0)!=0){if(B>>>0>((c[n>>2]|0)+ -2|0)>>>0){break}B=m+B|0;E=(d[B+1|0]|0|(d[B]|0)<<8&65535)&65535;D=272992;a:do{if((c[D>>2]|0)!=0){while(1){C=c[D>>2]|0;if((c[C+40>>2]|0)==(E|0)){break}D=D+4|0;if((c[D>>2]|0)==0){break a}}D=0;s=0;Pa(35,g|0,B|0,l|0,0);F=s;s=0;if((F|0)!=0&(t|0)!=0){E=kX(c[F>>2]|0,k)|0;if((E|0)==0){_a(F|0,t|0)}H=t}else{E=-1}if((E|0)==1){E=H}else{c[x>>2]=e[w>>1]|0;YW(y,1,k|0)|0;E=0}while(1){if((E|0)==0){s=0;G=Ha(c[C+44>>2]|0,B|0,g|0)|0;F=s;s=0;if((F|0)!=0&(t|0)!=0){E=kX(c[F>>2]|0,k)|0;if((E|0)==0){_a(F|0,t|0)}H=t}else{E=-1}if((E|0)==1){E=H;continue}D=G}if((c[v>>2]|0)!=0){break a}s=0;G=va(42,C|0,B|0,h|0,j|0)|0;F=s;s=0;if((F|0)!=0&(t|0)!=0){E=kX(c[F>>2]|0,k)|0;if((E|0)==0){_a(F|0,t|0)}H=t}else{E=-1}if((E|0)==1){E=H}else{break}}if((G|0)!=0){break}c[(c[p>>2]|0)+20>>2]=D}}while(0);}}while(0);u=u+ -1|0;if((u|0)==0){a=24;break}}if((a|0)==24){i=f;return}}function tQ(b,f){b=b|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;k=i;i=i+8|0;h=c[b+16>>2]|0;b=(e[b+8>>1]|0)>>>1;f=oJ(f,1,0,b+1|0,0,k)|0;if((c[k>>2]|0)!=0){k=0;i=g;return k|0}if((b|0)!=0){j=0;while(1){k=a[h+1|0]|0;a[f+j|0]=(((d[h]|0)<<8&65535|k&255)+ -32<<16>>16&65535)>95?63:k;j=j+1|0;if(j>>>0<b>>>0){h=h+2|0}else{break}}}a[f+b|0]=0;k=f;i=g;return k|0}function uQ(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;j=i;i=i+8|0;g=c[d+16>>2]|0;h=b[d+8>>1]|0;d=h&65535;e=oJ(e,1,0,d+1|0,0,j)|0;if((c[j>>2]|0)!=0){j=0;i=f;return j|0}if(h<<16>>16!=0){h=0;while(1){j=a[g]|0;a[e+h|0]=(j&255)<32|j<<24>>24<0?63:j;h=h+1|0;if(h>>>0<d>>>0){g=g+1|0}else{break}}}a[e+d|0]=0;j=e;i=f;return j|0}function vQ(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;k=i;i=i+8|0;j=k;g=(d[b+1|0]|0)<<16|(d[b]|0)<<24|(d[b+2|0]|0)<<8|(d[b+3|0]|0);h=(g|0)==0;if(h){n=1}else{l=b+7|0;n=g;m=0;while(1){m=m+1+(d[l]|0)|0;n=n+ -1|0;if((n|0)==0){break}else{l=l+4|0}}n=m+1|0}l=a+28|0;m=c[l>>2]|0;c[k>>2]=0;do{if(m>>>0<n>>>0){c[a+36>>2]=e;a=a+32|0;c[a>>2]=oJ(e,4,m,n,c[a>>2]|0,j)|0;if((c[k>>2]|0)==0){c[l>>2]=n;break}else{n=0;i=f;return n|0}}else{a=a+32|0}}while(0);k=c[a>>2]|0;if(!h){while(1){h=b+4|0;j=d[b+7|0]|0;l=j+1|0;e=k;b=(d[b+5|0]|0)<<8|(d[h]|0)<<16|(d[b+6|0]|0);while(1){c[e>>2]=b;l=l+ -1|0;if((l|0)==0){break}else{b=b+1|0;e=e+4|0}}k=k+(j+1<<2)|0;g=g+ -1|0;if((g|0)==0){break}else{b=h}}}c[k>>2]=0;n=c[a>>2]|0;i=f;return n|0}function wQ(a,b){a=a|0;b=b|0;var c=0,e=0,f=0,g=0,h=0,j=0,k=0;c=i;e=(d[a+1|0]|0)<<16|(d[a]|0)<<24|(d[a+2|0]|0)<<8|(d[a+3|0]|0);if((e|0)==0){k=0;i=c;return k|0}else{j=0}a:while(1){while(1){k=(j+e|0)>>>1;g=k*5|0;f=g+7|0;h=(d[a+(g+5)|0]|0)<<8|(d[a+(g+4)|0]|0)<<16|(d[a+(g+6)|0]|0);if(h>>>0>b>>>0){break}j=k+1|0;if(h>>>0>=b>>>0){b=7;break a}if(j>>>0>=e>>>0){a=0;b=8;break a}}if(j>>>0<k>>>0){e=k}else{a=0;b=8;break}}if((b|0)==7){k=((d[a+f|0]|0)<<8&65535|(d[a+(g+8)|0]|0))&65535;i=c;return k|0}else if((b|0)==8){i=c;return a|0}return 0}function xQ(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;h=i;e=b+28|0;k=c[e>>2]|0;a:do{if((k|0)!=-1){f=b+36|0;l=c[f>>2]|0;g=c[b+40>>2]|0;if(l>>>0>=g>>>0){break}j=c[b+16>>2]|0;n=k+1|0;while(1){m=l*12|0;o=(d[j+(m+17)|0]|0)<<16|(d[j+(m+16)|0]|0)<<24|(d[j+(m+18)|0]|0)<<8|(d[j+(m+19)|0]|0);k=(d[j+(m+25)|0]|0)<<16|(d[j+(m+24)|0]|0)<<24|(d[j+(m+26)|0]|0)<<8|(d[j+(m+27)|0]|0);n=n>>>0<o>>>0?o:n;o=l+1|0;if(!(n>>>0>((d[j+(m+21)|0]|0)<<16|(d[j+(m+20)|0]|0)<<24|(d[j+(m+22)|0]|0)<<8|(d[j+(m+23)|0]|0))>>>0|(k|0)==0)){break}if(o>>>0<g>>>0){l=o}else{break a}}c[e>>2]=n;c[b+32>>2]=k;c[f>>2]=l;i=h;return}}while(0);a[b+24|0]=0;i=h;return}function yQ}if((h|0)==10){a[m]=l;m=m+1|0;h=11}if((h|0)==11){a[m]=l;m=m+1|0;h=12}if((h|0)==12){a[m]=l;m=m+1|0;h=13}if((h|0)==13){h=0;a[m]=l;m=m+1|0}a[m]=l}}while(0);e=e+ -1|0;if((e|0)>0){f=f+6|0}else{break}}i=j;return}function SQ(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;d=i;i=i+168|0;c[d>>2]=0;YW(a+1256|0,1,d|0)|0;e=0;while(1){if((e|0)!=0){a=6;break}s=0;e=ya(78,a+980|0,273328,a|0)|0;f=s;s=0;if((f|0)!=0&(t|0)!=0){g=kX(c[f>>2]|0,d)|0;if((g|0)==0){_a(f|0,t|0)}H=t}else{g=-1}if((g|0)==1){e=H;continue}s=0;la(339,a|0);g=s;s=0;if((g|0)!=0&(t|0)!=0){f=kX(c[g>>2]|0,d)|0;if((f|0)==0){_a(g|0,t|0)}H=t}else{f=-1}if((f|0)==1){e=H}else{a=5;break}}if((a|0)==5){g=e;i=b;return g|0}else if((a|0)==6){g=64;i=b;return g|0}return 0}function TQ(f,g,h,j,k){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;l=i;j=j>>9;j=(j|0)<0?0-j|0:j;do{if((c[f+996>>2]&2|0)==0){j=(j|0)>255?255:j}else{j=j&511;if(j>>>0>256){j=512-j|0;break}else{j=(j|0)==256?255:j;break}}}while(0);h=(c[f+16>>2]|0)+h|0;g=(c[f+8>>2]|0)+g|0;g=(g|0)<32767?g:32767;if((j|0)==0){i=l;return}m=f+1232|0;p=c[m>>2]|0;o=f+1040|0;q=p+ -1|0;n=(p|0)>0;s=c[f+1244>>2]|0;do{if(n&(s|0)==(h|0)){r=f+1040+(q*6|0)+2|0;s=e[r>>1]|0;if((s+(b[f+1040+(q*6|0)>>1]|0)|0)!=(g|0)){s=h;break}if((d[f+1040+(q*6|0)+4|0]|0)!=(j|0)){s=h;break}b[r>>1]=s+k;i=l;return}}while(0);r=f+1244|0;if((s|0)!=(h|0)|(p|0)>31){q=c[f+1236>>2]|0;if(!((q|0)==0|n^1)){Jd[q&63](s,p,o,c[f+1240>>2]|0)}c[m>>2]=0;c[r>>2]=h}else{o=f+1040+(p*6|0)|0}b[o>>1]=g;b[o+2>>1]=k;a[o+4|0]=j;c[m>>2]=(c[m>>2]|0)+1;i=l;return}function UQ(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;if((c[a+40>>2]|0)!=0){i=g;return}f=a+32|0;k=c[f>>2]|0;e=a+36|0;if((c[e>>2]|k|0)==0){i=g;return}l=c[a>>2]|0;j=c[a+24>>2]|0;j=(l|0)>(j|0)?j:l;n=(c[a+1420>>2]|0)+(c[a+4>>2]<<2)|0;l=c[n>>2]|0;a:do{if((l|0)==0){h=7}else{while(1){m=c[l>>2]|0;if((m|0)>(j|0)){h=7;break a}n=l+12|0;if((m|0)==(j|0)){d=k;b=l;break a}l=c[n>>2]|0;if((l|0)==0){h=7;break}}}}while(0);do{if((h|0)==7){k=a+52|0;h=c[k>>2]|0;if((h|0)<(c[a+48>>2]|0)){d=c[a+44>>2]|0;c[k>>2]=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Y,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY,CY];var Hd=[DY,EY];var Id=[FY,pi,xi,FY];var Jd=[GY,Ri,Si,Ti,Ui,Vi,Wi,Xi,Yi,Zi,_i,$i,aj,bj,cj,dj,Xy,Zy,Sy,_B,$B,kz,mz,Iz,Oz,Sz,Yz,$z,yM,IM,OM,tW,uW,xN,yN,vJ,RQ,MR,NR,OR,PR,QR,RR,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY,GY];return{_saveSetjmp:YW,_memcmp:iX,_strncasecmp:XW,_strcat:cX,_free:BW,_main:_d,_realloc:CW,_i64Add:gX,_memmove:aX,_tolower:WW,_strlen:ZW,_memset:bX,_malloc:AW,_bitshift64Ashr:_W,_memcpy:$W,_strncpy:hX,_bitshift64Lshr:jX,_bitshift64Shl:dX,_i64Subtract:fX,_strcpy:eX,_testSetjmp:kX,runPostSets:VW,stackAlloc:Kd,stackSave:Ld,stackRestore:Md,setThrew:Nd,setTempRet0:Qd,setTempRet1:Rd,setTempRet2:Sd,setTempRet3:Td,setTempRet4:Ud,setTempRet5:Vd,setTempRet6:Wd,setTempRet7:Xd,setTempRet8:Yd,setTempRet9:Zd,dynCall_iiiiiiii:uX,dynCall_viiiii:vX,dynCall_vi:wX,dynCall_iiiidd:xX,dynCall_vii:yX,dynCall_iiiiiii:zX,dynCall_ii:AX,dynCall_viidd:BX,dynCall_viddii:CX,dynCall_viiddddddiiii:DX,dynCall_iiiiiiiiiiiidd:EX,dynCall_vidii:FX,dynCall_iiiii:GX,dynCall_iiiddddiii:HX,dynCall_viiiiiiiiiii:IX,dynCall_iiii:JX,dynCall_iiiddiiiiiiiiiii:KX,dynCall_viiiiii:LX,dynCall_viiiiiiiiiiiii:MX,dynCall_di:NX,dynCall_iiiiiiiiiii:OX,dynCall_viiiiiii:PX,dynCall_viiiiiiiii:QX,dynCall_viiiiiiiiii:RX,dynCall_iii:SX,dynCall_iiiiii:TX,dynCall_dii:UX,dynCall_viidddddd:VX,dynCall_iiiiiiiiii:WX,dynCall_viii:XX,dynCall_v:YX,dynCall_viid:ZX,dynCall_viiii:_X}})