Home | History | Annotate | Download | only in sqlite3

Lines Matching refs:Nr

11 (k|0));a[h>>0]=119;c[h+8>>2]=n;a[h+1>>0]=10}c[ca>>2]=h;break}case 285:{n=c[$>>2]|0;m=c[f+(aa+-1<<4)+16>>2]|0;l=c[f+(aa<<4)+16>>2]|0;k=a[f+(aa+-4<<4)+16>>0]|0;h=Kr(n,108,f+(aa+-2<<4)+16|0)|0;if(!h)Dk(n,m);else{c[h+8>>2]=cr(n,l,1)|0;c[h+28>>2]=m;a[h+1>>0]=k}Ik(n,l,1);c[ca>>2]=h;break}case 288:{h=Vq($,57,0,0,0)|0;c[ca>>2]=h;if(h)a[h+1>>0]=4;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 289:{h=Vq($,57,0,0,f+(aa+-1<<4)+16|0)|0;c[ca>>2]=h;if(h)a[h+1>>0]=c[f+(aa+-3<<4)+16>>2];c[ca+4>>2]=c[f+(aa+-5<<4)+16>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 290:{c[ca>>2]=1;break}case 292:{c[ca>>2]=3;break}case 293:{k=c[f+(aa<<4)+16>>2]|0;h=c[f+(aa+-1<<4)+16>>2]|0;t=c[$>>2]|0;do if((a[t+65>>0]|0)==0?(Cn($)|0)==0:0){u=c[k+12>>2]|0;s=c[k+16>>2]|0;r=t+20|0;if((c[r>>2]|0)>0){n=(u|0)==0;m=t+16|0;l=0;p=0;do{o=(l|0)<2^l;q=c[m>>2]|0;if(!(!n?($c(c[q+(o<<4)>>2]|0,u)|0)!=0:0)){q=Zm((c[q+(o<<4)+12>>2]|0)+40|0,s,I)|0;if(q){p=c[q+8>>2]|0;if(p)break}else p=0}l=l+1|0}while((l|0)<(c[r>>2]|0));if(p){Mr($,p);break}}if(!h){c[_>>2]=k;c[_+4>>2]=0;ph($,29600,_)}else vr($,u);a[$+17>>0]=1}while(0);zo(t,k);break}case 294:{_=c[f+(aa+-3<<4)+16>>2]|0;Nr($,24,29360,_,_,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 303:{Pr($,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0);break}case 304:{w=c[f+(aa+-3<<4)+16>>2]|0;u=f+(aa<<4)+16|0;v=c[$>>2]|0;k=v+24|0;l=c[k>>2]|0;do if((a[v+65>>0]|0)==0?(U=Qr($,0,w+8|0)|0,(U|0)!=0):0){q=c[$>>2]|0;x=U+68|0;s=c[x>>2]|0;j:do if(s){r=c[q+20>>2]|0;if((r|0)>0){q=c[q+16>>2]|0;o=0;while(1){p=o+1|0;if((c[q+(o<<4)+12>>2]|0)==(s|0)){p=o;break j}if((p|0)<(r|0))o=p;else break}}else p=0}else p=-1e6;while(0);h=c[(c[v+16>>2]|0)+(p<<4)>>2]|0;c[k>>2]=c[k>>2]|2097152;n=Sq(v,u)|0;if(n){if((Wh(v,n,h)|0)==0?(Zp(v,n,h)|0)==0:0){if(Rr($,c[U>>2]|0)|0)break;if(Hr($,n)|0)break;q=c[U>>2]|0;if(c[U+12>>2]|0){c[_>>2]=q;ph($,26088,_);break}if(Oq($,26,h,q,0)|0)break;if(dr($,U)|0)break;if(!(a[U+44>>0]&16))m=0;else{q=c[U+60>>2]|0;k:do if(!q)q=0;else while(1){if((c[q>>2]|0)==(v|0))break k;q=c[q+24>>2]|0;if(!q){q=0;break}}while(0);m=(c[(c[c[q+8>>2]>>2]|0)+76>>2]|0)==0?0:q}q=Kq($)|0;if(!q)break;Z=(m|0)!=0;o=$+408|0;Y=c[o>>2]|0;Y=(Y|0)==0?$:Y;wr($,p);X=Y+328|0;c[X>>2]=c[X>>2]|1<<p;Y=Y+20|0;a[Y>>0]=d[Y>>0]|Z&1;zr($,p);if(Z){Y=$+72|0;Z=(c[Y>>2]|0)+1|0;c[Y>>2]=Z;th(q,sh(q,97,0,Z,0)|0,n,0);th(q,sh(q,152,Z,0,0)|0,m,-10);Z=c[o>>2]|0;a[((Z|0)==0?$:Z)+21>>0]=1}u=c[U>>2]|0;t=Jn(u,-1)|0;do if((c[k>>2]&524288|0)!=0?(Q=Zm((c[x>>2]|0)+56|0,u,S)|0,(Q|0)!=0):0){q=c[Q+8>>2]|0;if(!q)break;o=q;q=0;do{q=Sr(c[$>>2]|0,q,c[c[o>>2]>>2]|0)|0;o=c[o+12>>2]|0}while((o|0)!=0);if(!q)break;c[_>>2]=h;c[_+4>>2]=(p|0)==1?13184:13208;c[_+8>>2]=u;c[_+12>>2]=n;c[_+16>>2]=q;xr($,26120,_);ig(v,q)}while(0);c[_>>2]=h;c[_+4>>2]=(p|0)==1?13184:13208;c[_+8>>2]=n;c[_+12>>2]=n;c[_+16>>2]=n;c[_+20>>2]=n;c[_+24>>2]=n;c[_+28>>2]=t;c[_+32>>2]=u;xr($,26192,_);if(Wh(v,26576,h)|0){Z=c[U>>2]|0;c[_>>2]=h;c[_+4>>2]=n;c[_+8>>2]=Z;xr($,26592,_)}p=Tr($,U)|0;if(p){c[_>>2]=n;c[_+4>>2]=n;c[_+8>>2]=p;xr($,26656,_);ig(v,p)}do if(c[k>>2]&524288){p=Zm((c[x>>2]|0)+56|0,c[U>>2]|0,_)|0;if(!p)break;p=c[p+8>>2]|0;if(!p)break;do{o=c[p>>2]|0;if((o|0)!=(U|0))Ur($,o,c[o>>2]|0);p=c[p+12>>2]|0}while((p|0)!=0)}while(0);Ur($,U,n);break}c[_>>2]=n;ph($,26024,_)}else n=0}else n=0;while(0);zo(v,w);ig(v,n);c[k>>2]=l;break}case 295:{_=c[f+(aa<<4)+16>>2]|0;Nr,0,0,0,0,128,0,0)|0;if(!h){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}else{a[h+4>>0]=116;c[h+52>>2]=c[f+(aa+-4<<4)+16>>2];c[ca>>2]=h;break a}}case 122:{b[ca>>1]=1;break}case 124:case 123:{b[ca>>1]=0;break}case 243:case 125:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 242:case 236:case 161:case 154:case 126:{c[ca>>2]=0;break}case 127:{l=aa+-1|0;n=hr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(l<<4)+16>>2]|0)|0;c[ca>>2]=n;if(c[f+(aa<<4)+20>>2]|0)ir($,n,f+(aa<<4)+16|0,1);p=c[$>>2]|0;if(n){o=(c[n+4>>2]|0)+(((c[n>>2]|0)+-1|0)*20|0)+8|0;ig(p,c[o>>2]|0);m=c[f+(l<<4)+20>>2]|0;n=(c[f+(l<<4)+24>>2]|0)-m|0;if((m|0)!=0?(h=fw(n|0,((n|0)<0)<<31>>31|0,1,0)|0,h=ih(p,h,C)|0,(h|0)!=0):0){gw(h|0,m|0,n|0)|0;a[h+n>>0]=0}else h=0;c[o>>2]=h}break}case 133:{l=ih(c[$>>2]|0,80,0)|0;if(l){v=l+0|0;k=v+80|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0))}c[ca>>2]=l;break}case 134:{n=c[f+(aa<<4)+16>>2]|0;c[ca>>2]=n;if(n){l=c[n>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[n+(k*72|0)+44>>0]=a[n+((l+-2|0)*72|0)+44>>0]|0;l=k+-1|0;if((l|0)>0){$=k;k=l;l=$}else break}a[n+44>>0]=0}break}case 128:{Z=c[$>>2]|0;c[_>>2]=0;c[_+4>>2]=0;_=jr(Z,116,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-1<<4)+16>>2]|0,_)|0;break}case 132:{c[ca+4>>2]=0;break}case 129:{_=Vq($,116,0,0,f+(aa<<4)+16|0)|0;_=Vq($,122,Vq($,27,0,0,f+(aa+-2<<4)+16|0)|0,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-3<<4)+16>>2]|0,_)|0;break}case 136:{c[ca>>2]=0;break}case 137:{_=fr($,c[f+(aa+-6<<4)+16>>2]|0,f+(aa+-5<<4)+16|0,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;kr($,_,f+(aa+-2<<4)+16|0);break}case 135:{h=c[f+(aa+-1<<4)+16>>2]|0;c[ca>>2]=h;if((h|0)!=0?(t=c[h>>2]|0,(t|0)>0):0)a[h+((t+-1|0)*72|0)+44>>0]=c[f+(aa<<4)+16>>2];break}case 138:{c[ca>>2]=fr($,c[f+(aa+-6<<4)+16>>2]|0,0,0,f+(aa+-2<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 139:{l=f+(aa+-6<<4)+16|0;n=c[l>>2]|0;if((((n|0)==0?(c[f+(aa+-2<<4)+20>>2]|0)==0:0)?(c[f+(aa+-1<<4)+16>>2]|0)==0:0)?(c[f+(aa<<4)+16>>2]|0)==0:0){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}p=f+(aa+-4<<4)+16|0;k=c[p>>2]|0;o=c[k>>2]|0;if((o|0)==1){l=fr($,n,0,0,f+(aa+-2<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=l;if(l){X=(c[l>>2]|0)+-1|0;_=c[p>>2]|0;Z=_+16|0;c[l+(X*72|0)+16>>2]=c[Z>>2];Y=_+12|0;c[l+(X*72|0)+12>>2]=c[Y>>2];_=_+28|0;c[l+(X*72|0)+28>>2]=c[_>>2];c[Y>>2]=0;c[Z>>2]=0;c[_>>2]=0}zo(c[$>>2]|0,c[p>>2]|0);break a}if(k){m=o+-1|0;if((m|0)>0){n=o;while(1){a[k+(m*72|0)+44>>0]=a[k+((n+-2|0)*72|0)+44>>0]|0;n=m+-1|0;if((n|0)>0){_=m;m=n;n=_}else break}}a[k+44>>0]=0}_=gr($,0,k,0,0,0,0,512,0,0)|0;c[ca>>2]=fr($,c[l>>2]|0,0,0,f+(aa+-2<<4)+16|0,_,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 149:case 140:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 144:{c[ca>>2]=mr($,f+(aa+-1<<4)+16|0,0,0)|0;break}case 145:{c[ca>>2]=mr($,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0,0)|0;break}case 146:{c[ca>>2]=mr($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[ca>>2]=0;break}case 151:{c[ca>>2]=0;c[ca+4>>2]=1;break}case 143:{c[ca>>2]=1;break}case 142:{c[ca>>2]=lr(c[$>>2]|0,0,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0)|0;break}case 156:{h=hr($,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if(h)a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2];break}case 157:{h=hr($,0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if((h|0)!=0?(k=c[h+4>>2]|0,(k|0)!=0):0)a[k+12>>0]=c[f+(aa<<4)+16>>2];break}case 179:case 153:{c[ca>>2]=0;break}case 180:case 152:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 166:{c[ca>>2]=c[f+(aa<<4)+16>>2];c[ca+4>>2]=0;break}case 167:{c[ca>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+4>>2]=c[f+(aa<<4)+16>>2];break}case 168:{c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 169:{h=c[f+(aa+-5<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}_=f+(aa+-2<<4)+16|0;kr($,c[_>>2]|0,f+(aa+-1<<4)+16|0);nrnr(e,us(l,f,0)|0,0);a[s>>0]=0;if(!(c[k>>2]&16777216)){sh(o,135,0,(c[o+32>>2]|0)+2|0,0)|0;vs(e,787,2,0,-2,4)}if(n){l=c[o+24>>2]|0;h=~n;do if((n|0)<0){n=c[l+112>>2]|0;if(!n)break;c[n+(h<<2)>>2]=c[o+32>>2]}while(0);c[l+88>>2]=(c[o+32>>2]|0)+-1}}while(0);o=c[e>>2]|0;p=o+16|0;l=c[p>>2]|0;h=Kq(e)|0;s=c[q>>2]|0;s=(s|0)==0?e:s;wr(e,m);q=s+328|0;c[q>>2]=c[q>>2]|r;s=s+20|0;a[s>>0]=d[s>>0]|1;if(a[t>>0]&16)sh(h,146,0,0,0)|0;n=ws(e,v)|0;if(n)do{Mr(e,n);n=c[n+32>>2]|0}while((n|0)!=0);l=l+(m<<4)|0;if(a[t>>0]&8){s=c[v>>2]|0;c[w>>2]=c[l>>2];c[w+4>>2]=s;xr(e,35608,w)}s=c[v>>2]|0;c[w>>2]=c[l>>2];c[w+4>>2]=u;c[w+8>>2]=s;xr(e,35656,w);if((g|0)==0?(a[t>>0]&16)==0:0)xs(e,v);if(a[t>>0]&16){s=c[v>>2]|0;th(h,sh(h,148,m,0,0)|0,s,0)}k=c[v>>2]|0;th(h,sh(h,124,m,0,0)|0,k,0);zr(e,m);h=c[(c[p>>2]|0)+(m<<4)+12>>2]|0;k=b[h+78>>1]|0;if(k&2){l=c[h+16>>2]|0;if(l){k=l;do{h=c[k+8>>2]|0;if(c[h+12>>2]|0){Hk(o,h);c[h+4>>2]=0;b[h+38>>1]=0}k=c[k>>2]|0}while((k|0)!=0);k=c[(c[p>>2]|0)+(m<<4)+12>>2]|0;h=k;k=b[k+78>>1]|0}b[h+78>>1]=k&65533}}}}}while(0);zo(x,f);i=y;return}function ar(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 nr+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
14 function Av(e){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,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=e+20|0;r=e+14|0;f=a[r>>0]|0;w=e+13|0;g=a[w>>0]|0;a:do if((f&255)>(g&255))f=0;else{y=e+4|0;z=e+16|0;s=e+8|0;t=e+12|0;u=e+24|0;v=e+28|0;i=f&255;j=c[y>>2]|0;h=c[A>>2]|0;b:while(1){q=c[e+(i+-2<<2)+24>>2]|0;p=c[e+(i+-1<<2)+24>>2]|0;if(j){while(1){o=j+12|0;if((h|0)<(c[o>>2]|0)){g=h;f=(c[j+20>>2]|0)+(h*48|0)|0;while(1){do if((c[f+8>>2]|0)==(q|0)?(c[f+12>>2]|0)==(p|0):0){if((d[r>>0]|0)>=3?(c[(c[f>>2]|0)+4>>2]&1|0)!=0:0)break;n=f+18|0;h=b[n>>1]|0;if((h&1024)!=0?(x=a[w>>0]|0,(x&255)<22):0){i=c[(c[f>>2]|0)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[i+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[(c[i+20>>2]|0)+4>>2]|0;i=c[i>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(x<<24>>24)){m=0;k=0}else{l=c[i+28>>2]|0;m=i+32|0;k=0;while(1){if((c[e+(k<<2)+24>>2]|0)==(l|0)?(c[e+((k|1)<<2)+24>>2]|0)==(b[m>>1]|0):0){m=x;break d}k=k+2|0;if((k|0)>=(x&255|0)){m=x;break}}}while(0);if((k|0)==(m&255|0)){c[e+(k<<2)+24>>2]=c[i+28>>2];c[e+((k|1)<<2)+24>>2]=b[i+32>>1];a[w>>0]=(d[w>>0]|0)+2}}i=h&65535;if(i&c[z>>2]){if((c[s>>2]|0)!=0&(i&128|0)==0){l=c[c[j>>2]>>2]|0;k=c[f>>2]|0;i=a[t>>0]|0;h=(jv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ku(l,c[k+12>>2]|0,c[k+16>>2]|0)|0;if(!h)h=c[(c[l>>2]|0)+8>>2]|0;if($c(c[h>>2]|0,c[s>>2]|0)|0)break;h=b[n>>1]|0}if(!(h&2))break b;h=c[(c[f>>2]|0)+16>>2]|0;if((a[h>>0]|0)!=-102)break b;if((c[h+28>>2]|0)!=(c[u>>2]|0))break b;if((b[h+32>>1]|0)!=(c[v>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[o>>2]|0))break;else f=f+48|0}g=c[y>>2]|0}else g=j;j=c[g+4>>2]|0;c[y>>2]=j;if(!j)break;else h=0}f=a[r>>0]|0;g=a[w>>0]|0}j=c[e>>2]|0;c[y>>2]=j;h=(f&255)+2|0;f=h&255;a[r>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[A>>2]=g+1}while(0);return f|0}function Bv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=c[d>>2]|0;l=c[c[g>>2]>>2]|0;d=c[d+16>>2]|0;a:do if(!d){g=g+16|0;i=c[g>>2]|0;k=f+36|0;if((c[k>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[f+16>>0]|0;do{do if((a[i+16>>0]|0)==h<<24>>24?(c[i+36>>2]&512|0)!=0:0){if(Pv(i,f)|0){b[d>>1]=b[i+20>>1]|0;b[j>>1]=(e[i+22>>1]|0)+65535;break}if(Pv(f,i)|0){b[d>>1]=b[i+20>>1]|0;b[j>>1]=(e[i+22>>1]|0)+1}}while(0);i=c[i+52>>2]|0}while((i|0)!=0)}d=Qv(g,f)|0;if(d){g=c[d>>2]|0;b:do if(g){d=g+52|0;if(c[d>>2]|0)do{d=Qv(d,f)|0;if(!d)break b;h=c[d>>2]|0;if(!h)break b;c[d>>2]=c[h+52>>2];Fu(l,h);ig(l,h)}while((c[d>>2]|0)!=0)}else{g=ih(l,72,0)|0;c[d>>2]=g;if(!g){d=7;break a}c[g+48>>2]=g+56;b[g+40>>1]=0;b[g+44>>1]=3;c[g+36>>2]=0;c[g+52>>2]=0}while(0);Hv(l,g);do if(!(Ju(l,g,e[f+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[h>>2]=c[d>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));gw(c[g+48>>2]|0,c[f+48>>2]|0,e[g+40>>1]<<2|0)|0;d=c[k>>2]|0;if(d&1024){a[f+28>>0]=0;break}if(d&16384)c[f+28>>2]=0}else{d=g+24|0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0}while(0);if(((c[g+36>>2]&1024|0)==0?(m=g+28|0,n=c[m>>2]|0,(n|0)!=0):0)?(c[n+40>>2]|0)==0:0){c[m>>2]=0;d=0}else d=0}else d=0}else{g=f;Gv(d,c[g>>2]|0,c[g+4>>2]|0,b[f+20>>1]|0,b[f+22>>1]|0);d=0}while(0);return d|0}function Cv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16<b<<16>>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[34032+(e-c)>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[34032+(c-e)>>0]|0)+c&65535;break}while(0);return a|0}function Dv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(yu(b,d,e)|0))f=1;else{f=a[d>>0]|0;if(f<<24>>24==77)g=6;else if(f<<24>>24==71){if(Dv(b,c[d+12>>2]|0,e)|0){f=1;break}if(Dv(b,c[d+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}if(((g|0)==6?(yu(c[b+12>>2]|0,c[d+12>>2]|0,e)|0)==0:0)?(f=a[b>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Ev(a,d,f){a=a|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;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;s=d;t=d+8|0;g=t;r=~(c[g>>2]|c[s>>2]);s=~(c[g+4>>2]|c[s+4>>2]);g=c[a+12>>2]|0;p=a+20|0;a:do if((g|0)>0){q=d+40|0;a=d+22|0;o=d+48|0;d=0;n=c[p>>2]|0;while(1){if(b[n+20>>1]&2)break a;m=n+40|0;l=c[m>>2]|0;m=c[m+4>>2]|0;k=t;b:do if(((c[k>>2]&l|0)!=0?1:(c[k+4>>2]&m|0)!=0)&((l&r|0)==0&(m&s|0)==0)){h=b[q>>1]|0;c:do if(h<<16>>16){m=c[o>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[m+(l<<2)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[k+4>>2]|0;if((k|0)>-1?((c[p>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[n+16>>1]|0;if(h<<16>>16<1){b[a>>1]=(e[a>>1]|0)+(h&65535);break}b[a>>1]=(b[a>>1]|0)+-1<<16>>16;if(b[n+18>>1]&2){l=(Is(c[(c[n>>2]|0)+16>>2]|0,u)|0)!=0;m=c[u>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[u>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[a>>1]|0)>(d|0))b[a>>1]=d;i=v;return}function Fv(d,f,g,h){d=d|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,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,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0;ea=i;i=i+112|0;if((i|0)>=(j|0))ba();O=ea;S=c[c[c[d>>2]>>2]>>2]|0;ca=c[d+12>>2]|0;if(!(a[S+65>>0]|0)){da=ca+36|0;if(!(c[da>>2]&32))if((c[g+40>>2]|0)<1)k=63;else k=(a[f+36>>0]&8)<<4^191;else k=24;T=g+51|0;$=ca+24|0;l=b[(c[g+4>>2]|0)+(e[$>>1]<<1)>>1]|0;K=l<<16>>16;L=d+4|0;k=zv(O,c[L>>2]|0,c[f+40>>2]|0,K,(a[T>>0]&4)==0?k:k&131,g)|0;U=b[$>>1]|0;V=ca+42|0;Q=b[V>>1]|0;W=ca+40|0;R=b[W>>1]|0;X=c[da>>2]|0;N=ca;M=c[N>>2]|0;N=c[N+4>>2]|0;Y=ca+22|0;Z=b[Y>>1]|0;b[ca+18>>1]=0;_=g+8|0;A=b[c[_>>2]>>1]|0;if(A<<16>>16<11)z=0;else{z=A<<16>>16;z=((bs(z,((z|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{B=l<<16>>16<0;C=f+16|0;D=ca+8|0;E=(R&65535)+1|0;F=ca+48|0;G=h<<16>>16==0;H=g+46|0;t=l<<16>>16>-1;u=g+50|0;v=g+44|0;w=ca+20|0;x=h<<16>>16;y=g+48|0;o=0;r=k;p=0;while(1){l=b[r+18>>1]|0;q=l&65535;if(l<<16>>16==128)if(!B?(a[(c[(c[C>>2]|0)+4>>2]|0)+(K*24|0)+20>>0]|0)==0:0)P=12;else{m=o;l=p;k=0}else P=12;if((P|0)==12){P=0;m=r+32|0;s=m;n=D;if(((c[n>>2]&c[s>>2]|0)==0?(c[n+4>>2]&c[s+4>>2]|0)==0:0)?(I=r+20|0,!((b[I>>1]&256)!=0&l<<16>>16==16)):0){c[da>>2]=X;b[$>>1]=U;b[W>>1]=R;if(Ju(S,ca,E)|0){k=0;break a}k=b[W>>1]|0;n=k+1<<16>>16;b[W>>1]=n;c[(c[F>>2]|0)+((k&65535)<<2)>>2]=r;k=m;l=D;m=(c[k+4>>2]|N)&~c[l+4>>2];s=ca;c[s>>2]=(c[k>>2]|M)&~c[l>>2];c[s+4>>2]=m;b:do if(!(q&1)){if(q&2){k=c[da>>2]|0;l=k|1;c[da>>2]=l;do if(!B){if(!G){s=0;break b}if((e[$>>1]|0)!=((e[H>>1]|0)+-1|0)){s=0;break b}if(!t)break;if(a[u>>0]|0)break;l=k|65537;c[da>>2]=l;s=0;break b}while(0);l=k|4097;c[da>>2]=l;s=0;break}if(q&128){l=c[da>>2]|8;c[da>>2]=l;s=0;break}k=c[da>>2]|0;if(!(q&36)){l=k|18;c[da>>2]=l;if(!(k&32)){s=0;o=0;p=r;break}s=0;o=c[(c[F>>2]|0)+((n&65535)+-2<<2)>>2]|0;p=r;break}l=k|34;c[da>>2]=l;if(!(b[I>>1]&256)){s=0;o=r;p=0}else{k=r+48|0;if(Ju(S,ca,(n&65535)+1|0)|0){k=0;break a}l=b[W>>1]|0;b[W>>1]=l+1<<16>>16;c[(c[F>>2]|0)+((l&65535)<<2)>>2]=k;l=c[da>>2]|16;c[da>>2]=l;s=0;o=r;p=k}}else{k=c[r>>2]|0;l=c[da>>2]|4;c[da>>2]=l;if(!(c[k+4>>2]&2048)){k=c[k+20>>2]|0;if((k|0)!=0?(J=c[k>>2]|0,(J|0)!=0):0)s=(bs(J,((J|0)<0)<<31>>31)|0)<<16>>16;else s=0}else s=46}while(0);do if(!(l&2)){k=(b[$>>1]|0)+1<<16>>16;b[$>>1]=k;k=k&65535;m=b[r+16>>1]|0;if(m<<16>>16<1&t){n=(m&65535)-s+(e[Y>>1]|0)&65535;b[Y>>1]=n;break}m=c[_>>2]|0;m=(e[Y>>1]|0)+((e[m+(k<<1)>>1]|0)-(e[m+(k+-1<<1)>>1]|0))|0;k=m&65535;b[Y>>1]=k;if(!(q&128))n=k;else{n=m+10&65535;b[Y>>1]=n}}else{k=b[Y>>1]|0;n=k<<16>>16;do if(o){m=b[o+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(p){m=b[p+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(o|0)!=0;do if(m?(b[o+16>>1]|0)>0&(p|0)!=0:0){if((b[p+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);n=(((p|0)!=0)<<31>>31)+(m<<31>>31)+n|0;r=k<<16>>16<10?10:k<<16>>16;n=((r|0)<(n|0)?r:n)&65535;b[Y>>1]=n}while(0);k=n&65535;m=Cv(z,k+1+(((b[v>>1]|0)*15|0)/(b[(c[C>>2]|0)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Cv(m,k+16&65535)|0;l=s+x|0;b[w>>1]=(m&65535)+l;b[Y>>1]=k+l;Ev(c[L>>2]|0,ca,A);k=Bv(d,ca)|0;s=c[da>>2]|0;b[Y>>1]=(s&2|0)==0?n:Z;if((s&16|0)==0?(e[$>>1]|0)<(e[y>>1]|0):0)Fv(d,f,g,l&65535)|0;b[Y>>1]=Z;m=o;l=p}else{m=o;l=p;k=0}}r=Av(O)|0;if(!((k|0)==0&(r|0)!=0))break;else{o=m;p=l}}}while(0);l=ca;c[l>>2]=M;c[l+4>>2]=N;b[$>>1]=U;b[V>>1]=Q;c[da>>2]=X;b[Y>>1]=Z;b[W>>1]=R;l=U&65535;if(((U<<16>>16==Q<<16>>16?(aa=l+1|0,aa>>>0<(e[g+46>>1]|0)>>>0):0)?(a[T>>0]&64)==0:0)?(b[(c[_>>2]|0)+(aa<<1)>>1]|0)>41:0){k=Ju(S,ca,(R&65535)+1|0)|0;if(!k){b[$>>1]=(b[$>>1]|0)+1<<16>>16;b[V>>1]=(b[V>>1]|0)+1<<16>>16;k=b[W>>1]|0;b[W>>1]=k+1<<16>>16;c[(c[ca+48>>2]|0)+((k&65535)<<2)>>2]=0;c[da>>2]=c[da>>2]|32768;k=c[_>>2]|0;k=(e[k+(l<<1)>>1]|0)-(e[k+(aa<<1)>>1]|0)|0;b[Y>>1]=(e[Y>>1]|0)-k;Fv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[Y>>1]=Z;b[$>>1]=U;b[V>>1]=U;c[da>>2]=X;k=0}}}else k=7;i=ea;return k|0}function Gv(a,d,e,f,g){a=a|0;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;l=b[a>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[k+8>>1]|0;if(i<<16>>16>=f<<16>>16?(p=k,(c[p>>2]&d|0)==(d|0)?(c[p+4>>2]&e|0)==(e|0):0):0){n=k;o=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,p=c[i>>2]|0,i=c[i+4>>2]|0,(p&d|0)==(p|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[a+16>>1]|0;k=1;do{if(i<<16>>16>(b[a+(k<<4)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[h+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;o=14}}else o=9}else o=9;while(0);if((o|0)==9){n=l&65535;b[a>>1]=l+1<<16>>16;b[a+(n<<4)+18>>1]=g;n=a+(n<<4)+8|0;o=14}if((o|0)==14?(m=n,c[m>>2]=d,c[m+4>>2]=e,b[n+8>>1]=f,m=n+10|0,(b[m>>1]|0)>g<<16>>16):0)b[m>>1]=g;return}function Hv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[d+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[h>>0]|0)!=0):0){e=d+32|0;Sc(c[e>>2]|0);a[h>>0]=0;c[e>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[f>>2]|0,(g|0)!=0):0){ig(b,c[g+16>>2]|0);ig(b,c[f>>2]|0);c[f>>2]=0}}while(0);return}function Iv(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var 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,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0;qa=i;i=i+32|0;if((i|0)>=(j|0))ba();la=qa;p=c[c[f>>2]>>2]|0;ka=l&65535;if(l<<16>>16!=0?(b[p+60>>1]&128)!=0:0)o=0;else ma=3;a:do if((ma|0)==3){pa=c[g>>2]|0;o=pa&65535;if(o>>>0<=63){na=ew(1,0,o|0)|0;na=fw(na|0,C|0,-1,-1)|0;oa=C;b:do if((na|0)==0&(oa|0)==0){g=0;h=0;p=1}else{ea=h+24|0;fa=f+4|0;ga=(o|0)==0;ca=g+4|0;da=(k&768)==0;aa=p+8|0;T=(k&256)==0;U=f+68|0;V=la+20|0;W=la+4|0;Z=la+24|0;_=f+328|0;X=0;Y=0;g=0;h=0;k=0;q=0;$=0;p=1;l=0;while(1){if(($|0)>0){R=l+8|0;S=c[R>>2]|k;q=c[R+4>>2]|q}else S=k;if(($|0)<(ka|0))l=c[(c[ea>>2]|0)+($<<2)>>2]|0;else l=m;y=l+36|0;k=c[y>>2]|0;if(k&1024)break;R=c[(c[fa>>2]|0)+((d[l+16>>0]|0)*72|0)+48>>2]|0;if(!ga){k=~S;s=~q;v=0;do{x=ew(1,0,v|0)|0;w=C;c:do if((x&g|0)==0&(w&h|0)==0){r=c[(c[ca>>2]|0)+(v*20|0)>>2]|0;u=c[r+4>>2]|0;if(u&4096)do{if(!(u&262144))r=r+12|0;else r=c[(c[r+20>>2]|0)+4>>2]|0;r=c[r>>2]|0;u=c[r+4>>2]|0}while((u&4096|0)!=0);if(((a[r>>0]|0)==-102?(c[r+28>>2]|0)==(R|0):0)?(ha=r+32|0,ia=Bu(_,R,b[ha>>1]|0,k,s,130,0)|0,(ia|0)!=0):0){do if(b[ia+18>>1]&2){if((b[ha>>1]|0)<=-1)break;r=_t(c[f>>2]|0,c[(c[ca>>2]|0)+(v*20|0)>>2]|0)|0;if(!r)r=c[aa>>2]|0;u=c[r>>2]|0;t=_t(c[f>>2]|0,c[ia>>2]|0)|0;if(!t)t=c[aa>>2]|0;if($c(u,c[t>>2]|0)|0)break c}while(0);g=x|g;h=w|h}}while(0);v=v+1|0}while((v|0)<(o|0));k=c[y>>2]|0}do if(!(k&4096)){if(!(k&256)){r=c[l+28>>2]|0;if(!r){o=0;break a}if(a[r+51>>0]&4){o=0;break a}k=b[r+48>>1]|0;p=(a[r+50>>0]|0)!=0&1;if(!(k<<16>>16)){ma=71;break}else{P=k&65535;Q=b[r+46>>1]|0}}else{P=1;Q=0;r=0}G=l+24|0;H=l+42|0;I=l+48|0;J=(r|0)==0;K=r+32|0;L=ew(1,0,$|0)|0;M=C;N=r+4|0;O=r+28|0;F=r+12|0;k=0;r=0;x=0;E=0;d:while(1){w=(r|0)<(e[G>>1]|0);if((w?(b[H>>1]|0)==0:0)?(ja=e[(c[(c[I>>2]|0)+(r<<2)>>2]|0)+18>>1]|0,(ja&130|0)!=0):0){p=(ja&128|0)==0?p:0;w=E}else{if(!J){u=b[(c[N>>2]|0)+(r<<1)>>1]|0;t=a[(c[O>>2]|0)+r>>0]|0;s=c[F>>2]|0;u=u<<16>>16==(b[s+36>>1]|0)?-1:u<<16>>16;v=(u|0)>-1;if(p<<24>>24!=0&v)if(w){v=1;D=u}else{v=1;D=u;p=(a[(c[s+4>>2]|0)+(u*24|0)+20>>0]|0)==0?0:p}else D=u}else{v=0;D=-1;t=0}if(ga){ma=68;break}else{w=1;B=0}e:while(1){z=ew(1,0,B|0)|0;A=C;do if((z&g|0)==0&(A&h|0)==0){s=c[(c[ca>>2]|0)+(B*20|0)>>2]|0;u=c[s+4>>2]|0;if(!(u&4096))y=s;else{y=s;do{if(!(u&262144))u=y+12|0;else u=c[(c[y+20>>2]|0)+4>>2]|0;y=c[u>>2]|0;u=c[y+4>>2]|0}while((u&4096|0)!=0)}w=da?0:w;if((a[y>>0]|0)!=-102)break;if((c[y+28>>2]|0)!=(R|0))break;if((b[y+32>>1]|0)!=(D|0))break;if(!v){y=z;v=A;w=B;break e}u=_t(c[f>>2]|0,s)|0;if(!u)u=c[aa>>2]|0;if(!($c(c[u>>2]|0,c[(c[K>>2]|0)+(r<<2)>>2]|0)|0)){y=z;v=A;w=B;break e}}while(0);B=B+1|0;if(!(w<<24>>24!=0&(B|0)<(o|0))){ma=68;break d}}do if(T){if(E<<24>>24)if((t^x)<<24>>24==(a[(c[ca>>2]|0)+(w*20|0)+12>>0]|0)){w=E;break}else{ma=68;break d}s=a[(c[ca>>2]|0)+(w*20|0)+12>>0]|0;x=s^t;if(t<<24>>24==s<<24>>24){w=1;break}s=n;t=c[s+4>>2]|M;w=n;c[w>>2]=c[s>>2]|L;c[w+4>>2]=t;w=1}else w=E;while(0);g=y|g;h=v|h;k=(D|0)<0?1:k}r=r+1|0;if((r|0)>=(P|0))break;else E=w}if((ma|0)==68){ma=0;p=(r|0)==0|(r|0)<(Q&65535|0)?0:p}if(!(k<<24>>24))ma=71;else p=1}else ma=71;while(0);if((ma|0)==71){ma=0;if(!(p<<24>>24)){p=0;break b}}R=l+8|0;X=c[R>>2]|X;Y=c[R+4>>2]|Y;if(!ga){w=~X;x=~Y;v=0;do{r=ew(1,0,v|0)|0;u=C;do if((r&g|0)==0&(u&h|0)==0){k=c[(c[ca>>2]|0)+(v*20|0)>>2]|0;s=wv(U,k)|0;t=C;if((s|0)==0&(t|0)==0?(c[la+0>>2]=0,c[la+4>>2]=0,c[la+8>>2]=0,c[la+12>>2]=0,c[la+16>>2]=0,c[la+20>>2]=0,a[V>>0]=1,c[la>>2]=78,c[W>>2]=79,c[Z>>2]=0,ns(la,k)|0,(a[V>>0]|0)==0):0)break;R=(s&w|0)==0&(t&x|0)==0;g=(R?r:0)|g;h=(R?u:0)|h}while(0);v=v+1|0}while((v|0)<(o|0))}if(h>>>0>oa>>>0|(h|0)==(oa|0)&g>>>0>=na>>>0|p<<24>>24==0|($|0)>=(ka|0))break b;else{k=S;$=$+1|0}}da=(a[l+29>>0]|0)==0;g=da?g:na;h=da?h:oa}while(0);if((g|0)==(na|0)&(h|0)==(oa|0)){o=pa&255;break}if(!(p<<24>>24)){do{o=o+-1|0;if((o|0)<=0){o=0;break a}ca=ew(1,0,o|0)|0;ca=fw(ca|0,C|0,-1,-1)|0;da=C}while(!((ca&g|0)==(ca|0)&(da&h|0)==(da|0)));o=o&255}else o=-1}else o=0}while(0);i=qa;return o|0}function Jv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Ok(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[c>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Ok(b,d,c);Ok(b,e,1);Ok(b,13552,1);return}function Kv(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[c[c[a>>2]>>2]>>2]|0;d=c[a+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[g>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[f>>1]|0;if(e&1){Ck(i,c[h>>2]|0);e=b[f>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[h+12>>2]|0;Kv(e);ig(i,e)}}else{e=c[h+12>>2]|0;Kv(e);ig(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[g>>2]|0;if((d|0)!=(a+24|0))ig(i,d);return}function Lv(b,e,f){b=b|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;s=i;i=i+32|0;if((i|0)>=(j|0))ba();r=s;h=c[b+8>>2]|0;k=c[b>>2]|0;if(e){l=(f|0)==10;m=b+437|0;n=r+4|0;o=r+1|0;p=r+8|0;q=r+12|0;g=f&255;do{if(l)f=a[e+1>>0]|0;else f=g;a[m>>0]=f;f=d[e>>0]|0;if((f|0)==108){u=Rv(b,e)|0;t=cr(k,c[e+8>>2]|0,0)|0;f=Jr(k,c[e+28>>2]|0)|0;pr(b,u,t,f,d[m>>0]|0)}else if((f|0)==109){f=Rv(b,e)|0;nr