!function(i){var e={};function o(d){if(e[d])return e[d].exports;var v=e[d]={i:d,l:!1,exports:{}};return i[d].call(v.exports,v,v.exports,o),v.l=!0,v.exports}o.m=i,o.c=e,o.d=function(i,e,d){o.o(i,e)||Object.defineProperty(i,e,{enumerable:!0,get:d})},o.r=function(i){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,e){if(1&e&&(i=o(i)),8&e)return i;if(4&e&&"object"==typeof i&&i&&i.__esModule)return i;var d=Object.create(null);if(o.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:i}),2&e&&"string"!=typeof i)for(var v in i)o.d(d,v,function(e){return i[e]}.bind(null,v));return d},o.n=function(i){var e=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(e,"a",e),e},o.o=function(i,e){return Object.prototype.hasOwnProperty.call(i,e)},o.p="",o(o.s="yL6M")}({yL6M:function(i,e,o){"use strict";var d,v;o.r(e),function(i){i[i.NewAssembly=0]="NewAssembly",i[i.AssemblyChange=1]="AssemblyChange",i[i.SignatureHelp=2]="SignatureHelp",i[i.Definition=3]="Definition",i[i.SettingsChange=4]="SettingsChange"}(d||(d={})),function(i){i[i.NewObjectCode=0]="NewObjectCode",i[i.SignatureHelp=1]="SignatureHelp",i[i.Definition=2]="Definition"}(v||(v={}));const t=new DataView(new ArrayBuffer(4));var n,s;!function(i){i[i.Int=0]="Int",i[i.Float=1]="Float",i[i.InvalidNumber=2]="InvalidNumber",i[i.Register=3]="Register",i[i.Label=4]="Label",i[i.CodeSection=5]="CodeSection",i[i.DataSection=6]="DataSection",i[i.StringSection=7]="StringSection",i[i.InvalidSection=8]="InvalidSection",i[i.String=9]="String",i[i.UnterminatedString=10]="UnterminatedString",i[i.Ident=11]="Ident",i[i.InvalidIdent=12]="InvalidIdent",i[i.ArgSeparator=13]="ArgSeparator"}(n||(n={}));class r{constructor(){this.index=0,this._mark=0}get col(){return this.index+1}tokenize_line(i){this.line=i,this.index=0,this._mark=0;const e=[];for(;this.has_next();){const i=this.peek();let o;if("/"===i){if(this.skip(),"/"===this.peek())break;this.back()}/\s/.test(i)?this.skip():(/[-\d]/.test(i)?o=this.tokenize_number_or_label():","===i?(o={type:n.ArgSeparator,col:this.col,len:1},this.skip()):o="."===i?this.tokenize_section():'"'===i?this.tokenize_string():"r"===i?this.tokenize_register_or_ident():this.tokenize_ident(),e.push(o))}return e}has_next(){return this.index!]*$/.test(e)?n.Ident:n.InvalidIdent;return o===n.Ident?{type:o,col:i,len:this.marked_len(),value:e}:{type:o,col:i,len:this.marked_len()}}}!function(i){i[i.Any=0]="Any",i[i.Byte=1]="Byte",i[i.Word=2]="Word",i[i.DWord=3]="DWord",i[i.Float=4]="Float",i[i.Label=5]="Label",i[i.ILabel=6]="ILabel",i[i.DLabel=7]="DLabel",i[i.SLabel=8]="SLabel",i[i.String=9]="String",i[i.ILabelVar=10]="ILabelVar",i[i.RegRef=11]="RegRef",i[i.RegTupRef=12]="RegTupRef",i[i.RegRefVar=13]="RegRefVar",i[i.Pointer=14]="Pointer"}(s||(s={}));const a={kind:s.Any},l={kind:s.Byte},u={kind:s.Word},_={kind:s.DWord},p={kind:s.Float},g={kind:s.Label},f={kind:s.ILabel},c={kind:s.DLabel},k={kind:s.SLabel},R={kind:s.String},h={kind:s.ILabelVar},w={kind:s.RegRef},b={kind:s.RegRefVar},m={kind:s.Pointer},T=-Math.pow(2,31),y=Math.pow(2,31)-1;Math.pow(2,32);var P,W;function S(i,e,o){return{type:i,doc:e,access:o}}!function(i){i[i.Read=0]="Read",i[i.Write=1]="Write",i[i.ReadWrite=2]="ReadWrite"}(P||(P={})),function(i){i[i.Push=0]="Push",i[i.Pop=1]="Pop"}(W||(W={}));const x=[],I=new Map;function j(i,e,o,d,v){return{code:i,mnemonic:e,doc:o,size:i<256?1:2,params:d,stack:v}}x[0]=j(0,"nop","No operation, does nothing.",[],void 0);const L=x[1]=j(1,"ret","Returns control to caller.",[],void 0),z=(x[2]=j(2,"sync","Yields control for the rest of the current frame. Execution will continue the following frame.",[],void 0),x[3]=j(3,"exit",void 0,[S(_,void 0,void 0)],W.Pop),x[4]=j(4,"thread","Starts a new thread. Thread execution will start at the given label.\nOften used to check a register every frame. Make sure to yield control with sync when looping.",[S(f,void 0,void 0)],void 0),x[5]=j(5,"va_start","Initializes a variable argument list.\nMake sure to call va_end after va_start and va_call.",[],void 0),x[6]=j(6,"va_end","Restores the registers overwritten by arg_push* instructions.\nCalled after va_call.",[],void 0),x[7]=j(7,"va_call","Calls the variable argument function at the given label.\nCalled after initializing the argument list with va_start and pushing arguments onto the stack with arg_push* instructions. Make sure to call va_end afterwards.",[S(f,void 0,void 0)],void 0)),D=x[8]=j(8,"let","Sets the first register's value to second one's value.",[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),C=x[9]=j(9,"leti","Sets a register to the given value.",[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],void 0),M=x[10]=j(10,"letb","Sets a register to the given value.",[S({kind:s.RegTupRef,register_tuples:[S(l,void 0,P.Write)]},void 0,void 0),S(l,void 0,void 0)],void 0),$=x[11]=j(11,"letw","Sets a register to the given value.",[S({kind:s.RegTupRef,register_tuples:[S(u,void 0,P.Write)]},void 0,void 0),S(u,void 0,void 0)],void 0),N=(x[12]=j(12,"leta","Sets the first register to the memory address of the second register. Not used by Sega.",[S({kind:s.RegTupRef,register_tuples:[S(m,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[13]=j(13,"leto","Sets a register to the memory address of the given label. Not used by Sega.",[S({kind:s.RegTupRef,register_tuples:[S(m,void 0,P.Write)]},void 0,void 0),S(g,void 0,void 0)],void 0),x[14]=j(14,"unknown_0e",void 0,[],void 0),x[15]=j(15,"unknown_0f",void 0,[],void 0),x[16]=j(16,"set","Sets a register to 1.",[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0)),A=x[17]=j(17,"clear","Sets a register to 0.",[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),q=x[18]=j(18,"rev","Sets a register to 1 if its current value is 0, otherwise sets it to 0.",[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.ReadWrite)]},void 0,void 0)],void 0),F=(x[19]=j(19,"gset",void 0,[S(u,void 0,void 0)],void 0),x[20]=j(20,"gclear",void 0,[S(u,void 0,void 0)],void 0),x[21]=j(21,"grev",void 0,[S(u,void 0,void 0)],void 0),x[22]=j(22,"glet",void 0,[S(u,void 0,void 0)],void 0),x[23]=j(23,"gget","Sets a register to value of the given flag.",[S(u,void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(u,void 0,P.Write)]},void 0,void 0)],void 0),x[24]=j(24,"add",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[25]=j(25,"addi",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],void 0)),E=(x[26]=j(26,"sub",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[27]=j(27,"subi",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],void 0)),O=(x[28]=j(28,"mul",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[29]=j(29,"muli",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],void 0)),U=(x[30]=j(30,"div",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[31]=j(31,"divi",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],void 0)),V=(x[32]=j(32,"and",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[33]=j(33,"andi",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],void 0),x[34]=j(34,"or",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[35]=j(35,"ori",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],void 0),x[36]=j(36,"xor",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[37]=j(37,"xori",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],void 0),x[38]=j(38,"mod",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[39]=j(39,"modi",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],void 0),x[40]=j(40,"jmp",void 0,[S(f,void 0,void 0)],void 0)),B=x[41]=j(41,"call",void 0,[S(f,void 0,void 0)],void 0),H=x[42]=j(42,"jmp_on",void 0,[S(f,void 0,void 0),S(b,void 0,P.Read)],void 0),J=x[43]=j(43,"jmp_off",void 0,[S(f,void 0,void 0),S(b,void 0,P.Read)],void 0),Y=x[44]=j(44,"jmp_=",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S(f,void 0,void 0)],void 0),X=x[45]=j(45,"jmpi_=",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0)],void 0),Z=x[46]=j(46,"jmp_!=",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S(f,void 0,void 0)],void 0),G=x[47]=j(47,"jmpi_!=",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0)],void 0),K=x[48]=j(48,"ujmp_>",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(f,void 0,void 0)],void 0),Q=x[49]=j(49,"ujmpi_>",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0)],void 0),ii=x[50]=j(50,"jmp_>",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(f,void 0,void 0)],void 0),ei=x[51]=j(51,"jmpi_>",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0)],void 0),oi=x[52]=j(52,"ujmp_<",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(f,void 0,void 0)],void 0),di=x[53]=j(53,"ujmpi_<",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0)],void 0),vi=x[54]=j(54,"jmp_<",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(f,void 0,void 0)],void 0),ti=x[55]=j(55,"jmpi_<",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0)],void 0),ni=x[56]=j(56,"ujmp_>=",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(f,void 0,void 0)],void 0),si=x[57]=j(57,"ujmpi_>=",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0)],void 0),ri=x[58]=j(58,"jmp_>=",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(f,void 0,void 0)],void 0),ai=x[59]=j(59,"jmpi_>=",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0)],void 0),li=x[60]=j(60,"ujmp_<=",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(f,void 0,void 0)],void 0),ui=x[61]=j(61,"ujmpi_<=",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0)],void 0),_i=x[62]=j(62,"jmp_<=",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(f,void 0,void 0)],void 0),pi=x[63]=j(63,"jmpi_<=",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0)],void 0),gi=x[64]=j(64,"switch_jmp",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(h,void 0,void 0)],void 0),fi=x[65]=j(65,"switch_call",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(h,void 0,void 0)],void 0),ci=(x[66]=j(66,"stack_push",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[67]=j(67,"stack_pop",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[68]=j(68,"stack_pushm","Pushes the values of an arbitrary amount of registers onto the stack.",[S(w,void 0,P.Read),S(_,void 0,void 0)],void 0)),ki=x[69]=j(69,"stack_popm","Pops an arbitrary amount of values from the stack and writes them to registers.",[S(w,void 0,P.Write),S(_,void 0,void 0)],void 0),Ri=(x[70]=j(70,"unknown_46",void 0,[],void 0),x[71]=j(71,"unknown_47",void 0,[],void 0),x[72]=j(72,"arg_pushr","Pushes the value of the given register onto the stack.",[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],W.Push)),hi=x[73]=j(73,"arg_pushl","Pushes the given value onto the stack.",[S(_,void 0,void 0)],W.Push),wi=x[74]=j(74,"arg_pushb","Pushes the given value onto the stack.",[S(l,void 0,void 0)],W.Push),bi=x[75]=j(75,"arg_pushw","Pushes the given value onto the stack.",[S(u,void 0,void 0)],W.Push),mi=(x[76]=j(76,"arg_pusha","Pushes the memory address of the given register onto the stack. Not used by Sega.",[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],W.Push),x[77]=j(77,"arg_pusho","Pushes the memory address of the given label onto the stack. Not used by Sega.",[S(g,void 0,void 0)],W.Push),x[78]=j(78,"arg_pushs","Pushes the given value onto the stack.",[S(R,void 0,void 0)],W.Push)),Ti=(x[79]=j(79,"unknown_4f",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[80]=j(80,"message",void 0,[S(_,void 0,void 0),S(R,void 0,void 0)],W.Pop),x[81]=j(81,"list","Used to display a list of items and retrieve the item selected by the player.\nList items should be seperated by newlines. The selected item's index will be written to the given register.",[S({kind:s.RegTupRef,register_tuples:[S(l,void 0,P.Write)]},void 0,void 0),S(R,void 0,void 0)],W.Pop),x[82]=j(82,"fadein",void 0,[],void 0),x[83]=j(83,"fadeout",void 0,[],void 0),x[84]=j(84,"se",void 0,[S(_,void 0,void 0)],W.Pop),x[85]=j(85,"bgm",void 0,[S(_,void 0,void 0)],W.Pop),x[86]=j(86,"unknown_56",void 0,[],void 0),x[87]=j(87,"unknown_57",void 0,[],void 0),x[88]=j(88,"enable",void 0,[S(_,void 0,void 0)],W.Pop),x[89]=j(89,"disable",void 0,[S(_,void 0,void 0)],W.Pop),x[90]=j(90,"window_msg",void 0,[S(R,void 0,void 0)],W.Pop),x[91]=j(91,"add_msg",void 0,[S(R,void 0,void 0)],W.Pop),x[92]=j(92,"mesend",void 0,[],void 0),x[93]=j(93,"gettime",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[94]=j(94,"winend",void 0,[],void 0),x[95]=j(95,"unknown_5f",void 0,[],void 0),x[96]=j(96,"npc_crt_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[97]=j(97,"npc_stop",void 0,[S(_,void 0,void 0)],W.Pop),x[98]=j(98,"npc_play",void 0,[S(_,void 0,void 0)],W.Pop),x[99]=j(99,"npc_kill",void 0,[S(_,void 0,void 0)],W.Pop),x[100]=j(100,"npc_nont",void 0,[],void 0),x[101]=j(101,"npc_talk",void 0,[],void 0),x[102]=j(102,"npc_crp_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read),S(a,void 0,P.Read),S(a,void 0,P.Read),S(f,void 0,P.Read),S(a,void 0,P.Read),S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[103]=j(103,"unknown_67",void 0,[],void 0),x[104]=j(104,"create_pipe",void 0,[S(_,void 0,void 0)],W.Pop),x[105]=j(105,"p_hpstat_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0)],W.Pop),x[106]=j(106,"p_dead_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,"Player slot.",void 0)],W.Pop),x[107]=j(107,"p_disablewarp",void 0,[],void 0),x[108]=j(108,"p_enablewarp",void 0,[],void 0),x[109]=j(109,"p_move_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[110]=j(110,"p_look",void 0,[S(_,void 0,void 0)],W.Pop),x[111]=j(111,"unknown_6f",void 0,[],void 0),x[112]=j(112,"p_action_disable",void 0,[],void 0),x[113]=j(113,"p_action_enable",void 0,[],void 0),x[114]=j(114,"disable_movement1",void 0,[S(_,void 0,void 0)],W.Pop),x[115]=j(115,"enable_movement1",void 0,[S(_,void 0,void 0)],W.Pop),x[116]=j(116,"p_noncol",void 0,[],void 0),x[117]=j(117,"p_col",void 0,[],void 0),x[118]=j(118,"p_setpos","Sets a player's position.",[S(_,"Player slot.",void 0),S({kind:s.RegTupRef,register_tuples:[S(_,"X coordinate.",P.Read),S(_,"Y coordinate.",P.Read),S(_,"Z coordinate.",P.Read),S(_,"Y-axis rotation.",P.Read)]},void 0,void 0)],W.Pop),x[119]=j(119,"p_return_guild",void 0,[],void 0),x[120]=j(120,"p_talk_guild",void 0,[S(_,void 0,void 0)],W.Pop),x[121]=j(121,"npc_talk_pl_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[122]=j(122,"npc_talk_kill",void 0,[S(_,void 0,void 0)],W.Pop),x[123]=j(123,"npc_crtpk_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[124]=j(124,"npc_crppk_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[125]=j(125,"npc_crptalk_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[126]=j(126,"p_look_at_v1",void 0,[S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[127]=j(127,"npc_crp_id_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[128]=j(128,"cam_quake",void 0,[],void 0),x[129]=j(129,"cam_adj",void 0,[],void 0),x[130]=j(130,"cam_zmin",void 0,[],void 0),x[131]=j(131,"cam_zmout",void 0,[],void 0),x[132]=j(132,"cam_pan_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[133]=j(133,"game_lev_super",void 0,[],void 0),x[134]=j(134,"game_lev_reset",void 0,[],void 0),x[135]=j(135,"pos_pipe_v3","Create a telepipe at a specific position for the given player slot that takes players back to Pioneer 2 or the Lab.",[S({kind:s.RegTupRef,register_tuples:[S(_,"X coordinate.",P.Read),S(_,"Y coordinate.",P.Read),S(_,"Z coordinate.",P.Read),S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[136]=j(136,"if_zone_clear",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Read)]},void 0,void 0)],void 0)),yi=(x[137]=j(137,"chk_ene_num","Retrieves the amount of enemies killed during the quest.",[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[138]=j(138,"unhide_obj",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[139]=j(139,"unhide_ene",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[140]=j(140,"at_coords_call",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(f,void 0,P.Read)]},void 0,void 0)],void 0),x[141]=j(141,"at_coords_talk",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(f,void 0,P.Read)]},void 0,void 0)],void 0),x[142]=j(142,"col_npcin",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(f,void 0,P.Read)]},void 0,void 0)],void 0),x[143]=j(143,"col_npcinr",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[144]=j(144,"switch_on",void 0,[S(_,void 0,void 0)],W.Pop),x[145]=j(145,"switch_off",void 0,[S(_,void 0,void 0)],W.Pop),x[146]=j(146,"playbgm_epi",void 0,[S(_,void 0,void 0)],W.Pop),x[147]=j(147,"set_mainwarp",void 0,[S(_,void 0,void 0)],W.Pop),x[148]=j(148,"set_obj_param","Creates a targetable object.",[S({kind:s.RegTupRef,register_tuples:[S(_,"X coordinate.",P.Read),S(_,"Y coordinate.",P.Read),S(_,"Z coordinate.",P.Read),S(_,"Collision radius.",P.Read),S(f,"Function label.",P.Read),S(_,"Vertical position of the cursor.",P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},"Object handle.",void 0)],void 0),x[149]=j(149,"set_floor_handler",void 0,[S(_,"Floor number.",void 0),S(f,"Handler function label.",void 0)],W.Pop),x[150]=j(150,"clr_floor_handler",void 0,[S(_,"Floor number.",void 0)],W.Pop),x[151]=j(151,"col_plinaw",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[152]=j(152,"hud_hide",void 0,[],void 0),x[153]=j(153,"hud_show",void 0,[],void 0),x[154]=j(154,"cine_enable",void 0,[],void 0),x[155]=j(155,"cine_disable",void 0,[],void 0),x[156]=j(156,"unknown_9c",void 0,[],void 0),x[157]=j(157,"unknown_9d",void 0,[],void 0),x[158]=j(158,"unknown_9e",void 0,[],void 0),x[159]=j(159,"unknown_9f",void 0,[],void 0),x[160]=j(160,"unknown_a0",void 0,[],void 0),x[161]=j(161,"set_qt_failure",void 0,[S(f,void 0,void 0)],void 0),x[162]=j(162,"set_qt_success",void 0,[S(f,void 0,void 0)],void 0),x[163]=j(163,"clr_qt_failure",void 0,[],void 0),x[164]=j(164,"clr_qt_success",void 0,[],void 0),x[165]=j(165,"set_qt_cancel",void 0,[S(f,void 0,void 0)],void 0),x[166]=j(166,"clr_qt_cancel",void 0,[],void 0),x[167]=j(167,"unknown_a7",void 0,[],void 0),x[168]=j(168,"pl_walk_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[169]=j(169,"unknown_a9",void 0,[],void 0),x[170]=j(170,"unknown_aa",void 0,[],void 0),x[171]=j(171,"unknown_ab",void 0,[],void 0),x[172]=j(172,"unknown_ac",void 0,[],void 0),x[173]=j(173,"unknown_ad",void 0,[],void 0),x[174]=j(174,"unknown_ae",void 0,[],void 0),x[175]=j(175,"unknown_af",void 0,[],void 0),x[176]=j(176,"pl_add_meseta",void 0,[S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[177]=j(177,"thread_stg",void 0,[S(f,void 0,void 0)],void 0),x[178]=j(178,"del_obj_param",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},"Object handle.",void 0)],void 0),x[179]=j(179,"item_create",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[180]=j(180,"item_create2",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[181]=j(181,"item_delete",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[182]=j(182,"item_delete2","Deletes an item from the player's inventory.",[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[183]=j(183,"item_check",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[184]=j(184,"setevt",void 0,[S(_,void 0,void 0)],W.Pop),x[185]=j(185,"get_difflvl","Sets the given register to the current difficulty. 0 For normal, 1 for hard and 2 for both very hard and ultimate.\nUse get_difficulty_level2 if you want to differentiate between very hard and ultimate.",[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0)),Pi=(x[186]=j(186,"set_qt_exit",void 0,[S(f,void 0,void 0)],void 0),x[187]=j(187,"clr_qt_exit",void 0,[],void 0),x[188]=j(188,"unknown_bc",void 0,[],void 0),x[189]=j(189,"unknown_bd",void 0,[],void 0),x[190]=j(190,"unknown_be",void 0,[],void 0),x[191]=j(191,"unknown_bf",void 0,[],void 0),x[192]=j(192,"particle_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[193]=j(193,"npc_text",void 0,[S(_,void 0,void 0),S(R,void 0,void 0)],W.Pop),x[194]=j(194,"npc_chkwarp",void 0,[],void 0),x[195]=j(195,"pl_pkoff",void 0,[],void 0),x[196]=j(196,"map_designate",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0)),Wi=(x[197]=j(197,"masterkey_on",void 0,[],void 0),x[198]=j(198,"masterkey_off",void 0,[],void 0),x[199]=j(199,"window_time",void 0,[],void 0),x[200]=j(200,"winend_time",void 0,[],void 0),x[201]=j(201,"winset_time",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[202]=j(202,"getmtime",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[203]=j(203,"set_quest_board_handler",void 0,[S(_,void 0,void 0),S(f,void 0,void 0),S(R,void 0,void 0)],W.Pop),x[204]=j(204,"clear_quest_board_handler",void 0,[S(_,void 0,void 0)],W.Pop),x[205]=j(205,"particle_id_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[206]=j(206,"npc_crptalk_id_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[207]=j(207,"npc_lang_clean",void 0,[],void 0),x[208]=j(208,"pl_pkon",void 0,[],void 0),x[209]=j(209,"pl_chk_item2",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[210]=j(210,"enable_mainmenu",void 0,[],void 0),x[211]=j(211,"disable_mainmenu",void 0,[],void 0),x[212]=j(212,"start_battlebgm",void 0,[],void 0),x[213]=j(213,"end_battlebgm",void 0,[],void 0),x[214]=j(214,"disp_msg_qb",void 0,[S(R,void 0,void 0)],W.Pop),x[215]=j(215,"close_msg_qb",void 0,[],void 0),x[216]=j(216,"set_eventflag_v3",void 0,[S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[217]=j(217,"sync_leti",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],void 0)),Si=(x[218]=j(218,"set_returnhunter",void 0,[],void 0),x[219]=j(219,"set_returncity",void 0,[],void 0),x[220]=j(220,"load_pvr",void 0,[],void 0),x[221]=j(221,"load_midi",void 0,[],void 0),x[222]=j(222,"unknown_de",void 0,[],void 0),x[223]=j(223,"npc_param_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0)],W.Pop),x[224]=j(224,"pad_dragon",void 0,[],void 0),x[225]=j(225,"clear_mainwarp",void 0,[S(_,void 0,void 0)],W.Pop),x[226]=j(226,"pcam_param_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[227]=j(227,"start_setevt_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0)],W.Pop),x[228]=j(228,"warp_on",void 0,[],void 0),x[229]=j(229,"warp_off",void 0,[],void 0),x[230]=j(230,"get_slotnumber",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0)),xi=(x[231]=j(231,"get_servernumber",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[232]=j(232,"set_eventflag2",void 0,[S(_,void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],W.Pop),x[233]=j(233,"res",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[234]=j(234,"unknown_ea",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0)],void 0),x[235]=j(235,"enable_bgmctrl",void 0,[S(_,void 0,void 0)],W.Pop),x[236]=j(236,"sw_send",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[237]=j(237,"create_bgmctrl",void 0,[],void 0),x[238]=j(238,"pl_add_meseta2",void 0,[S(_,void 0,void 0)],W.Pop),x[239]=j(239,"sync_register",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],W.Pop),x[240]=j(240,"send_regwork",void 0,[],void 0),x[241]=j(241,"leti_fixed_camera_v3",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[242]=j(242,"default_camera_pos1",void 0,[],void 0),x[243]=j(243,"unknown_f3",void 0,[],void 0),x[244]=j(244,"unknown_f4",void 0,[],void 0),x[245]=j(245,"unknown_f5",void 0,[],void 0),x[246]=j(246,"unknown_f6",void 0,[],void 0),x[247]=j(247,"unknown_f7",void 0,[],void 0),x[248]=j(248,"unknown_f8",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[249]=j(249,"unknown_f9",void 0,[],void 0),x[250]=j(250,"get_gc_number",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[251]=j(251,"unknown_fb",void 0,[S(u,void 0,void 0)],void 0),x[252]=j(252,"unknown_fc",void 0,[],void 0),x[253]=j(253,"unknown_fd",void 0,[],void 0),x[254]=j(254,"unknown_fe",void 0,[],void 0),x[255]=j(255,"unknown_ff",void 0,[],void 0),x[63488]=j(63488,"unknown_f800",void 0,[],void 0),x[63489]=j(63489,"set_chat_callback",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S(R,void 0,void 0)],W.Pop),x[63490]=j(63490,"unknown_f802",void 0,[],void 0),x[63491]=j(63491,"unknown_f803",void 0,[],void 0),x[63492]=j(63492,"unknown_f804",void 0,[],void 0),x[63493]=j(63493,"unknown_f805",void 0,[],void 0),x[63494]=j(63494,"unknown_f806",void 0,[],void 0),x[63495]=j(63495,"unknown_f807",void 0,[],void 0),x[63496]=j(63496,"get_difficulty_level2","Sets the given register to the current difficulty. 0 For normal, 1 for hard, 2 for very hard and 3 for ultimate.",[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63497]=j(63497,"get_number_of_player1","Set the given register to the current number of players. Either 1, 2, 3 or 4.",[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63498]=j(63498,"get_coord_of_player","Retrieves a player's position.",[S({kind:s.RegTupRef,register_tuples:[S(_,"X coordinate.",P.Write),S(_,"Y coordinate.",P.Write),S(_,"Z coordinate.",P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63499]=j(63499,"enable_map",void 0,[],void 0),x[63500]=j(63500,"disable_map",void 0,[],void 0),x[63501]=j(63501,"map_designate_ex",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read)]},void 0,void 0)],void 0)),Ii=(x[63502]=j(63502,"unknown_f80e",void 0,[S(_,void 0,void 0)],W.Pop),x[63503]=j(63503,"unknown_f80f",void 0,[S(_,void 0,void 0)],W.Pop),x[63504]=j(63504,"ba_initial_floor",void 0,[S(_,void 0,void 0)],W.Pop),x[63505]=j(63505,"set_ba_rules",void 0,[],void 0),x[63506]=j(63506,"unknown_f812",void 0,[S(_,void 0,void 0)],W.Pop),x[63507]=j(63507,"unknown_f813",void 0,[S(_,void 0,void 0)],W.Pop),x[63508]=j(63508,"unknown_f814",void 0,[S(_,void 0,void 0)],W.Pop),x[63509]=j(63509,"unknown_f815",void 0,[S(_,void 0,void 0)],W.Pop),x[63510]=j(63510,"unknown_f816",void 0,[S(_,void 0,void 0)],W.Pop),x[63511]=j(63511,"unknown_f817",void 0,[S(_,void 0,void 0)],W.Pop),x[63512]=j(63512,"unknown_f818",void 0,[S(_,void 0,void 0)],W.Pop),x[63513]=j(63513,"unknown_f819",void 0,[S(_,void 0,void 0)],W.Pop),x[63514]=j(63514,"unknown_f81a",void 0,[S(_,void 0,void 0)],W.Pop),x[63515]=j(63515,"unknown_f81b",void 0,[S(_,void 0,void 0)],W.Pop),x[63516]=j(63516,"ba_disp_msg",void 0,[S(R,void 0,void 0)],W.Pop),x[63517]=j(63517,"death_lvl_up",void 0,[S(_,void 0,void 0)],W.Pop),x[63518]=j(63518,"death_tech_lvl_up",void 0,[S(_,void 0,void 0)],W.Pop),x[63519]=j(63519,"unknown_f81f",void 0,[],void 0),x[63520]=j(63520,"cmode_stage",void 0,[S(_,void 0,void 0)],W.Pop),x[63521]=j(63521,"unknown_f821",void 0,[],void 0),x[63522]=j(63522,"unknown_f822",void 0,[],void 0),x[63523]=j(63523,"unknown_f823",void 0,[S(_,void 0,void 0)],W.Pop),x[63524]=j(63524,"unknown_f824",void 0,[S(_,void 0,void 0)],W.Pop),x[63525]=j(63525,"exp_multiplication",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63526]=j(63526,"exp_division",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63527]=j(63527,"get_user_is_dead",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63528]=j(63528,"go_floor","Sends a player to the given floor.",[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,"Floor ID.",P.Read)]},void 0,void 0)],void 0),x[63529]=j(63529,"unknown_f829",void 0,[],void 0),x[63530]=j(63530,"unknown_f82a",void 0,[],void 0),x[63531]=j(63531,"unlock_door2",void 0,[S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[63532]=j(63532,"lock_door2",void 0,[S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[63533]=j(63533,"if_switch_not_pressed",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63534]=j(63534,"if_switch_pressed",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Floor ID.",P.Read),S(_,"Switch ID.",P.Read),S(_,"Will be set to 1 if the switch is pressed, 0 otherwise.",P.Write)]},void 0,void 0)],void 0),x[63535]=j(63535,"unknown_f82f",void 0,[S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[63536]=j(63536,"control_dragon",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[63537]=j(63537,"release_dragon",void 0,[],void 0),x[63538]=j(63538,"unknown_f832",void 0,[],void 0),x[63539]=j(63539,"unknown_f833",void 0,[],void 0),x[63540]=j(63540,"unknown_f834",void 0,[],void 0),x[63541]=j(63541,"unknown_f835",void 0,[],void 0),x[63542]=j(63542,"unknown_f836",void 0,[],void 0),x[63543]=j(63543,"unknown_f837",void 0,[],void 0),x[63544]=j(63544,"shrink",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63545]=j(63545,"unshrink",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63546]=j(63546,"unknown_f83a",void 0,[],void 0),x[63547]=j(63547,"unknown_f83b",void 0,[],void 0),x[63548]=j(63548,"display_clock2",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[63549]=j(63549,"unknown_f83d",void 0,[S(_,void 0,void 0)],W.Pop),x[63550]=j(63550,"delete_area_title",void 0,[S(_,void 0,void 0)],W.Pop),x[63551]=j(63551,"unknown_f83f",void 0,[],void 0),x[63552]=j(63552,"load_npc_data",void 0,[],void 0),x[63553]=j(63553,"get_npc_data",void 0,[S(c,void 0,void 0)],void 0),x[63554]=j(63554,"unknown_f842",void 0,[],void 0),x[63555]=j(63555,"unknown_f843",void 0,[],void 0),x[63556]=j(63556,"unknown_f844",void 0,[],void 0),x[63557]=j(63557,"unknown_f845",void 0,[],void 0),x[63558]=j(63558,"unknown_f846",void 0,[],void 0),x[63559]=j(63559,"unknown_f847",void 0,[],void 0),x[63560]=j(63560,"give_damage_score",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63561]=j(63561,"take_damage_score",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63562]=j(63562,"unk_score_f84a",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63563]=j(63563,"unk_score_f84b",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63564]=j(63564,"kill_score",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63565]=j(63565,"death_score",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63566]=j(63566,"unk_score_f84e",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63567]=j(63567,"enemy_death_score",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63568]=j(63568,"meseta_score",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63569]=j(63569,"unknown_f851",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63570]=j(63570,"unknown_f852",void 0,[S(_,void 0,void 0)],W.Pop),x[63571]=j(63571,"reverse_warps",void 0,[],void 0),x[63572]=j(63572,"unreverse_warps",void 0,[],void 0),x[63573]=j(63573,"set_ult_map",void 0,[],void 0),x[63574]=j(63574,"unset_ult_map",void 0,[],void 0),x[63575]=j(63575,"set_area_title",void 0,[S(R,void 0,void 0)],W.Pop),x[63576]=j(63576,"unknown_f858",void 0,[],void 0),x[63577]=j(63577,"unknown_f859",void 0,[],void 0),x[63578]=j(63578,"equip_item",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[63579]=j(63579,"unequip_item",void 0,[S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[63580]=j(63580,"unknown_f85c",void 0,[],void 0),x[63581]=j(63581,"unknown_f85d",void 0,[],void 0),x[63582]=j(63582,"unknown_f85e",void 0,[S(_,void 0,void 0)],W.Pop),x[63583]=j(63583,"unknown_f85f",void 0,[S(_,void 0,void 0)],W.Pop),x[63584]=j(63584,"unknown_f860",void 0,[],void 0),x[63585]=j(63585,"unknown_f861",void 0,[S(_,void 0,void 0)],W.Pop),x[63586]=j(63586,"unknown_f862",void 0,[],void 0),x[63587]=j(63587,"unknown_f863",void 0,[],void 0),x[63588]=j(63588,"cmode_rank",void 0,[S(_,void 0,void 0),S(R,void 0,void 0)],W.Pop),x[63589]=j(63589,"award_item_name",void 0,[],void 0),x[63590]=j(63590,"award_item_select",void 0,[],void 0),x[63591]=j(63591,"award_item_give_to",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[63592]=j(63592,"unknown_f868",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63593]=j(63593,"unknown_f869",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63594]=j(63594,"item_create_cmode",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63595]=j(63595,"unknown_f86b",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63596]=j(63596,"award_item_ok",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63597]=j(63597,"unknown_f86d",void 0,[],void 0),x[63598]=j(63598,"unknown_f86e",void 0,[],void 0),x[63599]=j(63599,"ba_set_lives",void 0,[S(_,void 0,void 0)],W.Pop),x[63600]=j(63600,"ba_set_tech_lvl",void 0,[S(_,void 0,void 0)],W.Pop),x[63601]=j(63601,"ba_set_lvl",void 0,[S(_,void 0,void 0)],W.Pop),x[63602]=j(63602,"ba_set_time_limit",void 0,[S(_,void 0,void 0)],W.Pop),x[63603]=j(63603,"boss_is_dead",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63604]=j(63604,"unknown_f874",void 0,[],void 0),x[63605]=j(63605,"unknown_f875",void 0,[],void 0),x[63606]=j(63606,"unknown_f876",void 0,[],void 0),x[63607]=j(63607,"enable_techs","Enables technique use for the given player.",[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63608]=j(63608,"disable_techs","Disables technique use for the given player.",[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63609]=j(63609,"get_gender","Retrieves the player's gender. 0 If male, 1 if female.",[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,"Player gender.",P.Write)]},void 0,void 0)],void 0),x[63610]=j(63610,"get_chara_class","Retrieves the player's race and character class.",[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,"Player race. 0 If human, 1 if newman, 2 if cast.",P.Write),S(_,"Player class. 0 If hunter, 1 if ranger, 2 if force.",P.Write)]},void 0,void 0)],void 0),x[63611]=j(63611,"take_slot_meseta","Takes an amount of meseta from a player's inventory.",[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read),S(_,"Amount of meseta to take.",P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,"Will be set to 1 if the meseta was taken, 0 otherwise.",P.Write)]},void 0,void 0)],void 0),x[63612]=j(63612,"unknown_f87c",void 0,[],void 0),x[63613]=j(63613,"unknown_f87d",void 0,[],void 0),x[63614]=j(63614,"unknown_f87e",void 0,[],void 0),x[63615]=j(63615,"read_guildcard_flag",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63616]=j(63616,"unknown_f880",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63617]=j(63617,"get_pl_name","Sets the value of to the given player's name.",[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63618]=j(63618,"get_pl_job","Sets the value of to the given player's job (Hunter/Ranger/Force).",[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63619]=j(63619,"unknown_f883",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63620]=j(63620,"unknown_f884",void 0,[],void 0),x[63621]=j(63621,"unknown_f885",void 0,[],void 0),x[63622]=j(63622,"unknown_f886",void 0,[],void 0),x[63623]=j(63623,"unknown_f887",void 0,[],void 0),x[63624]=j(63624,"unknown_f888",void 0,[],void 0),x[63625]=j(63625,"unknown_f889",void 0,[],void 0),x[63626]=j(63626,"get_player_status",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63627]=j(63627,"send_mail",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S(R,void 0,void 0)],W.Pop),x[63628]=j(63628,"online_check",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63629]=j(63629,"chl_set_timerecord",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63630]=j(63630,"chl_get_timerecord",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63631]=j(63631,"unknown_f88f",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63632]=j(63632,"unknown_f890",void 0,[],void 0),x[63633]=j(63633,"load_enemy_data",void 0,[S(_,void 0,void 0)],W.Pop),x[63634]=j(63634,"get_physical_data",void 0,[S(u,void 0,void 0)],void 0),x[63635]=j(63635,"get_attack_data",void 0,[S(u,void 0,void 0)],void 0),x[63636]=j(63636,"get_resist_data",void 0,[S(u,void 0,void 0)],void 0),x[63637]=j(63637,"get_movement_data",void 0,[S(u,void 0,void 0)],void 0),x[63638]=j(63638,"unknown_f896",void 0,[],void 0),x[63639]=j(63639,"unknown_f897",void 0,[],void 0),x[63640]=j(63640,"shift_left",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[63641]=j(63641,"shift_right",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[63642]=j(63642,"get_random",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read),S(_,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0)),ji=(x[63643]=j(63643,"reset_map","Sets all registers to 0 and resets the quest.",[],void 0),x[63644]=j(63644,"disp_chl_retry_menu",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63645]=j(63645,"chl_reverser",void 0,[],void 0),x[63646]=j(63646,"unknown_f89e",void 0,[S(_,void 0,void 0)],W.Pop),x[63647]=j(63647,"unknown_f89f",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63648]=j(63648,"unknown_f8a0",void 0,[],void 0),x[63649]=j(63649,"unknown_f8a1",void 0,[],void 0),x[63650]=j(63650,"unknown_f8a2",void 0,[],void 0),x[63651]=j(63651,"unknown_f8a3",void 0,[],void 0),x[63652]=j(63652,"unknown_f8a4",void 0,[],void 0),x[63653]=j(63653,"unknown_f8a5",void 0,[],void 0),x[63654]=j(63654,"unknown_f8a6",void 0,[],void 0),x[63655]=j(63655,"unknown_f8a7",void 0,[],void 0),x[63656]=j(63656,"unknown_f8a8",void 0,[S(_,void 0,void 0)],W.Pop),x[63657]=j(63657,"unknown_f8a9",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63658]=j(63658,"unknown_f8aa",void 0,[],void 0),x[63659]=j(63659,"unknown_f8ab",void 0,[],void 0),x[63660]=j(63660,"unknown_f8ac",void 0,[],void 0),x[63661]=j(63661,"get_number_of_player2",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63662]=j(63662,"unknown_f8ae",void 0,[],void 0),x[63663]=j(63663,"unknown_f8af",void 0,[],void 0),x[63664]=j(63664,"unknown_f8b0",void 0,[],void 0),x[63665]=j(63665,"unknown_f8b1",void 0,[],void 0),x[63666]=j(63666,"unknown_f8b2",void 0,[],void 0),x[63667]=j(63667,"unknown_f8b3",void 0,[],void 0),x[63668]=j(63668,"unknown_f8b4",void 0,[],void 0),x[63669]=j(63669,"unknown_f8b5",void 0,[],void 0),x[63670]=j(63670,"unknown_f8b6",void 0,[],void 0),x[63671]=j(63671,"unknown_f8b7",void 0,[],void 0),x[63672]=j(63672,"unknown_f8b8",void 0,[],void 0),x[63673]=j(63673,"chl_recovery",void 0,[],void 0),x[63674]=j(63674,"unknown_f8ba",void 0,[],void 0),x[63675]=j(63675,"unknown_f8bb",void 0,[],void 0),x[63676]=j(63676,"set_episode",void 0,[S(_,void 0,void 0)],void 0),x[63677]=j(63677,"unknown_f8bd",void 0,[],void 0),x[63678]=j(63678,"unknown_f8be",void 0,[],void 0),x[63679]=j(63679,"unknown_f8bf",void 0,[],void 0),x[63680]=j(63680,"file_dl_req",void 0,[S(_,void 0,void 0),S(R,void 0,void 0)],W.Pop),x[63681]=j(63681,"get_dl_status",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63682]=j(63682,"gba_unknown4",void 0,[],void 0),x[63683]=j(63683,"get_gba_state",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63684]=j(63684,"unknown_f8c4",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63685]=j(63685,"unknown_f8c5",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63686]=j(63686,"qexit",void 0,[],void 0),x[63687]=j(63687,"use_animation",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,"Animation ID.",P.Read),S(_,"Animation duration in number of frames.",P.Read)]},void 0,void 0)],void 0),x[63688]=j(63688,"stop_animation",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63689]=j(63689,"run_to_coord",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63690]=j(63690,"set_slot_invincible",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[63691]=j(63691,"unknown_f8cb",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63692]=j(63692,"set_slot_poison",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63693]=j(63693,"set_slot_paralyze",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63694]=j(63694,"set_slot_shock",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63695]=j(63695,"set_slot_freeze",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63696]=j(63696,"set_slot_slow",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63697]=j(63697,"set_slot_confuse",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63698]=j(63698,"set_slot_shifta",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63699]=j(63699,"set_slot_deband",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63700]=j(63700,"set_slot_jellen",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63701]=j(63701,"set_slot_zalure",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read)]},void 0,void 0)],void 0),x[63702]=j(63702,"fleti_fixed_camera",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],W.Pop),x[63703]=j(63703,"fleti_locked_camera",void 0,[S(_,void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],W.Pop),x[63704]=j(63704,"default_camera_pos2",void 0,[],void 0),x[63705]=j(63705,"set_motion_blur",void 0,[],void 0),x[63706]=j(63706,"set_screen_bw",void 0,[],void 0),x[63707]=j(63707,"unknown_f8db",void 0,[S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S(u,void 0,void 0)],W.Pop),x[63708]=j(63708,"npc_action_string",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0),S(k,void 0,void 0)],void 0),x[63709]=j(63709,"get_pad_cond",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63710]=j(63710,"get_button_cond",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63711]=j(63711,"freeze_enemies",void 0,[],void 0),x[63712]=j(63712,"unfreeze_enemies",void 0,[],void 0),x[63713]=j(63713,"freeze_everything",void 0,[],void 0),x[63714]=j(63714,"unfreeze_everything",void 0,[],void 0),x[63715]=j(63715,"restore_hp",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63716]=j(63716,"restore_tp",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63717]=j(63717,"close_chat_bubble",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63718]=j(63718,"move_coords_object",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63719]=j(63719,"at_coords_call_ex",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63720]=j(63720,"unknown_f8e8",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63721]=j(63721,"unknown_f8e9",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63722]=j(63722,"unknown_f8ea",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63723]=j(63723,"unknown_f8eb",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63724]=j(63724,"unknown_f8ec",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63725]=j(63725,"animation_check",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63726]=j(63726,"call_image_data",void 0,[S(_,void 0,void 0),S(u,void 0,void 0)],W.Pop),x[63727]=j(63727,"unknown_f8ef",void 0,[],void 0),x[63728]=j(63728,"turn_off_bgm_p2",void 0,[],void 0),x[63729]=j(63729,"turn_on_bgm_p2",void 0,[],void 0),x[63730]=j(63730,"load_unk_data",void 0,[S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S(c,void 0,void 0)],W.Pop),x[63731]=j(63731,"particle2",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0),S(_,void 0,void 0),S(p,void 0,void 0)],W.Pop),x[63732]=j(63732,"unknown_f8f4",void 0,[],void 0),x[63733]=j(63733,"unknown_f8f5",void 0,[],void 0),x[63734]=j(63734,"unknown_f8f6",void 0,[],void 0),x[63735]=j(63735,"unknown_f8f7",void 0,[],void 0),x[63736]=j(63736,"unknown_f8f8",void 0,[],void 0),x[63737]=j(63737,"unknown_f8f9",void 0,[],void 0),x[63738]=j(63738,"unknown_f8fa",void 0,[],void 0),x[63739]=j(63739,"unknown_f8fb",void 0,[],void 0),x[63740]=j(63740,"unknown_f8fc",void 0,[],void 0),x[63741]=j(63741,"unknown_f8fd",void 0,[],void 0),x[63742]=j(63742,"unknown_f8fe",void 0,[],void 0),x[63743]=j(63743,"unknown_f8ff",void 0,[],void 0),x[63744]=j(63744,"unknown_f900",void 0,[],void 0),x[63745]=j(63745,"dec2float",void 0,[S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Read)]},void 0,void 0)],void 0),x[63746]=j(63746,"float2dec",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Read)]},void 0,void 0)],void 0),x[63747]=j(63747,"flet",void 0,[S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Read)]},void 0,void 0)],void 0),x[63748]=j(63748,"fleti",void 0,[S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Write)]},void 0,void 0),S(p,void 0,void 0)],void 0),x[63749]=j(63749,"unknown_f905",void 0,[],void 0),x[63750]=j(63750,"unknown_f906",void 0,[],void 0),x[63751]=j(63751,"unknown_f907",void 0,[],void 0),x[63752]=j(63752,"fadd",void 0,[S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Read)]},void 0,void 0)],void 0),x[63753]=j(63753,"faddi",void 0,[S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Write)]},void 0,void 0),S(p,void 0,void 0)],void 0),x[63754]=j(63754,"fsub",void 0,[S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Read)]},void 0,void 0)],void 0),x[63755]=j(63755,"fsubi",void 0,[S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Write)]},void 0,void 0),S(p,void 0,void 0)],void 0),x[63756]=j(63756,"fmul",void 0,[S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Read)]},void 0,void 0)],void 0),x[63757]=j(63757,"fmuli",void 0,[S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Write)]},void 0,void 0),S(p,void 0,void 0)],void 0),x[63758]=j(63758,"fdiv",void 0,[S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Read)]},void 0,void 0)],void 0),x[63759]=j(63759,"fdivi",void 0,[S({kind:s.RegTupRef,register_tuples:[S(p,void 0,P.Write)]},void 0,void 0),S(p,void 0,void 0)],void 0),x[63760]=j(63760,"get_unknown_count",void 0,[S(_,void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],W.Pop),x[63761]=j(63761,"get_stackable_item_count",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,"Player slot.",P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read),S(_,void 0,P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63762]=j(63762,"freeze_and_hide_equip",void 0,[],void 0),x[63763]=j(63763,"thaw_and_show_equip",void 0,[],void 0),x[63764]=j(63764,"set_palettex_callback",void 0,[S(_,"Player slot.",void 0),S(f,void 0,void 0)],W.Pop),x[63765]=j(63765,"activate_palettex",void 0,[S(_,"Player slot.",void 0)],W.Pop),x[63766]=j(63766,"enable_palettex",void 0,[S(_,"Player slot.",void 0)],W.Pop),x[63767]=j(63767,"restore_palettex",void 0,[S(_,"Player slot.",void 0)],W.Pop),x[63768]=j(63768,"disable_palettex",void 0,[S(_,"Player slot.",void 0)],W.Pop),x[63769]=j(63769,"get_palettex_activated",void 0,[S(_,"Player slot.",void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],W.Pop),x[63770]=j(63770,"get_unknown_palettex_status",void 0,[S(_,void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],W.Pop),x[63771]=j(63771,"disable_movement2",void 0,[S(_,"Player slot.",void 0)],W.Pop),x[63772]=j(63772,"enable_movement2",void 0,[S(_,"Player slot.",void 0)],W.Pop),x[63773]=j(63773,"get_time_played",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63774]=j(63774,"get_guildcard_total",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63775]=j(63775,"get_slot_meseta",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63776]=j(63776,"get_player_level",void 0,[S(_,"Player slot.",void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],W.Pop),x[63777]=j(63777,"get_section_id",void 0,[S(_,"Player slot.",void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],W.Pop),x[63778]=j(63778,"get_player_hp",void 0,[S(_,"Player slot.",void 0),S({kind:s.RegTupRef,register_tuples:[S(_,"Maximum HP.",P.Write),S(_,"Current HP.",P.Write),S(_,"Maximum TP.",P.Write),S(_,"Current TP.",P.Write)]},void 0,void 0)],W.Pop),x[63779]=j(63779,"get_floor_number",void 0,[S(_,"Player slot.",void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],W.Pop),x[63780]=j(63780,"get_coord_player_detect",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,"Player slot.",P.Read)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Read)]},void 0,void 0)],void 0),x[63781]=j(63781,"read_global_flag",void 0,[S(_,void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],W.Pop),x[63782]=j(63782,"write_global_flag",void 0,[S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[63783]=j(63783,"unknown_f927",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63784]=j(63784,"floor_player_detect",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write),S(_,void 0,P.Write),S(_,void 0,P.Write),S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63785]=j(63785,"read_disk_file",void 0,[S(R,void 0,void 0)],W.Pop),x[63786]=j(63786,"open_pack_select",void 0,[],void 0),x[63787]=j(63787,"item_select",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63788]=j(63788,"get_item_id",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63789]=j(63789,"color_change",void 0,[S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[63790]=j(63790,"send_statistic",void 0,[S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[63791]=j(63791,"unknown_f92f",void 0,[S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[63792]=j(63792,"chat_box",void 0,[S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(R,void 0,void 0)],W.Pop),x[63793]=j(63793,"chat_bubble",void 0,[S(_,void 0,void 0),S(R,void 0,void 0)],W.Pop),x[63794]=j(63794,"unknown_f932",void 0,[],void 0),x[63795]=j(63795,"unknown_f933",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],void 0),x[63796]=j(63796,"scroll_text",void 0,[S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(p,void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(R,void 0,void 0)],W.Pop),x[63797]=j(63797,"gba_unknown1",void 0,[],void 0),x[63798]=j(63798,"gba_unknown2",void 0,[],void 0),x[63799]=j(63799,"gba_unknown3",void 0,[],void 0),x[63800]=j(63800,"add_damage_to",void 0,[S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[63801]=j(63801,"item_delete3",void 0,[S(_,void 0,void 0)],W.Pop),x[63802]=j(63802,"get_item_info",void 0,[S(_,void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],W.Pop),x[63803]=j(63803,"item_packing1",void 0,[S(_,void 0,void 0)],W.Pop),x[63804]=j(63804,"item_packing2",void 0,[S(_,void 0,void 0),S(_,void 0,void 0)],W.Pop),x[63805]=j(63805,"get_lang_setting",void 0,[S({kind:s.RegTupRef,register_tuples:[S(a,void 0,P.Write)]},void 0,void 0)],W.Pop),x[63806]=j(63806,"prepare_statistic",void 0,[S(_,void 0,void 0),S(f,void 0,void 0),S(f,void 0,void 0)],W.Pop),x[63807]=j(63807,"keyword_detect",void 0,[],void 0),x[63808]=j(63808,"keyword",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,"Player slot.",void 0),S(R,void 0,void 0)],W.Pop),x[63809]=j(63809,"get_guildcard_num",void 0,[S(_,"Player slot.",void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],W.Pop),x[63810]=j(63810,"unknown_f942",void 0,[],void 0),x[63811]=j(63811,"unknown_f943",void 0,[],void 0),x[63812]=j(63812,"get_wrap_status",void 0,[S(_,"Player slot.",void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],W.Pop),x[63813]=j(63813,"initial_floor",void 0,[S(_,void 0,void 0)],W.Pop),x[63814]=j(63814,"sin",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],W.Pop),x[63815]=j(63815,"cos",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0)],W.Pop),x[63816]=j(63816,"unknown_f948",void 0,[],void 0),x[63817]=j(63817,"unknown_f949",void 0,[],void 0),x[63818]=j(63818,"boss_is_dead2",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63819]=j(63819,"unknown_f94b",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63820]=j(63820,"unknown_f94c",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63821]=j(63821,"is_there_cardbattle",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63822]=j(63822,"unknown_f94e",void 0,[],void 0),x[63823]=j(63823,"unknown_f94f",void 0,[],void 0),x[63824]=j(63824,"bb_p2_menu",void 0,[S(_,void 0,void 0)],W.Pop),x[63825]=j(63825,"bb_map_designate",void 0,[S(l,void 0,void 0),S(u,void 0,void 0),S(l,void 0,void 0),S(l,void 0,void 0)],void 0));x[63826]=j(63826,"bb_get_number_in_pack",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],void 0),x[63827]=j(63827,"bb_swap_item",void 0,[S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0),S(f,void 0,void 0)],W.Pop),x[63828]=j(63828,"bb_check_wrap",void 0,[S(_,void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0)],W.Pop),x[63829]=j(63829,"bb_exchange_pd_item",void 0,[S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0),S(f,void 0,void 0)],W.Pop),x[63830]=j(63830,"bb_exchange_pd_srank",void 0,[S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0),S(f,void 0,void 0)],W.Pop),x[63831]=j(63831,"bb_exchange_pd_special",void 0,[S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0),S(f,void 0,void 0)],W.Pop),x[63832]=j(63832,"bb_exchange_pd_percent",void 0,[S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0),S(f,void 0,void 0)],W.Pop),x[63833]=j(63833,"unknown_f959",void 0,[S(_,void 0,void 0)],W.Pop),x[63834]=j(63834,"unknown_f95a",void 0,[],void 0),x[63835]=j(63835,"unknown_f95b",void 0,[],void 0),x[63836]=j(63836,"bb_exchange_slt",void 0,[S(_,void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(f,void 0,void 0),S(f,void 0,void 0)],W.Pop),x[63837]=j(63837,"bb_exchange_pc",void 0,[],void 0),x[63838]=j(63838,"bb_box_create_bp",void 0,[S(_,void 0,void 0),S(p,void 0,void 0),S(p,void 0,void 0)],W.Pop),x[63839]=j(63839,"bb_exchange_pt",void 0,[S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S({kind:s.RegTupRef,register_tuples:[S(_,void 0,P.Write)]},void 0,void 0),S(_,void 0,void 0),S(f,void 0,void 0),S(f,void 0,void 0)],W.Pop),x[63840]=j(63840,"unknown_f960",void 0,[S(_,void 0,void 0)],W.Pop),x[63841]=j(63841,"unknown_f961",void 0,[],void 0),x[63842]=j(63842,"unknown_f962",void 0,[],void 0),x[63843]=j(63843,"unknown_f963",void 0,[],void 0),x[63844]=j(63844,"unknown_f964",void 0,[],void 0),x[63845]=j(63845,"unknown_f965",void 0,[],void 0),x[63846]=j(63846,"unknown_f966",void 0,[],void 0),x[63847]=j(63847,"unknown_f967",void 0,[],void 0),x[63848]=j(63848,"unknown_f968",void 0,[],void 0),x[63849]=j(63849,"unknown_f969",void 0,[],void 0),x[63850]=j(63850,"unknown_f96a",void 0,[],void 0),x[63851]=j(63851,"unknown_f96b",void 0,[],void 0),x[63852]=j(63852,"unknown_f96c",void 0,[],void 0),x[63853]=j(63853,"unknown_f96d",void 0,[],void 0),x[63854]=j(63854,"unknown_f96e",void 0,[],void 0),x[63855]=j(63855,"unknown_f96f",void 0,[],void 0),x[63856]=j(63856,"unknown_f970",void 0,[],void 0),x[63857]=j(63857,"unknown_f971",void 0,[],void 0),x[63858]=j(63858,"unknown_f972",void 0,[],void 0),x[63859]=j(63859,"unknown_f973",void 0,[],void 0),x[63860]=j(63860,"unknown_f974",void 0,[],void 0),x[63861]=j(63861,"unknown_f975",void 0,[],void 0),x[63862]=j(63862,"unknown_f976",void 0,[],void 0),x[63863]=j(63863,"unknown_f977",void 0,[],void 0),x[63864]=j(63864,"unknown_f978",void 0,[],void 0),x[63865]=j(63865,"unknown_f979",void 0,[],void 0),x[63866]=j(63866,"unknown_f97a",void 0,[],void 0),x[63867]=j(63867,"unknown_f97b",void 0,[],void 0),x[63868]=j(63868,"unknown_f97c",void 0,[],void 0),x[63869]=j(63869,"unknown_f97d",void 0,[],void 0),x[63870]=j(63870,"unknown_f97e",void 0,[],void 0),x[63871]=j(63871,"unknown_f97f",void 0,[],void 0),x[63872]=j(63872,"unknown_f980",void 0,[],void 0),x[63873]=j(63873,"unknown_f981",void 0,[],void 0),x[63874]=j(63874,"unknown_f982",void 0,[],void 0),x[63875]=j(63875,"unknown_f983",void 0,[],void 0),x[63876]=j(63876,"unknown_f984",void 0,[],void 0),x[63877]=j(63877,"unknown_f985",void 0,[],void 0),x[63878]=j(63878,"unknown_f986",void 0,[],void 0),x[63879]=j(63879,"unknown_f987",void 0,[],void 0),x[63880]=j(63880,"unknown_f988",void 0,[],void 0),x[63881]=j(63881,"unknown_f989",void 0,[],void 0),x[63882]=j(63882,"unknown_f98a",void 0,[],void 0),x[63883]=j(63883,"unknown_f98b",void 0,[],void 0),x[63884]=j(63884,"unknown_f98c",void 0,[],void 0),x[63885]=j(63885,"unknown_f98d",void 0,[],void 0),x[63886]=j(63886,"unknown_f98e",void 0,[],void 0),x[63887]=j(63887,"unknown_f98f",void 0,[],void 0),x[63888]=j(63888,"unknown_f990",void 0,[],void 0),x[63889]=j(63889,"unknown_f991",void 0,[],void 0),x[63890]=j(63890,"unknown_f992",void 0,[],void 0),x[63891]=j(63891,"unknown_f993",void 0,[],void 0),x[63892]=j(63892,"unknown_f994",void 0,[],void 0),x[63893]=j(63893,"unknown_f995",void 0,[],void 0),x[63894]=j(63894,"unknown_f996",void 0,[],void 0),x[63895]=j(63895,"unknown_f997",void 0,[],void 0),x[63896]=j(63896,"unknown_f998",void 0,[],void 0),x[63897]=j(63897,"unknown_f999",void 0,[],void 0),x[63898]=j(63898,"unknown_f99a",void 0,[],void 0),x[63899]=j(63899,"unknown_f99b",void 0,[],void 0),x[63900]=j(63900,"unknown_f99c",void 0,[],void 0),x[63901]=j(63901,"unknown_f99d",void 0,[],void 0),x[63902]=j(63902,"unknown_f99e",void 0,[],void 0),x[63903]=j(63903,"unknown_f99f",void 0,[],void 0),x[63904]=j(63904,"unknown_f9a0",void 0,[],void 0),x[63905]=j(63905,"unknown_f9a1",void 0,[],void 0),x[63906]=j(63906,"unknown_f9a2",void 0,[],void 0),x[63907]=j(63907,"unknown_f9a3",void 0,[],void 0),x[63908]=j(63908,"unknown_f9a4",void 0,[],void 0),x[63909]=j(63909,"unknown_f9a5",void 0,[],void 0),x[63910]=j(63910,"unknown_f9a6",void 0,[],void 0),x[63911]=j(63911,"unknown_f9a7",void 0,[],void 0),x[63912]=j(63912,"unknown_f9a8",void 0,[],void 0),x[63913]=j(63913,"unknown_f9a9",void 0,[],void 0),x[63914]=j(63914,"unknown_f9aa",void 0,[],void 0),x[63915]=j(63915,"unknown_f9ab",void 0,[],void 0),x[63916]=j(63916,"unknown_f9ac",void 0,[],void 0),x[63917]=j(63917,"unknown_f9ad",void 0,[],void 0),x[63918]=j(63918,"unknown_f9ae",void 0,[],void 0),x[63919]=j(63919,"unknown_f9af",void 0,[],void 0),x[63920]=j(63920,"unknown_f9b0",void 0,[],void 0),x[63921]=j(63921,"unknown_f9b1",void 0,[],void 0),x[63922]=j(63922,"unknown_f9b2",void 0,[],void 0),x[63923]=j(63923,"unknown_f9b3",void 0,[],void 0),x[63924]=j(63924,"unknown_f9b4",void 0,[],void 0),x[63925]=j(63925,"unknown_f9b5",void 0,[],void 0),x[63926]=j(63926,"unknown_f9b6",void 0,[],void 0),x[63927]=j(63927,"unknown_f9b7",void 0,[],void 0),x[63928]=j(63928,"unknown_f9b8",void 0,[],void 0),x[63929]=j(63929,"unknown_f9b9",void 0,[],void 0),x[63930]=j(63930,"unknown_f9ba",void 0,[],void 0),x[63931]=j(63931,"unknown_f9bb",void 0,[],void 0),x[63932]=j(63932,"unknown_f9bc",void 0,[],void 0),x[63933]=j(63933,"unknown_f9bd",void 0,[],void 0),x[63934]=j(63934,"unknown_f9be",void 0,[],void 0),x[63935]=j(63935,"unknown_f9bf",void 0,[],void 0),x[63936]=j(63936,"unknown_f9c0",void 0,[],void 0),x[63937]=j(63937,"unknown_f9c1",void 0,[],void 0),x[63938]=j(63938,"unknown_f9c2",void 0,[],void 0),x[63939]=j(63939,"unknown_f9c3",void 0,[],void 0),x[63940]=j(63940,"unknown_f9c4",void 0,[],void 0),x[63941]=j(63941,"unknown_f9c5",void 0,[],void 0),x[63942]=j(63942,"unknown_f9c6",void 0,[],void 0),x[63943]=j(63943,"unknown_f9c7",void 0,[],void 0),x[63944]=j(63944,"unknown_f9c8",void 0,[],void 0),x[63945]=j(63945,"unknown_f9c9",void 0,[],void 0),x[63946]=j(63946,"unknown_f9ca",void 0,[],void 0),x[63947]=j(63947,"unknown_f9cb",void 0,[],void 0),x[63948]=j(63948,"unknown_f9cc",void 0,[],void 0),x[63949]=j(63949,"unknown_f9cd",void 0,[],void 0),x[63950]=j(63950,"unknown_f9ce",void 0,[],void 0),x[63951]=j(63951,"unknown_f9cf",void 0,[],void 0),x[63952]=j(63952,"unknown_f9d0",void 0,[],void 0),x[63953]=j(63953,"unknown_f9d1",void 0,[],void 0),x[63954]=j(63954,"unknown_f9d2",void 0,[],void 0),x[63955]=j(63955,"unknown_f9d3",void 0,[],void 0),x[63956]=j(63956,"unknown_f9d4",void 0,[],void 0),x[63957]=j(63957,"unknown_f9d5",void 0,[],void 0),x[63958]=j(63958,"unknown_f9d6",void 0,[],void 0),x[63959]=j(63959,"unknown_f9d7",void 0,[],void 0),x[63960]=j(63960,"unknown_f9d8",void 0,[],void 0),x[63961]=j(63961,"unknown_f9d9",void 0,[],void 0),x[63962]=j(63962,"unknown_f9da",void 0,[],void 0),x[63963]=j(63963,"unknown_f9db",void 0,[],void 0),x[63964]=j(63964,"unknown_f9dc",void 0,[],void 0),x[63965]=j(63965,"unknown_f9dd",void 0,[],void 0),x[63966]=j(63966,"unknown_f9de",void 0,[],void 0),x[63967]=j(63967,"unknown_f9df",void 0,[],void 0),x[63968]=j(63968,"unknown_f9e0",void 0,[],void 0),x[63969]=j(63969,"unknown_f9e1",void 0,[],void 0),x[63970]=j(63970,"unknown_f9e2",void 0,[],void 0),x[63971]=j(63971,"unknown_f9e3",void 0,[],void 0),x[63972]=j(63972,"unknown_f9e4",void 0,[],void 0),x[63973]=j(63973,"unknown_f9e5",void 0,[],void 0),x[63974]=j(63974,"unknown_f9e6",void 0,[],void 0),x[63975]=j(63975,"unknown_f9e7",void 0,[],void 0),x[63976]=j(63976,"unknown_f9e8",void 0,[],void 0),x[63977]=j(63977,"unknown_f9e9",void 0,[],void 0),x[63978]=j(63978,"unknown_f9ea",void 0,[],void 0),x[63979]=j(63979,"unknown_f9eb",void 0,[],void 0),x[63980]=j(63980,"unknown_f9ec",void 0,[],void 0),x[63981]=j(63981,"unknown_f9ed",void 0,[],void 0),x[63982]=j(63982,"unknown_f9ee",void 0,[],void 0),x[63983]=j(63983,"unknown_f9ef",void 0,[],void 0),x[63984]=j(63984,"unknown_f9f0",void 0,[],void 0),x[63985]=j(63985,"unknown_f9f1",void 0,[],void 0),x[63986]=j(63986,"unknown_f9f2",void 0,[],void 0),x[63987]=j(63987,"unknown_f9f3",void 0,[],void 0),x[63988]=j(63988,"unknown_f9f4",void 0,[],void 0),x[63989]=j(63989,"unknown_f9f5",void 0,[],void 0),x[63990]=j(63990,"unknown_f9f6",void 0,[],void 0),x[63991]=j(63991,"unknown_f9f7",void 0,[],void 0),x[63992]=j(63992,"unknown_f9f8",void 0,[],void 0),x[63993]=j(63993,"unknown_f9f9",void 0,[],void 0),x[63994]=j(63994,"unknown_f9fa",void 0,[],void 0),x[63995]=j(63995,"unknown_f9fb",void 0,[],void 0),x[63996]=j(63996,"unknown_f9fc",void 0,[],void 0),x[63997]=j(63997,"unknown_f9fd",void 0,[],void 0),x[63998]=j(63998,"unknown_f9fe",void 0,[],void 0),x[63999]=j(63999,"unknown_f9ff",void 0,[],void 0);function Li(i,e){if(!i){let i="Assertion Error";throw e&&(i+=": "+(e instanceof Function?e():e)),new Error(i)}}var zi,Di;x.forEach(i=>{I.set(i.mnemonic,i)}),function(i){i[i.Instructions=0]="Instructions",i[i.Data=1]="Data",i[i.String=2]="String"}(zi||(zi={})),function(i){i[i.Trace=0]="Trace",i[i.Debug=1]="Debug",i[i.Info=2]="Info",i[i.Warn=3]="Warn",i[i.Error=4]="Error",i[i.Off=5]="Off"}(Di||(Di={}));!function(i){const e=Object.values(i),o=e.filter(i=>"number"==typeof i);o.length}(Di);function Ci(i,e){return i.toString().padStart(e,"0")}class Mi{constructor(i){this.name=i,this.trace=(i,e)=>{this.handle(Di.Trace,i,e)},this.debug=(i,e)=>{this.handle(Di.Debug,i,e)},this.info=(i,e)=>{this.handle(Di.Info,i,e)},this.warn=(i,e)=>{this.handle(Di.Warn,i,e)},this.error=(i,e)=>{this.handle(Di.Error,i,e)}}get level(){var i;return null!=(i=this._level)?i:$i.default_level}set level(i){this._level=i}get handler(){var i;return null!=(i=this._handler)?i:$i.default_handler}set handler(i){this._handler=i}handle(i,e,o){i>=this.level&&this.handler({time:new Date,message:e,level:i,logger:this,cause:o},this.name)}}class $i{static get(i){let e=this.loggers.get(i);return e||(e=new Mi(i),this.loggers.set(i,e)),e}static with_default_handler(i,e){const o=this.default_handler;let d=!1;try{this.default_handler=i;const v=e();return v instanceof Promise?(d=!0,v.finally(()=>this.default_handler=o)):v}finally{d||(this.default_handler=o)}}}$i.loggers=new Map,$i.default_level=function(i){const e=Di[i.slice(0,1).toUpperCase()+i.slice(1).toLowerCase()];return Li(null!=e,()=>`"${i}" is not a valid log level.`),e}("INFO"),$i.default_handler=function({time:i,message:e,level:o,logger:d,cause:v}){const t=`${function(i){const e=Ci(i.getHours(),2),o=Ci(i.getMinutes(),2),d=Ci(i.getSeconds(),2),v=Ci(i.getMilliseconds(),3);return`${e}:${o}:${d}.${v}`}(i)} [${Di[o]}] ${d.name} - ${e}`;let n;switch(o){case Di.Trace:n=console.trace;break;case Di.Debug:n=console.debug;break;case Di.Info:n=console.info;break;case Di.Warn:n=console.warn;break;case Di.Error:n=console.error;break;default:n=console.log}null==v?n.call(console,t):n.call(console,t,v)};const Ni=$i.get("quest_editor/scripting/assembly");class Ai{constructor(i,e){this.assembly=i,this.manual_stack=e,this.lexer=new r,this.section=zi.Instructions,this.first_section_marker=!0,this.prev_line_had_label=!1}assemble(){this.line_no=1,this.object_code=[],this.warnings=[],this.errors=[],this.labels=new Set,this.section=zi.Instructions,this.first_section_marker=!0,this.prev_line_had_label=!1;for(const i of this.assembly){if(this.tokens=this.lexer.tokenize_line(i),this.tokens.length>0){const i=this.tokens.shift();let e=!1;switch(i.type){case n.Label:this.parse_label(i),e=!0;break;case n.CodeSection:case n.DataSection:case n.StringSection:this.parse_section(i);break;case n.Int:this.section===zi.Data?this.parse_bytes(i):this.add_error({col:i.col,length:i.len,message:"Unexpected token."});break;case n.String:this.section===zi.String?this.parse_string(i):this.add_error({col:i.col,length:i.len,message:"Unexpected token."});break;case n.Ident:this.section===zi.Instructions?this.parse_instruction(i):this.add_error({col:i.col,length:i.len,message:"Unexpected token."});break;case n.InvalidSection:this.add_error({col:i.col,length:i.len,message:"Invalid section type."});break;case n.InvalidIdent:this.add_error({col:i.col,length:i.len,message:"Invalid identifier."});break;default:this.add_error({col:i.col,length:i.len,message:"Unexpected token."})}this.prev_line_had_label=e}this.line_no++}return{object_code:this.object_code,warnings:this.warnings,errors:this.errors}}add_instruction(i,e,o,d,v,t){if(this.segment)this.segment.type===zi.Instructions?this.segment.instructions.push(function(i,e,o){const d=Math.min(i.params.length,e.length),v=[];let t=0;for(let o=0;o({line_no:this.line_no,col:i.col,len:i.len})),stack_args:t.map((i,e)=>({line_no:this.line_no,col:i.col,len:i.len,value:o[e].value}))})):Ni.error(`Line ${this.line_no}: Expected instructions segment.`);else{const i={labels:[],type:zi.Instructions,instructions:[],asm:{labels:[]}};this.segment=i,this.object_code.push(i)}}add_bytes(i){if(this.segment)if(this.segment.type===zi.Data){const e=new ArrayBuffer(this.segment.data.byteLength+i.length),o=new Uint8Array(e);o.set(new Uint8Array(this.segment.data)),o.set(new Uint8Array(i),this.segment.data.byteLength),this.segment.data=e}else Ni.error(`Line ${this.line_no}: Expected data segment.`);else{const e={labels:[],type:zi.Data,data:new Uint8Array(i).buffer,asm:{labels:[]}};this.segment=e,this.object_code.push(e)}}add_string(i){if(this.segment)this.segment.type===zi.String?this.segment.value+=i:Ni.error(`Line ${this.line_no}: Expected string segment.`);else{const e={labels:[],type:zi.String,value:i,asm:{labels:[]}};this.segment=e,this.object_code.push(e)}}add_error({col:i,length:e,message:o}){this.errors.push({line_no:this.line_no,col:i,length:e,message:o})}add_warning({col:i,length:e,message:o}){this.warnings.push({line_no:this.line_no,col:i,length:e,message:o})}parse_label({col:i,len:e,value:o}){this.labels.has(o)&&this.add_error({col:i,length:e,message:"Duplicate label."}),this.labels.add(o);const d=this.tokens.shift(),v={line_no:this.line_no,col:i,len:e};if(this.prev_line_had_label){const i=this.object_code[this.object_code.length-1];i.labels.push(o),i.asm.labels.push(v)}switch(this.section){case zi.Instructions:this.prev_line_had_label||(this.segment={type:zi.Instructions,labels:[o],instructions:[],asm:{labels:[v]}},this.object_code.push(this.segment)),d&&(d.type===n.Ident?this.parse_instruction(d):this.add_error({col:d.col,length:d.len,message:"Expected opcode mnemonic."}));break;case zi.Data:this.prev_line_had_label||(this.segment={type:zi.Data,labels:[o],data:new ArrayBuffer(0),asm:{labels:[v]}},this.object_code.push(this.segment)),d&&(d.type===n.Int?this.parse_bytes(d):this.add_error({col:d.col,length:d.len,message:"Expected bytes."}));break;case zi.String:this.prev_line_had_label||(this.segment={type:zi.String,labels:[o],value:"",asm:{labels:[v]}},this.object_code.push(this.segment)),d&&(d.type===n.String?this.parse_string(d):this.add_error({col:d.col,length:d.len,message:"Expected a string."}))}}parse_section({type:i,col:e,len:o}){let d;switch(i){case n.CodeSection:d=zi.Instructions;break;case n.DataSection:d=zi.Data;break;case n.StringSection:d=zi.String}this.section!==d||this.first_section_marker||this.add_warning({col:e,length:o,message:"Unnecessary section marker."}),this.section=d,this.first_section_marker=!1;const v=this.tokens.shift();v&&this.add_error({col:v.col,length:v.len,message:"Unexpected token."})}parse_instruction(i){const{col:e,len:o,value:d}=i,v=I.get(d);if(v){const o=-1!==v.params.findIndex(i=>i.type.kind===s.ILabelVar||i.type.kind===s.RegRefVar),d=this.manual_stack&&v.stack===W.Pop?0:v.params.length;let a=0;for(const i of this.tokens)i.type!==n.ArgSeparator&&a++;const l=this.tokens[this.tokens.length-1],u=l?l.col+l.len-e:0,_=[],p=[];if(!o&&a!==d)return void this.add_error({col:e,length:u,message:`Expected ${d} argument${1===d?"":"s"}, got ${a}.`});if(o&&ar?this.add_error({col:v,length:t,message:`${n}-Bit integer can't be greater than ${r}.`}):o.push([{value:d,size:i},e])}parse_register(i,e){const{col:o,len:d,value:v}=i;v>255?this.add_error({col:o,length:d,message:"Invalid register reference, expected r0-r255."}):e.push([{value:v,size:1},i])}parse_bytes(i){const e=[];let o=i,d=0;for(;o.type===n.Int&&(o.value<0?this.add_error({col:o.col,length:o.len,message:"Unsigned 8-bit integer can't be less than 0."}):o.value>255&&this.add_error({col:o.col,length:o.len,message:"Unsigned 8-bit integer can't be greater than 255."}),e.push(o.value),d"))}}var qi;!function(i){i[i.None=0]="None",i[i.Return=1]="Return",i[i.Jump=2]="Jump",i[i.ConditionalJump=3]="ConditionalJump",i[i.Call=4]="Call"}(qi||(qi={}));class Fi{constructor(i,e,o,d,v){this.from=[],this.to=[],this.segment=i,this.start=e,this.end=o,this.branch_type=d,this.branch_labels=v}link_to(i){this.to.includes(i)||(this.to.push(i),i.from.push(this))}index_of_instruction(i){const e=this.segment.instructions.indexOf(i,this.start);return ei.value);break;case B.code:case z.code:s=qi.Call,r=[n.args[0].value];break;case fi.code:s=qi.Call,r=n.args.slice(1).map(i=>i.value);break;default:if(t===o-1){s=qi.None,r=[];break}continue}const a=new Fi(e,d,t+1,s,r);for(let e=a.start;e{let i=0,e=NaN;return{next:()=>{let o=!0;return ithis.intervals[i].end?(i++,ii+e.end-e.start+1,0)}get(i){for(const{start:e,end:o}of this.intervals){const d=o-e+1;if(ithis.intervals[d].start;)i.end=this.intervals[d].end,d++;this.intervals.splice(e+1,d-e-1),i.end=Math.max(i.end,o.end),e++;continue i}e++}this.intervals.push(o)}return this}to_array(){const i=[];for(const{start:e,end:o}of this.intervals)for(let d=e;d<=o;d++)i.push(d);return i}}const Bi=$i.get("core/data_formats/asm/data_flow_analysis/register_value"),Hi=T,Ji=y;Math.pow(2,32);function Yi(i,e,o){const d=i.get_block_for_instruction(e);return d?function i(e,o,d,v,t){if(++e.iterations>100)return Bi.warn("Too many iterations."),(new Vi).set_interval(Hi,Ji);for(let n=v-1;n>=d.start;n--){const v=d.segment.instructions[n],r=v.args;switch(v.opcode.code){case D.code:if(r[0].value===t)return i(e,new Set(o),d,n,r[1].value);break;case C.code:case M.code:case $.code:case Wi.code:if(r[0].value===t)return(new Vi).set_value(r[1].value);break;case N.code:if(r[0].value===t)return(new Vi).set_value(1);break;case A.code:if(r[0].value===t)return(new Vi).set_value(0);break;case q.code:if(r[0].value===t){const v=i(e,new Set(o),d,n,t),s=v.size();return 0===s||1===s&&0===v.get(0)?(new Vi).set_value(1):v.has(0)?(new Vi).set_interval(0,1):(new Vi).set_value(0)}break;case F.code:if(r[0].value===t){return i(e,new Set(o),d,n,t).scalar_add(r[1].value)}break;case E.code:if(r[0].value===t){return i(e,new Set(o),d,n,t).scalar_sub(r[1].value)}break;case O.code:if(r[0].value===t){return i(e,new Set(o),d,n,t).scalar_mul(r[1].value)}break;case U.code:if(r[0].value===t){return i(e,new Set(o),d,n,t).scalar_div(r[1].value)}break;case Ti.code:if(r[0].value===t)return(new Vi).set_interval(0,1);break;case yi.code:if(r[0].value===t)return(new Vi).set_interval(0,2);break;case Si.code:if(r[0].value===t)return(new Vi).set_interval(0,3);break;case Ii.code:if(r[1].value===t){const v=i(e,new Set(o),d,n,r[0].value).min()||0,t=Math.max(i(e,new Set(o),d,n,r[0].value+1).max()||0,v+1);return(new Vi).set_interval(v,t-1)}break;case ci.code:case ki.code:{const i=r[0].value,e=r[0].value+r[1].value;if(i<=t&&ti.type===n.Ident);if(t&&(e=I.get(t.value),e))for(const e of v){if(e.col+e.len>i.col)break;e.type===n.Ident&&-1===o?o=0:e.type===n.ArgSeparator&&o++}}const d={type:v.SignatureHelp,id:i.id,opcode:e,active_param:o};Ki.postMessage(d)}function ae(i){const e=function(i,e){const o=ee[i];if(!o)return;const d=ie[o.segment_index];if(!d||d.type!==zi.Instructions)return;for(const v of o.instruction_indices){const o=d.instructions[v];if(o&&o.asm){const d=o.opcode.params;for(let v=0;vi.type===zi.Instructions);for(let i=0;i=o.col&&e<=o.col+o.len)}Ki.onmessage=i=>{de.push(i.data),ve||(ne(),ve=setTimeout(()=>{ve=void 0,ne()},100))}}});