diff --git a/00common.bdscript b/00common.bdscript index 02c710a..8f20449 100644 --- a/00common.bdscript +++ b/00common.bdscript @@ -4,20 +4,20 @@ StackSize: 512 TempSize: 512 Triggers: - Key: 9 - Addr: TR9 + Addr: GAMEOVER - Key: 8 - Addr: TR8 + Addr: PROGRESS_CALLBACK - Key: 7 - Addr: TR7 + Addr: NEWGAME Name: 00common --- ; codeLabels: ; codeRevealer: section .text -TR9: +GAMEOVER: ret -TR8: +PROGRESS_CALLBACK: popToSp 0 pushFromFSp 0 gosub 4, L34 @@ -116,7 +116,7 @@ L181: L183: drop ret -TR7: +NEWGAME: pushImm 2048 syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) gosub 4, L193 diff --git a/03system.bin/ItemList.yml b/03system.bin/ItemList.yml index c248d73..9bbe5b9 100644 --- a/03system.bin/ItemList.yml +++ b/03system.bin/ItemList.yml @@ -106,6 +106,37 @@ Items: Picture: 271 Icon1: 0 Icon2: 25 +#Map -> Form Aesthetic +- Id: 89 #Navigational Map -> Valor Form + Type: Map + Flag0: 1 + Flag1: 0 + Rank: C + StatEntry: 0 + Name: 34370 + Description: 34371 + ShopBuy: 0 + ShopSell: 0 + Command: 0 + Slot: 7 + Picture: 266 + Icon1: 0 + Icon2: 25 +- Id: 115 #Window of Time Map 2 -> Final Form + Type: Map + Flag0: 1 + Flag1: 13 + Rank: C + StatEntry: 0 + Name: 34376 + Description: 34377 + ShopBuy: 0 + ShopSell: 0 + Command: 0 + Slot: 17 + Picture: 269 + Icon1: 0 + Icon2: 25 #DUMMY - Id: 470 #DUMMY 23 (HP) Type: Recipe diff --git a/03system.bin/went.bin b/03system.bin/went.bin index a7611ec..f6d341c 100644 Binary files a/03system.bin/went.bin and b/03system.bin/went.bin differ diff --git a/F266B00B GoA ROM.lua b/F266B00B GoA ROM.lua index 1295235..10d357b 100644 --- a/F266B00B GoA ROM.lua +++ b/F266B00B GoA ROM.lua @@ -1,5 +1,5 @@ --ROM Version ---Last Update: JP shop assembly code & battle level rework +--Last Update: BAR() function implementation --Todo: Maybe item-based progress flags LUAGUI_NAME = 'GoA ROM Randomizer Build' @@ -7,7 +7,8 @@ LUAGUI_AUTH = 'SonicShadowSilver2 (Ported by Num)' LUAGUI_DESC = 'A GoA build for use with the Randomizer. Requires ROM patching.' function _OnInit() -print('GoA v1.53.4') +print('GoA v1.53.5') +GoAOffset = 0x7C if (GAME_ID == 0xF266B00B or GAME_ID == 0xFAF99301) and ENGINE_TYPE == "ENGINE" then --PCSX2 if ENGINE_VERSION < 3.0 then print('LuaEngine is Outdated. Things might not work properly.') @@ -15,16 +16,16 @@ if (GAME_ID == 0xF266B00B or GAME_ID == 0xFAF99301) and ENGINE_TYPE == "ENGINE" OnPC = false Now = 0x032BAE0 --Current Location Sve = 0x1D5A970 --Saved Location - BGM = 0x0347D34 --Background Music Save = 0x032BB30 --Save File - Obj0 = 0x1C94100 --00objentry.bin - Sys3 = 0x1CCB300 --03system.bin - Btl0 = 0x1CE5D80 --00battle.bin + Obj0Pointer = 0x1D5BA10 --00objentry.bin Pointer Address + Sys3Pointer = 0x1C61AF8 --03system.bin Pointer Address + Btl0Pointer = 0x1C61AFC --00battle.bin Pointer Address + ARDPointer = 0x034ECF4 --ARD Pointer Address + Music = 0x0347D34 --Background Music Pause = 0x0347E08 --Ability to Pause React = 0x1C5FF4E --Reaction Command Cntrl = 0x1D48DB8 --Sora Controllable Timer = 0x0349DE8 - Combo = 0x1D49080 Songs = 0x035DAC4 --Atlantica Stuff GScre = 0x1F8039C --Gummi Score GMdal = 0x1F803C0 --Gummi Medal @@ -38,8 +39,6 @@ if (GAME_ID == 0xF266B00B or GAME_ID == 0xFAF99301) and ENGINE_TYPE == "ENGINE" BtlEnd = 0x1D490C0 --Something about end-of-battle camera TxtBox = 0x1D48D54 --Last Displayed Textbox DemCln = 0x1D48DEC --Demyx Clone Status - ARDLoad = 0x034ECF4 --ARD Pointer Address - MSNLoad = 0x04FA440 --Base MSN Address Slot1 = 0x1C6C750 --Unit Slot 1 NextSlot = 0x268 Point1 = 0x1D48EFC @@ -55,11 +54,12 @@ elseif GAME_ID == 0x431219CC and ENGINE_TYPE == 'BACKEND' then --PC OnPC = true Now = 0x0714DB8 - 0x56454E Sve = 0x2A09C00 - 0x56450E - BGM = 0x0AB8504 - 0x56450E Save = 0x09A7070 - 0x56450E - Obj0 = 0x2A22B90 - 0x56450E - Sys3 = 0x2A59DB0 - 0x56450E - Btl0 = 0x2A74840 - 0x56450E + Obj0Pointer = 0x2A22730 - 0x56454E + Sys3Pointer = 0x2AE3550 - 0x56454E + Btl0Pointer = 0x2AE3558 - 0x56454E + ARDPointer = 0x2A0CF28 - 0x56454E + Music = 0x0AB8504 - 0x56450E Pause = 0x0AB9038 - 0x56450E React = 0x2A0E822 - 0x56450E Cntrl = 0x2A148A8 - 0x56450E @@ -77,8 +77,6 @@ elseif GAME_ID == 0x431219CC and ENGINE_TYPE == 'BACKEND' then --PC BtlEnd = 0x2A0D3A0 - 0x56450E TxtBox = 0x074BC70 - 0x56454E DemCln = 0x2A0CF74 - 0x56450E - ARDLoad = 0x2A0CEE8 - 0x56450E - MSNLoad = 0x0BF08C0 - 0x56450E Slot1 = 0x2A20C58 - 0x56450E NextSlot = 0x278 Point1 = 0x2A0D108 - 0x56450E @@ -88,7 +86,7 @@ elseif GAME_ID == 0x431219CC and ENGINE_TYPE == 'BACKEND' then --PC Menu1 = 0x2A0E7D0 - 0x56450E NextMenu = 0x8 end -Slot2 = Slot1 - NextSlot +--[[Slot2 = Slot1 - NextSlot Slot3 = Slot2 - NextSlot Slot4 = Slot3 - NextSlot Slot5 = Slot4 - NextSlot @@ -102,10 +100,9 @@ Slot12 = Slot11 - NextSlot Point2 = Point1 + NxtPoint Point3 = Point2 + NxtPoint Gauge2 = Gauge1 + NxtGauge -Gauge3 = Gauge2 + NxtGauge +Gauge3 = Gauge2 + NxtGauge--]] Menu2 = Menu1 + NextMenu -Menu3 = Menu2 + NextMenu -pi = math.pi +--Menu3 = Menu2 + NextMenu end function Warp(W,R,D,M,B,E) --Warp into the appropriate World, Room, Door, Map, Btl, Evt @@ -128,37 +125,20 @@ function Events(M,B,E) --Check for Map, Btl, and Evt return ((Map == M or not M) and (Btl == B or not B) and (Evt == E or not E)) end -function Spawn(Type,Subfile,Offset,Value) -local Subpoint = ARD + 0x08 + 0x10*Subfile +function BAR(File,Subfile,Offset) --Get address within a BAR file +local Subpoint = File + 0x08 + 0x10*Subfile local Address --Detect errors -if ReadInt(ARD,OnPC) ~= 0x01524142 then --Header mismatch +if ReadInt(File,OnPC) ~= 0x01524142 then --Header mismatch return -elseif Subfile > ReadInt(ARD+4,OnPC) then --Subfile over count +elseif Subfile > ReadInt(File+4,OnPC) then --Subfile over count return elseif Offset >= ReadInt(Subpoint+4,OnPC) then --Offset exceed subfile length return end --Get address -if not OnPC then - Address = ReadInt(Subpoint) + Offset -else - local x = ARD&0xFFFFFF000000 --Calculations are wrong if done in one step for some reason - local y = ReadInt(Subpoint,true)&0xFFFFFF - Address = x + y + Offset -end ---Change value -if Type == 'Read' then - ReadArray(Address,Value,OnPC) -elseif Type == 'Short' then - WriteShort(Address,Value,OnPC) -elseif Type == 'Float' then - WriteFloat(Address,Value,OnPC) -elseif Type == 'Int' then - WriteInt(Address,Value,OnPC) -elseif Type == 'String' then - WriteString(Address,Value,OnPC) -end +Address = File + (ReadInt(Subpoint,OnPC) - ReadInt(File+8,OnPC)) + Offset +return Address end function BitOr(Address,Bit,Abs) @@ -204,11 +184,23 @@ if true then --Define current values for common addresses Btl = ReadShort(Now+0x06) Evt = ReadShort(Now+0x08) PrevPlace = ReadShort(Now+0x30) - MSN = MSNLoad + (ReadInt(MSNLoad+4)+1) * 0x10 + if Place == 0xFFFF or not MSN then + if not OnPC then + Obj0 = ReadInt(Obj0Pointer) + Sys3 = ReadInt(Sys3Pointer) + Btl0 = ReadInt(Btl0Pointer) + MSN = 0x04FA440 + else + Obj0 = ReadLong(Obj0Pointer) + Sys3 = ReadLong(Sys3Pointer) + Btl0 = ReadLong(Btl0Pointer) + MSN = 0x0BF08C0 - 0x56450E + end + end if not OnPC then - ARD = ReadInt(ARDLoad) --Base ARD Address + ARD = ReadInt(ARDPointer) else - ARD = ReadLong(ARDLoad) --Base ARD Address + ARD = ReadLong(ARDPointer) end end NewGame() @@ -233,13 +225,13 @@ end function NewGame() --Before New Game -if OnPC and ReadByte(Sys3+0x116DB) == 0x19 then --Change Form's Icons in PC from Analog Stick - WriteByte(Sys3+0x116DB,0xCE) --Valor - WriteByte(Sys3+0x116F3,0xCE) --Wisdom - WriteByte(Sys3+0x1170B,0xCE) --Limit - WriteByte(Sys3+0x11723,0xCE) --Master - WriteByte(Sys3+0x1173B,0xCE) --Final - WriteByte(Sys3+0x11753,0xCE) --Anti +if OnPC and ReadByte(BAR(Sys3,0x6,0x0E5F),OnPC) == 0x19 then --Change Form's Icons in PC from Analog Stick + WriteByte(BAR(Sys3,0x6,0x0E5F),0xCE,OnPC) --Valor + WriteByte(BAR(Sys3,0x6,0x0E77),0xCE,OnPC) --Wisdom + WriteByte(BAR(Sys3,0x6,0x0E8F),0xCE,OnPC) --Limit + WriteByte(BAR(Sys3,0x6,0x0EA7),0xCE,OnPC) --Master + WriteByte(BAR(Sys3,0x6,0x0EBF),0xCE,OnPC) --Final + WriteByte(BAR(Sys3,0x6,0x0ED7),0xCE,OnPC) --Anti end --Start New Game if Place == 0x2002 and Events(0x01,Null,0x01) then --Station of Serenity Weapons @@ -262,11 +254,11 @@ function GoA() if Place == 0x1A04 then --Open Promise Charm Path if ReadByte(Save+0x36B2) > 0 and ReadByte(Save+0x36B3) > 0 and ReadByte(Save+0x36B4) > 0 and ReadByte(Save+0x3694) > 0 then --All Proofs & Promise Charm - Spawn('Short',0x06,0x05C,0x77A) --Text + WriteShort(BAR(ARD,0x06,0x05C),0x77A,OnPC) --Text end --Demyx's Portal Text if ReadByte(Save+0x1D2E) > 0 then --Hollow Bastion Cleared - Spawn('Short',0x05,0x25C,0x779) --Radiant Garden + WriteShort(BAR(ARD,0x05,0x25C),0x779,OnPC) --Radiant Garden end end --World Map -> Garden of Assemblage @@ -486,7 +478,7 @@ if true then WriteInt(Save+0x3724,Bitmask) end --Fix Genie Crash -if true then --No Valor, Wisdom, Master, or Final +if ReadByte(Save+0x36C4)&0x10 == 0x10 then --If Lamp Charm is obtained local CurSubmenu if not OnPC then CurSubmenu = ReadInt(Menu2) @@ -561,11 +553,14 @@ for Slot = 0,68 do WriteShort(Save+0x25D8,0x00C6) end end ---Remove Growth Abilities -if true then +--Remove Growth Abilities from Forms +if ReadByte(BAR(Btl0,0x10,0x41),0,OnPC) ~= 0 then for i = 0,34 do - WriteByte(Btl0 + 0x344A5 + 0x8*i,0) --Remove Innate Growth Abilities + WriteByte(BAR(Btl0,0x10,0x41+0x8*i),0,OnPC) --Remove Innate Growth Abilities end +end +--Growth Abilities during Forms +if true then local Growth = {0x805E,0x8062,0x8234,0x8066,0x806A} for form = 0,4 do --Adjust Form Movement local FormAddress = Save + 0x32F6 + 0x38*form @@ -642,93 +637,93 @@ end --Donald's Staff Active Abilities if true then local Staff = ReadShort(Save+0x2604) - local Ability = {} --Offset for staff's ability within 03system.bar - Ability[0x04B] = 0x13F36 --Mage's Staff - Ability[0x094] = 0x13F46 --Hammer Staff - Ability[0x095] = 0x13F56 --Victory Bell - Ability[0x097] = 0x13F76 --Comet Staff - Ability[0x098] = 0x13F86 --Lord's Broom - Ability[0x099] = 0x13F96 --Wisdom Wand - Ability[0x096] = 0x13F66 --Meteor Staff - Ability[0x09A] = 0x13FA6 --Rising Dragon - Ability[0x09C] = 0x13FC6 --Shaman's Relic - Ability[0x258] = 0x14406 --Shaman's Relic+ - Ability[0x09B] = 0x13FB6 --Nobody Lance - Ability[0x221] = 0x14316 --Centurion - Ability[0x222] = 0x14326 --Centurion+ - Ability[0x1E2] = 0x14186 --Save the Queen - Ability[0x1F7] = 0x142D6 --Save the Queen+ - Ability[0x223] = 0x14336 --Plain Mushroom - Ability[0x224] = 0x14346 --Plain Mushroom+ - Ability[0x225] = 0x14356 --Precious Mushroom - Ability[0x226] = 0x14366 --Precious Mushroom+ - Ability[0x227] = 0x14376 --Premium Mushroom - Ability[0x0A1] = 0x13FD6 --Detection Staff + local Ability = {} --Offset for staff's ability within 03system.bar's item + Ability[0x04B] = 0x36BA --Mage's Staff + Ability[0x094] = 0x36CA --Hammer Staff + Ability[0x095] = 0x36DA --Victory Bell + Ability[0x097] = 0x36FA --Comet Staff + Ability[0x098] = 0x370A --Lord's Broom + Ability[0x099] = 0x371A --Wisdom Wand + Ability[0x096] = 0x36EA --Meteor Staff + Ability[0x09A] = 0x372A --Rising Dragon + Ability[0x09C] = 0x374A --Shaman's Relic + Ability[0x258] = 0x3B8A --Shaman's Relic+ + Ability[0x09B] = 0x373A --Nobody Lance + Ability[0x221] = 0x3A9A --Centurion + Ability[0x222] = 0x3AAA --Centurion+ + Ability[0x1E2] = 0x390A --Save the Queen + Ability[0x1F7] = 0x3A5A --Save the Queen+ + Ability[0x223] = 0x3ABA --Plain Mushroom + Ability[0x224] = 0x3ACA --Plain Mushroom+ + Ability[0x225] = 0x3ADA --Precious Mushroom + Ability[0x226] = 0x3AEA --Precious Mushroom+ + Ability[0x227] = 0x3AFA --Premium Mushroom + Ability[0x0A1] = 0x375A --Detection Staff if Ability[Staff] ~= nil then - Ability = ReadShort(Sys3+Ability[Staff]) --Currently-equipped staff's ability + Ability = ReadShort(BAR(Sys3,0x6,Ability[Staff]),OnPC) --Currently-equipped staff's ability if Ability == 0x0A5 then --Donald Fire WriteShort(Save+0x26F6,0x80A5) - WriteByte(Sys3+0x11F0B,0) + WriteByte(BAR(Sys3,0x6,0x168F),0,OnPC) elseif Ability == 0x0A6 then --Donald Blizzard WriteShort(Save+0x26F6,0x80A6) - WriteByte(Sys3+0x11F23,0) + WriteByte(BAR(Sys3,0x6,0x16A7),0,OnPC) elseif Ability == 0x0A7 then --Donald Thunder WriteShort(Save+0x26F6,0x80A7) - WriteByte(Sys3+0x11F3B,0) + WriteByte(BAR(Sys3,0x6,0x16BF),0,OnPC) elseif Ability == 0x0A8 then --Donald Cure WriteShort(Save+0x26F6,0x80A8) - WriteByte(Sys3+0x11F53,0) - else + WriteByte(BAR(Sys3,0x6,0x16D7),0,OnPC) + elseif ReadShort(Save+0x26F6) ~= 0 then WriteShort(Save+0x26F6,0) --Remove Ability Slot 80 - WriteByte(Sys3+0x11F0B,2) --Restore Original AP Costs - WriteByte(Sys3+0x11F23,2) - WriteByte(Sys3+0x11F3B,2) - WriteByte(Sys3+0x11F53,3) + WriteByte(BAR(Sys3,0x6,0x168F),2,OnPC) --Restore Original AP Costs + WriteByte(BAR(Sys3,0x6,0x16A7),2,OnPC) + WriteByte(BAR(Sys3,0x6,0x16BF),2,OnPC) + WriteByte(BAR(Sys3,0x6,0x16D7),3,OnPC) end end end --Goofy's Shield Active Abilities if true then local Shield = ReadShort(Save+0x2718) - local Ability = {} --Offset for shield's ability within 03system.bar - Ability[0x031] = 0x13FE6 --Knight's Shield - Ability[0x08B] = 0x13FF6 --Adamant Shield - Ability[0x08C] = 0x14006 --Chain Gear - Ability[0x08E] = 0x14026 --Falling Star - Ability[0x08F] = 0x14036 --Dreamcloud - Ability[0x090] = 0x14046 --Knight Defender - Ability[0x08D] = 0x14016 --Ogre Shield - Ability[0x091] = 0x14056 --Genji Shield - Ability[0x092] = 0x14066 --Akashic Record - Ability[0x259] = 0x14416 --Akashic Record+ - Ability[0x093] = 0x14076 --Nobody Guard - Ability[0x228] = 0x14386 --Frozen Pride - Ability[0x229] = 0x14396 --Frozen Pride+ - Ability[0x1E3] = 0x14196 --Save the King - Ability[0x1F8] = 0x142E6 --Save the King+ - Ability[0x22A] = 0x143A6 --Joyous Mushroom - Ability[0x22B] = 0x143B6 --Joyous Mushroom+ - Ability[0x22C] = 0x143C6 --Majestic Mushroom - Ability[0x22D] = 0x143D6 --Majestic Mushroom+ - Ability[0x22E] = 0x143E6 --Ultimate Mushroom - Ability[0x032] = 0x14086 --Detection Shield - Ability[0x033] = 0x14096 --Test the King + local Ability = {} --Offset for shield's ability within 03system.bar's item + Ability[0x031] = 0x376A --Knight's Shield + Ability[0x08B] = 0x377A --Adamant Shield + Ability[0x08C] = 0x378A --Chain Gear + Ability[0x08E] = 0x37AA --Falling Star + Ability[0x08F] = 0x37BA --Dreamcloud + Ability[0x090] = 0x37CA --Knight Defender + Ability[0x08D] = 0x379A --Ogre Shield + Ability[0x091] = 0x37DA --Genji Shield + Ability[0x092] = 0x37EA --Akashic Record + Ability[0x259] = 0x3B9A --Akashic Record+ + Ability[0x093] = 0x37FA --Nobody Guard + Ability[0x228] = 0x3B0A --Frozen Pride + Ability[0x229] = 0x3B1A --Frozen Pride+ + Ability[0x1E3] = 0x391A --Save the King + Ability[0x1F8] = 0x3A6A --Save the King+ + Ability[0x22A] = 0x3B2A --Joyous Mushroom + Ability[0x22B] = 0x3B3A --Joyous Mushroom+ + Ability[0x22C] = 0x3B4A --Majestic Mushroom + Ability[0x22D] = 0x3B5A --Majestic Mushroom+ + Ability[0x22E] = 0x3B6A --Ultimate Mushroom + Ability[0x032] = 0x380A --Detection Shield + Ability[0x033] = 0x381A --Test the King if Ability[Shield] ~= nil then - Ability = ReadShort(Sys3+Ability[Shield]) --Currently-equipped shield's ability + Ability = ReadShort(BAR(Sys3,0x6,Ability[Shield]),OnPC) --Currently-equipped shield's ability if Ability == 0x1A7 then --Goofy Tornado WriteShort(Save+0x280A,0x81A7) - WriteByte(Sys3+0x11F6B,0) + WriteByte(BAR(Sys3,0x6,0x16EF),0,OnPC) elseif Ability == 0x1AD then --Goofy Bash WriteShort(Save+0x280A,0x81AD) - WriteByte(Sys3+0x11F83,0) + WriteByte(BAR(Sys3,0x6,0x1707),0,OnPC) elseif Ability == 0x1A9 then --Goofy Turbo WriteShort(Save+0x280A,0x81A9) - WriteByte(Sys3+0x11F9B,0) - else + WriteByte(BAR(Sys3,0x6,0x171F),0,OnPC) + elseif ReadShort(Save+0x280A) ~= 0 then WriteShort(Save+0x280A,0) --Remove Ability Slot 80 - WriteByte(Sys3+0x11F6B,2) --Restore Original AP Costs - WriteByte(Sys3+0x11F83,2) - WriteByte(Sys3+0x11F9B,2) + WriteByte(BAR(Sys3,0x6,0x16EF),2,OnPC) --Restore Original AP Costs + WriteByte(BAR(Sys3,0x6,0x1707),2,OnPC) + WriteByte(BAR(Sys3,0x6,0x171F),2,OnPC) end end end @@ -742,28 +737,36 @@ elseif ReadLong(0x2F9142-0x56454E) == 0x43B70F0D74D68541 then --JP end --Alternate Party Models (adding new UCM using MEMT causes problems when shopping) if World == 0x0C and Place ~= 0x070C then --Mage & Knight (KH I) - WriteString(Obj0+0x16F0,'P_EX020_DC\0') - WriteString(Obj0+0x1750,'P_EX030_DC\0') - WriteString(Obj0+0x3250,'P_EX020_DC_ANGRY_NPC\0') - WriteString(Obj0+0x40F0,'H_ZZ020_DC\0') - WriteString(Obj0+0x4150,'H_ZZ030_DC\0') + WriteString(Obj0+0x16F0,'P_EX020_DC\0',OnPC) + WriteString(Obj0+0x1750,'P_EX030_DC\0',OnPC) + WriteString(Obj0+0x3250,'P_EX020_DC_ANGRY_NPC\0',OnPC) + WriteString(Obj0+0x40F0,'H_ZZ020_DC\0',OnPC) + WriteString(Obj0+0x4150,'H_ZZ030_DC\0',OnPC) elseif Place == 0x2004 or Place == 0x2104 or Place == 0x2204 or Place == 0x2604 then --Casual (CoM) - WriteString(Obj0+0x16F0,'P_EX020_CM\0') - WriteString(Obj0+0x1750,'P_EX030_CM\0') -else --Revert costume changes - WriteString(Obj0+0x16F0,'P_EX020\0') - WriteString(Obj0+0x1750,'P_EX030\0') - WriteString(Obj0+0x3250,'P_EX020_ANGRY_NPC\0') - WriteString(Obj0+0x40F0,'H_ZZ020\0') - WriteString(Obj0+0x4150,'H_ZZ030\0') + WriteString(Obj0+0x16F0,'P_EX020_CM\0',OnPC) + WriteString(Obj0+0x1750,'P_EX030_CM\0',OnPC) +elseif ReadString(Obj0+0x16F0,8,OnPC) ~= 'P_EX020\0' then --Revert costume changes + WriteString(Obj0+0x16F0,'P_EX020\0',OnPC) + WriteString(Obj0+0x1750,'P_EX030\0',OnPC) + WriteString(Obj0+0x3250,'P_EX020_ANGRY_NPC\0',OnPC) + WriteString(Obj0+0x40F0,'H_ZZ020\0',OnPC) + WriteString(Obj0+0x4150,'H_ZZ030\0',OnPC) +end +--Navigational Map Unlocks Valor Form +if ReadByte(Save+0x36C0)&0x80 == 0x80 then + BitOr(Save+0x36C0,0x02) +end +--Window of Time Map 2 Unlocks Final Form +if ReadByte(Save+0x36C2)&0x02 == 0x02 then + BitOr(Save+0x36C0,0x10) end --[[Enable Anti Form Forcing if ReadByte(Save+0x3524) == 6 then --In Anti Form BitOr(Save+0x36C0,0x20) --Unlocks Anti Form end--]] --Anti Form Costs Max Drive Instead of a Static 9. -if ReadByte(Sys3+0x00500) >= 5 and ReadByte(Slot1+0x1B2) >= 5 then - WriteByte(Sys3+0x00500,ReadByte(Slot1+0x1B2)) +if ReadByte(BAR(Sys3,0x2,0x0264),OnPC) >= 5 and ReadByte(Slot1+0x1B2) >= 5 then + WriteByte(BAR(Sys3,0x2,0x0264),ReadByte(Slot1+0x1B2),OnPC) end end @@ -800,7 +803,7 @@ if Place == 0x1A04 then elseif PostSave == 5 then --The Altar of Naught WarpRoom = 0x12 end - Spawn('Short',0x0A,0x08C,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x010),WarpRoom,OnPC) end --World Progress if Place == 0x0412 and Events(Null,Null,0x02) then --The Path to the Castle @@ -813,7 +816,7 @@ elseif Place == 0x1012 and Events(Null,Null,0x05) then --Back to His Old Self WriteByte(Save+0x1EDF,4) elseif Place == 0x1212 and Events(Null,Null,0x03) then --The Door to Kingdom Hearts WriteByte(Save+0x1EDE,5) --Post-Story Save -elseif Place == 0x0001 and not Events(0x39,0x39,0x39) then --Post Xemnas II Cutscenes (except STT6) +elseif Place == 0x0001 and ReadInt(Save+0x000C) == 0x631212 then --END WriteInt(Save+0x000C,0x321A04) --Post-Game Save at Garden of Assemblage end --The World that Never Was Post-Story Save @@ -833,15 +836,11 @@ end --Final Door Requirements if Place == 0x1212 then if ReadByte(Save+0x36B2) > 0 and ReadByte(Save+0x36B3) > 0 and ReadByte(Save+0x36B4) > 0 then --All Proofs Obtained - Spawn('Short',0x05,0x060,0x13D) --Spawn Door RC + WriteShort(BAR(ARD,0x05,0x060),0x13D,OnPC) --Spawn Door RC else - Spawn('Short',0x05,0x060,0x000) --Despawn Door RC + WriteShort(BAR(ARD,0x05,0x060),0x000,OnPC) --Despawn Door RC end end ---Xemnas II Laser Dome Skip -if Place == 0x1412 and ReadInt(Slot3) == 1 then - WriteInt(Slot3,0) -end end function LoD() @@ -877,7 +876,7 @@ if Place == 0x1A04 then elseif PostSave == 3 then --Throne Room WarpRoom = 0x0B end - Spawn('Short',0x0A,0x0AC,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x030),WarpRoom,OnPC) end --World Progress if Place == 0x0308 and Events(0x47,0x47,0x47) then --Mountain Climb @@ -954,7 +953,7 @@ if Place == 0x1A04 then elseif ReadByte(Save+0x1D3E) == 4 then --Beast's Room WarpRoom = 0x03 end - Spawn('Short',0x0A,0x0CC,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x050),WarpRoom,OnPC) end --World Progress if Place == 0x0105 and Events(Null,Null,0x01) then --The Parlor Ambush @@ -1041,7 +1040,7 @@ if Place == 0x1A04 then elseif PostSave == 3 then --Santa's House WarpRoom = 0x08 end - Spawn('Short',0x0A,0x0EC,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x070),WarpRoom,OnPC) end --World Progress if Place == 0x010E and Events(Null,Null,0x01) then --The Professor's Experiment @@ -1130,7 +1129,7 @@ if Place == 0x1A04 then elseif PostSave == 5 then --Ruined Chamber WarpRoom = 0x0B end - Spawn('Short',0x0A,0x10C,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x090),WarpRoom,OnPC) end --World Progress if Place == 0x0007 and Events(Null,Null,0x01) then --Turning Over a New Feather @@ -1186,7 +1185,6 @@ if Place == 0x1A04 then if PostSave == 0 then if Progress == 0 then --1st Visit WarpRoom = 0x00 - Spawn('Short',0x0A,0x116,0x00) elseif Progress == 1 then --[Before Helping Megara Up, Chasing after Demyx] WarpRoom = 0x03 elseif Progress == 2 then --[Before Entering Valley of the Dead, Before Cerberus] @@ -1223,7 +1221,7 @@ if Place == 0x1A04 then elseif PostSave == 4 then --Coliseum Gates WarpRoom = 0x02 end - Spawn('Short',0x0A,0x12C,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x0B0),WarpRoom,OnPC) end --World Progress if Place == 0x0306 and Events(Null,Null,0x02) then --Megara @@ -1270,38 +1268,38 @@ end --Enable Drive with Olympus Stone if ReadByte(Save+0x3644) > 0 then if Place == 0x0306 then --Underworld Entrance - Spawn('Short',0x0F,0x01C,0) --BTL 0x16 + WriteShort(BAR(ARD,0x0F,0x01C),0,OnPC) --BTL 0x16 elseif Place == 0x0506 then --Valley of the Dead - Spawn('Short',0x06,0x060,0) --BTL 0x01 - Spawn('Short',0x06,0x08C,0) --BTL 0x02 - Spawn('Short',0x06,0x10C,0) --BTL 0x6F (Hades Escape) + WriteShort(BAR(ARD,0x06,0x060),0,OnPC) --BTL 0x01 + WriteShort(BAR(ARD,0x06,0x08C),0,OnPC) --BTL 0x02 + WriteShort(BAR(ARD,0x06,0x10C),0,OnPC) --BTL 0x6F (Hades Escape) elseif Place == 0x0606 then --Hades' Chamber - Spawn('Short',0x05,0x014,0) --BTL 0x16 - Spawn('Short',0x05,0x064,0) --BTL 0x70 (Invincible Hades) + WriteShort(BAR(ARD,0x05,0x014),0,OnPC) --BTL 0x16 + WriteShort(BAR(ARD,0x05,0x064),0,OnPC) --BTL 0x70 (Invincible Hades) elseif Place == 0x0706 then --Cave of the Dead: Entrance - Spawn('Short',0x07,0x0B0,0) --BTL 0x01 - Spawn('Short',0x07,0x10C,0) --BTL 0x02 - Spawn('Short',0x07,0x1A0,0) --BTL 0x72 (Cerberus) + WriteShort(BAR(ARD,0x07,0x0B0),0,OnPC) --BTL 0x01 + WriteShort(BAR(ARD,0x07,0x10C),0,OnPC) --BTL 0x02 + WriteShort(BAR(ARD,0x07,0x1A0),0,OnPC) --BTL 0x72 (Cerberus) elseif Place == 0x0A06 then --Cave of the Dead: Inner Chamber - Spawn('Short',0x0A,0x010,0) --BTL 0x16 + WriteShort(BAR(ARD,0x0A,0x010),0,OnPC) --BTL 0x16 elseif Place == 0x0B06 then --Underworld Caverns: Entrance - Spawn('Short',0x09,0x044,0) --BTL 0x01 + WriteShort(BAR(ARD,0x09,0x044),0,OnPC) --BTL 0x01 elseif Place == 0x0F06 then --Cave of the Dead: Passage - Spawn('Short',0x0B,0x0AC,0) --BTL 0x01 - Spawn('Short',0x0B,0x0F4,0) --BTL 0x02 + WriteShort(BAR(ARD,0x0B,0x0AC),0,OnPC) --BTL 0x01 + WriteShort(BAR(ARD,0x0B,0x0F4),0,OnPC) --BTL 0x02 elseif Place == 0x1006 then --Underworld Caverns: The Lost Road - Spawn('Short',0x09,0x040,0) --BTL 0x01 + WriteShort(BAR(ARD,0x09,0x040),0,OnPC) --BTL 0x01 elseif Place == 0x1106 then --Underworld Caverns: Atrium - Spawn('Short',0x08,0x034,0) --BTL 0x16 - Spawn('Short',0x08,0x078,0) --BTL 0x7B (Demyx's Water Clones) + WriteShort(BAR(ARD,0x08,0x034),0,OnPC) --BTL 0x16 + WriteShort(BAR(ARD,0x08,0x078),0,OnPC) --BTL 0x7B (Demyx's Water Clones) end end --Softlock Prevention Without Cups Unlocked if Place == 0x0306 and ReadShort(Save+0x239C)&0x07BA == 0 then - Spawn('Short',0x2E,0x05C,0x0E4) --Before 2nd Visit Text - Spawn('Short',0x2E,0x060,0x01F) --Before 2nd Visit RC - Spawn('Short',0x30,0x05C,0x32B) --During 2nd Visit Text - Spawn('Short',0x30,0x060,0x01F) --During 2nd Visit RC + WriteShort(BAR(ARD,0x2E,0x05C),0x0E4,OnPC) --Before 2nd Visit Text + WriteShort(BAR(ARD,0x2E,0x060),0x01F,OnPC) --Before 2nd Visit RC + WriteShort(BAR(ARD,0x30,0x05C),0x32B,OnPC) --During 2nd Visit Text + WriteShort(BAR(ARD,0x30,0x060),0x01F,OnPC) --During 2nd Visit RC end --Unlock All Cups with Hades Cups Trophy if ReadByte(Save+0x3696) > 0 then @@ -1358,7 +1356,7 @@ if Place == 0x1A04 then elseif PostSave == 3 then --Stone Hollow WarpRoom = 0x01 end - Spawn('Short',0x0A,0x14C,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x0D0),WarpRoom,OnPC) end --World Progress if Place == 0x060A and Events(Null,Null,0x01) then --The Wild Kingdom @@ -1418,7 +1416,7 @@ if Place == 0x1A04 then elseif Progress == 6 then --Post 1st Visit WarpRoom = 0x02 elseif Progress == 7 then --2nd Visit - Spawn('Short',0x0A,0x16A,0x12) --Start in TWtNW + WriteShort(BAR(ARD,0x0A,GoAOffset+0x0EE),0x12,OnPC) --Start in TWtNW WarpRoom = 0x40 elseif Progress == 8 then --Before Sandlot Nobodies II WarpRoom = 0x02 @@ -1453,10 +1451,10 @@ if Place == 0x1A04 then WarpRoom = 0x1B end if WarpRoom <= 50 then - Spawn('Short',0x0A,0x16C,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x0F0),WarpRoom,OnPC) else - Spawn('Short',0x0A,0x168,0x02) - Spawn('Short',0x0A,0x170,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x0EC),0x02,OnPC) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x0F4),WarpRoom,OnPC) end end --World Progress @@ -1589,19 +1587,15 @@ end --Save Points -> World Points (1st Visit) if ReadByte(Save+0x1CFF) == 8 and ReadByte(Save+0x3640) > 0 then --Trigger with Poster for now if Place == 0x0202 then --The Usual Spot - Spawn('Short',0x06,0x034,0x239) + WriteShort(BAR(ARD,0x06,0x034),0x239,OnPC) elseif Place == 0x0902 then --Central Station - Spawn('Short',0x11,0x034,0x239) + WriteShort(BAR(ARD,0x11,0x034),0x239,OnPC) elseif Place == 0x1A02 then --Tower: Entryway - Spawn('Short',0x07,0x034,0x239) + WriteShort(BAR(ARD,0x07,0x034),0x239,OnPC) elseif Place == 0x1B02 then --Tower: Sorcerer's Loft - Spawn('Short',0x09,0x034,0x239) + WriteShort(BAR(ARD,0x09,0x034),0x239,OnPC) end end ---Station Plaza Nobodies with Trinity Limit End Softlock Fix -if Place == 0x0802 and Events(0x6C,0x6C,0x6C) and ReadInt(Point1) == 98 then --Hit Counter Almost Reached - WriteInt(CutLen,1) --End Trinity Limit Early -end end function HB() @@ -1672,7 +1666,7 @@ if Place == 0x1A04 then WarpRoom = 0x03 Visit = 5 end - Spawn('Short',0x0A,0x18C,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x110),WarpRoom,OnPC) WriteByte(Save+0x3FFD,Visit) end --World Progress @@ -1855,7 +1849,7 @@ if Place == 0x1A04 then elseif PostSave == 4 then --Ship Graveyard: The Interceptor's Hold WarpRoom = 0x0B end - Spawn('Short',0x0A,0x1AC,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x130),WarpRoom,OnPC) end --World Progress if Place == 0x1710 and Events(0x4F,0x4F,0x4F) then --The Cursed Medallion @@ -1925,10 +1919,10 @@ if Place == 0x1A04 then WarpRoom = 0x05 end if WarpRoom <= 50 then - Spawn('Short',0x0A,0x1CC,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x150),WarpRoom,OnPC) else - Spawn('Short',0x0A,0x1C8,0x02) - Spawn('Short',0x0A,0x1D0,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x14C),0x02,OnPC) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x154),WarpRoom,OnPC) end end --World Progress @@ -1995,7 +1989,7 @@ if Place == 0x1A04 then elseif PostSave == 3 then --Central Computer Mesa WarpRoom = 0x08 end - Spawn('Short',0x0A,0x1EC,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x170),WarpRoom,OnPC) end --World Progress if Place == 0x0011 and Events(Null,Null,0x01) then --Tron @@ -2094,10 +2088,10 @@ if Place == 0x1A04 then WarpRoom = 0x15 end if WarpRoom <= 50 then - Spawn('Short',0x0A,0x20C,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x190),WarpRoom,OnPC) else - Spawn('Short',0x0A,0x208,0x02) - Spawn('Short',0x0A,0x210,WarpRoom) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x18C),0x02,OnPC) + WriteShort(BAR(ARD,0x0A,GoAOffset+0x194),WarpRoom,OnPC) end end --World Progress @@ -2225,55 +2219,55 @@ end if ReadByte(Save+0x1CFF) == 13 then if Place == 0x0202 then --The Usual Spot if Events(0x02,0x02,0x02) then --Forced Save Menu - Spawn('Short',0x06,0x034,0x23A) + WriteShort(BAR(ARD,0x06,0x034),0x23A,OnPC) else - Spawn('Short',0x06,0x034,0x239) + WriteShort(BAR(ARD,0x06,0x034),0x239,OnPC) end elseif Place == 0x2002 then --Station of Serenity - Spawn('Short',0x04,0x034,0x239) + WriteShort(BAR(ARD,0x04,0x034),0x239,OnPC) elseif Place == 0x0502 then --Sandlot (Day 4) - Spawn('Short',0x06,0x034,0x239) + WriteShort(BAR(ARD,0x06,0x034),0x239,OnPC) elseif Place == 0x0B02 then --Sunset Station - Spawn('Short',0x09,0x034,0x239) + WriteShort(BAR(ARD,0x09,0x034),0x239,OnPC) elseif Place == 0x0902 then --Central Station - Spawn('Short',0x11,0x034,0x239) + WriteShort(BAR(ARD,0x11,0x034),0x239,OnPC) elseif Place == 0x1202 then --The White Room - Spawn('Short',0x06,0x034,0x239) + WriteShort(BAR(ARD,0x06,0x034),0x239,OnPC) elseif Place == 0x1502 then --Computer Room - Spawn('Short',0x09,0x034,0x239) + WriteShort(BAR(ARD,0x09,0x034),0x239,OnPC) end end --Simulated Twilight Town Adjustments if ReadByte(Save+0x1CFF) == 13 then --STT Removals - if ReadByte(Sys3+0x035E1) == 0xB7 then --Better STT disabled (value is 0x93 when enabled, address is Twilight Thorn RC flag) + if ReadByte(BAR(Sys3,0x2,0x3345),OnPC) == 0xB7 then --Better STT disabled (value is 0x93 when enabled, address is Twilight Thorn RC flag) if ReadShort(Save+0x25D2)&0x8000 == 0x8000 then --Dodge Roll BitNot(Save+0x25D3,0x80) BitOr(Save+0x1CF1,0x01) end - WriteShort(Sys3+0x009C6,0x00) --Fire - WriteShort(Sys3+0x009F6,0x00) --Thunder - WriteShort(Sys3+0x00A26,0x00) --Blizzard - WriteShort(Sys3+0x00A56,0x00) --Cure - WriteShort(Sys3+0x015C6,0x00) --Fira - WriteShort(Sys3+0x015F6,0x00) --Firaga - WriteShort(Sys3+0x01626,0x00) --Blizzara - WriteShort(Sys3+0x01656,0x00) --Blizzaga - WriteShort(Sys3+0x01686,0x00) --Thundara - WriteShort(Sys3+0x016B6,0x00) --Thundaga - WriteShort(Sys3+0x016E6,0x00) --Cura - WriteShort(Sys3+0x01716,0x00) --Curaga - WriteShort(Sys3+0x01F26,0x00) --Magnet - WriteShort(Sys3+0x01F56,0x00) --Magnera - WriteShort(Sys3+0x01F86,0x00) --Magnega - WriteShort(Sys3+0x01FB6,0x00) --Reflect - WriteShort(Sys3+0x01FE6,0x00) --Reflera - WriteShort(Sys3+0x02016,0x00) --Reflega - WriteShort(Sys3+0x07056,0x00) --Trinity (Solo) + WriteShort(BAR(Sys3,0x2,0x072A),0x00,OnPC) --Fire + WriteShort(BAR(Sys3,0x2,0x075A),0x00,OnPC) --Thunder + WriteShort(BAR(Sys3,0x2,0x078A),0x00,OnPC) --Blizzard + WriteShort(BAR(Sys3,0x2,0x07BA),0x00,OnPC) --Cure + WriteShort(BAR(Sys3,0x2,0x132A),0x00,OnPC) --Fira + WriteShort(BAR(Sys3,0x2,0x135A),0x00,OnPC) --Firaga + WriteShort(BAR(Sys3,0x2,0x138A),0x00,OnPC) --Blizzara + WriteShort(BAR(Sys3,0x2,0x13BA),0x00,OnPC) --Blizzaga + WriteShort(BAR(Sys3,0x2,0x13EA),0x00,OnPC) --Thundara + WriteShort(BAR(Sys3,0x2,0x141A),0x00,OnPC) --Thundaga + WriteShort(BAR(Sys3,0x2,0x144A),0x00,OnPC) --Cura + WriteShort(BAR(Sys3,0x2,0x147A),0x00,OnPC) --Curaga + WriteShort(BAR(Sys3,0x2,0x1C8A),0x00,OnPC) --Magnet + WriteShort(BAR(Sys3,0x2,0x1CBA),0x00,OnPC) --Magnera + WriteShort(BAR(Sys3,0x2,0x1CEA),0x00,OnPC) --Magnega + WriteShort(BAR(Sys3,0x2,0x1D1A),0x00,OnPC) --Reflect + WriteShort(BAR(Sys3,0x2,0x1D4A),0x00,OnPC) --Reflera + WriteShort(BAR(Sys3,0x2,0x1D7A),0x00,OnPC) --Reflega + WriteShort(BAR(Sys3,0x2,0x6DBA),0x00,OnPC) --Trinity (Solo) else --Better STT enabled if Events(0x5B,0x5B,0x5B) or Events(0xC0,0xC0,0xC0) then --Mail Delivery softlock fix - WriteString(Obj0+0x15030,'F_TT010_ROXAS.mset\0') + WriteString(Obj0+0x15030,'F_TT010_ROXAS.mset\0',OnPC) else --Let Limit Form use skateboard - WriteString(Obj0+0x15030,'F_TT010.mset\0') + WriteString(Obj0+0x15030,'F_TT010.mset\0',OnPC) end end local Equip = ReadShort(Save+0x24F0) --Currently equipped Keyblade @@ -2319,30 +2313,30 @@ if ReadByte(Save+0x1CFF) == 13 then --STT Removals WriteShort(Save+0x24F0,Store) --Change Equipped Keyblade end end -else --Restore Outside STT +elseif ReadShort(Save+0x1CF9) ~= 0 then --Restore Outside STT if ReadByte(Save+0x1CF1)&0x01 == 0x01 then --Dodge Roll BitOr(Save+0x25D3,0x80) BitNot(Save+0x1CF1,0x01) end - WriteShort(Sys3+0x009C6,0x02) --Fire - WriteShort(Sys3+0x009F6,0x02) --Thunder - WriteShort(Sys3+0x00A26,0x02) --Blizzard - WriteShort(Sys3+0x00A56,0x02) --Cure - WriteShort(Sys3+0x015C6,0x02) --Fira - WriteShort(Sys3+0x015F6,0x02) --Firaga - WriteShort(Sys3+0x01626,0x02) --Blizzara - WriteShort(Sys3+0x01656,0x02) --Blizzaga - WriteShort(Sys3+0x01686,0x02) --Thundara - WriteShort(Sys3+0x016B6,0x02) --Thundaga - WriteShort(Sys3+0x016E6,0x02) --Cura - WriteShort(Sys3+0x01716,0x02) --Curaga - WriteShort(Sys3+0x01F26,0x02) --Magnet - WriteShort(Sys3+0x01F56,0x02) --Magnera - WriteShort(Sys3+0x01F86,0x02) --Magnega - WriteShort(Sys3+0x01FB6,0x02) --Reflect - WriteShort(Sys3+0x01FE6,0x02) --Reflera - WriteShort(Sys3+0x02016,0x02) --Reflega - WriteShort(Sys3+0x07056,0x51) --Trinity (Solo) + WriteShort(BAR(Sys3,0x2,0x072A),0x02,OnPC) --Fire + WriteShort(BAR(Sys3,0x2,0x075A),0x02,OnPC) --Thunder + WriteShort(BAR(Sys3,0x2,0x078A),0x02,OnPC) --Blizzard + WriteShort(BAR(Sys3,0x2,0x07BA),0x02,OnPC) --Cure + WriteShort(BAR(Sys3,0x2,0x132A),0x02,OnPC) --Fira + WriteShort(BAR(Sys3,0x2,0x135A),0x02,OnPC) --Firaga + WriteShort(BAR(Sys3,0x2,0x138A),0x02,OnPC) --Blizzara + WriteShort(BAR(Sys3,0x2,0x13BA),0x02,OnPC) --Blizzaga + WriteShort(BAR(Sys3,0x2,0x13EA),0x02,OnPC) --Thundara + WriteShort(BAR(Sys3,0x2,0x141A),0x02,OnPC) --Thundaga + WriteShort(BAR(Sys3,0x2,0x144A),0x02,OnPC) --Cura + WriteShort(BAR(Sys3,0x2,0x147A),0x02,OnPC) --Curaga + WriteShort(BAR(Sys3,0x2,0x1C8A),0x02,OnPC) --Magnet + WriteShort(BAR(Sys3,0x2,0x1CBA),0x02,OnPC) --Magnera + WriteShort(BAR(Sys3,0x2,0x1CEA),0x02,OnPC) --Magnega + WriteShort(BAR(Sys3,0x2,0x1D1A),0x02,OnPC) --Reflect + WriteShort(BAR(Sys3,0x2,0x1D4A),0x02,OnPC) --Reflera + WriteShort(BAR(Sys3,0x2,0x1D7A),0x02,OnPC) --Reflega + WriteShort(BAR(Sys3,0x2,0x6DBA),0x51,OnPC) --Trinity (Solo) WriteShort(Save+0x1CF9,0) --Remove stored Keyblade end --Faster Twilight Thorn Reaction Commands @@ -2435,25 +2429,25 @@ function Data() --Music Change - Final Fights if ReadShort(Save+0x03D6) == 0x02 then if Place == 0x1B12 then --Part I - Spawn('Short',0x06,0x0A4,0x09C) --Guardando nel buio - Spawn('Short',0x06,0x0A6,0x09C) + WriteShort(BAR(ARD,0x06,0x0A4),0x09C,OnPC) --Guardando nel buio + WriteShort(BAR(ARD,0x06,0x0A6),0x09C,OnPC) elseif Place == 0x1C12 then --Part II - Spawn('Short',0x07,0x008,0x09C) - Spawn('Short',0x07,0x00A,0x09C) + WriteShort(BAR(ARD,0x07,0x008),0x09C,OnPC) + WriteShort(BAR(ARD,0x07,0x00A),0x09C,OnPC) elseif Place == 0x1A12 then --Cylinders - Spawn('Short',0x07,0x008,0x09C) - Spawn('Short',0x07,0x00A,0x09C) + WriteShort(BAR(ARD,0x07,0x008),0x09C,OnPC) + WriteShort(BAR(ARD,0x07,0x00A),0x09C,OnPC) elseif Place == 0x1912 then --Core - Spawn('Short',0x07,0x008,0x09C) - Spawn('Short',0x07,0x00A,0x09C) + WriteShort(BAR(ARD,0x07,0x008),0x09C,OnPC) + WriteShort(BAR(ARD,0x07,0x00A),0x09C,OnPC) elseif Place == 0x1812 then --Armor Xemnas I - Spawn('Short',0x06,0x008,0x09C) - Spawn('Short',0x06,0x00A,0x09C) - Spawn('Short',0x06,0x034,0x09C) - Spawn('Short',0x06,0x036,0x09C) + WriteShort(BAR(ARD,0x06,0x008),0x09C,OnPC) + WriteShort(BAR(ARD,0x06,0x00A),0x09C,OnPC) + WriteShort(BAR(ARD,0x06,0x034),0x09C,OnPC) + WriteShort(BAR(ARD,0x06,0x036),0x09C,OnPC) elseif Place == 0x1D12 then --Pre-Dragon Xemnas - Spawn('Short',0x03,0x010,0x09C) - Spawn('Short',0x03,0x012,0x09C) + WriteShort(BAR(ARD,0x03,0x010),0x09C,OnPC) + WriteShort(BAR(ARD,0x03,0x012),0x09C,OnPC) end end end diff --git a/ObjList.yml b/ObjList.yml index 43dbb26..ffc891e 100644 --- a/ObjList.yml +++ b/ObjList.yml @@ -632,8 +632,8 @@ IsPirate: false WallOcclusion: false Hift: false -1991: #TR Hammer Staff -> Kingdom Key D - ObjectId: 1991 +3001: #Kingdom Key D + ObjectId: 3001 ObjectType: WEAPON SubType: 0 DrawPriority: 0 @@ -662,13 +662,13 @@ IsPirate: false WallOcclusion: false Hift: false -1992: #TR Victory Bell -> HT Pureblood - ObjectId: 1992 +3002: #HT Kingdom Key D + ObjectId: 3002 ObjectType: WEAPON SubType: 0 DrawPriority: 0 WeaponJoint: 25 - ModelName: W_EX010_X0_NM + ModelName: W_EX010_00_NM AnimationName: '' Flags: 0 ObjectTargetType: M @@ -692,8 +692,8 @@ IsPirate: false WallOcclusion: false Hift: false -1993: #TR Meteor Staff -> HT Alpha Weapon - ObjectId: 1993 +3003: #HT Alpha Weapon + ObjectId: 3003 ObjectType: WEAPON SubType: 0 DrawPriority: 0 @@ -722,8 +722,8 @@ IsPirate: false WallOcclusion: false Hift: false -1994: #TR Comet Staff -> HT Omega Weapon - ObjectId: 1994 +3004: #HT Omega Weapon + ObjectId: 3004 ObjectType: WEAPON SubType: 0 DrawPriority: 0 @@ -752,13 +752,13 @@ IsPirate: false WallOcclusion: false Hift: false -1995: #TR Lord's Broom -> HT Kingdom Key D - ObjectId: 1995 +3005: #HT Pureblood + ObjectId: 3005 ObjectType: WEAPON SubType: 0 DrawPriority: 0 WeaponJoint: 25 - ModelName: W_EX010_00_NM + ModelName: W_EX010_X0_NM AnimationName: '' Flags: 0 ObjectTargetType: M @@ -782,13 +782,13 @@ IsPirate: false WallOcclusion: false Hift: false -1996: #TR Wisdom Wand -> SP Pureblood - ObjectId: 1996 +3006: #SP Kingdom Key D + ObjectId: 3006 ObjectType: WEAPON SubType: 0 DrawPriority: 0 WeaponJoint: 25 - ModelName: W_EX010_X0_TR + ModelName: W_EX010_00_TR AnimationName: '' Flags: 0 ObjectTargetType: M @@ -812,8 +812,8 @@ IsPirate: false WallOcclusion: false Hift: false -1997: #TR Rising Dragon -> SP Alpha Weapon - ObjectId: 1997 +3007: #SP Alpha Weapon + ObjectId: 3007 ObjectType: WEAPON SubType: 0 DrawPriority: 0 @@ -842,8 +842,8 @@ IsPirate: false WallOcclusion: false Hift: false -1998: #TR Nobody Lance -> SP Omega Weapon - ObjectId: 1998 +3008: #SP Omega Weapon + ObjectId: 3008 ObjectType: WEAPON SubType: 0 DrawPriority: 0 @@ -872,13 +872,13 @@ IsPirate: false WallOcclusion: false Hift: false -1999: #TR Shaman's Relic -> SP Kingdom Key D - ObjectId: 1999 +3009: #SP Pureblood + ObjectId: 3009 ObjectType: WEAPON SubType: 0 DrawPriority: 0 WeaponJoint: 25 - ModelName: W_EX010_00_TR + ModelName: W_EX010_X0_TR AnimationName: '' Flags: 0 ObjectTargetType: M @@ -902,13 +902,13 @@ IsPirate: false WallOcclusion: false Hift: false -2000: #TR Save the Queen -> HT Struggle Hammer - ObjectId: 2000 +3010: #HT Struggle Sword + ObjectId: 3010 ObjectType: WEAPON SubType: 0 DrawPriority: 0 WeaponJoint: 25 - ModelName: W_EX010_U0_NM + ModelName: W_EX010_W0_NM AnimationName: '' Flags: 0 ObjectTargetType: M @@ -932,8 +932,8 @@ IsPirate: false WallOcclusion: false Hift: false -2013: #TR Adamant Shield -> HT Struggle Wand - ObjectId: 2013 +3011: #HT Struggle Wand + ObjectId: 3011 ObjectType: WEAPON SubType: 0 DrawPriority: 0 @@ -962,13 +962,13 @@ IsPirate: false WallOcclusion: false Hift: false -2014: #TR Chain Gear -> HT Struggle Sword - ObjectId: 2014 +3012: #HT Struggle Hammer + ObjectId: 3012 ObjectType: WEAPON SubType: 0 DrawPriority: 0 WeaponJoint: 25 - ModelName: W_EX010_W0_NM + ModelName: W_EX010_U0_NM AnimationName: '' Flags: 0 ObjectTargetType: M @@ -992,13 +992,13 @@ IsPirate: false WallOcclusion: false Hift: false -2015: #TR Ogre Shield -> SP Struggle Hammer - ObjectId: 2015 +3013: #SP Struggle Sword + ObjectId: 3013 ObjectType: WEAPON SubType: 0 DrawPriority: 0 WeaponJoint: 25 - ModelName: W_EX010_U0_TR + ModelName: W_EX010_W0_TR AnimationName: '' Flags: 0 ObjectTargetType: M @@ -1022,8 +1022,8 @@ IsPirate: false WallOcclusion: false Hift: false -2016: #TR Falling Star -> SP Struggle Wand - ObjectId: 2016 +3014: #SP Struggle Wand + ObjectId: 3014 ObjectType: WEAPON SubType: 0 DrawPriority: 0 @@ -1052,13 +1052,13 @@ IsPirate: false WallOcclusion: false Hift: false -2017: #TR Dreamcloud -> SP Struggle Sword - ObjectId: 2017 +3015: #SP Struggle Hammer + ObjectId: 3015 ObjectType: WEAPON SubType: 0 DrawPriority: 0 WeaponJoint: 25 - ModelName: W_EX010_W0_TR + ModelName: W_EX010_U0_TR AnimationName: '' Flags: 0 ObjectTargetType: M diff --git a/ard/bb04/m_11.yml b/ard/bb04/m_11.yml index d139357..f5b91d1 100644 --- a/ard/bb04/m_11.yml +++ b/ard/bb04/m_11.yml @@ -27,6 +27,60 @@ SpawnRange: 0 Level: 0 Medal: 0 + - ObjectId: 0x236 + PositionX: 100 + PositionY: 0 + PositionZ: 2550 + RotationX: 0 + RotationY: 0 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 + - ObjectId: 0x237 + PositionX: 250 + PositionY: 0 + PositionZ: 2650 + RotationX: 0 + RotationY: 0 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 + - ObjectId: 0x238 + PositionX: -50 + PositionY: 0 + PositionZ: 2650 + RotationX: 0 + RotationY: 0 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 EventActivators: [] WalkPath: [] ReturnParameters: [] diff --git a/ard/ca10/m_11.yml b/ard/ca10/m_11.yml index 102e8e3..0dfe1f4 100644 --- a/ard/ca10/m_11.yml +++ b/ard/ca10/m_11.yml @@ -27,6 +27,60 @@ SpawnRange: 0 Level: 0 Medal: 0 + - ObjectId: 0x236 + PositionX: 1050 + PositionY: -40 + PositionZ: 0 + RotationX: 0 + RotationY: -1.5707963705062866 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 + - ObjectId: 0x237 + PositionX: 1150 + PositionY: -45 + PositionZ: -150 + RotationX: 0 + RotationY: -1.5707963705062866 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 + - ObjectId: 0x238 + PositionX: 1150 + PositionY: -45 + PositionZ: 150 + RotationX: 0 + RotationY: -1.5707963705062866 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 EventActivators: [] WalkPath: [] ReturnParameters: [] diff --git a/ard/hb38/HB38_FM_MAR.bdscript b/ard/hb38/HB38_FM_MAR.bdscript index 2539cfc..e53bdf2 100644 --- a/ard/hb38/HB38_FM_MAR.bdscript +++ b/ard/hb38/HB38_FM_MAR.bdscript @@ -4,16 +4,16 @@ StackSize: 512 TempSize: 512 Triggers: - Key: 10 - Addr: TR10 + Addr: SIGNAL_CALLBACK - Key: 3 - Addr: TR3 + Addr: UNIT_MAIN Name: ms_boss_ctrloff --- ; codeLabels: ; codeRevealer: -l 179 section .text -TR10: +SIGNAL_CALLBACK: popToSp 0 popToSp 4 pushFromFSp 4 @@ -44,7 +44,7 @@ L44: jmp L66 L66: ret -TR3: +UNIT_MAIN: ;syscall 4, 56 ; trap_event_continue_control_off (0 in, 0 out) ;Withhold control until after cutscene ends pushFromPWp W0 gosub 4, L74 diff --git a/ard/lk13/m_11.yml b/ard/lk13/m_11.yml index 30e8531..2a2d764 100644 --- a/ard/lk13/m_11.yml +++ b/ard/lk13/m_11.yml @@ -27,6 +27,60 @@ SpawnRange: 0 Level: 0 Medal: 0 + - ObjectId: 0x236 + PositionX: -390 + PositionY: 10 + PositionZ: -600 + RotationX: 0 + RotationY: 1.5707963705062866 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 + - ObjectId: 0x237 + PositionX: -490 + PositionY: 25 + PositionZ: -450 + RotationX: 0 + RotationY: 1.5707963705062866 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 + - ObjectId: 0x238 + PositionX: -490 + PositionY: 10 + PositionZ: -750 + RotationX: 0 + RotationY: 1.5707963705062866 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 EventActivators: [] WalkPath: [] ReturnParameters: [] diff --git a/ard/mu07/m_11.yml b/ard/mu07/m_11.yml index 751ce99..697a036 100644 --- a/ard/mu07/m_11.yml +++ b/ard/mu07/m_11.yml @@ -27,6 +27,60 @@ SpawnRange: 0 Level: 0 Medal: 0 + - ObjectId: 0x236 + PositionX: 1350 + PositionY: -10 + PositionZ: 0 + RotationX: 0 + RotationY: -1.5707963705062866 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 + - ObjectId: 0x237 + PositionX: 1450 + PositionY: 20 + PositionZ: -150 + RotationX: 0 + RotationY: -1.5707963705062866 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 + - ObjectId: 0x238 + PositionX: 1450 + PositionY: -10 + PositionZ: 150 + RotationX: 0 + RotationY: -1.5707963705062866 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 EventActivators: [] WalkPath: [] ReturnParameters: [] diff --git a/ard/mu07/mu_g.bdscript b/ard/mu07/mu_g.bdscript index cdb5792..f67f110 100644 --- a/ard/mu07/mu_g.bdscript +++ b/ard/mu07/mu_g.bdscript @@ -4,14 +4,14 @@ StackSize: 512 TempSize: 512 Triggers: - Key: 2 - Addr: TR2 + Addr: UNIT_INIT Name: mu_get_ability --- ; codeLabels: ; codeRevealer: section .text -TR2: +UNIT_INIT: pushImm 6 syscall 0, 61 ; trap_saveram_get_partram (1 in, 1 out) popToSp 0 diff --git a/ard/tr03/tr_g.bdscript b/ard/tr03/tr_g.bdscript index 3cb1258..e342af6 100644 --- a/ard/tr03/tr_g.bdscript +++ b/ard/tr03/tr_g.bdscript @@ -4,14 +4,14 @@ StackSize: 512 TempSize: 512 Triggers: - Key: 2 - Addr: TR2 + Addr: UNIT_INIT Name: tr_get_ability1 --- ; codeLabels: ; codeRevealer: section .text -TR2: +UNIT_INIT: pushImm 12 syscall 0, 61 ; trap_saveram_get_partram (1 in, 1 out) popToSp 0 diff --git a/ard/tt06/TT06_BAGGAGE_01.bdscript b/ard/tt06/TT06_BAGGAGE_01.bdscript new file mode 100644 index 0000000..5879976 --- /dev/null +++ b/ard/tt06/TT06_BAGGAGE_01.bdscript @@ -0,0 +1,298 @@ +--- +WorkSize: 16 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 10 + Addr: SIGNAL_CALLBACK +- Key: 3 + Addr: UNIT_MAIN +Name: tt06_work_bagga + +--- +; codeLabels: +; codeRevealer: -l 130 -l 405 + section .text +SIGNAL_CALLBACK: + popToSp 0 + popToSp 4 + pushFromFSp 4 + dup + pushImm 82 + sub + jz L33 + jmp L39 +L33: + pushFromPWp W0 + gosub 4, L41 + jmp L39 +L39: + drop + ret +L41: + popToSp 0 + pushImm 0 + syscall 4, 40 ; trap_mission_get_timer_second (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImm 30 + sub + info + jz L65 + pushFromFSp 0 + gosub 4, L85 + jmp L84 +L65: + pushFromFSp 4 + pushImm 60 + sub + info + jz L80 + pushFromFSp 0 + gosub 4, L265 + jmp L84 +L80: + pushFromFSp 0 + gosub 4, L280 +L84: + ret +L85: + popToSp 0 + pushImm 50 + gosub 4, L100 + pushFromFSp 0 + pushImm 1 + gosub 4, L242 + ret +L100: + popToSp 0 + pushImm 2256 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + jz L116 + pushImm 30 + popToSp 0 + jmp L116 +L116: + pushFromFSp 0 + syscall 1, 280 ; trap_sheet_add_munny (1 in, 1 out) + drop + jmp L241 +D130: +L130: + jmp L132 +L132: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 2000 + sub + msbi + jz L148 + pushImm 2271 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L241 +L148: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 1200 + sub + msbi + jz L174 + pushImm 2274 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L172 + pushImm 2274 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L172 +L172: + jmp L241 +L174: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 800 + sub + msbi + jz L200 + pushImm 2273 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L198 + pushImm 2273 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L198 +L198: + jmp L241 +L200: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 200 + sub + msbi + jz L226 + pushImm 2272 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L224 + pushImm 2272 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L224 +L224: + jmp L241 +L226: + pushImm 2269 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L241 + pushImm 2269 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L241 +L241: + ret +L242: + popToSp 4 + popToSp 0 + syscall 4, 55 ; trap_mission_is_lock (0 in, 1 out) + eqz + jz L264 + pushImm 1 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + syscall 4, 54 ; trap_mission_lock (0 in, 0 out) + jmp L264 +L264: + ret +L265: + popToSp 0 + pushImm 30 + gosub 4, L100 + pushFromFSp 0 + pushImm 2 + gosub 4, L242 + ret +L280: + popToSp 0 + pushImm 10 + gosub 4, L100 + pushFromFSp 0 + pushImm 3 + gosub 4, L242 + ret +UNIT_MAIN: + pushFromPWp W0 + gosub 4, L300 + ret +L300: + popToSp 0 + pushFromFSp 0 + gosub 4, L379 +L306: + pushFromFSp 0 + gosub 4, L392 + jz L315 + halt + jmp L306 +L315: + pushFromFSpVal 0 + dup + pushImm 1 + sub + jz L326 + jmp L332 +L326: + pushFromFSpVal 4 + syscall 4, 3 ; trap_mission_complete (1 in, 0 out) + jmp L375 +L332: + dup + pushImm 2 + sub + jz L341 + jmp L347 +L341: + pushFromFSpVal 4 + syscall 4, 16 ; trap_mission_dead_boss (1 in, 0 out) + jmp L375 +L347: + dup + pushImm 3 + sub + jz L356 + jmp L360 +L356: + syscall 4, 11 ; trap_mission_failed (0 in, 0 out) + jmp L375 +L360: + dup + pushImm 4 + sub + jz L369 + jmp L375 +L369: + pushFromFSpVal 4 + syscall 4, 22 ; trap_mission_exit (1 in, 0 out) + jmp L375 +L375: + drop + gosub 4, L402 + ret +L379: + popToSp 0 + pushImm 0 + popToSpVal 0 + pushImm -1 + popToSpVal 4 + ret +L392: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + ret +L402: + halt + jmp L402 +D405: +L405: + ret +TXT406: + db 'btl_attack',0,0 +TXT412: + db 'near',0,0 +TXT415: + db 'btl_short',0 +TXT420: + db 'rvg_normal',0,0 +TXT426: + db 'btl_long',0,0 +TXT431: + db 'rvg_hard',0,0 +TXT436: + db 'rvg_super_hard',0,0 +TXT444: + db 'near_wait',0 +TXT449: + db 'rvg_short',0 +TXT454: + db 'leave',0 +TXT457: + db 'rvg_long',0,0 +TXT462: + db 'rst_normal',0,0 +TXT468: + db 'mode_battle',0 +TXT474: + db 'rst_hard',0,0 +TXT479: + db 'rst_super_hard',0,0 +TXT487: + db 'btl_normal',0,0 +TXT493: + db 'jump start',0,0 +TXT499: + db 'btl_hard',0,0 +TXT504: + db 'jump end',0,0 +TXT509: + db 'btl_super_hard',0,0 + + section .bss +W0: + resb 16 diff --git a/ard/tt06/TT06_BAGGAGE_02.bdscript b/ard/tt06/TT06_BAGGAGE_02.bdscript new file mode 100644 index 0000000..78f66d2 --- /dev/null +++ b/ard/tt06/TT06_BAGGAGE_02.bdscript @@ -0,0 +1,357 @@ +--- +WorkSize: 32 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 10 + Addr: SIGNAL_CALLBACK +- Key: 3 + Addr: UNIT_MAIN +Name: tt06_free_bagga + +--- +; codeLabels: +; codeRevealer: -l 163 -l 512 + section .text +SIGNAL_CALLBACK: + popToSp 0 + popToSp 4 + pushFromFSp 4 + dup + pushImm 82 + sub + jz L33 + jmp L43 +L33: + pushFromPWp W8 + gosub 4, L45 + pushFromPWp W0 + gosub 4, L74 + jmp L43 +L43: + drop + ret +L45: + popToSp 0 + syscall 4, 13 ; trap_mission_pause_timer (0 in, 0 out) + pushFromFSpVal 8 + pushImm 4 + pushFromFSpVal 0 + syscall 4, 26 ; trap_mission_get_timer (1 in, 1 out) + syscall 4, 37 ; trap_score_update (3 in, 1 out) + jz L73 + pushFromFSpVal 0 + syscall 4, 47 ; trap_mission_warning_timer (1 in, 0 out) + pushImm 10 + syscall 0, 65 ; trap_sound_play_system (1 in, 0 out) + jmp L73 +L73: + ret +L74: + popToSp 0 + pushImm 0 + syscall 4, 40 ; trap_mission_get_timer_second (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImm 30 + sub + info + jz L98 + pushFromFSp 0 + gosub 4, L118 + jmp L117 +L98: + pushFromFSp 4 + pushImm 60 + sub + info + jz L113 + pushFromFSp 0 + gosub 4, L298 + jmp L117 +L113: + pushFromFSp 0 + gosub 4, L313 +L117: + ret +L118: + popToSp 0 + pushImm 50 + gosub 4, L133 + pushFromFSp 0 + pushImm 1 + gosub 4, L275 + ret +L133: + popToSp 0 + pushImm 2256 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + jz L149 + pushImm 30 + popToSp 0 + jmp L149 +L149: + pushFromFSp 0 + syscall 1, 280 ; trap_sheet_add_munny (1 in, 1 out) + drop + jmp L274 +D163: +L163: + jmp L165 +L165: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 2000 + sub + msbi + jz L181 + pushImm 2271 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L274 +L181: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 1200 + sub + msbi + jz L207 + pushImm 2274 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L205 + pushImm 2274 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L205 +L205: + jmp L274 +L207: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 800 + sub + msbi + jz L233 + pushImm 2273 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L231 + pushImm 2273 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L231 +L231: + jmp L274 +L233: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 200 + sub + msbi + jz L259 + pushImm 2272 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L257 + pushImm 2272 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L257 +L257: + jmp L274 +L259: + pushImm 2269 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L274 + pushImm 2269 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L274 +L274: + ret +L275: + popToSp 4 + popToSp 0 + syscall 4, 55 ; trap_mission_is_lock (0 in, 1 out) + eqz + jz L297 + pushImm 1 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + syscall 4, 54 ; trap_mission_lock (0 in, 0 out) + jmp L297 +L297: + ret +L298: + popToSp 0 + pushImm 30 + gosub 4, L133 + pushFromFSp 0 + pushImm 2 + gosub 4, L275 + ret +L313: + popToSp 0 + pushImm 10 + gosub 4, L133 + pushFromFSp 0 + pushImm 3 + gosub 4, L275 + ret +UNIT_MAIN: + pushFromPWp W8 + pushImm 12 + pushImm 0 + pushImm 0 + gosub 4, L346 + pushFromPWp W0 + gosub 4, L407 + ret +L346: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + syscall 4, 38 ; trap_score_get (1 in, 1 out) + popToSpVal 8 + pushFromFSpVal 8 + pushImm 1 + pushImm 0 + syscall 4, 37 ; trap_score_update (3 in, 1 out) + drop + pushFromFSp 8 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + pushFromFSpVal 8 + syscall 4, 35 ; trap_score_type (1 in, 1 out) + pushImm 4 + sub + neqz + jz L396 + pushFromFSpVal 4 + syscall 4, 45 ; trap_mission_disable_watch (1 in, 0 out) + jmp L406 +L396: + pushFromFSp 0 + fetchValue 8 + syscall 4, 36 ; trap_score_score (1 in, 1 out) + pushFromFSpVal 4 + syscall 4, 39 ; trap_mission_set_watch (2 in, 0 out) +L406: + ret +L407: + popToSp 0 + pushFromFSp 0 + gosub 4, L486 +L413: + pushFromFSp 0 + gosub 4, L499 + jz L422 + halt + jmp L413 +L422: + pushFromFSpVal 0 + dup + pushImm 1 + sub + jz L433 + jmp L439 +L433: + pushFromFSpVal 4 + syscall 4, 3 ; trap_mission_complete (1 in, 0 out) + jmp L482 +L439: + dup + pushImm 2 + sub + jz L448 + jmp L454 +L448: + pushFromFSpVal 4 + syscall 4, 16 ; trap_mission_dead_boss (1 in, 0 out) + jmp L482 +L454: + dup + pushImm 3 + sub + jz L463 + jmp L467 +L463: + syscall 4, 11 ; trap_mission_failed (0 in, 0 out) + jmp L482 +L467: + dup + pushImm 4 + sub + jz L476 + jmp L482 +L476: + pushFromFSpVal 4 + syscall 4, 22 ; trap_mission_exit (1 in, 0 out) + jmp L482 +L482: + drop + gosub 4, L509 + ret +L486: + popToSp 0 + pushImm 0 + popToSpVal 0 + pushImm -1 + popToSpVal 4 + ret +L499: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + ret +L509: + halt + jmp L509 +D512: +L512: + ret +TXT513: + db 'btl_attack',0,0 +TXT519: + db 'near',0,0 +TXT522: + db 'btl_short',0 +TXT527: + db 'rvg_normal',0,0 +TXT533: + db 'btl_long',0,0 +TXT538: + db 'rvg_hard',0,0 +TXT543: + db 'rvg_super_hard',0,0 +TXT551: + db 'near_wait',0 +TXT556: + db 'rvg_short',0 +TXT561: + db 'leave',0 +TXT564: + db 'rvg_long',0,0 +TXT569: + db 'rst_normal',0,0 +TXT575: + db 'mode_battle',0 +TXT581: + db 'rst_hard',0,0 +TXT586: + db 'rst_super_hard',0,0 +TXT594: + db 'btl_normal',0,0 +TXT600: + db 'jump start',0,0 +TXT606: + db 'btl_hard',0,0 +TXT611: + db 'jump end',0,0 +TXT616: + db 'btl_super_hard',0,0 + + section .bss +W0: + resb 8 +W8: + resb 24 diff --git a/ard/tt06/TT06_LETTER_01.bdscript b/ard/tt06/TT06_LETTER_01.bdscript new file mode 100644 index 0000000..e81c580 --- /dev/null +++ b/ard/tt06/TT06_LETTER_01.bdscript @@ -0,0 +1,356 @@ +--- +WorkSize: 16 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 10 + Addr: SIGNAL_CALLBACK +- Key: 3 + Addr: UNIT_MAIN +Name: tt06_work_lette + +--- +; codeLabels: +; codeRevealer: -l 177 -l 501 + section .text +SIGNAL_CALLBACK: + popToSp 0 + popToSp 4 + pushFromFSp 4 + dup + pushImm 82 + sub + jz L33 + jmp L40 +L33: + pushImm 0 + syscall 4, 6 ; trap_mission_increment_count (1 in, 0 out) + jmp L86 +L40: + dup + pushImm 123 + sub + jz L49 + jmp L55 +L49: + pushFromPWp W0 + gosub 4, L88 + jmp L86 +L55: + dup + pushImm 140 + sub + jz L64 + jmp L73 +L64: + pushFromFSp 0 + pushImmf 0 + syscall 4, 33 ; trap_mission_add_combo_counter (2 in, 0 out) + jmp L86 +L73: + dup + pushImm 151 + sub + jz L82 + jmp L86 +L82: + syscall 4, 27 ; trap_mission_stop_combo_counter (0 in, 0 out) + jmp L86 +L86: + drop + ret +L88: + popToSp 0 + pushImm 0 + syscall 4, 40 ; trap_mission_get_timer_second (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImm 20 + sub + info + jz L112 + pushFromFSp 0 + gosub 4, L132 + jmp L131 +L112: + pushFromFSp 4 + pushImm 60 + sub + info + jz L127 + pushFromFSp 0 + gosub 4, L312 + jmp L131 +L127: + pushFromFSp 0 + gosub 4, L327 +L131: + ret +L132: + popToSp 0 + pushImm 50 + gosub 4, L147 + pushFromFSp 0 + pushImm 1 + gosub 4, L289 + ret +L147: + popToSp 0 + pushImm 2256 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + jz L163 + pushImm 30 + popToSp 0 + jmp L163 +L163: + pushFromFSp 0 + syscall 1, 280 ; trap_sheet_add_munny (1 in, 1 out) + drop + jmp L288 +D177: +L177: + jmp L179 +L179: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 2000 + sub + msbi + jz L195 + pushImm 2271 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L288 +L195: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 1200 + sub + msbi + jz L221 + pushImm 2274 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L219 + pushImm 2274 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L219 +L219: + jmp L288 +L221: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 800 + sub + msbi + jz L247 + pushImm 2273 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L245 + pushImm 2273 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L245 +L245: + jmp L288 +L247: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 200 + sub + msbi + jz L273 + pushImm 2272 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L271 + pushImm 2272 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L271 +L271: + jmp L288 +L273: + pushImm 2269 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L288 + pushImm 2269 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L288 +L288: + ret +L289: + popToSp 4 + popToSp 0 + syscall 4, 55 ; trap_mission_is_lock (0 in, 1 out) + eqz + jz L311 + pushImm 1 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + syscall 4, 54 ; trap_mission_lock (0 in, 0 out) + jmp L311 +L311: + ret +L312: + popToSp 0 + pushImm 30 + gosub 4, L147 + pushFromFSp 0 + pushImm 2 + gosub 4, L289 + ret +L327: + popToSp 0 + pushImm 10 + gosub 4, L147 + pushFromFSp 0 + pushImm 3 + gosub 4, L289 + ret +UNIT_MAIN: + halt + gosub 4, L350 + pushFromPWp W0 + gosub 4, L396 + ret +L350: + pushFromPSp 0 + pushImm 5067 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + pushFromPSp 0 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L383 + pushFromPSp 0 + gosub 8, L384 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 327 + pushFromPSp 0 + syscall 1, 325 ; trap_obj_reaction_callback (4 in, 0 out) + jmp L383 +L383: + ret +L384: + pushFromPSp 0 + pushImm 4 + add + syscall 1, 3 ; trap_sysobj_player (0 in, 1 out) + memcpy 0 + pushFromPSp 0 + ret +L396: + popToSp 0 + pushFromFSp 0 + gosub 4, L475 +L402: + pushFromFSp 0 + gosub 4, L488 + jz L411 + halt + jmp L402 +L411: + pushFromFSpVal 0 + dup + pushImm 1 + sub + jz L422 + jmp L428 +L422: + pushFromFSpVal 4 + syscall 4, 3 ; trap_mission_complete (1 in, 0 out) + jmp L471 +L428: + dup + pushImm 2 + sub + jz L437 + jmp L443 +L437: + pushFromFSpVal 4 + syscall 4, 16 ; trap_mission_dead_boss (1 in, 0 out) + jmp L471 +L443: + dup + pushImm 3 + sub + jz L452 + jmp L456 +L452: + syscall 4, 11 ; trap_mission_failed (0 in, 0 out) + jmp L471 +L456: + dup + pushImm 4 + sub + jz L465 + jmp L471 +L465: + pushFromFSpVal 4 + syscall 4, 22 ; trap_mission_exit (1 in, 0 out) + jmp L471 +L471: + drop + gosub 4, L498 + ret +L475: + popToSp 0 + pushImm 0 + popToSpVal 0 + pushImm -1 + popToSpVal 4 + ret +L488: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + ret +L498: + halt + jmp L498 +D501: +L501: + ret +TXT502: + db 'btl_attack',0,0 +TXT508: + db 'near',0,0 +TXT511: + db 'btl_short',0 +TXT516: + db 'rvg_normal',0,0 +TXT522: + db 'btl_long',0,0 +TXT527: + db 'rvg_hard',0,0 +TXT532: + db 'rvg_super_hard',0,0 +TXT540: + db 'near_wait',0 +TXT545: + db 'rvg_short',0 +TXT550: + db 'leave',0 +TXT553: + db 'rvg_long',0,0 +TXT558: + db 'rst_normal',0,0 +TXT564: + db 'mode_battle',0 +TXT570: + db 'rst_hard',0,0 +TXT575: + db 'rst_super_hard',0,0 +TXT583: + db 'btl_normal',0,0 +TXT589: + db 'jump start',0,0 +TXT595: + db 'btl_hard',0,0 +TXT600: + db 'jump end',0,0 +TXT605: + db 'btl_super_hard',0,0 + + section .bss +W0: + resb 16 diff --git a/ard/tt06/TT06_LETTER_02.bdscript b/ard/tt06/TT06_LETTER_02.bdscript new file mode 100644 index 0000000..02dba87 --- /dev/null +++ b/ard/tt06/TT06_LETTER_02.bdscript @@ -0,0 +1,415 @@ +--- +WorkSize: 32 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 10 + Addr: SIGNAL_CALLBACK +- Key: 3 + Addr: UNIT_MAIN +Name: tt06_free_lette + +--- +; codeLabels: +; codeRevealer: -l 210 -l 608 + section .text +SIGNAL_CALLBACK: + popToSp 0 + popToSp 4 + pushFromFSp 4 + dup + pushImm 82 + sub + jz L33 + jmp L40 +L33: + pushImm 0 + syscall 4, 6 ; trap_mission_increment_count (1 in, 0 out) + jmp L90 +L40: + dup + pushImm 123 + sub + jz L49 + jmp L59 +L49: + pushFromPWp W8 + gosub 4, L92 + pushFromPWp W0 + gosub 4, L121 + jmp L90 +L59: + dup + pushImm 140 + sub + jz L68 + jmp L77 +L68: + pushFromFSp 0 + pushImmf 0 + syscall 4, 33 ; trap_mission_add_combo_counter (2 in, 0 out) + jmp L90 +L77: + dup + pushImm 151 + sub + jz L86 + jmp L90 +L86: + syscall 4, 27 ; trap_mission_stop_combo_counter (0 in, 0 out) + jmp L90 +L90: + drop + ret +L92: + popToSp 0 + syscall 4, 13 ; trap_mission_pause_timer (0 in, 0 out) + pushFromFSpVal 8 + pushImm 4 + pushFromFSpVal 0 + syscall 4, 26 ; trap_mission_get_timer (1 in, 1 out) + syscall 4, 37 ; trap_score_update (3 in, 1 out) + jz L120 + pushFromFSpVal 0 + syscall 4, 47 ; trap_mission_warning_timer (1 in, 0 out) + pushImm 10 + syscall 0, 65 ; trap_sound_play_system (1 in, 0 out) + jmp L120 +L120: + ret +L121: + popToSp 0 + pushImm 0 + syscall 4, 40 ; trap_mission_get_timer_second (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImm 20 + sub + info + jz L145 + pushFromFSp 0 + gosub 4, L165 + jmp L164 +L145: + pushFromFSp 4 + pushImm 60 + sub + info + jz L160 + pushFromFSp 0 + gosub 4, L345 + jmp L164 +L160: + pushFromFSp 0 + gosub 4, L360 +L164: + ret +L165: + popToSp 0 + pushImm 50 + gosub 4, L180 + pushFromFSp 0 + pushImm 1 + gosub 4, L322 + ret +L180: + popToSp 0 + pushImm 2256 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + jz L196 + pushImm 30 + popToSp 0 + jmp L196 +L196: + pushFromFSp 0 + syscall 1, 280 ; trap_sheet_add_munny (1 in, 1 out) + drop + jmp L321 +D210: +L210: + jmp L212 +L212: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 2000 + sub + msbi + jz L228 + pushImm 2271 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L321 +L228: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 1200 + sub + msbi + jz L254 + pushImm 2274 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L252 + pushImm 2274 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L252 +L252: + jmp L321 +L254: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 800 + sub + msbi + jz L280 + pushImm 2273 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L278 + pushImm 2273 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L278 +L278: + jmp L321 +L280: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 200 + sub + msbi + jz L306 + pushImm 2272 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L304 + pushImm 2272 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L304 +L304: + jmp L321 +L306: + pushImm 2269 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L321 + pushImm 2269 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L321 +L321: + ret +L322: + popToSp 4 + popToSp 0 + syscall 4, 55 ; trap_mission_is_lock (0 in, 1 out) + eqz + jz L344 + pushImm 1 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + syscall 4, 54 ; trap_mission_lock (0 in, 0 out) + jmp L344 +L344: + ret +L345: + popToSp 0 + pushImm 30 + gosub 4, L180 + pushFromFSp 0 + pushImm 2 + gosub 4, L322 + ret +L360: + popToSp 0 + pushImm 10 + gosub 4, L180 + pushFromFSp 0 + pushImm 3 + gosub 4, L322 + ret +UNIT_MAIN: + pushFromPWp W8 + pushImm 14 + pushImm 0 + pushImm 0 + gosub 4, L396 + halt + gosub 4, L457 + pushFromPWp W0 + gosub 4, L503 + ret +L396: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + syscall 4, 38 ; trap_score_get (1 in, 1 out) + popToSpVal 8 + pushFromFSpVal 8 + pushImm 1 + pushImm 0 + syscall 4, 37 ; trap_score_update (3 in, 1 out) + drop + pushFromFSp 8 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + pushFromFSpVal 8 + syscall 4, 35 ; trap_score_type (1 in, 1 out) + pushImm 4 + sub + neqz + jz L446 + pushFromFSpVal 4 + syscall 4, 45 ; trap_mission_disable_watch (1 in, 0 out) + jmp L456 +L446: + pushFromFSp 0 + fetchValue 8 + syscall 4, 36 ; trap_score_score (1 in, 1 out) + pushFromFSpVal 4 + syscall 4, 39 ; trap_mission_set_watch (2 in, 0 out) +L456: + ret +L457: + pushFromPSp 0 + pushImm 5067 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) ; ___possible_ref + pushFromPSp 0 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L490 + pushFromPSp 0 + gosub 8, L491 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 327 + pushFromPSp 0 + syscall 1, 325 ; trap_obj_reaction_callback (4 in, 0 out) + jmp L490 +L490: + ret +L491: + pushFromPSp 0 + pushImm 4 + add + syscall 1, 3 ; trap_sysobj_player (0 in, 1 out) + memcpy 0 + pushFromPSp 0 + ret +L503: + popToSp 0 + pushFromFSp 0 + gosub 4, L582 +L509: + pushFromFSp 0 + gosub 4, L595 + jz L518 + halt + jmp L509 +L518: + pushFromFSpVal 0 + dup + pushImm 1 + sub + jz L529 + jmp L535 +L529: + pushFromFSpVal 4 + syscall 4, 3 ; trap_mission_complete (1 in, 0 out) + jmp L578 +L535: + dup + pushImm 2 + sub + jz L544 + jmp L550 +L544: + pushFromFSpVal 4 + syscall 4, 16 ; trap_mission_dead_boss (1 in, 0 out) + jmp L578 +L550: + dup + pushImm 3 + sub + jz L559 + jmp L563 +L559: + syscall 4, 11 ; trap_mission_failed (0 in, 0 out) + jmp L578 +L563: + dup + pushImm 4 + sub + jz L572 + jmp L578 +L572: + pushFromFSpVal 4 + syscall 4, 22 ; trap_mission_exit (1 in, 0 out) + jmp L578 +L578: + drop + gosub 4, L605 + ret +L582: + popToSp 0 + pushImm 0 + popToSpVal 0 + pushImm -1 + popToSpVal 4 + ret +L595: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + ret +L605: + halt + jmp L605 +D608: +L608: + ret +TXT609: + db 'btl_attack',0,0 +TXT615: + db 'near',0,0 +TXT618: + db 'btl_short',0 +TXT623: + db 'rvg_normal',0,0 +TXT629: + db 'btl_long',0,0 +TXT634: + db 'rvg_hard',0,0 +TXT639: + db 'rvg_super_hard',0,0 +TXT647: + db 'near_wait',0 +TXT652: + db 'rvg_short',0 +TXT657: + db 'leave',0 +TXT660: + db 'rvg_long',0,0 +TXT665: + db 'rst_normal',0,0 +TXT671: + db 'mode_battle',0 +TXT677: + db 'rst_hard',0,0 +TXT682: + db 'rst_super_hard',0,0 +TXT690: + db 'btl_normal',0,0 +TXT696: + db 'jump start',0,0 +TXT702: + db 'btl_hard',0,0 +TXT707: + db 'jump end',0,0 +TXT712: + db 'btl_super_hard',0,0 + + section .bss +W0: + resb 8 +W8: + resb 24 diff --git a/ard/tt06/TT06_PERFORM_01.bdscript b/ard/tt06/TT06_PERFORM_01.bdscript new file mode 100644 index 0000000..f48fcff --- /dev/null +++ b/ard/tt06/TT06_PERFORM_01.bdscript @@ -0,0 +1,318 @@ +--- +WorkSize: 16 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 10 + Addr: SIGNAL_CALLBACK +- Key: 3 + Addr: UNIT_MAIN +Name: tt06_work_perfo + +--- +; codeLabels: +; codeRevealer: -l 161 -l 436 + section .text +SIGNAL_CALLBACK: + popToSp 0 + popToSp 4 + pushFromFSp 4 + dup + pushImm 153 + sub + jz L33 + jmp L40 +L33: + pushImmf 0 + syscall 4, 25 ; trap_mission_start_combo_counter (1 in, 0 out) + jmp L73 +L40: + dup + pushImm 154 + sub + jz L49 + jmp L58 +L49: + syscall 4, 27 ; trap_mission_stop_combo_counter (0 in, 0 out) + pushImm 0 + syscall 4, 20 ; trap_mission_decrement_count (1 in, 0 out) + jmp L73 +L58: + dup + pushImm 14 + sub + jz L67 + jmp L73 +L67: + pushFromPWp W0 + gosub 4, L75 + jmp L73 +L73: + drop + ret +L75: + popToSp 0 + syscall 4, 30 ; trap_mission_get_max_combo_counter (0 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImm 20 + sub + msbi + jz L96 + pushFromFSp 0 + gosub 4, L116 + jmp L115 +L96: + pushFromFSp 4 + pushImm 5 + sub + msbi + jz L111 + pushFromFSp 0 + gosub 4, L296 + jmp L115 +L111: + pushFromFSp 0 + gosub 4, L311 +L115: + ret +L116: + popToSp 0 + pushImm 50 + gosub 4, L131 + pushFromFSp 0 + pushImm 1 + gosub 4, L273 + ret +L131: + popToSp 0 + pushImm 2256 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + jz L147 + pushImm 30 + popToSp 0 + jmp L147 +L147: + pushFromFSp 0 + syscall 1, 280 ; trap_sheet_add_munny (1 in, 1 out) + drop + jmp L272 +D161: +L161: + jmp L163 +L163: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 2000 + sub + msbi + jz L179 + pushImm 2271 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L272 +L179: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 1200 + sub + msbi + jz L205 + pushImm 2274 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L203 + pushImm 2274 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L203 +L203: + jmp L272 +L205: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 800 + sub + msbi + jz L231 + pushImm 2273 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L229 + pushImm 2273 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L229 +L229: + jmp L272 +L231: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 200 + sub + msbi + jz L257 + pushImm 2272 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L255 + pushImm 2272 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L255 +L255: + jmp L272 +L257: + pushImm 2269 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L272 + pushImm 2269 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L272 +L272: + ret +L273: + popToSp 4 + popToSp 0 + syscall 4, 55 ; trap_mission_is_lock (0 in, 1 out) + eqz + jz L295 + pushImm 1 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + syscall 4, 54 ; trap_mission_lock (0 in, 0 out) + jmp L295 +L295: + ret +L296: + popToSp 0 + pushImm 30 + gosub 4, L131 + pushFromFSp 0 + pushImm 2 + gosub 4, L273 + ret +L311: + popToSp 0 + pushImm 10 + gosub 4, L131 + pushFromFSp 0 + pushImm 3 + gosub 4, L273 + ret +UNIT_MAIN: + pushFromPWp W0 + gosub 4, L331 + ret +L331: + popToSp 0 + pushFromFSp 0 + gosub 4, L410 +L337: + pushFromFSp 0 + gosub 4, L423 + jz L346 + halt + jmp L337 +L346: + pushFromFSpVal 0 + dup + pushImm 1 + sub + jz L357 + jmp L363 +L357: + pushFromFSpVal 4 + syscall 4, 3 ; trap_mission_complete (1 in, 0 out) + jmp L406 +L363: + dup + pushImm 2 + sub + jz L372 + jmp L378 +L372: + pushFromFSpVal 4 + syscall 4, 16 ; trap_mission_dead_boss (1 in, 0 out) + jmp L406 +L378: + dup + pushImm 3 + sub + jz L387 + jmp L391 +L387: + syscall 4, 11 ; trap_mission_failed (0 in, 0 out) + jmp L406 +L391: + dup + pushImm 4 + sub + jz L400 + jmp L406 +L400: + pushFromFSpVal 4 + syscall 4, 22 ; trap_mission_exit (1 in, 0 out) + jmp L406 +L406: + drop + gosub 4, L433 + ret +L410: + popToSp 0 + pushImm 0 + popToSpVal 0 + pushImm -1 + popToSpVal 4 + ret +L423: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + ret +L433: + halt + jmp L433 +D436: +L436: + ret +TXT437: + db 'btl_attack',0,0 +TXT443: + db 'near',0,0 +TXT446: + db 'btl_short',0 +TXT451: + db 'rvg_normal',0,0 +TXT457: + db 'btl_long',0,0 +TXT462: + db 'rvg_hard',0,0 +TXT467: + db 'rvg_super_hard',0,0 +TXT475: + db 'near_wait',0 +TXT480: + db 'rvg_short',0 +TXT485: + db 'leave',0 +TXT488: + db 'rvg_long',0,0 +TXT493: + db 'rst_normal',0,0 +TXT499: + db 'mode_battle',0 +TXT505: + db 'rst_hard',0,0 +TXT510: + db 'rst_super_hard',0,0 +TXT518: + db 'btl_normal',0,0 +TXT524: + db 'jump start',0,0 +TXT530: + db 'btl_hard',0,0 +TXT535: + db 'jump end',0,0 +TXT540: + db 'btl_super_hard',0,0 + + section .bss +W0: + resb 16 diff --git a/ard/tt06/TT06_PERFORM_02.bdscript b/ard/tt06/TT06_PERFORM_02.bdscript new file mode 100644 index 0000000..666540a --- /dev/null +++ b/ard/tt06/TT06_PERFORM_02.bdscript @@ -0,0 +1,381 @@ +--- +WorkSize: 16 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 10 + Addr: SIGNAL_CALLBACK +- Key: 3 + Addr: UNIT_MAIN +Name: tt06_free_perfo + +--- +; codeLabels: +; codeRevealer: -l 190 -l 555 + section .text +SIGNAL_CALLBACK: + popToSp 0 + popToSp 4 + pushFromFSp 4 + dup + pushImm 153 + sub + jz L33 + jmp L40 +L33: + pushImmf 0 + syscall 4, 25 ; trap_mission_start_combo_counter (1 in, 0 out) + jmp L80 +L40: + dup + pushImm 154 + sub + jz L49 + jmp L58 +L49: + syscall 4, 27 ; trap_mission_stop_combo_counter (0 in, 0 out) + pushImm 0 + syscall 4, 20 ; trap_mission_decrement_count (1 in, 0 out) + jmp L80 +L58: + dup + pushImm 14 + sub + jz L67 + jmp L80 +L67: + pushFromPWp W8 + pushImm 3 + gosub 4, L82 + pushFromPWp W0 + gosub 4, L104 + jmp L80 +L80: + drop + ret +L82: + popToSp 4 + popToSp 0 + pushFromFSpVal 0 + pushFromFSp 4 + syscall 4, 30 ; trap_mission_get_max_combo_counter (0 in, 1 out) + syscall 4, 37 ; trap_score_update (3 in, 1 out) + jz L103 + pushImm 0 + syscall 4, 52 ; trap_mission_warning_combo_counter (1 in, 0 out) + jmp L103 +L103: + ret +L104: + popToSp 0 + syscall 4, 30 ; trap_mission_get_max_combo_counter (0 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImm 20 + sub + msbi + jz L125 + pushFromFSp 0 + gosub 4, L145 + jmp L144 +L125: + pushFromFSp 4 + pushImm 5 + sub + msbi + jz L140 + pushFromFSp 0 + gosub 4, L325 + jmp L144 +L140: + pushFromFSp 0 + gosub 4, L340 +L144: + ret +L145: + popToSp 0 + pushImm 50 + gosub 4, L160 + pushFromFSp 0 + pushImm 1 + gosub 4, L302 + ret +L160: + popToSp 0 + pushImm 2256 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + jz L176 + pushImm 30 + popToSp 0 + jmp L176 +L176: + pushFromFSp 0 + syscall 1, 280 ; trap_sheet_add_munny (1 in, 1 out) + drop + jmp L301 +D190: +L190: + jmp L192 +L192: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 2000 + sub + msbi + jz L208 + pushImm 2271 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L301 +L208: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 1200 + sub + msbi + jz L234 + pushImm 2274 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L232 + pushImm 2274 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L232 +L232: + jmp L301 +L234: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 800 + sub + msbi + jz L260 + pushImm 2273 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L258 + pushImm 2273 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L258 +L258: + jmp L301 +L260: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 200 + sub + msbi + jz L286 + pushImm 2272 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L284 + pushImm 2272 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L284 +L284: + jmp L301 +L286: + pushImm 2269 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L301 + pushImm 2269 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L301 +L301: + ret +L302: + popToSp 4 + popToSp 0 + syscall 4, 55 ; trap_mission_is_lock (0 in, 1 out) + eqz + jz L324 + pushImm 1 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + syscall 4, 54 ; trap_mission_lock (0 in, 0 out) + jmp L324 +L324: + ret +L325: + popToSp 0 + pushImm 30 + gosub 4, L160 + pushFromFSp 0 + pushImm 2 + gosub 4, L302 + ret +L340: + popToSp 0 + pushImm 10 + gosub 4, L160 + pushFromFSp 0 + pushImm 3 + gosub 4, L302 + ret +UNIT_MAIN: + pushFromPWp W8 + pushImm 15 + pushImm 1 + gosub 4, L370 + pushFromPWp W0 + gosub 4, L450 + ret +L370: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + syscall 4, 38 ; trap_score_get (1 in, 1 out) + popToSpVal 0 + pushFromFSpVal 0 + pushImm 1 + pushImm 0 + syscall 4, 37 ; trap_score_update (3 in, 1 out) + drop + pushFromFSpVal 0 + syscall 4, 35 ; trap_score_type (1 in, 1 out) + pushImm 2 + sub + info + jz L410 + pushFromFSp 4 + syscall 4, 44 ; trap_mission_disable_count (1 in, 0 out) + jmp L441 +L410: + pushFromFSp 0 + fetchValue 0 + syscall 4, 36 ; trap_score_score (1 in, 1 out) + pushFromFSp 4 + syscall 4, 5 ; trap_mission_set_count (2 in, 0 out) + pushImm 0 + pushImm 0 + pushFromFSp 0 + fetchValue 0 + syscall 4, 36 ; trap_score_score (1 in, 1 out) + pushImm 1 + add + pushImm 0 + syscall 4, 51 ; trap_mission_set_combo_counter_param (4 in, 0 out) +L441: + pushImm 10 + pushImm 0 + syscall 4, 53 ; trap_mission_set_combo_counter_warning_se (2 in, 0 out) + ret +L450: + popToSp 0 + pushFromFSp 0 + gosub 4, L529 +L456: + pushFromFSp 0 + gosub 4, L542 + jz L465 + halt + jmp L456 +L465: + pushFromFSpVal 0 + dup + pushImm 1 + sub + jz L476 + jmp L482 +L476: + pushFromFSpVal 4 + syscall 4, 3 ; trap_mission_complete (1 in, 0 out) + jmp L525 +L482: + dup + pushImm 2 + sub + jz L491 + jmp L497 +L491: + pushFromFSpVal 4 + syscall 4, 16 ; trap_mission_dead_boss (1 in, 0 out) + jmp L525 +L497: + dup + pushImm 3 + sub + jz L506 + jmp L510 +L506: + syscall 4, 11 ; trap_mission_failed (0 in, 0 out) + jmp L525 +L510: + dup + pushImm 4 + sub + jz L519 + jmp L525 +L519: + pushFromFSpVal 4 + syscall 4, 22 ; trap_mission_exit (1 in, 0 out) + jmp L525 +L525: + drop + gosub 4, L552 + ret +L529: + popToSp 0 + pushImm 0 + popToSpVal 0 + pushImm -1 + popToSpVal 4 + ret +L542: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + ret +L552: + halt + jmp L552 +D555: +L555: + ret +TXT556: + db 'btl_attack',0,0 +TXT562: + db 'near',0,0 +TXT565: + db 'btl_short',0 +TXT570: + db 'rvg_normal',0,0 +TXT576: + db 'btl_long',0,0 +TXT581: + db 'rvg_hard',0,0 +TXT586: + db 'rvg_super_hard',0,0 +TXT594: + db 'near_wait',0 +TXT599: + db 'rvg_short',0 +TXT604: + db 'leave',0 +TXT607: + db 'rvg_long',0,0 +TXT612: + db 'rst_normal',0,0 +TXT618: + db 'mode_battle',0 +TXT624: + db 'rst_hard',0,0 +TXT629: + db 'rst_super_hard',0,0 +TXT637: + db 'btl_normal',0,0 +TXT643: + db 'jump start',0,0 +TXT649: + db 'btl_hard',0,0 +TXT654: + db 'jump end',0,0 +TXT659: + db 'btl_super_hard',0,0 + + section .bss +W0: + resb 8 +W8: + resb 8 diff --git a/ard/tt07/TT07_CLEAN_01.bdscript b/ard/tt07/TT07_CLEAN_01.bdscript new file mode 100644 index 0000000..a0a96dd --- /dev/null +++ b/ard/tt07/TT07_CLEAN_01.bdscript @@ -0,0 +1,325 @@ +--- +WorkSize: 16 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 10 + Addr: SIGNAL_CALLBACK +- Key: 3 + Addr: UNIT_MAIN +Name: tt07_work_clean + +--- +; codeLabels: +; codeRevealer: -l 173 -l 448 + section .text +SIGNAL_CALLBACK: + popToSp 0 + popToSp 4 + pushFromFSp 4 + dup + pushImm 82 + sub + jz L33 + jmp L40 +L33: + pushImm 0 + syscall 4, 6 ; trap_mission_increment_count (1 in, 0 out) + jmp L82 +L40: + dup + pushImm 130 + sub + jz L49 + jmp L56 +L49: + pushImm 1 + syscall 4, 20 ; trap_mission_decrement_count (1 in, 0 out) + jmp L82 +L56: + dup + pushImm 14 + sub + jz L65 + jmp L82 +L65: + pushFromFSp 0 + pushImm 1 + sub + eqz + jz L80 + pushFromPWp W0 + gosub 4, L84 + jmp L80 +L80: + jmp L82 +L82: + drop + ret +L84: + popToSp 0 + pushImm 0 + syscall 4, 29 ; trap_mission_get_count (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImm 10 + sub + info + jz L108 + pushFromFSp 0 + gosub 4, L128 + jmp L127 +L108: + pushFromFSp 4 + pushImm 15 + sub + info + jz L123 + pushFromFSp 0 + gosub 4, L308 + jmp L127 +L123: + pushFromFSp 0 + gosub 4, L323 +L127: + ret +L128: + popToSp 0 + pushImm 50 + gosub 4, L143 + pushFromFSp 0 + pushImm 1 + gosub 4, L285 + ret +L143: + popToSp 0 + pushImm 2256 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + jz L159 + pushImm 30 + popToSp 0 + jmp L159 +L159: + pushFromFSp 0 + syscall 1, 280 ; trap_sheet_add_munny (1 in, 1 out) + drop + jmp L284 +D173: +L173: + jmp L175 +L175: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 2000 + sub + msbi + jz L191 + pushImm 2271 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L284 +L191: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 1200 + sub + msbi + jz L217 + pushImm 2274 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L215 + pushImm 2274 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L215 +L215: + jmp L284 +L217: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 800 + sub + msbi + jz L243 + pushImm 2273 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L241 + pushImm 2273 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L241 +L241: + jmp L284 +L243: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 200 + sub + msbi + jz L269 + pushImm 2272 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L267 + pushImm 2272 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L267 +L267: + jmp L284 +L269: + pushImm 2269 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L284 + pushImm 2269 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L284 +L284: + ret +L285: + popToSp 4 + popToSp 0 + syscall 4, 55 ; trap_mission_is_lock (0 in, 1 out) + eqz + jz L307 + pushImm 1 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + syscall 4, 54 ; trap_mission_lock (0 in, 0 out) + jmp L307 +L307: + ret +L308: + popToSp 0 + pushImm 30 + gosub 4, L143 + pushFromFSp 0 + pushImm 2 + gosub 4, L285 + ret +L323: + popToSp 0 + pushImm 10 + gosub 4, L143 + pushFromFSp 0 + pushImm 3 + gosub 4, L285 + ret +UNIT_MAIN: + pushFromPWp W0 + gosub 4, L343 + ret +L343: + popToSp 0 + pushFromFSp 0 + gosub 4, L422 +L349: + pushFromFSp 0 + gosub 4, L435 + jz L358 + halt + jmp L349 +L358: + pushFromFSpVal 0 + dup + pushImm 1 + sub + jz L369 + jmp L375 +L369: + pushFromFSpVal 4 + syscall 4, 3 ; trap_mission_complete (1 in, 0 out) + jmp L418 +L375: + dup + pushImm 2 + sub + jz L384 + jmp L390 +L384: + pushFromFSpVal 4 + syscall 4, 16 ; trap_mission_dead_boss (1 in, 0 out) + jmp L418 +L390: + dup + pushImm 3 + sub + jz L399 + jmp L403 +L399: + syscall 4, 11 ; trap_mission_failed (0 in, 0 out) + jmp L418 +L403: + dup + pushImm 4 + sub + jz L412 + jmp L418 +L412: + pushFromFSpVal 4 + syscall 4, 22 ; trap_mission_exit (1 in, 0 out) + jmp L418 +L418: + drop + gosub 4, L445 + ret +L422: + popToSp 0 + pushImm 0 + popToSpVal 0 + pushImm -1 + popToSpVal 4 + ret +L435: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + ret +L445: + halt + jmp L445 +D448: +L448: + ret +TXT449: + db 'mode_battle',0 +TXT455: + db 'rst_hard',0,0 +TXT460: + db 'rst_super_hard',0,0 +TXT468: + db 'btl_normal',0,0 +TXT474: + db 'jump start',0,0 +TXT480: + db 'btl_hard',0,0 +TXT485: + db 'jump end',0,0 +TXT490: + db 'btl_super_hard',0,0 +TXT498: + db 'btl_attack',0,0 +TXT504: + db 'near',0,0 +TXT507: + db 'btl_short',0 +TXT512: + db 'rvg_normal',0,0 +TXT518: + db 'btl_long',0,0 +TXT523: + db 'rvg_hard',0,0 +TXT528: + db 'rvg_super_hard',0,0 +TXT536: + db 'near_wait',0 +TXT541: + db 'rvg_short',0 +TXT546: + db 'leave',0 +TXT549: + db 'rvg_long',0,0 +TXT554: + db 'rst_normal',0,0 + + section .bss +W0: + resb 16 diff --git a/ard/tt07/TT07_CLEAN_02.bdscript b/ard/tt07/TT07_CLEAN_02.bdscript new file mode 100644 index 0000000..28f9ab6 --- /dev/null +++ b/ard/tt07/TT07_CLEAN_02.bdscript @@ -0,0 +1,407 @@ +--- +WorkSize: 16 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 10 + Addr: SIGNAL_CALLBACK +- Key: 3 + Addr: UNIT_MAIN +Name: tt07_free_clean + +--- +; codeLabels: +; codeRevealer: -l 214 -l 598 + section .text +SIGNAL_CALLBACK: + popToSp 0 + popToSp 4 + pushFromFSp 4 + dup + pushImm 82 + sub + jz L33 + jmp L40 +L33: + pushImm 0 + syscall 4, 6 ; trap_mission_increment_count (1 in, 0 out) + jmp L89 +L40: + dup + pushImm 130 + sub + jz L49 + jmp L56 +L49: + pushImm 1 + syscall 4, 20 ; trap_mission_decrement_count (1 in, 0 out) + jmp L89 +L56: + dup + pushImm 14 + sub + jz L65 + jmp L89 +L65: + pushFromFSp 0 + pushImm 1 + sub + eqz + jz L87 + pushFromPWp W8 + pushImm 6 + gosub 4, L91 + pushFromPWp W0 + gosub 4, L125 + jmp L87 +L87: + jmp L89 +L89: + drop + ret +L91: + popToSp 4 + popToSp 0 + pushFromFSpVal 0 + pushFromFSp 4 + pushFromFSpVal 4 + syscall 4, 29 ; trap_mission_get_count (1 in, 1 out) + syscall 4, 37 ; trap_score_update (3 in, 1 out) + jz L124 + pushFromFSp 4 + pushImm 3 + sub + msbi + jz L122 + pushFromFSpVal 4 + syscall 4, 50 ; trap_mission_warning_count (1 in, 0 out) + jmp L122 +L122: + jmp L124 +L124: + ret +L125: + popToSp 0 + pushImm 0 + syscall 4, 29 ; trap_mission_get_count (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImm 10 + sub + info + jz L149 + pushFromFSp 0 + gosub 4, L169 + jmp L168 +L149: + pushFromFSp 4 + pushImm 15 + sub + info + jz L164 + pushFromFSp 0 + gosub 4, L349 + jmp L168 +L164: + pushFromFSp 0 + gosub 4, L364 +L168: + ret +L169: + popToSp 0 + pushImm 50 + gosub 4, L184 + pushFromFSp 0 + pushImm 1 + gosub 4, L326 + ret +L184: + popToSp 0 + pushImm 2256 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + jz L200 + pushImm 30 + popToSp 0 + jmp L200 +L200: + pushFromFSp 0 + syscall 1, 280 ; trap_sheet_add_munny (1 in, 1 out) + drop + jmp L325 +D214: +L214: + jmp L216 +L216: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 2000 + sub + msbi + jz L232 + pushImm 2271 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L325 +L232: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 1200 + sub + msbi + jz L258 + pushImm 2274 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L256 + pushImm 2274 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L256 +L256: + jmp L325 +L258: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 800 + sub + msbi + jz L284 + pushImm 2273 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L282 + pushImm 2273 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L282 +L282: + jmp L325 +L284: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 200 + sub + msbi + jz L310 + pushImm 2272 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L308 + pushImm 2272 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L308 +L308: + jmp L325 +L310: + pushImm 2269 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L325 + pushImm 2269 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L325 +L325: + ret +L326: + popToSp 4 + popToSp 0 + syscall 4, 55 ; trap_mission_is_lock (0 in, 1 out) + eqz + jz L348 + pushImm 1 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + syscall 4, 54 ; trap_mission_lock (0 in, 0 out) + jmp L348 +L348: + ret +L349: + popToSp 0 + pushImm 30 + gosub 4, L184 + pushFromFSp 0 + pushImm 2 + gosub 4, L326 + ret +L364: + popToSp 0 + pushImm 10 + gosub 4, L184 + pushFromFSp 0 + pushImm 3 + gosub 4, L326 + ret +UNIT_MAIN: + pushFromPWp W8 + pushImm 16 + pushImm 0 + pushImm 2 + gosub 4, L397 + pushFromPWp W0 + gosub 4, L493 + ret +L397: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + syscall 4, 38 ; trap_score_get (1 in, 1 out) + popToSpVal 0 + pushFromFSpVal 0 + pushImm 1 + pushImm 0 + syscall 4, 37 ; trap_score_update (3 in, 1 out) + drop + pushFromFSp 8 + popToSpVal 4 + pushFromFSpVal 0 + syscall 4, 35 ; trap_score_type (1 in, 1 out) + pushImm 2 + sub + info + jz L443 + pushFromFSp 4 + syscall 4, 44 ; trap_mission_disable_count (1 in, 0 out) + jmp L492 +L443: + pushFromFSpVal 0 + syscall 4, 35 ; trap_score_type (1 in, 1 out) + pushImm 6 + sub + neqz + jz L474 + pushImm 0 + pushImm 0 + pushFromFSpVal 0 + syscall 4, 36 ; trap_score_score (1 in, 1 out) + pushImm 1 + add + pushFromFSpVal 4 + syscall 4, 18 ; trap_mission_set_count_param (4 in, 0 out) + jmp L474 +L474: + pushFromFSp 0 + fetchValue 0 + syscall 4, 36 ; trap_score_score (1 in, 1 out) + pushFromFSp 4 + syscall 4, 5 ; trap_mission_set_count (2 in, 0 out) + pushImm 10 + pushImm 0 + syscall 4, 46 ; trap_mission_set_warning_se (2 in, 0 out) +L492: + ret +L493: + popToSp 0 + pushFromFSp 0 + gosub 4, L572 +L499: + pushFromFSp 0 + gosub 4, L585 + jz L508 + halt + jmp L499 +L508: + pushFromFSpVal 0 + dup + pushImm 1 + sub + jz L519 + jmp L525 +L519: + pushFromFSpVal 4 + syscall 4, 3 ; trap_mission_complete (1 in, 0 out) + jmp L568 +L525: + dup + pushImm 2 + sub + jz L534 + jmp L540 +L534: + pushFromFSpVal 4 + syscall 4, 16 ; trap_mission_dead_boss (1 in, 0 out) + jmp L568 +L540: + dup + pushImm 3 + sub + jz L549 + jmp L553 +L549: + syscall 4, 11 ; trap_mission_failed (0 in, 0 out) + jmp L568 +L553: + dup + pushImm 4 + sub + jz L562 + jmp L568 +L562: + pushFromFSpVal 4 + syscall 4, 22 ; trap_mission_exit (1 in, 0 out) + jmp L568 +L568: + drop + gosub 4, L595 + ret +L572: + popToSp 0 + pushImm 0 + popToSpVal 0 + pushImm -1 + popToSpVal 4 + ret +L585: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + ret +L595: + halt + jmp L595 +D598: +L598: + ret +TXT599: + db 'mode_battle',0 +TXT605: + db 'rst_hard',0,0 +TXT610: + db 'rst_super_hard',0,0 +TXT618: + db 'btl_normal',0,0 +TXT624: + db 'jump start',0,0 +TXT630: + db 'btl_hard',0,0 +TXT635: + db 'jump end',0,0 +TXT640: + db 'btl_super_hard',0,0 +TXT648: + db 'btl_attack',0,0 +TXT654: + db 'near',0,0 +TXT657: + db 'btl_short',0 +TXT662: + db 'rvg_normal',0,0 +TXT668: + db 'btl_long',0,0 +TXT673: + db 'rvg_hard',0,0 +TXT678: + db 'rvg_super_hard',0,0 +TXT686: + db 'near_wait',0 +TXT691: + db 'rvg_short',0 +TXT696: + db 'leave',0 +TXT699: + db 'rvg_long',0,0 +TXT704: + db 'rst_normal',0,0 + + section .bss +W0: + resb 8 +W8: + resb 8 diff --git a/ard/tt07/TT07_POSTER_01.bdscript b/ard/tt07/TT07_POSTER_01.bdscript new file mode 100644 index 0000000..d7e9048 --- /dev/null +++ b/ard/tt07/TT07_POSTER_01.bdscript @@ -0,0 +1,308 @@ +--- +WorkSize: 16 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 10 + Addr: SIGNAL_CALLBACK +- Key: 3 + Addr: UNIT_MAIN +Name: tt07_work_poste + +--- +; codeLabels: +; codeRevealer: -l 146 -l 421 + section .text +SIGNAL_CALLBACK: + popToSp 0 + popToSp 4 + pushFromFSp 4 + dup + pushImm 82 + sub + jz L33 + jmp L40 +L33: + pushImm 0 + syscall 4, 6 ; trap_mission_increment_count (1 in, 0 out) + jmp L55 +L40: + dup + pushImm 123 + sub + jz L49 + jmp L55 +L49: + pushFromPWp W0 + gosub 4, L57 + jmp L55 +L55: + drop + ret +L57: + popToSp 0 + pushImm 0 + syscall 4, 40 ; trap_mission_get_timer_second (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImm 90 + sub + info + jz L81 + pushFromFSp 0 + gosub 4, L101 + jmp L100 +L81: + pushFromFSp 4 + pushImm 120 + sub + info + jz L96 + pushFromFSp 0 + gosub 4, L281 + jmp L100 +L96: + pushFromFSp 0 + gosub 4, L296 +L100: + ret +L101: + popToSp 0 + pushImm 100 + gosub 4, L116 + pushFromFSp 0 + pushImm 1 + gosub 4, L258 + ret +L116: + popToSp 0 + pushImm 2256 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + jz L132 + pushImm 50 + popToSp 0 + jmp L132 +L132: + pushFromFSp 0 + syscall 1, 280 ; trap_sheet_add_munny (1 in, 1 out) + drop + jmp L257 +D146: +L146: + jmp L148 +L148: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 2000 + sub + msbi + jz L164 + pushImm 2271 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L257 +L164: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 1200 + sub + msbi + jz L190 + pushImm 2274 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L188 + pushImm 2274 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L188 +L188: + jmp L257 +L190: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 800 + sub + msbi + jz L216 + pushImm 2273 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L214 + pushImm 2273 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L214 +L214: + jmp L257 +L216: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 200 + sub + msbi + jz L242 + pushImm 2272 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L240 + pushImm 2272 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L240 +L240: + jmp L257 +L242: + pushImm 2269 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L257 + pushImm 2269 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L257 +L257: + ret +L258: + popToSp 4 + popToSp 0 + syscall 4, 55 ; trap_mission_is_lock (0 in, 1 out) + eqz + jz L280 + pushImm 1 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + syscall 4, 54 ; trap_mission_lock (0 in, 0 out) + jmp L280 +L280: + ret +L281: + popToSp 0 + pushImm 50 + gosub 4, L116 + pushFromFSp 0 + pushImm 2 + gosub 4, L258 + ret +L296: + popToSp 0 + pushImm 30 + gosub 4, L116 + pushFromFSp 0 + pushImm 3 + gosub 4, L258 + ret +UNIT_MAIN: + pushFromPWp W0 + gosub 4, L316 + ret +L316: + popToSp 0 + pushFromFSp 0 + gosub 4, L395 +L322: + pushFromFSp 0 + gosub 4, L408 + jz L331 + halt + jmp L322 +L331: + pushFromFSpVal 0 + dup + pushImm 1 + sub + jz L342 + jmp L348 +L342: + pushFromFSpVal 4 + syscall 4, 3 ; trap_mission_complete (1 in, 0 out) + jmp L391 +L348: + dup + pushImm 2 + sub + jz L357 + jmp L363 +L357: + pushFromFSpVal 4 + syscall 4, 16 ; trap_mission_dead_boss (1 in, 0 out) + jmp L391 +L363: + dup + pushImm 3 + sub + jz L372 + jmp L376 +L372: + syscall 4, 11 ; trap_mission_failed (0 in, 0 out) + jmp L391 +L376: + dup + pushImm 4 + sub + jz L385 + jmp L391 +L385: + pushFromFSpVal 4 + syscall 4, 22 ; trap_mission_exit (1 in, 0 out) + jmp L391 +L391: + drop + gosub 4, L418 + ret +L395: + popToSp 0 + pushImm 0 + popToSpVal 0 + pushImm -1 + popToSpVal 4 + ret +L408: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + ret +L418: + halt + jmp L418 +D421: +L421: + ret +TXT422: + db 'btl_attack',0,0 +TXT428: + db 'near',0,0 +TXT431: + db 'btl_short',0 +TXT436: + db 'rvg_normal',0,0 +TXT442: + db 'btl_long',0,0 +TXT447: + db 'rvg_hard',0,0 +TXT452: + db 'rvg_super_hard',0,0 +TXT460: + db 'near_wait',0 +TXT465: + db 'rvg_short',0 +TXT470: + db 'leave',0 +TXT473: + db 'rvg_long',0,0 +TXT478: + db 'rst_normal',0,0 +TXT484: + db 'mode_battle',0 +TXT490: + db 'rst_hard',0,0 +TXT495: + db 'rst_super_hard',0,0 +TXT503: + db 'btl_normal',0,0 +TXT509: + db 'jump start',0,0 +TXT515: + db 'btl_hard',0,0 +TXT520: + db 'jump end',0,0 +TXT525: + db 'btl_super_hard',0,0 + + section .bss +W0: + resb 16 diff --git a/ard/tt07/TT07_POSTER_02.bdscript b/ard/tt07/TT07_POSTER_02.bdscript new file mode 100644 index 0000000..898e826 --- /dev/null +++ b/ard/tt07/TT07_POSTER_02.bdscript @@ -0,0 +1,367 @@ +--- +WorkSize: 32 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 10 + Addr: SIGNAL_CALLBACK +- Key: 3 + Addr: UNIT_MAIN +Name: tt07_free_poste + +--- +; codeLabels: +; codeRevealer: -l 179 -l 528 + section .text +SIGNAL_CALLBACK: + popToSp 0 + popToSp 4 + pushFromFSp 4 + dup + pushImm 82 + sub + jz L33 + jmp L40 +L33: + pushImm 0 + syscall 4, 6 ; trap_mission_increment_count (1 in, 0 out) + jmp L59 +L40: + dup + pushImm 123 + sub + jz L49 + jmp L59 +L49: + pushFromPWp W8 + gosub 4, L61 + pushFromPWp W0 + gosub 4, L90 + jmp L59 +L59: + drop + ret +L61: + popToSp 0 + syscall 4, 13 ; trap_mission_pause_timer (0 in, 0 out) + pushFromFSpVal 8 + pushImm 4 + pushFromFSpVal 0 + syscall 4, 26 ; trap_mission_get_timer (1 in, 1 out) + syscall 4, 37 ; trap_score_update (3 in, 1 out) + jz L89 + pushFromFSpVal 0 + syscall 4, 47 ; trap_mission_warning_timer (1 in, 0 out) + pushImm 10 + syscall 0, 65 ; trap_sound_play_system (1 in, 0 out) + jmp L89 +L89: + ret +L90: + popToSp 0 + pushImm 0 + syscall 4, 40 ; trap_mission_get_timer_second (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImm 90 + sub + info + jz L114 + pushFromFSp 0 + gosub 4, L134 + jmp L133 +L114: + pushFromFSp 4 + pushImm 120 + sub + info + jz L129 + pushFromFSp 0 + gosub 4, L314 + jmp L133 +L129: + pushFromFSp 0 + gosub 4, L329 +L133: + ret +L134: + popToSp 0 + pushImm 100 + gosub 4, L149 + pushFromFSp 0 + pushImm 1 + gosub 4, L291 + ret +L149: + popToSp 0 + pushImm 2256 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + jz L165 + pushImm 50 + popToSp 0 + jmp L165 +L165: + pushFromFSp 0 + syscall 1, 280 ; trap_sheet_add_munny (1 in, 1 out) + drop + jmp L290 +D179: +L179: + jmp L181 +L181: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 2000 + sub + msbi + jz L197 + pushImm 2271 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L290 +L197: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 1200 + sub + msbi + jz L223 + pushImm 2274 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L221 + pushImm 2274 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L221 +L221: + jmp L290 +L223: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 800 + sub + msbi + jz L249 + pushImm 2273 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L247 + pushImm 2273 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L247 +L247: + jmp L290 +L249: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 200 + sub + msbi + jz L275 + pushImm 2272 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L273 + pushImm 2272 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L273 +L273: + jmp L290 +L275: + pushImm 2269 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L290 + pushImm 2269 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L290 +L290: + ret +L291: + popToSp 4 + popToSp 0 + syscall 4, 55 ; trap_mission_is_lock (0 in, 1 out) + eqz + jz L313 + pushImm 1 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + syscall 4, 54 ; trap_mission_lock (0 in, 0 out) + jmp L313 +L313: + ret +L314: + popToSp 0 + pushImm 50 + gosub 4, L149 + pushFromFSp 0 + pushImm 2 + gosub 4, L291 + ret +L329: + popToSp 0 + pushImm 30 + gosub 4, L149 + pushFromFSp 0 + pushImm 3 + gosub 4, L291 + ret +UNIT_MAIN: + pushFromPWp W8 + pushImm 11 + pushImm 0 + pushImm 0 + gosub 4, L362 + pushFromPWp W0 + gosub 4, L423 + ret +L362: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + syscall 4, 38 ; trap_score_get (1 in, 1 out) + popToSpVal 8 + pushFromFSpVal 8 + pushImm 1 + pushImm 0 + syscall 4, 37 ; trap_score_update (3 in, 1 out) + drop + pushFromFSp 8 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + pushFromFSpVal 8 + syscall 4, 35 ; trap_score_type (1 in, 1 out) + pushImm 4 + sub + neqz + jz L412 + pushFromFSpVal 4 + syscall 4, 45 ; trap_mission_disable_watch (1 in, 0 out) + jmp L422 +L412: + pushFromFSp 0 + fetchValue 8 + syscall 4, 36 ; trap_score_score (1 in, 1 out) + pushFromFSpVal 4 + syscall 4, 39 ; trap_mission_set_watch (2 in, 0 out) +L422: + ret +L423: + popToSp 0 + pushFromFSp 0 + gosub 4, L502 +L429: + pushFromFSp 0 + gosub 4, L515 + jz L438 + halt + jmp L429 +L438: + pushFromFSpVal 0 + dup + pushImm 1 + sub + jz L449 + jmp L455 +L449: + pushFromFSpVal 4 + syscall 4, 3 ; trap_mission_complete (1 in, 0 out) + jmp L498 +L455: + dup + pushImm 2 + sub + jz L464 + jmp L470 +L464: + pushFromFSpVal 4 + syscall 4, 16 ; trap_mission_dead_boss (1 in, 0 out) + jmp L498 +L470: + dup + pushImm 3 + sub + jz L479 + jmp L483 +L479: + syscall 4, 11 ; trap_mission_failed (0 in, 0 out) + jmp L498 +L483: + dup + pushImm 4 + sub + jz L492 + jmp L498 +L492: + pushFromFSpVal 4 + syscall 4, 22 ; trap_mission_exit (1 in, 0 out) + jmp L498 +L498: + drop + gosub 4, L525 + ret +L502: + popToSp 0 + pushImm 0 + popToSpVal 0 + pushImm -1 + popToSpVal 4 + ret +L515: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + ret +L525: + halt + jmp L525 +D528: +L528: + ret +TXT529: + db 'btl_attack',0,0 +TXT535: + db 'near',0,0 +TXT538: + db 'btl_short',0 +TXT543: + db 'rvg_normal',0,0 +TXT549: + db 'btl_long',0,0 +TXT554: + db 'rvg_hard',0,0 +TXT559: + db 'rvg_super_hard',0,0 +TXT567: + db 'near_wait',0 +TXT572: + db 'rvg_short',0 +TXT577: + db 'leave',0 +TXT580: + db 'rvg_long',0,0 +TXT585: + db 'rst_normal',0,0 +TXT591: + db 'mode_battle',0 +TXT597: + db 'rst_hard',0,0 +TXT602: + db 'rst_super_hard',0,0 +TXT610: + db 'btl_normal',0,0 +TXT616: + db 'jump start',0,0 +TXT622: + db 'btl_hard',0,0 +TXT627: + db 'jump end',0,0 +TXT632: + db 'btl_super_hard',0,0 + + section .bss +W0: + resb 8 +W8: + resb 24 diff --git a/ard/tt07/TT07_WORM_01.bdscript b/ard/tt07/TT07_WORM_01.bdscript new file mode 100644 index 0000000..02a8d96 --- /dev/null +++ b/ard/tt07/TT07_WORM_01.bdscript @@ -0,0 +1,298 @@ +--- +WorkSize: 16 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 10 + Addr: SIGNAL_CALLBACK +- Key: 3 + Addr: UNIT_MAIN +Name: tt07_work_worm + +--- +; codeLabels: +; codeRevealer: -l 130 -l 405 + section .text +SIGNAL_CALLBACK: + popToSp 0 + popToSp 4 + pushFromFSp 4 + dup + pushImm 2 + sub + jz L33 + jmp L39 +L33: + pushFromPWp W0 + gosub 4, L41 + jmp L39 +L39: + drop + ret +L41: + popToSp 0 + pushImm 0 + syscall 4, 40 ; trap_mission_get_timer_second (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImm 20 + sub + info + jz L65 + pushFromFSp 0 + gosub 4, L85 + jmp L84 +L65: + pushFromFSp 4 + pushImm 60 + sub + info + jz L80 + pushFromFSp 0 + gosub 4, L265 + jmp L84 +L80: + pushFromFSp 0 + gosub 4, L280 +L84: + ret +L85: + popToSp 0 + pushImm 50 + gosub 4, L100 + pushFromFSp 0 + pushImm 1 + gosub 4, L242 + ret +L100: + popToSp 0 + pushImm 2256 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + jz L116 + pushImm 30 + popToSp 0 + jmp L116 +L116: + pushFromFSp 0 + syscall 1, 280 ; trap_sheet_add_munny (1 in, 1 out) + drop + jmp L241 +D130: +L130: + jmp L132 +L132: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 2000 + sub + msbi + jz L148 + pushImm 2271 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L241 +L148: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 1200 + sub + msbi + jz L174 + pushImm 2274 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L172 + pushImm 2274 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L172 +L172: + jmp L241 +L174: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 800 + sub + msbi + jz L200 + pushImm 2273 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L198 + pushImm 2273 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L198 +L198: + jmp L241 +L200: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 200 + sub + msbi + jz L226 + pushImm 2272 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L224 + pushImm 2272 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L224 +L224: + jmp L241 +L226: + pushImm 2269 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L241 + pushImm 2269 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L241 +L241: + ret +L242: + popToSp 4 + popToSp 0 + syscall 4, 55 ; trap_mission_is_lock (0 in, 1 out) + eqz + jz L264 + pushImm 1 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + syscall 4, 54 ; trap_mission_lock (0 in, 0 out) + jmp L264 +L264: + ret +L265: + popToSp 0 + pushImm 30 + gosub 4, L100 + pushFromFSp 0 + pushImm 2 + gosub 4, L242 + ret +L280: + popToSp 0 + pushImm 10 + gosub 4, L100 + pushFromFSp 0 + pushImm 3 + gosub 4, L242 + ret +UNIT_MAIN: + pushFromPWp W0 + gosub 4, L300 + ret +L300: + popToSp 0 + pushFromFSp 0 + gosub 4, L379 +L306: + pushFromFSp 0 + gosub 4, L392 + jz L315 + halt + jmp L306 +L315: + pushFromFSpVal 0 + dup + pushImm 1 + sub + jz L326 + jmp L332 +L326: + pushFromFSpVal 4 + syscall 4, 3 ; trap_mission_complete (1 in, 0 out) + jmp L375 +L332: + dup + pushImm 2 + sub + jz L341 + jmp L347 +L341: + pushFromFSpVal 4 + syscall 4, 16 ; trap_mission_dead_boss (1 in, 0 out) + jmp L375 +L347: + dup + pushImm 3 + sub + jz L356 + jmp L360 +L356: + syscall 4, 11 ; trap_mission_failed (0 in, 0 out) + jmp L375 +L360: + dup + pushImm 4 + sub + jz L369 + jmp L375 +L369: + pushFromFSpVal 4 + syscall 4, 22 ; trap_mission_exit (1 in, 0 out) + jmp L375 +L375: + drop + gosub 4, L402 + ret +L379: + popToSp 0 + pushImm 0 + popToSpVal 0 + pushImm -1 + popToSpVal 4 + ret +L392: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + ret +L402: + halt + jmp L402 +D405: +L405: + ret +TXT406: + db 'btl_attack',0,0 +TXT412: + db 'near',0,0 +TXT415: + db 'btl_short',0 +TXT420: + db 'rvg_normal',0,0 +TXT426: + db 'btl_long',0,0 +TXT431: + db 'rvg_hard',0,0 +TXT436: + db 'rvg_super_hard',0,0 +TXT444: + db 'near_wait',0 +TXT449: + db 'rvg_short',0 +TXT454: + db 'leave',0 +TXT457: + db 'rvg_long',0,0 +TXT462: + db 'rst_normal',0,0 +TXT468: + db 'mode_battle',0 +TXT474: + db 'rst_hard',0,0 +TXT479: + db 'rst_super_hard',0,0 +TXT487: + db 'btl_normal',0,0 +TXT493: + db 'jump start',0,0 +TXT499: + db 'btl_hard',0,0 +TXT504: + db 'jump end',0,0 +TXT509: + db 'btl_super_hard',0,0 + + section .bss +W0: + resb 16 diff --git a/ard/tt07/TT07_WORM_02.bdscript b/ard/tt07/TT07_WORM_02.bdscript new file mode 100644 index 0000000..b20102f --- /dev/null +++ b/ard/tt07/TT07_WORM_02.bdscript @@ -0,0 +1,357 @@ +--- +WorkSize: 32 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 10 + Addr: SIGNAL_CALLBACK +- Key: 3 + Addr: UNIT_MAIN +Name: tt07_free_worm + +--- +; codeLabels: +; codeRevealer: -l 163 -l 512 + section .text +SIGNAL_CALLBACK: + popToSp 0 + popToSp 4 + pushFromFSp 4 + dup + pushImm 2 + sub + jz L33 + jmp L43 +L33: + pushFromPWp W8 + gosub 4, L45 + pushFromPWp W0 + gosub 4, L74 + jmp L43 +L43: + drop + ret +L45: + popToSp 0 + syscall 4, 13 ; trap_mission_pause_timer (0 in, 0 out) + pushFromFSpVal 8 + pushImm 4 + pushFromFSpVal 0 + syscall 4, 26 ; trap_mission_get_timer (1 in, 1 out) + syscall 4, 37 ; trap_score_update (3 in, 1 out) + jz L73 + pushFromFSpVal 0 + syscall 4, 47 ; trap_mission_warning_timer (1 in, 0 out) + pushImm 10 + syscall 0, 65 ; trap_sound_play_system (1 in, 0 out) + jmp L73 +L73: + ret +L74: + popToSp 0 + pushImm 0 + syscall 4, 40 ; trap_mission_get_timer_second (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImm 20 + sub + info + jz L98 + pushFromFSp 0 + gosub 4, L118 + jmp L117 +L98: + pushFromFSp 4 + pushImm 60 + sub + info + jz L113 + pushFromFSp 0 + gosub 4, L298 + jmp L117 +L113: + pushFromFSp 0 + gosub 4, L313 +L117: + ret +L118: + popToSp 0 + pushImm 50 + gosub 4, L133 + pushFromFSp 0 + pushImm 1 + gosub 4, L275 + ret +L133: + popToSp 0 + pushImm 2256 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + jz L149 + pushImm 30 + popToSp 0 + jmp L149 +L149: + pushFromFSp 0 + syscall 1, 280 ; trap_sheet_add_munny (1 in, 1 out) + drop + jmp L274 +D163: +L163: + jmp L165 +L165: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 2000 + sub + msbi + jz L181 + pushImm 2271 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L274 +L181: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 1200 + sub + msbi + jz L207 + pushImm 2274 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L205 + pushImm 2274 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L205 +L205: + jmp L274 +L207: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 800 + sub + msbi + jz L233 + pushImm 2273 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L231 + pushImm 2273 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L231 +L231: + jmp L274 +L233: + syscall 1, 261 ; trap_sheet_munny (0 in, 1 out) + pushImm 200 + sub + msbi + jz L259 + pushImm 2272 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L257 + pushImm 2272 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L257 +L257: + jmp L274 +L259: + pushImm 2269 + syscall 0, 15 ; trap_progress_check_flag (1 in, 1 out) + eqz + jz L274 + pushImm 2269 + syscall 0, 14 ; trap_progress_set_flag (1 in, 0 out) + jmp L274 +L274: + ret +L275: + popToSp 4 + popToSp 0 + syscall 4, 55 ; trap_mission_is_lock (0 in, 1 out) + eqz + jz L297 + pushImm 1 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + syscall 4, 54 ; trap_mission_lock (0 in, 0 out) + jmp L297 +L297: + ret +L298: + popToSp 0 + pushImm 30 + gosub 4, L133 + pushFromFSp 0 + pushImm 2 + gosub 4, L275 + ret +L313: + popToSp 0 + pushImm 10 + gosub 4, L133 + pushFromFSp 0 + pushImm 3 + gosub 4, L275 + ret +UNIT_MAIN: + pushFromPWp W8 + pushImm 13 + pushImm 0 + pushImm 0 + gosub 4, L346 + pushFromPWp W0 + gosub 4, L407 + ret +L346: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + syscall 4, 38 ; trap_score_get (1 in, 1 out) + popToSpVal 8 + pushFromFSpVal 8 + pushImm 1 + pushImm 0 + syscall 4, 37 ; trap_score_update (3 in, 1 out) + drop + pushFromFSp 8 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + pushFromFSpVal 8 + syscall 4, 35 ; trap_score_type (1 in, 1 out) + pushImm 4 + sub + neqz + jz L396 + pushFromFSpVal 4 + syscall 4, 45 ; trap_mission_disable_watch (1 in, 0 out) + jmp L406 +L396: + pushFromFSp 0 + fetchValue 8 + syscall 4, 36 ; trap_score_score (1 in, 1 out) + pushFromFSpVal 4 + syscall 4, 39 ; trap_mission_set_watch (2 in, 0 out) +L406: + ret +L407: + popToSp 0 + pushFromFSp 0 + gosub 4, L486 +L413: + pushFromFSp 0 + gosub 4, L499 + jz L422 + halt + jmp L413 +L422: + pushFromFSpVal 0 + dup + pushImm 1 + sub + jz L433 + jmp L439 +L433: + pushFromFSpVal 4 + syscall 4, 3 ; trap_mission_complete (1 in, 0 out) + jmp L482 +L439: + dup + pushImm 2 + sub + jz L448 + jmp L454 +L448: + pushFromFSpVal 4 + syscall 4, 16 ; trap_mission_dead_boss (1 in, 0 out) + jmp L482 +L454: + dup + pushImm 3 + sub + jz L463 + jmp L467 +L463: + syscall 4, 11 ; trap_mission_failed (0 in, 0 out) + jmp L482 +L467: + dup + pushImm 4 + sub + jz L476 + jmp L482 +L476: + pushFromFSpVal 4 + syscall 4, 22 ; trap_mission_exit (1 in, 0 out) + jmp L482 +L482: + drop + gosub 4, L509 + ret +L486: + popToSp 0 + pushImm 0 + popToSpVal 0 + pushImm -1 + popToSpVal 4 + ret +L499: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + ret +L509: + halt + jmp L509 +D512: +L512: + ret +TXT513: + db 'btl_attack',0,0 +TXT519: + db 'near',0,0 +TXT522: + db 'btl_short',0 +TXT527: + db 'rvg_normal',0,0 +TXT533: + db 'btl_long',0,0 +TXT538: + db 'rvg_hard',0,0 +TXT543: + db 'rvg_super_hard',0,0 +TXT551: + db 'near_wait',0 +TXT556: + db 'rvg_short',0 +TXT561: + db 'leave',0 +TXT564: + db 'rvg_long',0,0 +TXT569: + db 'rst_normal',0,0 +TXT575: + db 'mode_battle',0 +TXT581: + db 'rst_hard',0,0 +TXT586: + db 'rst_super_hard',0,0 +TXT594: + db 'btl_normal',0,0 +TXT600: + db 'jump start',0,0 +TXT606: + db 'btl_hard',0,0 +TXT611: + db 'jump end',0,0 +TXT616: + db 'btl_super_hard',0,0 + + section .bss +W0: + resb 8 +W8: + resb 24 diff --git a/ard/tt08/evt.script b/ard/tt08/evt.script index 62a8c9b..e2374d6 100644 --- a/ard/tt08/evt.script +++ b/ard/tt08/evt.script @@ -6,3 +6,12 @@ AreaSettings 0 -1 SetEvent "905" Type 2 SetJump Type 2 World TT Area 0 Entrance 0 LocalSet 72 FadeType 1 SetPartyMenu 0 + +Program 0x6C +Bgm 114 114 +AreaSettings 15 -1 + SetProgressFlag 0x89B + SetUnk05 0x3 + SetEvent "707" Type 9 + SetJump Type 2 World TT Area 0 Entrance 0 LocalSet 118 FadeType 1 + SetPartyMenu 0 diff --git a/ard/tt09/evt.script b/ard/tt09/evt.script index d12930b..887366c 100644 --- a/ard/tt09/evt.script +++ b/ard/tt09/evt.script @@ -12,3 +12,12 @@ Spawn "a71_" Spawn "b71_" Spawn "c71_" Spawn "971_" + +Program 0x76 +Party DEFAULT +AreaSettings 0 -1 + SetProgressFlag 0x89C + SetEvent "708" Type 2 + SetJump Type 1 World TT Area 9 Entrance 0 LocalSet 0 FadeType 1 + SetInventory 290 291 526 + SetPartyMenu 0 diff --git a/ard/tt23/m_11.yml b/ard/tt23/m_11.yml index 7a951b5..bfefec4 100644 --- a/ard/tt23/m_11.yml +++ b/ard/tt23/m_11.yml @@ -27,6 +27,60 @@ SpawnRange: 0 Level: 0 Medal: 0 + - ObjectId: 0x236 + PositionX: -1250 + PositionY: 0 + PositionZ: 0 + RotationX: 0 + RotationY: 1.5707963705062866 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 + - ObjectId: 0x237 + PositionX: -1350 + PositionY: 0 + PositionZ: 150 + RotationX: 0 + RotationY: 1.5707963705062866 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 + - ObjectId: 0x238 + PositionX: -1350 + PositionY: 0 + PositionZ: -150 + RotationX: 0 + RotationY: 1.5707963705062866 + RotationZ: 0 + SpawnType: 1 + SpawnArgument: 1 + Serial: 12 + Argument1: 0 + Argument2: 0 + ReactionCommand: 0 + SpawnDelay: 0 + Command: 0 + SpawnRange: 0 + Level: 0 + Medal: 0 EventActivators: [] WalkPath: [] ReturnParameters: [] diff --git a/ard/tt33/btl.script b/ard/tt33/btl.script index 1e5faa1..fff677f 100644 --- a/ard/tt33/btl.script +++ b/ard/tt33/btl.script @@ -19,7 +19,7 @@ Unk06 0 BattleLevel 99 Unk1d 4 AreaSettings 1 46 - SetJump Type 1 World MU Area 6 Entrance 1 LocalSet 0 FadeType -1 + SetJump Type 1 World MU Area 7 Entrance 1 LocalSet 0 FadeType -1 SetPartyMenu 0 AreaSettings 1 70 @@ -34,7 +34,7 @@ Unk06 0 BattleLevel 99 Unk1d 4 AreaSettings 1 46 - SetJump Type 1 World BB Area 0 Entrance 4 LocalSet 0 FadeType -1 + SetJump Type 1 World BB Area 4 Entrance 1 LocalSet 0 FadeType -1 SetPartyMenu 0 AreaSettings 1 70 @@ -49,7 +49,7 @@ Unk06 0 BattleLevel 99 Unk1d 4 AreaSettings 1 46 - SetJump Type 1 World LK Area 2 Entrance 1 LocalSet 0 FadeType -1 + SetJump Type 1 World LK Area 13 Entrance 1 LocalSet 0 FadeType -1 SetPartyMenu 0 AreaSettings 1 70 @@ -95,7 +95,7 @@ Unk06 0 BattleLevel 99 Unk1d 4 AreaSettings 1 46 - SetJump Type 1 World CA Area 13 Entrance 1 LocalSet 0 FadeType -1 + SetJump Type 1 World CA Area 10 Entrance 1 LocalSet 0 FadeType -1 SetPartyMenu 0 AreaSettings 1 70 @@ -111,7 +111,7 @@ Unk1d 4 BattleLevel 99 Unk1d 4 AreaSettings 1 46 - SetJump Type 1 World TT Area 22 Entrance 1 LocalSet 0 FadeType -1 + SetJump Type 1 World TT Area 23 Entrance 1 LocalSet 0 FadeType -1 SetPartyMenu 0 AreaSettings 1 70 diff --git a/ard/tt33/map.script b/ard/tt33/map.script index 6782cee..a6c623f 100644 --- a/ard/tt33/map.script +++ b/ard/tt33/map.script @@ -1,10 +1,3 @@ -Program 0x00 -MapVisibility 0x00000001 0x00000000 -Spawn "m_00" -Spawn "m_10" -Spawn "m_11" -Spawn "m_70" - Program 0x01 MapVisibility 0x00000001 0x00000000 Spawn "m_00" diff --git a/limit/jack.bdscript b/limit/jack.bdscript new file mode 100644 index 0000000..47bf751 --- /dev/null +++ b/limit/jack.bdscript @@ -0,0 +1,2543 @@ +--- +WorkSize: 96 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 24 + Addr: LIMIT_ANMATR_EFFECT +- Key: 22 + Addr: LIMIT_START +- Key: 23 + Addr: LIMIT_CALL +Name: limit_jack + +--- +; codeLabels: +; codeRevealer: -l 76 -l 590 -l 973 -l 1218 -l 1670 -l 1710 -l 2696 -l 3171 -l 3370 -l 3707 -l 3906 -l 4260 -l 4413 -l 4582 + section .text +LIMIT_ANMATR_EFFECT: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 4 + dup + pushImm 6 + sub + jz L39 + jmp L50 +L39: + gosub 8, L70 + pushFromPWp W0 + pushImm L76 + gosub 8, L690 + jmp L68 +L50: + dup + pushImm 7 + sub + jz L59 + jmp L68 +L59: + pushFromPWp W0 + pushImm L590 + gosub 8, L690 + jmp L68 +L68: + drop + ret +L70: + pushImm 17 + syscall 6, 47 ; trap_obj_stop_end_all (1 in, 0 out) + ret +D76: +L76: + popToSp 0 + gosub 4, L81 + ret +L81: + pushFromPSp 64 + pushImmf 0 + pushImmf -250 + pushImmf 500 + pushImmf 1 + gosub 28, L519 + pushImm 0 + popToSp 80 + pushImm 8 +L105: + dup + pushFromFSp 80 + sub + info + jnz L278 + pushFromPWp W0 + pushImm 4 + add + pushImm 1055 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 92 + pushFromFSp 92 + pushImmf 187.30328 + pushImmf 500 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromPSp 64 + pushFromPWp W0 + pushImm 4 + add + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 128 + pushFromPSp 128 + memcpyToSp 16, 32 + pushFromPSp 64 + pushImmf 500 + pushImmf 2.1 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + subf + pushImmf 500 + divf + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 48 + pushFromPSp 48 + pushImm 4 + add + pushFromPSp 64 + fetchValue 4 + memcpy 0 + pushFromPSp 48 + pushFromPWp W0 + pushImm 4 + add + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 128 + pushFromPSp 128 + memcpyToSp 16, 48 + pushFromFSp 92 + pushFromPSp 32 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 92 + pushFromPSp 48 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 92 + pushImmf 120 + pushImmf 0 + pushImmf 0 + syscall 2, 62 ; trap_attack_set_time (4 in, 0 out) + pushFromPSp 64 + pushImmf 0.785398 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 64 + pushFromFSp 80 + pushImm 1 + add + popToSp 80 + jmp L105 +L278: + drop + pushFromPSp 96 + pushImmf 120 + gosub 28, L510 + pushFromPWp W0 + pushImm 4 + add + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 0 + pushFromPSp 0 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -450 + addf + memcpy 0 + pushFromPWp W0 + pushImm 4 + add + pushImm 1033 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 88 + pushFromFSp 88 + pushImmf 500 + pushImmf 100 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromPWp W0 + pushImm 4 + add + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -50 + addf + memcpy 0 + pushFromPWp W0 + pushImm 4 + add + pushImm 1056 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 84 + pushFromFSp 84 + pushImmf 500 + pushImmf 100 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromPSp 64 + pushImmf 0 + pushImmf 0 + pushImmf 2.1 + pushImmf 1 + gosub 28, L519 +L420: + pushFromPSp 96 + gosub 28, L546 + eqz + jz L501 + pushFromPSp 64 + pushImmf 0.541052 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 64 + pushFromFSp 88 + pushFromPSp 0 + pushFromPSp 64 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 128 + pushFromPSp 128 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 84 + pushFromPSp 16 + pushFromPSp 64 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 128 + pushFromPSp 128 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + halt + pushFromPSp 96 + gosub 28, L556 + drop + jmp L420 +L501: + pushFromFSp 88 + syscall 2, 13 ; trap_attack_free (1 in, 0 out) + pushFromFSp 84 + syscall 2, 13 ; trap_attack_free (1 in, 0 out) + ret +L510: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 0 + ret +L519: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + pushFromFSp 16 + popToSpVal 0 + pushFromFSp 12 + popToSpVal 4 + pushFromFSp 8 + popToSpVal 8 + pushFromFSp 4 + popToSpVal 12 + ret +D546: +L546: + popToSp 0 + pushFromFSpVal 0 + pushImmf 0 + subf + infoezf + ret +L556: + popToSp 0 + pushImm 0 + popToSp 4 + pushFromFSpVal 0 + pushImmf 0 + subf + supzf + jz L587 + pushFromFSpVal 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSpVal 0 + pushFromFSp 0 + gosub 4, L546 + popToSp 4 + jmp L587 +L587: + pushFromFSp 4 + ret +L590: + popToSp 0 + pushImmf 8 + gosub 12, L668 + pushFromPSpVal 4 + pushImm 1069 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 4 + pushFromPSpVal 4 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -150 + addf + memcpy 0 + pushFromFSp 4 + pushFromPSp 16 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 4 + pushImmf 1000 + pushImmf 0 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromFSp 4 + pushImmf 4 + pushImmf 0 + pushImmf 0 + syscall 2, 62 ; trap_attack_set_time (4 in, 0 out) + ret +L668: + popToSp 0 +L670: + pushFromFSp 0 + pushImmf 0 + subf + supzf + jz L689 + pushFromFSp 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 0 + halt + jmp L670 +L689: + ret +L690: + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushFromFSp 0 + syscall 2, 54 ; trap_limit_start_thread (2 in, 0 out) + ret +LIMIT_START: + popToSp 0 + pushFromPWp W0 + pushFromFSp 0 + gosub 4, L710 + ret +L710: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L738 + pushFromFSp 0 + gosub 4, L2706 + pushFromPSpVal 4 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + pushFromFSp 0 + gosub 4, L2799 + ret +L738: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L812 + pushFromPSpVal 48 + pushImm 406 + pushImm 407 + pushImm 409 + gosub 12, L1097 + pushImm 0 + popToSpVal 80 + pushFromFSp 0 + pushImm 128 + pushImm 96 + pushImm 128 + pushImmf 30 + gosub 12, L1124 + pushFromPSpVal 4 + gosub 12, L1181 + pushFromPSp 16 + pushImmf 1 + gosub 12, L1463 + pushImm 1 + popToSpVal 84 + pushFromPSpVal 4 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 0 + gosub 12, L1483 + ret +L812: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 0 + pushFromPSpVal 4 + pushFromFSp 4 + syscall 2, 48 ; trap_limit_player (1 in, 1 out) + gosub 4, L897 + pushFromPSpVal 20 + pushFromFSp 4 + pushImm 0 + syscall 2, 49 ; trap_limit_friend (2 in, 1 out) + gosub 4, L897 + pushImm 1 + popToSpVal 44 + pushFromPSpVal 4 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 131 ; trap_target_dup (1 in, 1 out) + popToSpVal 36 + pushFromPSpVal 20 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L870 + pushFromPSpVal 20 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 131 ; trap_target_dup (1 in, 1 out) + popToSpVal 40 + jmp L875 +L870: + pushImm 0 + popToSpVal 40 +L875: + pushImm 0 + popToSpVal 64 + pushImm 0 + popToSpVal 68 + pushFromPSpVal 48 + gosub 4, L906 + pushFromFSp 0 + pushImm L973 + gosub 4, L690 + ret +L897: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 4 + ret +L906: + popToSp 0 + pushFromFSp 0 + pushImm 0 + gosub 4, L937 + pushFromFSp 0 + pushImm 0 + gosub 4, L946 + pushFromFSp 0 + pushImm 0 + gosub 4, L955 + pushFromFSp 0 + pushImm 0 + gosub 4, L964 + ret +L937: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 0 + ret +L946: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 4 + ret +L955: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 8 + ret +L964: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 12 + ret +D973: +L973: + popToSp 0 +L975: + pushFromFSpVal 44 + dup + jz L992 + pushFromFSp 0 + fetchValue 0 + syscall 2, 60 ; trap_limit_time (1 in, 1 out) + pushImmf 0 + subf + supzf + eqzv +L992: + jz L1001 + pushFromFSp 0 + gosub 4, L1002 + halt + jmp L975 +L1001: + ret +L1002: + popToSp 0 + pushFromFSp 0 + pushImm 1 + pushFromPSpVal 48 + fetchValue 0 + pushImm 1 + gosub 4, L1047 + pushFromFSp 0 + pushImm 0 + pushFromPSpVal 48 + fetchValue 4 + pushImm 0 + gosub 4, L1047 + pushFromFSp 0 + pushImm 2 + pushFromPSpVal 48 + fetchValue 8 + pushImm 0 + gosub 4, L1047 + ret +L1047: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 8 + pushImm 0 + sub + neqz + dup + jz L1081 + pushFromFSp 4 + eqz + dup + jnz L1080 + pushFromPSpVal 4 + pushFromFSp 8 + pushFromPSpVal 20 + syscall 1, 221 ; trap_obj_can_decide_command (3 in, 1 out) + neqzv +L1080: + eqzv +L1081: + jz L1096 + pushFromFSp 12 + pushFromFSp 8 + pushFromPSpVal 20 + pushImm 1 + syscall 1, 165 ; trap_command_override (4 in, 0 out) + jmp L1096 +L1096: + ret +L1097: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L937 + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L946 + pushFromFSp 0 + pushFromFSp 4 + gosub 8, L955 + ret +L1124: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + syscall 1, 23 ; trap_area_world (0 in, 1 out) + pushImm 13 + sub + eqz + jz L1164 + pushFromFSp 0 + fetchValue 0 + syscall 2, 55 ; trap_limit_light (1 in, 1 out) + pushImm 64 + pushImm 64 + pushImm 64 + pushFromFSp 4 + syscall 1, 183 ; trap_light_set_color (5 in, 0 out) + jmp L1180 +L1164: + pushFromFSp 0 + fetchValue 0 + syscall 2, 55 ; trap_limit_light (1 in, 1 out) + pushFromFSp 16 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + syscall 1, 183 ; trap_light_set_color (5 in, 0 out) +L1180: + ret +L1181: + popToSp 0 + pushImmf 60 + pushImmf 0 + subf + supzf + jz L1217 + pushImm 68 + pushImm L1218 + pushFromFSp 0 + gosub 4, L1395 + popToSp 4 + pushFromFSp 4 + pushImm 64 + add + pushImm 1 + memcpy 0 + jmp L1217 +L1217: + ret +D1218: +L1218: + popToSp 0 + pushFromFSp 0 + gosub 4, L1233 + pushFromFSp 0 + gosub 4, L1267 + pushFromFSp 0 + gosub 4, L1384 + ret +L1233: + popToSp 0 + pushFromFSpVal 16 + pushImm 0 + sub + neqz + dup + jz L1250 + pushFromFSpVal 16 + syscall 0, 50 ; trap_effect_is_active (1 in, 1 out) + eqzv +L1250: + jz L1266 + pushFromFSpVal 16 + syscall 0, 53 ; trap_effect_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + memcpyToSpVal 16, 32 + jmp L1266 +L1266: + ret +L1267: + popToSp 0 + pushFromPSpVal 32 + pushImmf 0 + pushImmf -150 + pushImmf 0 + pushImmf 1 + gosub 4, L519 + pushFromPSpVal 0 + pushImm 16384 + pushFromPSpVal 32 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + memcpyToSpVal 16, 32 + pushFromPSpVal 0 + pushImm 419 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 4 + pushImmf 0 + gosub 4, L668 + pushFromFSp 4 + pushFromPSpVal 32 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 4 + pushImmf 3000 + pushImmf 3000 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromFSp 4 + pushImmf 60 + pushImmf 0 + pushImmf 0 + syscall 2, 62 ; trap_attack_set_time (4 in, 0 out) + pushImmf 60 + gosub 4, L668 + halt + pushFromFSpVal 64 + jz L1369 + gosub 4, L1370 + gosub 4, L1376 + gosub 4, L70 + jmp L1369 +L1369: + ret +L1370: + pushImm 17 + syscall 7, 0 ; trap_enemy_stop_all_start (1 in, 0 out) + ret +D1376: +L1376: + syscall 1, 34 ; trap_event_is_exec (0 in, 1 out) + jz L1383 + halt + jmp L1376 +L1383: + ret +L1384: + popToSp 0 + pushFromFSpVal 48 + syscall 1, 132 ; trap_target_free (1 in, 0 out) + pushFromFSp 0 + syscall 0, 48 ; trap_memory_free (1 in, 0 out) + ret +L1395: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L1420 + popToSp 12 + pushFromFSp 4 + pushFromFSp 12 + syscall 2, 54 ; trap_limit_start_thread (2 in, 0 out) + pushFromFSp 12 + ret +L1420: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + syscall 0, 47 ; trap_memory_alloc (1 in, 1 out) + popToSp 12 + pushFromFSp 12 + pushFromFSp 0 + memcpy 16 + pushFromFSp 12 + pushImm 16 + add + pushImm 0 + memcpy 0 + pushFromFSp 12 + pushImm 48 + add + pushFromFSp 12 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 131 ; trap_target_dup (1 in, 1 out) + memcpy 0 + pushFromFSp 12 + ret +L1463: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushFromFSp 4 + gosub 4, L519 + ret +L1483: + popToSp 0 + pushFromPSpVal 4 + pushFromFSp 0 + gosub 4, L1581 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + fetchValue 0 + pushFromPSpVal 4 + pushImm 253 + pushImmf 0 + syscall 2, 47 ; trap_limit_motion_start (4 in, 1 out) + drop + pushFromPSpVal 4 + pushImm L1670 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromFSp 0 + fetchValue 0 + pushFromPSpVal 20 + pushImm 253 + pushImmf 0 + syscall 2, 47 ; trap_limit_motion_start (4 in, 1 out) + drop + pushFromPSpVal 20 + pushImm L2696 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 20 + pushFromPSpVal 4 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromFSp 0 + fetchValue 0 + pushFromPAi L4737 ; ___ai 00 (L4737) + pushImmf 500 + pushImm 0 + syscall 2, 50 ; trap_limit_camera_start (4 in, 0 out) + ret +L1581: + popToSp 0 + pushFromPSpVal 4 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 80 + pushFromPSp 80 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -100 + addf + memcpy 0 + pushFromPSp 80 + memcpyToSp 16, 64 + pushFromPSp 64 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 40000 + addf + memcpy 0 + pushFromPSp 16 + pushFromPSp 80 + pushFromPSp 64 + pushImm 65536 + syscall 6, 51 ; trap_bghit_check_line (4 in, 1 out) + jz L1655 + pushFromPSp 16 + syscall 6, 54 ; trap_bghit_get_cross_pos (1 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 48 + jmp L1667 +L1655: + pushFromPSpVal 4 + syscall 1, 98 ; trap_obj_step_pos (1 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 48 +L1667: + pushFromPSp 48 + ret +D1670: +L1670: + popToSp 0 + pushFromFSp 0 + pushImm 10 + gosub 4, L1680 + ret +L1680: + popToSp 4 + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 8 +L1690: + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L1722 + eqz + jz L1715 + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L1712 + jmp L1715 +L1710: + jmp L1712 +L1712: + halt + jmp L1690 +L1715: + pushFromFSp 0 + pushFromFSp 4 + gosub 8, L1745 + ret +L1722: + popToSp 0 + popToSp 4 + pushFromFSp 4 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + dup + jnz L1744 + pushFromFSp 0 + pushFromFSp 4 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + sub + neqz + neqzv +L1744: + ret +L1745: + popToSp 4 + popToSp 0 + pushFromPWp W0 + fetchValue 0 + pushFromFSp 0 + pushImm 252 + pushImmf 0 + syscall 2, 47 ; trap_limit_motion_start (4 in, 1 out) + drop + pushFromPWp W0 + fetchValue 0 + pushFromFSp 4 + pushFromFSp 0 + pushImm 1 + syscall 2, 59 ; trap_limit_effect_start_bind (4 in, 1 out) + drop + pushFromPWp W0 + pushFromFSp 0 + gosub 20, L1904 + pushFromPSp 32 + pushImmf 16 + pushImmf -0.1 + pushImmf 0 + gosub 20, L1993 + pushFromPSp 56 + gosub 20, L2119 +L1801: + pushFromPWp W0 + fetchValue 44 + jz L1891 + pushFromPWp W0 + pushImm 4 + add + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + eqz + jz L1876 + syscall 1, 3 ; trap_sysobj_player (0 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 113 ; trap_player_get_movement (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + fetchValue 12 + pushImmf 0.1 + subf + supzf + jz L1874 + pushFromFSp 0 + pushFromPSp 16 + pushFromPSp 16 + fetchValue 12 + pushImmf 10 + mulf + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + pushFromFSp 0 + pushFromPSp 16 + pushImmf 0.392699 + syscall 1, 80 ; trap_obj_turn_dir (3 in, 1 out) + drop + jmp L1874 +L1874: + jmp L1876 +L1876: + pushFromPSp 32 + pushFromFSp 0 + gosub 20, L2132 + pushFromPSp 56 + pushFromFSp 0 + gosub 20, L2493 + halt + jmp L1801 +L1891: + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + ret +L1904: + popToSp 4 + popToSp 0 + pushFromFSpVal 80 + jz L1953 + pushFromFSp 4 + pushFromPSpVal 4 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + eqz + jz L1937 + pushFromFSp 4 + pushImm 14 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + pushFromFSp 4 + pushImm 16 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + jmp L1951 +L1937: + pushFromFSp 4 + pushImm 7 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + pushFromFSp 4 + pushImm 6 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) +L1951: + jmp L1992 +L1953: + pushFromFSp 4 + pushFromPSpVal 4 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + eqz + jz L1978 + pushFromFSp 4 + pushImm 16 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + pushFromFSp 4 + pushImm 14 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + jmp L1992 +L1978: + pushFromFSp 4 + pushImm 6 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + pushFromFSp 4 + pushImm 7 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) +L1992: + ret +L1993: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromPSpVal 0 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + pushImmf 0 + gosub 8, L2024 + pushFromFSp 12 + popToSpVal 16 + pushImmf 0 + popToSpVal 20 + ret +L2024: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + pushFromFSp 0 + pushFromFSp 16 + pushFromFSp 12 + pushFromFSp 8 + gosub 8, L2051 + pushFromFSp 0 + pushFromFSp 4 + gosub 8, L2105 + ret +L2051: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L2078 + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L2087 + pushFromFSp 0 + pushFromFSp 4 + gosub 8, L2096 + ret +L2078: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 8 + ret +L2087: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 4 + ret +L2096: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 0 + ret +L2105: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushImm 12 + add + pushFromFSp 4 + memcpy 0 + ret +L2119: + popToSp 0 + pushImmf 0 + popToSpVal 0 + pushImm 0 + popToSpVal 4 + ret +L2132: + popToSp 4 + popToSp 0 + pushFromPWp W0 + pushFromFSp 4 + gosub 12, L2311 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 4 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSpVal 20 + pushFromPSp 16 + fetchValue 4 + subf + syscall 0, 23 ; trap_absf (1 in, 1 out) + pushImmf 10 + subf + supzf + jz L2201 + pushFromFSp 0 + pushFromFSpVal 20 + pushFromPSp 16 + fetchValue 4 + subf + syscall 0, 23 ; trap_absf (1 in, 1 out) + pushImmf 0.5 + mulf + gosub 12, L2078 + jmp L2201 +L2201: + pushFromPSp 16 + fetchValue 4 + popToSpVal 20 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + fetchValue 12 + pushImmf 40 + subf + supzf + jz L2231 + pushFromFSp 0 + pushFromFSpVal 16 + gosub 12, L2078 + jmp L2231 +L2231: + pushFromFSpVal 20 + pushFromFSp 0 + gosub 12, L2488 + subf + supzf + jz L2261 + pushFromFSp 0 + pushFromFSp 0 + gosub 12, L2488 + pushImmf 1 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + pushFromFSpVal 16 + gosub 12, L2414 + gosub 12, L2078 + jmp L2261 +L2261: + pushFromPSp 16 + fetchValue 12 + pushFromFSp 0 + gosub 12, L2488 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + subf + infzf + jz L2296 + pushFromFSp 0 + pushFromPSp 16 + fetchValue 12 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + divf + gosub 12, L2078 + pushFromFSp 0 + pushImmf 0 + gosub 12, L2096 + jmp L2296 +L2296: + pushFromFSp 0 + gosub 12, L2469 + pushFromFSp 4 + pushFromPSp 16 + pushFromFSp 0 + gosub 12, L2488 + syscall 1, 89 ; trap_obj_move_request (3 in, 0 out) + ret +L2311: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 12, L1581 + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromFSpVal 80 + jz L2372 + pushFromFSp 4 + pushFromPSpVal 4 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + eqz + jz L2356 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 180 + subf + memcpy 0 + jmp L2370 +L2356: + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 0 + subf + memcpy 0 +L2370: + jmp L2411 +L2372: + pushFromFSp 4 + pushFromPSpVal 4 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + eqz + jz L2397 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 0 + subf + memcpy 0 + jmp L2411 +L2397: + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 180 + subf + memcpy 0 +L2411: + pushFromPSp 16 + ret +L2414: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + pushFromFSp 4 + addf + popToSp 8 + pushFromFSp 4 + pushImmf 0 + subf + infzf + jz L2452 + pushFromFSp 8 + pushFromFSp 0 + subf + infzf + jz L2450 + pushFromFSp 0 + popToSp 8 + jmp L2450 +L2450: + jmp L2466 +L2452: + pushFromFSp 8 + pushFromFSp 0 + subf + supzf + jz L2466 + pushFromFSp 0 + popToSp 8 + jmp L2466 +L2466: + pushFromFSp 8 + ret +L2469: + popToSp 0 + pushFromFSpVal 8 + pushFromFSpVal 8 + pushFromFSpVal 4 + mulf + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + pushFromFSpVal 0 + gosub 4, L2414 + popToSpVal 8 + ret +L2488: + popToSp 0 + pushFromFSpVal 8 + ret +L2493: + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushFromPWp W0 + pushImm 4 + add + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L2695 + pushFromPWp W0 + pushImm 4 + add + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 4 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + popToSp 32 + pushFromFSpVal 4 + eqz + dup + jz L2572 + pushFromFSp 32 + pushImmf 10 + subf + supzf + eqzv +L2572: + jz L2581 + pushImm 1 + popToSpVal 4 + jmp L2581 +L2581: + pushFromFSpVal 4 + jz L2688 + pushFromPWp W0 + pushImm 4 + add + syscall 1, 62 ; trap_obj_get_moved (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + popToSp 36 + pushFromFSpVal 0 + pushFromFSp 36 + subf + infzf + dup + jnz L2619 + pushFromFSp 32 + pushImmf 30 + subf + supzf + neqzv +L2619: + jz L2638 + pushFromFSpVal 0 + pushImmf 2 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + pushImmf 10 + gosub 12, L2414 + popToSpVal 0 + jmp L2653 +L2638: + pushFromFSpVal 0 + pushImmf -0.5 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + pushImmf 0 + gosub 12, L2414 + popToSpVal 0 +L2653: + pushFromFSpVal 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + pushFromFSp 32 + subf + supzf + jz L2678 + pushFromFSp 32 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + divf + popToSpVal 0 + pushImm 0 + popToSpVal 4 + jmp L2678 +L2678: + pushFromFSp 4 + pushFromPSp 16 + pushFromFSpVal 0 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + jmp L2693 +L2688: + pushImmf 0 + popToSpVal 0 +L2693: + jmp L2695 +L2695: + ret +L2696: + popToSp 0 + pushFromFSp 0 + pushImm 9 + gosub 4, L1680 + ret +L2706: + popToSp 0 + halt + gosub 4, L70 +L2711: + pushFromFSpVal 44 + dup + jz L2728 + pushFromPWp W0 + fetchValue 0 + syscall 2, 60 ; trap_limit_time (1 in, 1 out) + pushImmf 0 + subf + supzf + eqzv +L2728: + jz L2748 + pushFromFSp 0 + gosub 4, L2749 + jz L2745 + pushFromPSpVal 48 + pushImm 408 + gosub 4, L2776 + jmp L2745 +L2745: + halt + jmp L2711 +L2748: + ret +L2749: + popToSp 0 + pushFromFSp 0 + gosub 4, L2768 + pushImm 5 + sub + msbi + dup + jnz L2767 + pushImm 0 + neqzv +L2767: + ret +L2768: + popToSp 0 + pushFromFSpVal 64 + pushFromFSpVal 68 + add + ret +L2776: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L937 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L946 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L964 + ret +L2799: + popToSp 0 + pushImm 0 + popToSpVal 44 +L2806: + pushFromFSp 0 + fetchValue 0 + syscall 2, 63 ; trap_limit_reference (1 in, 1 out) + pushImm 0 + sub + ipos + jz L2822 + halt + jmp L2806 +L2822: + halt + pushFromFSp 0 + gosub 4, L2828 + ret +L2828: + popToSp 0 + pushFromFSpVal 36 + pushImm 0 + sub + neqz + jz L2850 + pushFromFSpVal 36 + syscall 1, 132 ; trap_target_free (1 in, 0 out) + pushImm 0 + popToSpVal 36 + jmp L2850 +L2850: + pushFromFSpVal 40 + pushImm 0 + sub + neqz + jz L2870 + pushFromFSpVal 40 + syscall 1, 132 ; trap_target_free (1 in, 0 out) + pushImm 0 + popToSpVal 40 + jmp L2870 +L2870: + gosub 4, L70 + ret +LIMIT_CALL: + popToSp 0 + pushFromPWp W0 + pushFromFSp 0 + gosub 4, L2882 + ret +L2882: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L2971 + pushFromFSp 4 + dup + pushImm 406 + sub + jz L2903 + jmp L2913 +L2903: + pushFromFSp 0 + gosub 4, L3618 + pushFromFSp 0 + gosub 4, L3056 + jmp L2969 +L2913: + dup + pushImm 407 + sub + jz L2922 + jmp L2932 +L2922: + pushFromFSp 0 + gosub 4, L3618 + pushFromFSp 0 + gosub 4, L3645 + jmp L2969 +L2932: + dup + pushImm 408 + sub + jz L2941 + jmp L2953 +L2941: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L3037 + pushFromFSp 0 + gosub 4, L4137 + jmp L2969 +L2953: + dup + pushImm 409 + sub + jz L2962 + jmp L2969 +L2962: + pushImm 0 + popToSpVal 44 + jmp L2969 +L2969: + drop + ret +L2971: + popToSp 4 + popToSp 0 + pushFromFSp 4 + dup + pushFromPSpVal 48 + fetchValue 0 + sub + jz L2987 + jmp L2997 +L2987: + pushFromFSpVal 64 + pushImm 1 + add + popToSpVal 64 + jmp L3017 +L2997: + dup + pushFromPSpVal 48 + fetchValue 4 + sub + jz L3007 + jmp L3017 +L3007: + pushFromFSpVal 68 + pushImm 1 + add + popToSpVal 68 + jmp L3017 +L3017: + drop + pushFromFSp 4 + pushFromPSpVal 48 + fetchValue 12 + sub + eqz + jz L3036 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L3037 + jmp L3036 +L3036: + ret +L3037: + popToSp 4 + popToSp 0 + pushFromPSp 8 + pushFromPSpVal 4 + fetchValue 4 + gosub 8, L897 + pushFromPSp 8 + pushFromFSp 4 + syscall 1, 263 ; trap_player_set_exec_rc (2 in, 0 out) + ret +L3056: + popToSp 0 + pushFromFSp 0 + gosub 4, L3118 + pushFromFSp 0 + fetchValue 0 + pushFromPSpVal 4 + pushImm 254 + pushImmf 0 + syscall 2, 47 ; trap_limit_motion_start (4 in, 1 out) + drop + pushFromPSpVal 4 + pushImm L3171 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromFSp 0 + fetchValue 0 + pushFromPSpVal 20 + pushImm 254 + pushImmf 0 + syscall 2, 47 ; trap_limit_motion_start (4 in, 1 out) + drop + pushFromPSpVal 20 + pushImm L3370 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushImm 1 + popToSpVal 80 + ret +L3118: + popToSp 0 + pushFromFSp 0 + pushImm 406 + gosub 4, L3158 + jz L3144 + pushFromPSpVal 48 + pushImm 407 + pushImm 406 + pushImm 409 + gosub 4, L1097 + jmp L3157 +L3144: + pushFromPSpVal 48 + pushImm 406 + pushImm 407 + pushImm 409 + gosub 4, L1097 +L3157: + ret +L3158: + popToSp 4 + popToSp 0 + pushFromPSpVal 48 + fetchValue 0 + pushFromFSp 4 + sub + eqz + ret +D3171: +L3171: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 + pushFromPSp 8 + pushImmf 32 + pushImmf -0.1 + pushImmf 0 + gosub 12, L1993 +L3192: + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L1722 + eqz + jz L3229 + pushFromPSp 8 + pushFromFSp 0 + gosub 12, L2132 + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L3226 + pushFromFSp 0 + pushFromPWp W0 + fetchValue 0 + gosub 12, L3237 + jmp L3226 +L3226: + halt + jmp L3192 +L3229: + pushFromFSp 0 + pushImm 10 + gosub 12, L1745 + ret +L3237: + popToSp 0 + popToSp 4 + pushFromPSp 16 + pushImmf 0 + pushImmf -160 + pushImmf -170 + pushImmf 1 + gosub 12, L519 + pushFromFSp 4 + pushImm 16384 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromFSp 0 + pushImm 1 + pushFromPSp 16 + pushImm 1 + syscall 2, 58 ; trap_limit_effect_start_pos (4 in, 1 out) + drop + pushFromFSp 4 + pushImm 1031 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 8 + pushFromPSp 16 + dup + fetchValue 0 + pushImmf 0 + addf + memcpy 0 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -40 + addf + memcpy 0 + pushFromPSp 16 + pushImm 8 + add + dup + fetchValue 0 + pushImmf 0 + addf + memcpy 0 + pushFromFSp 8 + pushImmf 500 + pushImmf 70 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromFSp 8 + pushFromPSp 16 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 8 + pushImmf 100 + pushImmf 200 + pushImmf 0 + syscall 2, 62 ; trap_attack_set_time (4 in, 0 out) + ret +L3370: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 + pushFromPSp 8 + pushImmf 32 + pushImmf -0.1 + pushImmf 0 + gosub 12, L1993 + pushFromFSp 0 + pushFromPWp W0 + pushImm 4 + add + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) +L3408: + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L1722 + eqz + jz L3477 + pushFromPSp 8 + pushFromFSp 0 + gosub 12, L2132 + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L3442 + pushFromFSp 0 + pushFromPWp W0 + fetchValue 0 + gosub 12, L3485 + jmp L3442 +L3442: + pushFromFSp 0 + pushImm 1 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L3474 + pushFromFSp 0 + pushFromPWp W0 + pushImm 4 + add + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf 0 + syscall 1, 80 ; trap_obj_turn_dir (3 in, 1 out) + drop + jmp L3474 +L3474: + halt + jmp L3408 +L3477: + pushFromFSp 0 + pushImm 9 + gosub 12, L1745 + ret +L3485: + popToSp 0 + popToSp 4 + pushFromPSp 16 + pushImmf 0 + pushImmf -100 + pushImmf -170 + pushImmf 1 + gosub 12, L519 + pushFromFSp 4 + pushImm 16384 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromFSp 0 + pushImm 2 + pushFromPSp 16 + pushImm 1 + syscall 2, 58 ; trap_limit_effect_start_pos (4 in, 1 out) + drop + pushFromFSp 4 + pushImm 1027 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 8 + pushFromPSp 16 + dup + fetchValue 0 + pushImmf 0 + addf + memcpy 0 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 50 + addf + memcpy 0 + pushFromPSp 16 + pushImm 8 + add + dup + fetchValue 0 + pushImmf 0 + addf + memcpy 0 + pushFromFSp 8 + pushImmf 400 + pushImmf 60 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromFSp 8 + pushFromPSp 16 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 8 + pushImmf 40 + pushImmf 60 + pushImmf 0 + syscall 2, 62 ; trap_attack_set_time (4 in, 0 out) + ret +L3618: + popToSp 0 + pushFromFSpVal 84 + jz L3635 + pushFromPSpVal 20 + syscall 1, 207 ; trap_camera_watch (1 in, 0 out) + pushImm 0 + popToSpVal 84 + jmp L3644 +L3635: + pushFromPSpVal 4 + syscall 1, 207 ; trap_camera_watch (1 in, 0 out) + pushImm 1 + popToSpVal 84 +L3644: + ret +L3645: + popToSp 0 + pushFromFSp 0 + gosub 4, L3118 + pushFromFSp 0 + fetchValue 0 + pushFromPSpVal 4 + pushImm 255 + pushImmf 0 + syscall 2, 47 ; trap_limit_motion_start (4 in, 1 out) + drop + pushFromPSpVal 4 + pushImm L3707 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromFSp 0 + fetchValue 0 + pushFromPSpVal 20 + pushImm 255 + pushImmf 0 + syscall 2, 47 ; trap_limit_motion_start (4 in, 1 out) + drop + pushFromPSpVal 20 + pushImm L3906 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushImm 0 + popToSpVal 80 + ret +D3707: +L3707: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 + pushFromPSp 8 + pushImmf 32 + pushImmf -0.1 + pushImmf 0 + gosub 12, L1993 +L3728: + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L1722 + eqz + jz L3765 + pushFromPSp 8 + pushFromFSp 0 + gosub 12, L2132 + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L3762 + pushFromFSp 0 + pushFromPWp W0 + fetchValue 0 + gosub 12, L3773 + jmp L3762 +L3762: + halt + jmp L3728 +L3765: + pushFromFSp 0 + pushImm 10 + gosub 12, L1745 + ret +L3773: + popToSp 0 + popToSp 4 + pushFromPSp 16 + pushImmf 0 + pushImmf -100 + pushImmf -170 + pushImmf 1 + gosub 12, L519 + pushFromFSp 4 + pushImm 16384 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromFSp 0 + pushImm 0 + pushFromPSp 16 + pushImm 1 + syscall 2, 58 ; trap_limit_effect_start_pos (4 in, 1 out) + drop + pushFromFSp 4 + pushImm 1032 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 8 + pushFromPSp 16 + dup + fetchValue 0 + pushImmf 0 + addf + memcpy 0 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 50 + addf + memcpy 0 + pushFromPSp 16 + pushImm 8 + add + dup + fetchValue 0 + pushImmf 0 + addf + memcpy 0 + pushFromFSp 8 + pushImmf 400 + pushImmf 60 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromFSp 8 + pushFromPSp 16 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 8 + pushImmf 40 + pushImmf 60 + pushImmf 0 + syscall 2, 62 ; trap_attack_set_time (4 in, 0 out) + ret +L3906: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 + pushFromPSp 8 + pushImmf 32 + pushImmf -0.1 + pushImmf 0 + gosub 12, L1993 +L3927: + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L1722 + eqz + jz L3996 + pushFromPSp 8 + pushFromFSp 0 + gosub 12, L2132 + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L3961 + pushFromFSp 0 + pushFromPWp W0 + fetchValue 0 + gosub 12, L4004 + jmp L3961 +L3961: + pushFromFSp 0 + pushImm 1 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L3993 + pushFromFSp 0 + pushFromPWp W0 + pushImm 4 + add + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf 0 + syscall 1, 80 ; trap_obj_turn_dir (3 in, 1 out) + drop + jmp L3993 +L3993: + halt + jmp L3927 +L3996: + pushFromFSp 0 + pushImm 9 + gosub 12, L1745 + ret +L4004: + popToSp 0 + popToSp 4 + pushFromPSp 16 + pushImmf 0 + pushImmf -160 + pushImmf -170 + pushImmf 1 + gosub 12, L519 + pushFromFSp 4 + pushImm 16384 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromFSp 0 + pushImm 3 + pushFromPSp 16 + pushImm 1 + syscall 2, 58 ; trap_limit_effect_start_pos (4 in, 1 out) + drop + pushFromFSp 4 + pushImm 1028 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 8 + pushFromPSp 16 + dup + fetchValue 0 + pushImmf 0 + addf + memcpy 0 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -40 + addf + memcpy 0 + pushFromPSp 16 + pushImm 8 + add + dup + fetchValue 0 + pushImmf 0 + addf + memcpy 0 + pushFromFSp 8 + pushImmf 500 + pushImmf 70 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromFSp 8 + pushFromPSp 16 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 8 + pushImmf 30 + pushImmf 200 + pushImmf 0 + syscall 2, 62 ; trap_attack_set_time (4 in, 0 out) + ret +L4137: + popToSp 0 + gosub 4, L1370 + pushFromPSpVal 4 + pushImmf 500 + pushImm 1 + syscall 1, 220 ; trap_obj_move_to_space (3 in, 0 out) + pushFromPSpVal 4 + pushFromFSp 0 + gosub 4, L1581 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + fetchValue 0 + pushFromPSpVal 4 + pushImm 256 + pushImmf 0 + syscall 2, 47 ; trap_limit_motion_start (4 in, 1 out) + drop + pushFromPSpVal 4 + pushImm L4260 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromFSp 0 + fetchValue 0 + pushFromPSpVal 20 + pushImm 256 + pushImmf 0 + syscall 2, 47 ; trap_limit_motion_start (4 in, 1 out) + drop + pushFromPSpVal 20 + pushImm L4582 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 20 + pushFromPSpVal 4 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromFSp 0 + fetchValue 0 + pushFromPAi L4674 ; ___ai 10 (L4674) + pushImmf 500 + pushImm 0 + syscall 2, 50 ; trap_limit_camera_start (4 in, 0 out) + pushImm 0 + eqz + jz L4259 + pushImm 0 + popToSpVal 44 + jmp L4259 +L4259: + ret +D4260: +L4260: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 +L4268: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1722 + eqz + jz L4295 + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L4292 + pushFromFSp 0 + gosub 4, L4376 + jmp L4292 +L4292: + halt + jmp L4268 +L4295: + pushFromPWp W0 + fetchValue 0 + pushFromPAi L4686 ; ___ai 20 (L4686) + pushImmf 500 + pushImm 0 + syscall 2, 50 ; trap_limit_camera_start (4 in, 0 out) + pushFromFSp 0 + pushFromPWp W0 + gosub 4, L1581 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPWp W0 + pushImm 20 + add + pushFromFSp 0 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromPWp W0 + fetchValue 0 + pushFromFSp 0 + pushImm 257 + pushImmf 0 + syscall 2, 47 ; trap_limit_motion_start (4 in, 1 out) + drop + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + gosub 4, L4531 + ret +L4376: + popToSp 0 + pushImmf 10 + pushImmf 0 + subf + supzf + jz L4412 + pushImm 68 + pushImm L4413 + pushFromFSp 0 + gosub 4, L1395 + popToSp 4 + pushFromFSp 4 + pushImm 64 + add + pushImm 1 + memcpy 0 + jmp L4412 +L4412: + ret +L4413: + popToSp 0 + pushFromFSp 0 + gosub 4, L1233 + pushFromFSp 0 + gosub 4, L4428 + pushFromFSp 0 + gosub 4, L1384 + ret +L4428: + popToSp 0 + pushFromPSpVal 32 + pushImmf 0 + pushImmf 100 + pushImmf 0 + pushImmf 1 + gosub 4, L519 + pushFromPSpVal 0 + pushImm 16384 + pushFromPSpVal 32 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + memcpyToSpVal 16, 32 + pushFromPSpVal 0 + pushImm 424 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 4 + pushImmf 0 + gosub 4, L668 + pushFromFSp 4 + pushFromPSpVal 32 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 4 + pushImmf 3000 + pushImmf 3000 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromFSp 4 + pushImmf 10 + pushImmf 0 + pushImmf 0 + syscall 2, 62 ; trap_attack_set_time (4 in, 0 out) + pushImmf 10 + gosub 4, L668 + halt + pushFromFSpVal 64 + jz L4530 + gosub 4, L1370 + gosub 4, L1376 + gosub 4, L70 + jmp L4530 +L4530: + ret +L4531: + popToSp 0 + pushFromPSp 16 + pushImmf 1 + gosub 12, L1463 + pushFromFSp 0 + pushFromPSp 16 + gosub 12, L4568 + pushFromFSp 0 + pushImmf 0 + syscall 1, 128 ; trap_obj_sysjump (2 in, 0 out) + pushFromFSp 0 + pushImm -1 + syscall 1, 179 ; trap_obj_set_fall_motion (2 in, 0 out) + pushFromFSp 0 + pushImm -1 + syscall 1, 180 ; trap_obj_set_land_motion (2 in, 0 out) + ret +L4568: + popToSp 4 + popToSp 0 + pushFromFSpVal 4 + pushImm 32 + add + pushFromFSp 4 + memcpy 16 + ret +L4582: + popToSp 0 + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + gosub 4, L4634 + drop + pushFromPWp W0 + fetchValue 0 + pushFromFSp 0 + pushImm 257 + pushImmf 0 + syscall 2, 47 ; trap_limit_motion_start (4 in, 1 out) + drop + pushFromFSp 0 + gosub 4, L4531 + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + gosub 4, L4634 + drop + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + ret +L4634: + popToSp 0 + popToSp 4 +L4638: + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L1722 + eqz + jz L4650 + halt + jmp L4638 +L4650: + pushFromFSp 4 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + ret +TXT4657: + db 'btl_attack',0,0 +TXT4663: + db 'btl_short',0 +TXT4668: + db 'rvg_normal',0,0 +L4674: +TXT4674: + db '10',0,0 +TXT4676: + db 'btl_long',0,0 +TXT4681: + db 'rvg_hard',0,0 +TXT4686: +L4686: + db '20',0,0 +TXT4688: + db 'rvg_super_hard',0,0 +TXT4696: + db 'jump start',0,0 +TXT4702: + db 'rvg_short',0 +TXT4707: + db 'jump end',0,0 +TXT4712: + db 'rvg_long',0,0 +TXT4717: + db 'rst_normal',0,0 +TXT4723: + db 'leave',0 +TXT4726: + db 'mode_battle',0 +TXT4732: + db 'rst_hard',0,0 +L4737: +TXT4737: + db '00',0,0 +TXT4739: + db 'rst_super_hard',0,0 +TXT4747: + db 'btl_normal',0,0 +TXT4753: + db 'btl_hard',0,0 +TXT4758: + db 'btl_super_hard',0,0 + + section .bss +W0: + resb 96 diff --git a/mod.yml b/mod.yml index b0d44bc..35aef55 100644 --- a/mod.yml +++ b/mod.yml @@ -1,4 +1,4 @@ -title: GoA ROM Edition v1.53.4 +title: GoA ROM Edition v1.53.5 description: GoA, but with a lot of stuff done through ROM editing to reduce workload on Lua. assets: #Lua Script @@ -1392,6 +1392,102 @@ assets: method: copy source: - name: worl.bin +#Dance Call Experiment crash fix +- name: limit/fm/jack.bar + method: binarc + source: + - name: limi + type: bdx + method: bdscript + source: + - name: limit/jack.bdscript +- name: limit/us/jack.bar + multi: + - name: limit/fr/jack.bar + - name: limit/gr/jack.bar + - name: limit/it/jack.bar + - name: limit/sp/jack.bar + platform: pc + method: binarc + source: + - name: limi + type: bdx + method: bdscript + source: + - name: limit/jack.bdscript +#Proper Xemnas II Dome Skip +- name: obj/B_EX170_LAST.mdlx + method: binarc + source: + - name: b_ex + type: bdx + method: bdscript + source: + - name: obj/B_EX170_LAST.bdscript +- name: obj/B_EX170_LAST_LV99.mdlx + method: binarc + source: + - name: b_ex + type: bdx + method: bdscript + source: + - name: obj/B_EX170_LAST_LV99.bdscript +- name: remastered/obj/B_EX170_LAST.mdlx/-0.dds + multi: + - name: remastered/obj/B_EX170_LAST_LV99.mdlx/-0.dds + platform: pc + method: copy + source: + - name: remastered/obj/B_EX170_LAST.mdlx/-0.dds + type: internal +- name: remastered/obj/B_EX170_LAST.mdlx/-1.dds + multi: + - name: remastered/obj/B_EX170_LAST_LV99.mdlx/-1.dds + platform: pc + method: copy + source: + - name: remastered/obj/B_EX170_LAST.mdlx/-1.dds + type: internal +- name: remastered/obj/B_EX170_LAST.mdlx/-2.dds + multi: + - name: remastered/obj/B_EX170_LAST_LV99.mdlx/-2.dds + platform: pc + method: copy + source: + - name: remastered/obj/B_EX170_LAST.mdlx/-2.dds + type: internal +- name: remastered/obj/B_EX170_LAST.mdlx/-3.dds + multi: + - name: remastered/obj/B_EX170_LAST_LV99.mdlx/-3.dds + platform: pc + method: copy + source: + - name: remastered/obj/B_EX170_LAST.mdlx/-3.dds + type: internal +- name: remastered/obj/B_EX170_LAST.mdlx/-4.dds + multi: + - name: remastered/obj/B_EX170_LAST_LV99.mdlx/-4.dds + platform: pc + method: copy + source: + - name: remastered/obj/B_EX170_LAST.mdlx/-6.dds + type: internal +- name: remastered/obj/B_EX170_LAST.mdlx/-5.dds + multi: + - name: remastered/obj/B_EX170_LAST_LV99.mdlx/-5.dds + platform: pc + method: copy + source: + - name: remastered/obj/B_EX170_LAST.mdlx/-4.dds + type: internal +- name: remastered/obj/B_EX170_LAST.mdlx/-6.dds + multi: + - name: remastered/obj/B_EX170_LAST_LV99.mdlx/-6.dds + platform: pc + method: copy + source: + - name: remastered/obj/B_EX170_LAST.mdlx/-5.dds + type: internal #Proper Fast Oogie Boogie - name: obj/B_NM000.mdlx method: binarc @@ -1431,7 +1527,7 @@ assets: source: - name: remastered/obj/B_NM000.mdlx/-4.dds type: internal -#Marluxia HUD (Hide if Vanilla) +#Hide Marluxia HUD if vanilla - name: obj/N_CM000_BTL.mdlx method: binarc source: @@ -1491,7 +1587,7 @@ assets: method: bdscript source: - name: obj/F_HB130.bdscript -#Remove Bulky Vendors 2nd Visit Requirements (trap_progress_is_second -> trap_area_battle_set) +#Remove Bulky Vendors 2nd Visit Requirements - name: obj/F_AL050.mdlx method: binarc source: @@ -4621,7 +4717,7 @@ assets: method: areadatascript source: - name: ard/tt07/evt.script -- name: ard/tt08.ard #Station Plaza (Prevent Promise Charm Removal) +- name: ard/tt08.ard #Station Plaza (Move Station Fight Popup & Prevent Promise Charm Removal) multi: - name: ard/jp/tt08.ard - name: ard/us/tt08.ard @@ -4636,7 +4732,7 @@ assets: method: areadatascript source: - name: ard/tt08/evt.script -- name: ard/tt09.ard #Central Station (Drive Refill) +- name: ard/tt09.ard #Central Station (Move Station Fight Popup & Drive Refill) multi: - name: ard/jp/tt09.ard - name: ard/us/tt09.ard @@ -4881,8 +4977,8 @@ assets: method: areadatascript source: - name: ard/tt41/evt.script -#MSN Editing -- name: msn/jp/LK05_MS201.bar #Hyenas II (Fast Hyenas) +#Fast Hyenas II +- name: msn/jp/LK05_MS201.bar method: binarc source: - name: LK05 @@ -4905,8 +5001,13 @@ assets: source: - name: ard/lk05/LK05_MS201.bin - name: remastered/msn/jp/LK05_MS201.bar/JP_LK05_MS201_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/LK05_MS201.bar/JP_LK05_MS201_bar0.png + type: internal +- name: remastered/msn/us/LK05_MS201.bar/US_LK05_MS201_bar0.png multi: - - name: remastered/msn/us/LK05_MS201.bar/US_LK05_MS201_bar0.png - name: remastered/msn/fr/LK05_MS201.bar/FR_LK05_MS201_bar0.png - name: remastered/msn/gr/LK05_MS201.bar/GR_LK05_MS201_bar0.png - name: remastered/msn/it/LK05_MS201.bar/IT_LK05_MS201_bar0.png @@ -4916,7 +5017,8 @@ assets: source: - name: remastered/msn/us/LK05_MS201.bar/US_LK05_MS201_bar0.png type: internal -- name: msn/jp/HB38_FM_MAR.bar #Marluxia HUD (Show if boss rando) +#Show Marluxia HUD if boss rando +- name: msn/jp/HB38_FM_MAR.bar method: binarc source: - name: ms_b @@ -4938,3 +5040,1327 @@ assets: method: bdscript source: - name: ard/hb38/HB38_FM_MAR.bdscript +#Prevent Warp to STT Day 2 (Cargo Climb Roxas) +- name: msn/jp/TT06_BAGGAGE_01.bar + method: binarc + source: + - name: tt06 + type: bdx + method: bdscript + source: + - name: ard/tt06/TT06_BAGGAGE_01.bdscript +- name: msn/us/TT06_BAGGAGE_01.bar + multi: + - name: msn/fr/TT06_BAGGAGE_01.bar + - name: msn/gr/TT06_BAGGAGE_01.bar + - name: msn/it/TT06_BAGGAGE_01.bar + - name: msn/sp/TT06_BAGGAGE_01.bar + platform: pc + method: binarc + source: + - name: tt06 + type: bdx + method: bdscript + source: + - name: ard/tt06/TT06_BAGGAGE_01.bdscript +- name: remastered/msn/jp/TT06_BAGGAGE_01.bar/JP_TT06_BAGGAGE_01_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_BAGGAGE_01.bar/JP_TT06_BAGGAGE_01_bar0.png + type: internal +- name: remastered/msn/jp/TT06_BAGGAGE_01.bar/JP_TT06_BAGGAGE_01_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_BAGGAGE_01.bar/JP_TT06_BAGGAGE_01_bar1.png + type: internal +- name: remastered/msn/jp/TT06_BAGGAGE_01.bar/JP_TT06_BAGGAGE_01_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_BAGGAGE_01.bar/JP_TT06_BAGGAGE_01_bar2.png + type: internal +- name: remastered/msn/jp/TT06_BAGGAGE_01.bar/JP_TT06_BAGGAGE_01_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_BAGGAGE_01.bar/JP_TT06_BAGGAGE_01_bar3.png + type: internal +- name: remastered/msn/us/TT06_BAGGAGE_01.bar/US_TT06_BAGGAGE_01_bar0.png + multi: + - name: remastered/msn/fr/TT06_BAGGAGE_01.bar/FR_TT06_BAGGAGE_01_bar0.png + - name: remastered/msn/gr/TT06_BAGGAGE_01.bar/GR_TT06_BAGGAGE_01_bar0.png + - name: remastered/msn/it/TT06_BAGGAGE_01.bar/IT_TT06_BAGGAGE_01_bar0.png + - name: remastered/msn/sp/TT06_BAGGAGE_01.bar/SP_TT06_BAGGAGE_01_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_BAGGAGE_01.bar/US_TT06_BAGGAGE_01_bar0.png + type: internal +- name: remastered/msn/us/TT06_BAGGAGE_01.bar/US_TT06_BAGGAGE_01_bar1.png + multi: + - name: remastered/msn/fr/TT06_BAGGAGE_01.bar/FR_TT06_BAGGAGE_01_bar1.png + - name: remastered/msn/gr/TT06_BAGGAGE_01.bar/GR_TT06_BAGGAGE_01_bar1.png + - name: remastered/msn/it/TT06_BAGGAGE_01.bar/IT_TT06_BAGGAGE_01_bar1.png + - name: remastered/msn/sp/TT06_BAGGAGE_01.bar/SP_TT06_BAGGAGE_01_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_BAGGAGE_01.bar/US_TT06_BAGGAGE_01_bar1.png + type: internal +- name: remastered/msn/us/TT06_BAGGAGE_01.bar/US_TT06_BAGGAGE_01_bar2.png + multi: + - name: remastered/msn/fr/TT06_BAGGAGE_01.bar/FR_TT06_BAGGAGE_01_bar2.png + - name: remastered/msn/gr/TT06_BAGGAGE_01.bar/GR_TT06_BAGGAGE_01_bar2.png + - name: remastered/msn/it/TT06_BAGGAGE_01.bar/IT_TT06_BAGGAGE_01_bar2.png + - name: remastered/msn/sp/TT06_BAGGAGE_01.bar/SP_TT06_BAGGAGE_01_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_BAGGAGE_01.bar/US_TT06_BAGGAGE_01_bar2.png + type: internal +- name: remastered/msn/us/TT06_BAGGAGE_01.bar/US_TT06_BAGGAGE_01_bar3.png + multi: + - name: remastered/msn/fr/TT06_BAGGAGE_01.bar/FR_TT06_BAGGAGE_01_bar3.png + - name: remastered/msn/gr/TT06_BAGGAGE_01.bar/GR_TT06_BAGGAGE_01_bar3.png + - name: remastered/msn/it/TT06_BAGGAGE_01.bar/IT_TT06_BAGGAGE_01_bar3.png + - name: remastered/msn/sp/TT06_BAGGAGE_01.bar/SP_TT06_BAGGAGE_01_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_BAGGAGE_01.bar/US_TT06_BAGGAGE_01_bar3.png + type: internal +#Prevent Warp to STT Day 2 (Cargo Climb Sora) +- name: msn/jp/TT06_BAGGAGE_02.bar + method: binarc + source: + - name: tt06 + type: bdx + method: bdscript + source: + - name: ard/tt06/TT06_BAGGAGE_02.bdscript +- name: msn/us/TT06_BAGGAGE_02.bar + multi: + - name: msn/fr/TT06_BAGGAGE_02.bar + - name: msn/gr/TT06_BAGGAGE_02.bar + - name: msn/it/TT06_BAGGAGE_02.bar + - name: msn/sp/TT06_BAGGAGE_02.bar + platform: pc + method: binarc + source: + - name: tt06 + type: bdx + method: bdscript + source: + - name: ard/tt06/TT06_BAGGAGE_02.bdscript +- name: remastered/msn/jp/TT06_BAGGAGE_02.bar/JP_TT06_BAGGAGE_02_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_BAGGAGE_02.bar/JP_TT06_BAGGAGE_02_bar0.png + type: internal +- name: remastered/msn/jp/TT06_BAGGAGE_02.bar/JP_TT06_BAGGAGE_02_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_BAGGAGE_02.bar/JP_TT06_BAGGAGE_02_bar1.png + type: internal +- name: remastered/msn/jp/TT06_BAGGAGE_02.bar/JP_TT06_BAGGAGE_02_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_BAGGAGE_02.bar/JP_TT06_BAGGAGE_02_bar2.png + type: internal +- name: remastered/msn/jp/TT06_BAGGAGE_02.bar/JP_TT06_BAGGAGE_02_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_BAGGAGE_02.bar/JP_TT06_BAGGAGE_02_bar3.png + type: internal +- name: remastered/msn/jp/TT06_BAGGAGE_02.bar/JP_TT06_BAGGAGE_02_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_BAGGAGE_02.bar/JP_TT06_BAGGAGE_02_bar4.png + type: internal +- name: remastered/msn/us/TT06_BAGGAGE_02.bar/US_TT06_BAGGAGE_02_bar0.png + multi: + - name: remastered/msn/fr/TT06_BAGGAGE_02.bar/FR_TT06_BAGGAGE_02_bar0.png + - name: remastered/msn/gr/TT06_BAGGAGE_02.bar/GR_TT06_BAGGAGE_02_bar0.png + - name: remastered/msn/it/TT06_BAGGAGE_02.bar/IT_TT06_BAGGAGE_02_bar0.png + - name: remastered/msn/sp/TT06_BAGGAGE_02.bar/SP_TT06_BAGGAGE_02_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_BAGGAGE_02.bar/US_TT06_BAGGAGE_02_bar0.png + type: internal +- name: remastered/msn/us/TT06_BAGGAGE_02.bar/US_TT06_BAGGAGE_02_bar1.png + multi: + - name: remastered/msn/fr/TT06_BAGGAGE_02.bar/FR_TT06_BAGGAGE_02_bar1.png + - name: remastered/msn/gr/TT06_BAGGAGE_02.bar/GR_TT06_BAGGAGE_02_bar1.png + - name: remastered/msn/it/TT06_BAGGAGE_02.bar/IT_TT06_BAGGAGE_02_bar1.png + - name: remastered/msn/sp/TT06_BAGGAGE_02.bar/SP_TT06_BAGGAGE_02_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_BAGGAGE_02.bar/US_TT06_BAGGAGE_02_bar1.png + type: internal +- name: remastered/msn/us/TT06_BAGGAGE_02.bar/US_TT06_BAGGAGE_02_bar2.png + multi: + - name: remastered/msn/fr/TT06_BAGGAGE_02.bar/FR_TT06_BAGGAGE_02_bar2.png + - name: remastered/msn/gr/TT06_BAGGAGE_02.bar/GR_TT06_BAGGAGE_02_bar2.png + - name: remastered/msn/it/TT06_BAGGAGE_02.bar/IT_TT06_BAGGAGE_02_bar2.png + - name: remastered/msn/sp/TT06_BAGGAGE_02.bar/SP_TT06_BAGGAGE_02_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_BAGGAGE_02.bar/US_TT06_BAGGAGE_02_bar2.png + type: internal +- name: remastered/msn/us/TT06_BAGGAGE_02.bar/US_TT06_BAGGAGE_02_bar3.png + multi: + - name: remastered/msn/fr/TT06_BAGGAGE_02.bar/FR_TT06_BAGGAGE_02_bar3.png + - name: remastered/msn/gr/TT06_BAGGAGE_02.bar/GR_TT06_BAGGAGE_02_bar3.png + - name: remastered/msn/it/TT06_BAGGAGE_02.bar/IT_TT06_BAGGAGE_02_bar3.png + - name: remastered/msn/sp/TT06_BAGGAGE_02.bar/SP_TT06_BAGGAGE_02_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_BAGGAGE_02.bar/US_TT06_BAGGAGE_02_bar3.png + type: internal +- name: remastered/msn/us/TT06_BAGGAGE_02.bar/US_TT06_BAGGAGE_02_bar4.png + multi: + - name: remastered/msn/fr/TT06_BAGGAGE_02.bar/FR_TT06_BAGGAGE_02_bar4.png + - name: remastered/msn/gr/TT06_BAGGAGE_02.bar/GR_TT06_BAGGAGE_02_bar4.png + - name: remastered/msn/it/TT06_BAGGAGE_02.bar/IT_TT06_BAGGAGE_02_bar4.png + - name: remastered/msn/sp/TT06_BAGGAGE_02.bar/SP_TT06_BAGGAGE_02_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_BAGGAGE_02.bar/US_TT06_BAGGAGE_02_bar4.png + type: internal +#Prevent Warp to STT Day 2 (Mail Delivery Roxas) +- name: msn/jp/TT06_LETTER_01.bar + method: binarc + source: + - name: tt06 + type: bdx + method: bdscript + source: + - name: ard/tt06/TT06_LETTER_01.bdscript +- name: msn/us/TT06_LETTER_01.bar + multi: + - name: msn/fr/TT06_LETTER_01.bar + - name: msn/gr/TT06_LETTER_01.bar + - name: msn/it/TT06_LETTER_01.bar + - name: msn/sp/TT06_LETTER_01.bar + platform: pc + method: binarc + source: + - name: tt06 + type: bdx + method: bdscript + source: + - name: ard/tt06/TT06_LETTER_01.bdscript +- name: remastered/msn/jp/TT06_LETTER_01.bar/JP_TT06_LETTER_01_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_LETTER_01.bar/JP_TT06_LETTER_01_bar0.png + type: internal +- name: remastered/msn/jp/TT06_LETTER_01.bar/JP_TT06_LETTER_01_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_LETTER_01.bar/JP_TT06_LETTER_01_bar1.png + type: internal +- name: remastered/msn/jp/TT06_LETTER_01.bar/JP_TT06_LETTER_01_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_LETTER_01.bar/JP_TT06_LETTER_01_bar2.png + type: internal +- name: remastered/msn/jp/TT06_LETTER_01.bar/JP_TT06_LETTER_01_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_LETTER_01.bar/JP_TT06_LETTER_01_bar3.png + type: internal +- name: remastered/msn/jp/TT06_LETTER_01.bar/JP_TT06_LETTER_01_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_LETTER_01.bar/JP_TT06_LETTER_01_bar4.png + type: internal +- name: remastered/msn/us/TT06_LETTER_01.bar/US_TT06_LETTER_01_bar0.png + multi: + - name: remastered/msn/fr/TT06_LETTER_01.bar/FR_TT06_LETTER_01_bar0.png + - name: remastered/msn/gr/TT06_LETTER_01.bar/GR_TT06_LETTER_01_bar0.png + - name: remastered/msn/it/TT06_LETTER_01.bar/IT_TT06_LETTER_01_bar0.png + - name: remastered/msn/sp/TT06_LETTER_01.bar/SP_TT06_LETTER_01_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_LETTER_01.bar/US_TT06_LETTER_01_bar0.png + type: internal +- name: remastered/msn/us/TT06_LETTER_01.bar/US_TT06_LETTER_01_bar1.png + multi: + - name: remastered/msn/fr/TT06_LETTER_01.bar/FR_TT06_LETTER_01_bar1.png + - name: remastered/msn/gr/TT06_LETTER_01.bar/GR_TT06_LETTER_01_bar1.png + - name: remastered/msn/it/TT06_LETTER_01.bar/IT_TT06_LETTER_01_bar1.png + - name: remastered/msn/sp/TT06_LETTER_01.bar/SP_TT06_LETTER_01_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_LETTER_01.bar/US_TT06_LETTER_01_bar1.png + type: internal +- name: remastered/msn/us/TT06_LETTER_01.bar/US_TT06_LETTER_01_bar2.png + multi: + - name: remastered/msn/fr/TT06_LETTER_01.bar/FR_TT06_LETTER_01_bar2.png + - name: remastered/msn/gr/TT06_LETTER_01.bar/GR_TT06_LETTER_01_bar2.png + - name: remastered/msn/it/TT06_LETTER_01.bar/IT_TT06_LETTER_01_bar2.png + - name: remastered/msn/sp/TT06_LETTER_01.bar/SP_TT06_LETTER_01_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_LETTER_01.bar/US_TT06_LETTER_01_bar2.png + type: internal +- name: remastered/msn/us/TT06_LETTER_01.bar/US_TT06_LETTER_01_bar3.png + multi: + - name: remastered/msn/fr/TT06_LETTER_01.bar/FR_TT06_LETTER_01_bar3.png + - name: remastered/msn/gr/TT06_LETTER_01.bar/GR_TT06_LETTER_01_bar3.png + - name: remastered/msn/it/TT06_LETTER_01.bar/IT_TT06_LETTER_01_bar3.png + - name: remastered/msn/sp/TT06_LETTER_01.bar/SP_TT06_LETTER_01_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_LETTER_01.bar/US_TT06_LETTER_01_bar3.png + type: internal +- name: remastered/msn/us/TT06_LETTER_01.bar/US_TT06_LETTER_01_bar4.png + multi: + - name: remastered/msn/fr/TT06_LETTER_01.bar/FR_TT06_LETTER_01_bar4.png + - name: remastered/msn/gr/TT06_LETTER_01.bar/GR_TT06_LETTER_01_bar4.png + - name: remastered/msn/it/TT06_LETTER_01.bar/IT_TT06_LETTER_01_bar4.png + - name: remastered/msn/sp/TT06_LETTER_01.bar/SP_TT06_LETTER_01_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_LETTER_01.bar/US_TT06_LETTER_01_bar4.png + type: internal +#Prevent Warp to STT Day 2 (Mail Delivery Sora) +- name: msn/jp/TT06_LETTER_02.bar + method: binarc + source: + - name: tt06 + type: bdx + method: bdscript + source: + - name: ard/tt06/TT06_LETTER_02.bdscript +- name: msn/us/TT06_LETTER_02.bar + multi: + - name: msn/fr/TT06_LETTER_02.bar + - name: msn/gr/TT06_LETTER_02.bar + - name: msn/it/TT06_LETTER_02.bar + - name: msn/sp/TT06_LETTER_02.bar + platform: pc + method: binarc + source: + - name: tt06 + type: bdx + method: bdscript + source: + - name: ard/tt06/TT06_LETTER_02.bdscript +- name: remastered/msn/jp/TT06_LETTER_02.bar/JP_TT06_LETTER_02_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_LETTER_02.bar/JP_TT06_LETTER_02_bar0.png + type: internal +- name: remastered/msn/jp/TT06_LETTER_02.bar/JP_TT06_LETTER_02_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_LETTER_02.bar/JP_TT06_LETTER_02_bar1.png + type: internal +- name: remastered/msn/jp/TT06_LETTER_02.bar/JP_TT06_LETTER_02_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_LETTER_02.bar/JP_TT06_LETTER_02_bar2.png + type: internal +- name: remastered/msn/jp/TT06_LETTER_02.bar/JP_TT06_LETTER_02_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_LETTER_02.bar/JP_TT06_LETTER_02_bar3.png + type: internal +- name: remastered/msn/jp/TT06_LETTER_02.bar/JP_TT06_LETTER_02_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_LETTER_02.bar/JP_TT06_LETTER_02_bar4.png + type: internal +- name: remastered/msn/jp/TT06_LETTER_02.bar/JP_TT06_LETTER_02_bar5.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_LETTER_02.bar/JP_TT06_LETTER_02_bar5.png + type: internal +- name: remastered/msn/us/TT06_LETTER_02.bar/US_TT06_LETTER_02_bar0.png + multi: + - name: remastered/msn/fr/TT06_LETTER_02.bar/FR_TT06_LETTER_02_bar0.png + - name: remastered/msn/gr/TT06_LETTER_02.bar/GR_TT06_LETTER_02_bar0.png + - name: remastered/msn/it/TT06_LETTER_02.bar/IT_TT06_LETTER_02_bar0.png + - name: remastered/msn/sp/TT06_LETTER_02.bar/SP_TT06_LETTER_02_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_LETTER_02.bar/US_TT06_LETTER_02_bar0.png + type: internal +- name: remastered/msn/us/TT06_LETTER_02.bar/US_TT06_LETTER_02_bar1.png + multi: + - name: remastered/msn/fr/TT06_LETTER_02.bar/FR_TT06_LETTER_02_bar1.png + - name: remastered/msn/gr/TT06_LETTER_02.bar/GR_TT06_LETTER_02_bar1.png + - name: remastered/msn/it/TT06_LETTER_02.bar/IT_TT06_LETTER_02_bar1.png + - name: remastered/msn/sp/TT06_LETTER_02.bar/SP_TT06_LETTER_02_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_LETTER_02.bar/US_TT06_LETTER_02_bar1.png + type: internal +- name: remastered/msn/us/TT06_LETTER_02.bar/US_TT06_LETTER_02_bar2.png + multi: + - name: remastered/msn/fr/TT06_LETTER_02.bar/FR_TT06_LETTER_02_bar2.png + - name: remastered/msn/gr/TT06_LETTER_02.bar/GR_TT06_LETTER_02_bar2.png + - name: remastered/msn/it/TT06_LETTER_02.bar/IT_TT06_LETTER_02_bar2.png + - name: remastered/msn/sp/TT06_LETTER_02.bar/SP_TT06_LETTER_02_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_LETTER_02.bar/US_TT06_LETTER_02_bar2.png + type: internal +- name: remastered/msn/us/TT06_LETTER_02.bar/US_TT06_LETTER_02_bar3.png + multi: + - name: remastered/msn/fr/TT06_LETTER_02.bar/FR_TT06_LETTER_02_bar3.png + - name: remastered/msn/gr/TT06_LETTER_02.bar/GR_TT06_LETTER_02_bar3.png + - name: remastered/msn/it/TT06_LETTER_02.bar/IT_TT06_LETTER_02_bar3.png + - name: remastered/msn/sp/TT06_LETTER_02.bar/SP_TT06_LETTER_02_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_LETTER_02.bar/US_TT06_LETTER_02_bar3.png + type: internal +- name: remastered/msn/us/TT06_LETTER_02.bar/US_TT06_LETTER_02_bar4.png + multi: + - name: remastered/msn/fr/TT06_LETTER_02.bar/FR_TT06_LETTER_02_bar4.png + - name: remastered/msn/gr/TT06_LETTER_02.bar/GR_TT06_LETTER_02_bar4.png + - name: remastered/msn/it/TT06_LETTER_02.bar/IT_TT06_LETTER_02_bar4.png + - name: remastered/msn/sp/TT06_LETTER_02.bar/SP_TT06_LETTER_02_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_LETTER_02.bar/US_TT06_LETTER_02_bar4.png + type: internal +- name: remastered/msn/us/TT06_LETTER_02.bar/US_TT06_LETTER_02_bar5.png + multi: + - name: remastered/msn/fr/TT06_LETTER_02.bar/FR_TT06_LETTER_02_bar5.png + - name: remastered/msn/gr/TT06_LETTER_02.bar/GR_TT06_LETTER_02_bar5.png + - name: remastered/msn/it/TT06_LETTER_02.bar/IT_TT06_LETTER_02_bar5.png + - name: remastered/msn/sp/TT06_LETTER_02.bar/SP_TT06_LETTER_02_bar5.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_LETTER_02.bar/US_TT06_LETTER_02_bar5.png + type: internal +#Prevent Warp to STT Day 2 (Grandstander Roxas) +- name: msn/jp/TT06_PERFORM_01.bar + method: binarc + source: + - name: tt06 + type: bdx + method: bdscript + source: + - name: ard/tt06/TT06_PERFORM_01.bdscript +- name: msn/us/TT06_PERFORM_01.bar + multi: + - name: msn/fr/TT06_PERFORM_01.bar + - name: msn/gr/TT06_PERFORM_01.bar + - name: msn/it/TT06_PERFORM_01.bar + - name: msn/sp/TT06_PERFORM_01.bar + platform: pc + method: binarc + source: + - name: tt06 + type: bdx + method: bdscript + source: + - name: ard/tt06/TT06_PERFORM_01.bdscript +- name: remastered/msn/jp/TT06_PERFORM_01.bar/JP_TT06_PERFORM_01_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_PERFORM_01.bar/JP_TT06_PERFORM_01_bar0.png + type: internal +- name: remastered/msn/jp/TT06_PERFORM_01.bar/JP_TT06_PERFORM_01_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_PERFORM_01.bar/JP_TT06_PERFORM_01_bar1.png + type: internal +- name: remastered/msn/jp/TT06_PERFORM_01.bar/JP_TT06_PERFORM_01_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_PERFORM_01.bar/JP_TT06_PERFORM_01_bar2.png + type: internal +- name: remastered/msn/jp/TT06_PERFORM_01.bar/JP_TT06_PERFORM_01_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_PERFORM_01.bar/JP_TT06_PERFORM_01_bar3.png + type: internal +- name: remastered/msn/jp/TT06_PERFORM_01.bar/JP_TT06_PERFORM_01_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_PERFORM_01.bar/JP_TT06_PERFORM_01_bar4.png + type: internal +- name: remastered/msn/us/TT06_PERFORM_01.bar/US_TT06_PERFORM_01_bar0.png + multi: + - name: remastered/msn/fr/TT06_PERFORM_01.bar/FR_TT06_PERFORM_01_bar0.png + - name: remastered/msn/gr/TT06_PERFORM_01.bar/GR_TT06_PERFORM_01_bar0.png + - name: remastered/msn/it/TT06_PERFORM_01.bar/IT_TT06_PERFORM_01_bar0.png + - name: remastered/msn/sp/TT06_PERFORM_01.bar/SP_TT06_PERFORM_01_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_PERFORM_01.bar/US_TT06_PERFORM_01_bar0.png + type: internal +- name: remastered/msn/us/TT06_PERFORM_01.bar/US_TT06_PERFORM_01_bar1.png + multi: + - name: remastered/msn/fr/TT06_PERFORM_01.bar/FR_TT06_PERFORM_01_bar1.png + - name: remastered/msn/gr/TT06_PERFORM_01.bar/GR_TT06_PERFORM_01_bar1.png + - name: remastered/msn/it/TT06_PERFORM_01.bar/IT_TT06_PERFORM_01_bar1.png + - name: remastered/msn/sp/TT06_PERFORM_01.bar/SP_TT06_PERFORM_01_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_PERFORM_01.bar/US_TT06_PERFORM_01_bar1.png + type: internal +- name: remastered/msn/us/TT06_PERFORM_01.bar/US_TT06_PERFORM_01_bar2.png + multi: + - name: remastered/msn/fr/TT06_PERFORM_01.bar/FR_TT06_PERFORM_01_bar2.png + - name: remastered/msn/gr/TT06_PERFORM_01.bar/GR_TT06_PERFORM_01_bar2.png + - name: remastered/msn/it/TT06_PERFORM_01.bar/IT_TT06_PERFORM_01_bar2.png + - name: remastered/msn/sp/TT06_PERFORM_01.bar/SP_TT06_PERFORM_01_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_PERFORM_01.bar/US_TT06_PERFORM_01_bar2.png + type: internal +- name: remastered/msn/us/TT06_PERFORM_01.bar/US_TT06_PERFORM_01_bar3.png + multi: + - name: remastered/msn/fr/TT06_PERFORM_01.bar/FR_TT06_PERFORM_01_bar3.png + - name: remastered/msn/gr/TT06_PERFORM_01.bar/GR_TT06_PERFORM_01_bar3.png + - name: remastered/msn/it/TT06_PERFORM_01.bar/IT_TT06_PERFORM_01_bar3.png + - name: remastered/msn/sp/TT06_PERFORM_01.bar/SP_TT06_PERFORM_01_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_PERFORM_01.bar/US_TT06_PERFORM_01_bar3.png + type: internal +- name: remastered/msn/us/TT06_PERFORM_01.bar/US_TT06_PERFORM_01_bar4.png + multi: + - name: remastered/msn/fr/TT06_PERFORM_01.bar/FR_TT06_PERFORM_01_bar4.png + - name: remastered/msn/gr/TT06_PERFORM_01.bar/GR_TT06_PERFORM_01_bar4.png + - name: remastered/msn/it/TT06_PERFORM_01.bar/IT_TT06_PERFORM_01_bar4.png + - name: remastered/msn/sp/TT06_PERFORM_01.bar/SP_TT06_PERFORM_01_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_PERFORM_01.bar/US_TT06_PERFORM_01_bar4.png + type: internal +#Prevent Warp to STT Day 2 (Grandstander Sora) +- name: msn/jp/TT06_PERFORM_02.bar + method: binarc + source: + - name: tt06 + type: bdx + method: bdscript + source: + - name: ard/tt06/TT06_PERFORM_02.bdscript +- name: msn/us/TT06_PERFORM_02.bar + multi: + - name: msn/fr/TT06_PERFORM_02.bar + - name: msn/gr/TT06_PERFORM_02.bar + - name: msn/it/TT06_PERFORM_02.bar + - name: msn/sp/TT06_PERFORM_02.bar + platform: pc + method: binarc + source: + - name: tt06 + type: bdx + method: bdscript + source: + - name: ard/tt06/TT06_PERFORM_02.bdscript +- name: remastered/msn/jp/TT06_PERFORM_02.bar/JP_TT06_PERFORM_02_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_PERFORM_02.bar/JP_TT06_PERFORM_02_bar0.png + type: internal +- name: remastered/msn/jp/TT06_PERFORM_02.bar/JP_TT06_PERFORM_02_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_PERFORM_02.bar/JP_TT06_PERFORM_02_bar1.png + type: internal +- name: remastered/msn/jp/TT06_PERFORM_02.bar/JP_TT06_PERFORM_02_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_PERFORM_02.bar/JP_TT06_PERFORM_02_bar2.png + type: internal +- name: remastered/msn/jp/TT06_PERFORM_02.bar/JP_TT06_PERFORM_02_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_PERFORM_02.bar/JP_TT06_PERFORM_02_bar3.png + type: internal +- name: remastered/msn/jp/TT06_PERFORM_02.bar/JP_TT06_PERFORM_02_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_PERFORM_02.bar/JP_TT06_PERFORM_02_bar4.png + type: internal +- name: remastered/msn/jp/TT06_PERFORM_02.bar/JP_TT06_PERFORM_02_bar5.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT06_PERFORM_02.bar/JP_TT06_PERFORM_02_bar5.png + type: internal +- name: remastered/msn/us/TT06_PERFORM_02.bar/US_TT06_PERFORM_02_bar0.png + multi: + - name: remastered/msn/fr/TT06_PERFORM_02.bar/FR_TT06_PERFORM_02_bar0.png + - name: remastered/msn/gr/TT06_PERFORM_02.bar/GR_TT06_PERFORM_02_bar0.png + - name: remastered/msn/it/TT06_PERFORM_02.bar/IT_TT06_PERFORM_02_bar0.png + - name: remastered/msn/sp/TT06_PERFORM_02.bar/SP_TT06_PERFORM_02_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_PERFORM_02.bar/US_TT06_PERFORM_02_bar0.png + type: internal +- name: remastered/msn/us/TT06_PERFORM_02.bar/US_TT06_PERFORM_02_bar1.png + multi: + - name: remastered/msn/fr/TT06_PERFORM_02.bar/FR_TT06_PERFORM_02_bar1.png + - name: remastered/msn/gr/TT06_PERFORM_02.bar/GR_TT06_PERFORM_02_bar1.png + - name: remastered/msn/it/TT06_PERFORM_02.bar/IT_TT06_PERFORM_02_bar1.png + - name: remastered/msn/sp/TT06_PERFORM_02.bar/SP_TT06_PERFORM_02_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_PERFORM_02.bar/US_TT06_PERFORM_02_bar1.png + type: internal +- name: remastered/msn/us/TT06_PERFORM_02.bar/US_TT06_PERFORM_02_bar2.png + multi: + - name: remastered/msn/fr/TT06_PERFORM_02.bar/FR_TT06_PERFORM_02_bar2.png + - name: remastered/msn/gr/TT06_PERFORM_02.bar/GR_TT06_PERFORM_02_bar2.png + - name: remastered/msn/it/TT06_PERFORM_02.bar/IT_TT06_PERFORM_02_bar2.png + - name: remastered/msn/sp/TT06_PERFORM_02.bar/SP_TT06_PERFORM_02_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_PERFORM_02.bar/US_TT06_PERFORM_02_bar2.png + type: internal +- name: remastered/msn/us/TT06_PERFORM_02.bar/US_TT06_PERFORM_02_bar3.png + multi: + - name: remastered/msn/fr/TT06_PERFORM_02.bar/FR_TT06_PERFORM_02_bar3.png + - name: remastered/msn/gr/TT06_PERFORM_02.bar/GR_TT06_PERFORM_02_bar3.png + - name: remastered/msn/it/TT06_PERFORM_02.bar/IT_TT06_PERFORM_02_bar3.png + - name: remastered/msn/sp/TT06_PERFORM_02.bar/SP_TT06_PERFORM_02_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_PERFORM_02.bar/US_TT06_PERFORM_02_bar3.png + type: internal +- name: remastered/msn/us/TT06_PERFORM_02.bar/US_TT06_PERFORM_02_bar4.png + multi: + - name: remastered/msn/fr/TT06_PERFORM_02.bar/FR_TT06_PERFORM_02_bar4.png + - name: remastered/msn/gr/TT06_PERFORM_02.bar/GR_TT06_PERFORM_02_bar4.png + - name: remastered/msn/it/TT06_PERFORM_02.bar/IT_TT06_PERFORM_02_bar4.png + - name: remastered/msn/sp/TT06_PERFORM_02.bar/SP_TT06_PERFORM_02_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_PERFORM_02.bar/US_TT06_PERFORM_02_bar4.png + type: internal +- name: remastered/msn/us/TT06_PERFORM_02.bar/US_TT06_PERFORM_02_bar5.png + multi: + - name: remastered/msn/fr/TT06_PERFORM_02.bar/FR_TT06_PERFORM_02_bar5.png + - name: remastered/msn/gr/TT06_PERFORM_02.bar/GR_TT06_PERFORM_02_bar5.png + - name: remastered/msn/it/TT06_PERFORM_02.bar/IT_TT06_PERFORM_02_bar5.png + - name: remastered/msn/sp/TT06_PERFORM_02.bar/SP_TT06_PERFORM_02_bar5.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT06_PERFORM_02.bar/US_TT06_PERFORM_02_bar5.png + type: internal +#Prevent Warp to STT Day 2 (Junk Sweep Roxas) +- name: msn/jp/TT07_CLEAN_01.bar + method: binarc + source: + - name: tt07 + type: bdx + method: bdscript + source: + - name: ard/tt07/TT07_CLEAN_01.bdscript +- name: msn/us/TT07_CLEAN_01.bar + multi: + - name: msn/fr/TT07_CLEAN_01.bar + - name: msn/gr/TT07_CLEAN_01.bar + - name: msn/it/TT07_CLEAN_01.bar + - name: msn/sp/TT07_CLEAN_01.bar + platform: pc + method: binarc + source: + - name: tt07 + type: bdx + method: bdscript + source: + - name: ard/tt07/TT07_CLEAN_01.bdscript +- name: remastered/msn/jp/TT07_CLEAN_01.bar/JP_TT07_CLEAN_01_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_CLEAN_01.bar/JP_TT07_CLEAN_01_bar0.png + type: internal +- name: remastered/msn/jp/TT07_CLEAN_01.bar/JP_TT07_CLEAN_01_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_CLEAN_01.bar/JP_TT07_CLEAN_01_bar1.png + type: internal +- name: remastered/msn/jp/TT07_CLEAN_01.bar/JP_TT07_CLEAN_01_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_CLEAN_01.bar/JP_TT07_CLEAN_01_bar2.png + type: internal +- name: remastered/msn/jp/TT07_CLEAN_01.bar/JP_TT07_CLEAN_01_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_CLEAN_01.bar/JP_TT07_CLEAN_01_bar3.png + type: internal +- name: remastered/msn/jp/TT07_CLEAN_01.bar/JP_TT07_CLEAN_01_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_CLEAN_01.bar/JP_TT07_CLEAN_01_bar4.png + type: internal +- name: remastered/msn/us/TT07_CLEAN_01.bar/US_TT07_CLEAN_01_bar0.png + multi: + - name: remastered/msn/fr/TT07_CLEAN_01.bar/FR_TT07_CLEAN_01_bar0.png + - name: remastered/msn/gr/TT07_CLEAN_01.bar/GR_TT07_CLEAN_01_bar0.png + - name: remastered/msn/it/TT07_CLEAN_01.bar/IT_TT07_CLEAN_01_bar0.png + - name: remastered/msn/sp/TT07_CLEAN_01.bar/SP_TT07_CLEAN_01_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_CLEAN_01.bar/US_TT07_CLEAN_01_bar0.png + type: internal +- name: remastered/msn/us/TT07_CLEAN_01.bar/US_TT07_CLEAN_01_bar1.png + multi: + - name: remastered/msn/fr/TT07_CLEAN_01.bar/FR_TT07_CLEAN_01_bar1.png + - name: remastered/msn/gr/TT07_CLEAN_01.bar/GR_TT07_CLEAN_01_bar1.png + - name: remastered/msn/it/TT07_CLEAN_01.bar/IT_TT07_CLEAN_01_bar1.png + - name: remastered/msn/sp/TT07_CLEAN_01.bar/SP_TT07_CLEAN_01_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_CLEAN_01.bar/US_TT07_CLEAN_01_bar1.png + type: internal +- name: remastered/msn/us/TT07_CLEAN_01.bar/US_TT07_CLEAN_01_bar2.png + multi: + - name: remastered/msn/fr/TT07_CLEAN_01.bar/FR_TT07_CLEAN_01_bar2.png + - name: remastered/msn/gr/TT07_CLEAN_01.bar/GR_TT07_CLEAN_01_bar2.png + - name: remastered/msn/it/TT07_CLEAN_01.bar/IT_TT07_CLEAN_01_bar2.png + - name: remastered/msn/sp/TT07_CLEAN_01.bar/SP_TT07_CLEAN_01_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_CLEAN_01.bar/US_TT07_CLEAN_01_bar2.png + type: internal +- name: remastered/msn/us/TT07_CLEAN_01.bar/US_TT07_CLEAN_01_bar3.png + multi: + - name: remastered/msn/fr/TT07_CLEAN_01.bar/FR_TT07_CLEAN_01_bar3.png + - name: remastered/msn/gr/TT07_CLEAN_01.bar/GR_TT07_CLEAN_01_bar3.png + - name: remastered/msn/it/TT07_CLEAN_01.bar/IT_TT07_CLEAN_01_bar3.png + - name: remastered/msn/sp/TT07_CLEAN_01.bar/SP_TT07_CLEAN_01_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_CLEAN_01.bar/US_TT07_CLEAN_01_bar3.png + type: internal +- name: remastered/msn/us/TT07_CLEAN_01.bar/US_TT07_CLEAN_01_bar4.png + multi: + - name: remastered/msn/fr/TT07_CLEAN_01.bar/FR_TT07_CLEAN_01_bar4.png + - name: remastered/msn/gr/TT07_CLEAN_01.bar/GR_TT07_CLEAN_01_bar4.png + - name: remastered/msn/it/TT07_CLEAN_01.bar/IT_TT07_CLEAN_01_bar4.png + - name: remastered/msn/sp/TT07_CLEAN_01.bar/SP_TT07_CLEAN_01_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_CLEAN_01.bar/US_TT07_CLEAN_01_bar4.png + type: internal +#Prevent Warp to STT Day 2 (Junk Sweep Sora) +- name: msn/jp/TT07_CLEAN_02.bar + method: binarc + source: + - name: tt07 + type: bdx + method: bdscript + source: + - name: ard/tt07/TT07_CLEAN_02.bdscript +- name: msn/us/TT07_CLEAN_02.bar + multi: + - name: msn/fr/TT07_CLEAN_02.bar + - name: msn/gr/TT07_CLEAN_02.bar + - name: msn/it/TT07_CLEAN_02.bar + - name: msn/sp/TT07_CLEAN_02.bar + platform: pc + method: binarc + source: + - name: tt07 + type: bdx + method: bdscript + source: + - name: ard/tt07/TT07_CLEAN_02.bdscript +- name: remastered/msn/jp/TT07_CLEAN_02.bar/JP_TT07_CLEAN_02_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_CLEAN_02.bar/JP_TT07_CLEAN_02_bar1.png + type: internal +- name: remastered/msn/jp/TT07_CLEAN_02.bar/JP_TT07_CLEAN_02_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_CLEAN_02.bar/JP_TT07_CLEAN_02_bar2.png + type: internal +- name: remastered/msn/jp/TT07_CLEAN_02.bar/JP_TT07_CLEAN_02_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_CLEAN_02.bar/JP_TT07_CLEAN_02_bar3.png + type: internal +- name: remastered/msn/jp/TT07_CLEAN_02.bar/JP_TT07_CLEAN_02_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_CLEAN_02.bar/JP_TT07_CLEAN_02_bar4.png + type: internal +- name: remastered/msn/jp/TT07_CLEAN_02.bar/JP_TT07_CLEAN_02_bar5.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_CLEAN_02.bar/JP_TT07_CLEAN_02_bar5.png + type: internal +- name: remastered/msn/us/TT07_CLEAN_02.bar/US_TT07_CLEAN_02_bar0.png + multi: + - name: remastered/msn/fr/TT07_CLEAN_02.bar/FR_TT07_CLEAN_02_bar0.png + - name: remastered/msn/gr/TT07_CLEAN_02.bar/GR_TT07_CLEAN_02_bar0.png + - name: remastered/msn/it/TT07_CLEAN_02.bar/IT_TT07_CLEAN_02_bar0.png + - name: remastered/msn/sp/TT07_CLEAN_02.bar/SP_TT07_CLEAN_02_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_CLEAN_02.bar/US_TT07_CLEAN_02_bar0.png + type: internal +- name: remastered/msn/us/TT07_CLEAN_02.bar/US_TT07_CLEAN_02_bar1.png + multi: + - name: remastered/msn/fr/TT07_CLEAN_02.bar/FR_TT07_CLEAN_02_bar1.png + - name: remastered/msn/gr/TT07_CLEAN_02.bar/GR_TT07_CLEAN_02_bar1.png + - name: remastered/msn/it/TT07_CLEAN_02.bar/IT_TT07_CLEAN_02_bar1.png + - name: remastered/msn/sp/TT07_CLEAN_02.bar/SP_TT07_CLEAN_02_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_CLEAN_02.bar/US_TT07_CLEAN_02_bar1.png + type: internal +- name: remastered/msn/us/TT07_CLEAN_02.bar/US_TT07_CLEAN_02_bar2.png + multi: + - name: remastered/msn/fr/TT07_CLEAN_02.bar/FR_TT07_CLEAN_02_bar2.png + - name: remastered/msn/gr/TT07_CLEAN_02.bar/GR_TT07_CLEAN_02_bar2.png + - name: remastered/msn/it/TT07_CLEAN_02.bar/IT_TT07_CLEAN_02_bar2.png + - name: remastered/msn/sp/TT07_CLEAN_02.bar/SP_TT07_CLEAN_02_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_CLEAN_02.bar/US_TT07_CLEAN_02_bar2.png + type: internal +- name: remastered/msn/us/TT07_CLEAN_02.bar/US_TT07_CLEAN_02_bar3.png + multi: + - name: remastered/msn/fr/TT07_CLEAN_02.bar/FR_TT07_CLEAN_02_bar3.png + - name: remastered/msn/gr/TT07_CLEAN_02.bar/GR_TT07_CLEAN_02_bar3.png + - name: remastered/msn/it/TT07_CLEAN_02.bar/IT_TT07_CLEAN_02_bar3.png + - name: remastered/msn/sp/TT07_CLEAN_02.bar/SP_TT07_CLEAN_02_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_CLEAN_02.bar/US_TT07_CLEAN_02_bar3.png + type: internal +- name: remastered/msn/us/TT07_CLEAN_02.bar/US_TT07_CLEAN_02_bar4.png + multi: + - name: remastered/msn/fr/TT07_CLEAN_02.bar/FR_TT07_CLEAN_02_bar4.png + - name: remastered/msn/gr/TT07_CLEAN_02.bar/GR_TT07_CLEAN_02_bar4.png + - name: remastered/msn/it/TT07_CLEAN_02.bar/IT_TT07_CLEAN_02_bar4.png + - name: remastered/msn/sp/TT07_CLEAN_02.bar/SP_TT07_CLEAN_02_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_CLEAN_02.bar/US_TT07_CLEAN_02_bar4.png + type: internal +- name: remastered/msn/us/TT07_CLEAN_02.bar/US_TT07_CLEAN_02_bar5.png + multi: + - name: remastered/msn/fr/TT07_CLEAN_02.bar/FR_TT07_CLEAN_02_bar5.png + - name: remastered/msn/gr/TT07_CLEAN_02.bar/GR_TT07_CLEAN_02_bar5.png + - name: remastered/msn/it/TT07_CLEAN_02.bar/IT_TT07_CLEAN_02_bar5.png + - name: remastered/msn/sp/TT07_CLEAN_02.bar/SP_TT07_CLEAN_02_bar5.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_CLEAN_02.bar/US_TT07_CLEAN_02_bar5.png + type: internal +#Prevent Warp to STT Day 2 (Poster Duty Roxas) +- name: msn/jp/TT07_POSTER_01.bar + method: binarc + source: + - name: tt07 + type: bdx + method: bdscript + source: + - name: ard/tt07/TT07_POSTER_01.bdscript +- name: msn/us/TT07_POSTER_01.bar + multi: + - name: msn/fr/TT07_POSTER_01.bar + - name: msn/gr/TT07_POSTER_01.bar + - name: msn/it/TT07_POSTER_01.bar + - name: msn/sp/TT07_POSTER_01.bar + platform: pc + method: binarc + source: + - name: tt07 + type: bdx + method: bdscript + source: + - name: ard/tt07/TT07_POSTER_01.bdscript +- name: remastered/msn/jp/TT07_POSTER_01.bar/JP_TT07_POSTER_01_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_POSTER_01.bar/JP_TT07_POSTER_01_bar0.png + type: internal +- name: remastered/msn/jp/TT07_POSTER_01.bar/JP_TT07_POSTER_01_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_POSTER_01.bar/JP_TT07_POSTER_01_bar1.png + type: internal +- name: remastered/msn/jp/TT07_POSTER_01.bar/JP_TT07_POSTER_01_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_POSTER_01.bar/JP_TT07_POSTER_01_bar2.png + type: internal +- name: remastered/msn/jp/TT07_POSTER_01.bar/JP_TT07_POSTER_01_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_POSTER_01.bar/JP_TT07_POSTER_01_bar3.png + type: internal +- name: remastered/msn/jp/TT07_POSTER_01.bar/JP_TT07_POSTER_01_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_POSTER_01.bar/JP_TT07_POSTER_01_bar4.png + type: internal +- name: remastered/msn/us/TT07_POSTER_01.bar/US_TT07_POSTER_01_bar0.png + multi: + - name: remastered/msn/fr/TT07_POSTER_01.bar/FR_TT07_POSTER_01_bar0.png + - name: remastered/msn/gr/TT07_POSTER_01.bar/GR_TT07_POSTER_01_bar0.png + - name: remastered/msn/it/TT07_POSTER_01.bar/IT_TT07_POSTER_01_bar0.png + - name: remastered/msn/sp/TT07_POSTER_01.bar/SP_TT07_POSTER_01_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_POSTER_01.bar/US_TT07_POSTER_01_bar0.png + type: internal +- name: remastered/msn/us/TT07_POSTER_01.bar/US_TT07_POSTER_01_bar1.png + multi: + - name: remastered/msn/fr/TT07_POSTER_01.bar/FR_TT07_POSTER_01_bar1.png + - name: remastered/msn/gr/TT07_POSTER_01.bar/GR_TT07_POSTER_01_bar1.png + - name: remastered/msn/it/TT07_POSTER_01.bar/IT_TT07_POSTER_01_bar1.png + - name: remastered/msn/sp/TT07_POSTER_01.bar/SP_TT07_POSTER_01_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_POSTER_01.bar/US_TT07_POSTER_01_bar1.png + type: internal +- name: remastered/msn/us/TT07_POSTER_01.bar/US_TT07_POSTER_01_bar2.png + multi: + - name: remastered/msn/fr/TT07_POSTER_01.bar/FR_TT07_POSTER_01_bar2.png + - name: remastered/msn/gr/TT07_POSTER_01.bar/GR_TT07_POSTER_01_bar2.png + - name: remastered/msn/it/TT07_POSTER_01.bar/IT_TT07_POSTER_01_bar2.png + - name: remastered/msn/sp/TT07_POSTER_01.bar/SP_TT07_POSTER_01_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_POSTER_01.bar/US_TT07_POSTER_01_bar2.png + type: internal +- name: remastered/msn/us/TT07_POSTER_01.bar/US_TT07_POSTER_01_bar3.png + multi: + - name: remastered/msn/fr/TT07_POSTER_01.bar/FR_TT07_POSTER_01_bar3.png + - name: remastered/msn/gr/TT07_POSTER_01.bar/GR_TT07_POSTER_01_bar3.png + - name: remastered/msn/it/TT07_POSTER_01.bar/IT_TT07_POSTER_01_bar3.png + - name: remastered/msn/sp/TT07_POSTER_01.bar/SP_TT07_POSTER_01_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_POSTER_01.bar/US_TT07_POSTER_01_bar3.png + type: internal +- name: remastered/msn/us/TT07_POSTER_01.bar/US_TT07_POSTER_01_bar4.png + multi: + - name: remastered/msn/fr/TT07_POSTER_01.bar/FR_TT07_POSTER_01_bar4.png + - name: remastered/msn/gr/TT07_POSTER_01.bar/GR_TT07_POSTER_01_bar4.png + - name: remastered/msn/it/TT07_POSTER_01.bar/IT_TT07_POSTER_01_bar4.png + - name: remastered/msn/sp/TT07_POSTER_01.bar/SP_TT07_POSTER_01_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_POSTER_01.bar/US_TT07_POSTER_01_bar4.png + type: internal +#Prevent Warp to STT Day 2 (Poster Duty Sora) +- name: msn/jp/TT07_POSTER_02.bar + method: binarc + source: + - name: tt07 + type: bdx + method: bdscript + source: + - name: ard/tt07/TT07_POSTER_02.bdscript +- name: msn/us/TT07_POSTER_02.bar + multi: + - name: msn/fr/TT07_POSTER_02.bar + - name: msn/gr/TT07_POSTER_02.bar + - name: msn/it/TT07_POSTER_02.bar + - name: msn/sp/TT07_POSTER_02.bar + platform: pc + method: binarc + source: + - name: tt07 + type: bdx + method: bdscript + source: + - name: ard/tt07/TT07_POSTER_02.bdscript +- name: remastered/msn/jp/TT07_POSTER_02.bar/JP_TT07_POSTER_02_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_POSTER_02.bar/JP_TT07_POSTER_02_bar0.png + type: internal +- name: remastered/msn/jp/TT07_POSTER_02.bar/JP_TT07_POSTER_02_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_POSTER_02.bar/JP_TT07_POSTER_02_bar1.png + type: internal +- name: remastered/msn/jp/TT07_POSTER_02.bar/JP_TT07_POSTER_02_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_POSTER_02.bar/JP_TT07_POSTER_02_bar2.png + type: internal +- name: remastered/msn/jp/TT07_POSTER_02.bar/JP_TT07_POSTER_02_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_POSTER_02.bar/JP_TT07_POSTER_02_bar3.png + type: internal +- name: remastered/msn/jp/TT07_POSTER_02.bar/JP_TT07_POSTER_02_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_POSTER_02.bar/JP_TT07_POSTER_02_bar4.png + type: internal +- name: remastered/msn/jp/TT07_POSTER_02.bar/JP_TT07_POSTER_02_bar5.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_POSTER_02.bar/JP_TT07_POSTER_02_bar5.png + type: internal +- name: remastered/msn/us/TT07_POSTER_02.bar/US_TT07_POSTER_02_bar0.png + multi: + - name: remastered/msn/fr/TT07_POSTER_02.bar/FR_TT07_POSTER_02_bar0.png + - name: remastered/msn/gr/TT07_POSTER_02.bar/GR_TT07_POSTER_02_bar0.png + - name: remastered/msn/it/TT07_POSTER_02.bar/IT_TT07_POSTER_02_bar0.png + - name: remastered/msn/sp/TT07_POSTER_02.bar/SP_TT07_POSTER_02_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_POSTER_02.bar/US_TT07_POSTER_02_bar0.png + type: internal +- name: remastered/msn/us/TT07_POSTER_02.bar/US_TT07_POSTER_02_bar1.png + multi: + - name: remastered/msn/fr/TT07_POSTER_02.bar/FR_TT07_POSTER_02_bar1.png + - name: remastered/msn/gr/TT07_POSTER_02.bar/GR_TT07_POSTER_02_bar1.png + - name: remastered/msn/it/TT07_POSTER_02.bar/IT_TT07_POSTER_02_bar1.png + - name: remastered/msn/sp/TT07_POSTER_02.bar/SP_TT07_POSTER_02_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_POSTER_02.bar/US_TT07_POSTER_02_bar1.png + type: internal +- name: remastered/msn/us/TT07_POSTER_02.bar/US_TT07_POSTER_02_bar2.png + multi: + - name: remastered/msn/fr/TT07_POSTER_02.bar/FR_TT07_POSTER_02_bar2.png + - name: remastered/msn/gr/TT07_POSTER_02.bar/GR_TT07_POSTER_02_bar2.png + - name: remastered/msn/it/TT07_POSTER_02.bar/IT_TT07_POSTER_02_bar2.png + - name: remastered/msn/sp/TT07_POSTER_02.bar/SP_TT07_POSTER_02_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_POSTER_02.bar/US_TT07_POSTER_02_bar2.png + type: internal +- name: remastered/msn/us/TT07_POSTER_02.bar/US_TT07_POSTER_02_bar3.png + multi: + - name: remastered/msn/fr/TT07_POSTER_02.bar/FR_TT07_POSTER_02_bar3.png + - name: remastered/msn/gr/TT07_POSTER_02.bar/GR_TT07_POSTER_02_bar3.png + - name: remastered/msn/it/TT07_POSTER_02.bar/IT_TT07_POSTER_02_bar3.png + - name: remastered/msn/sp/TT07_POSTER_02.bar/SP_TT07_POSTER_02_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_POSTER_02.bar/US_TT07_POSTER_02_bar3.png + type: internal +- name: remastered/msn/us/TT07_POSTER_02.bar/US_TT07_POSTER_02_bar4.png + multi: + - name: remastered/msn/fr/TT07_POSTER_02.bar/FR_TT07_POSTER_02_bar4.png + - name: remastered/msn/gr/TT07_POSTER_02.bar/GR_TT07_POSTER_02_bar4.png + - name: remastered/msn/it/TT07_POSTER_02.bar/IT_TT07_POSTER_02_bar4.png + - name: remastered/msn/sp/TT07_POSTER_02.bar/SP_TT07_POSTER_02_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_POSTER_02.bar/US_TT07_POSTER_02_bar4.png + type: internal +- name: remastered/msn/us/TT07_POSTER_02.bar/US_TT07_POSTER_02_bar5.png + multi: + - name: remastered/msn/fr/TT07_POSTER_02.bar/FR_TT07_POSTER_02_bar5.png + - name: remastered/msn/gr/TT07_POSTER_02.bar/GR_TT07_POSTER_02_bar5.png + - name: remastered/msn/it/TT07_POSTER_02.bar/IT_TT07_POSTER_02_bar5.png + - name: remastered/msn/sp/TT07_POSTER_02.bar/SP_TT07_POSTER_02_bar5.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_POSTER_02.bar/US_TT07_POSTER_02_bar5.png + type: internal +#Prevent Warp to STT Day 2 (Bumble-Buster Roxas) +- name: msn/jp/TT07_WORM_01.bar + method: binarc + source: + - name: tt07 + type: bdx + method: bdscript + source: + - name: ard/tt07/TT07_WORM_01.bdscript +- name: msn/us/TT07_WORM_01.bar + multi: + - name: msn/fr/TT07_WORM_01.bar + - name: msn/gr/TT07_WORM_01.bar + - name: msn/it/TT07_WORM_01.bar + - name: msn/sp/TT07_WORM_01.bar + platform: pc + method: binarc + source: + - name: tt07 + type: bdx + method: bdscript + source: + - name: ard/tt07/TT07_WORM_01.bdscript +- name: remastered/msn/jp/TT07_WORM_01.bar/JP_TT07_WORM_01_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_WORM_01.bar/JP_TT07_WORM_01_bar0.png + type: internal +- name: remastered/msn/jp/TT07_WORM_01.bar/JP_TT07_WORM_01_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_WORM_01.bar/JP_TT07_WORM_01_bar1.png + type: internal +- name: remastered/msn/jp/TT07_WORM_01.bar/JP_TT07_WORM_01_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_WORM_01.bar/JP_TT07_WORM_01_bar2.png + type: internal +- name: remastered/msn/jp/TT07_WORM_01.bar/JP_TT07_WORM_01_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_WORM_01.bar/JP_TT07_WORM_01_bar3.png + type: internal +- name: remastered/msn/us/TT07_WORM_01.bar/US_TT07_WORM_01_bar0.png + multi: + - name: remastered/msn/fr/TT07_WORM_01.bar/FR_TT07_WORM_01_bar0.png + - name: remastered/msn/gr/TT07_WORM_01.bar/GR_TT07_WORM_01_bar0.png + - name: remastered/msn/it/TT07_WORM_01.bar/IT_TT07_WORM_01_bar0.png + - name: remastered/msn/sp/TT07_WORM_01.bar/SP_TT07_WORM_01_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_WORM_01.bar/US_TT07_WORM_01_bar0.png + type: internal +- name: remastered/msn/us/TT07_WORM_01.bar/US_TT07_WORM_01_bar1.png + multi: + - name: remastered/msn/fr/TT07_WORM_01.bar/FR_TT07_WORM_01_bar1.png + - name: remastered/msn/gr/TT07_WORM_01.bar/GR_TT07_WORM_01_bar1.png + - name: remastered/msn/it/TT07_WORM_01.bar/IT_TT07_WORM_01_bar1.png + - name: remastered/msn/sp/TT07_WORM_01.bar/SP_TT07_WORM_01_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_WORM_01.bar/US_TT07_WORM_01_bar1.png + type: internal +- name: remastered/msn/us/TT07_WORM_01.bar/US_TT07_WORM_01_bar2.png + multi: + - name: remastered/msn/fr/TT07_WORM_01.bar/FR_TT07_WORM_01_bar2.png + - name: remastered/msn/gr/TT07_WORM_01.bar/GR_TT07_WORM_01_bar2.png + - name: remastered/msn/it/TT07_WORM_01.bar/IT_TT07_WORM_01_bar2.png + - name: remastered/msn/sp/TT07_WORM_01.bar/SP_TT07_WORM_01_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_WORM_01.bar/US_TT07_WORM_01_bar2.png + type: internal +- name: remastered/msn/us/TT07_WORM_01.bar/US_TT07_WORM_01_bar3.png + multi: + - name: remastered/msn/fr/TT07_WORM_01.bar/FR_TT07_WORM_01_bar3.png + - name: remastered/msn/gr/TT07_WORM_01.bar/GR_TT07_WORM_01_bar3.png + - name: remastered/msn/it/TT07_WORM_01.bar/IT_TT07_WORM_01_bar3.png + - name: remastered/msn/sp/TT07_WORM_01.bar/SP_TT07_WORM_01_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_WORM_01.bar/US_TT07_WORM_01_bar3.png + type: internal +#Prevent Warp to STT Day 2 (Bumble-Buster Sora) +- name: msn/jp/TT07_WORM_02.bar + method: binarc + source: + - name: tt07 + type: bdx + method: bdscript + source: + - name: ard/tt07/TT07_WORM_02.bdscript +- name: msn/us/TT07_WORM_02.bar + multi: + - name: msn/fr/TT07_WORM_02.bar + - name: msn/gr/TT07_WORM_02.bar + - name: msn/it/TT07_WORM_02.bar + - name: msn/sp/TT07_WORM_02.bar + platform: pc + method: binarc + source: + - name: tt07 + type: bdx + method: bdscript + source: + - name: ard/tt07/TT07_WORM_02.bdscript +- name: remastered/msn/jp/TT07_WORM_02.bar/JP_TT07_WORM_02_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_WORM_02.bar/JP_TT07_WORM_02_bar0.png + type: internal +- name: remastered/msn/jp/TT07_WORM_02.bar/JP_TT07_WORM_02_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_WORM_02.bar/JP_TT07_WORM_02_bar1.png + type: internal +- name: remastered/msn/jp/TT07_WORM_02.bar/JP_TT07_WORM_02_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_WORM_02.bar/JP_TT07_WORM_02_bar2.png + type: internal +- name: remastered/msn/jp/TT07_WORM_02.bar/JP_TT07_WORM_02_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_WORM_02.bar/JP_TT07_WORM_02_bar3.png + type: internal +- name: remastered/msn/jp/TT07_WORM_02.bar/JP_TT07_WORM_02_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/jp/TT07_WORM_02.bar/JP_TT07_WORM_02_bar4.png + type: internal +- name: remastered/msn/us/TT07_WORM_02.bar/US_TT07_WORM_02_bar0.png + multi: + - name: remastered/msn/fr/TT07_WORM_02.bar/FR_TT07_WORM_02_bar0.png + - name: remastered/msn/gr/TT07_WORM_02.bar/GR_TT07_WORM_02_bar0.png + - name: remastered/msn/it/TT07_WORM_02.bar/IT_TT07_WORM_02_bar0.png + - name: remastered/msn/sp/TT07_WORM_02.bar/SP_TT07_WORM_02_bar0.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_WORM_02.bar/US_TT07_WORM_02_bar0.png + type: internal +- name: remastered/msn/us/TT07_WORM_02.bar/US_TT07_WORM_02_bar1.png + multi: + - name: remastered/msn/fr/TT07_WORM_02.bar/FR_TT07_WORM_02_bar1.png + - name: remastered/msn/gr/TT07_WORM_02.bar/GR_TT07_WORM_02_bar1.png + - name: remastered/msn/it/TT07_WORM_02.bar/IT_TT07_WORM_02_bar1.png + - name: remastered/msn/sp/TT07_WORM_02.bar/SP_TT07_WORM_02_bar1.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_WORM_02.bar/US_TT07_WORM_02_bar1.png + type: internal +- name: remastered/msn/us/TT07_WORM_02.bar/US_TT07_WORM_02_bar2.png + multi: + - name: remastered/msn/fr/TT07_WORM_02.bar/FR_TT07_WORM_02_bar2.png + - name: remastered/msn/gr/TT07_WORM_02.bar/GR_TT07_WORM_02_bar2.png + - name: remastered/msn/it/TT07_WORM_02.bar/IT_TT07_WORM_02_bar2.png + - name: remastered/msn/sp/TT07_WORM_02.bar/SP_TT07_WORM_02_bar2.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_WORM_02.bar/US_TT07_WORM_02_bar2.png + type: internal +- name: remastered/msn/us/TT07_WORM_02.bar/US_TT07_WORM_02_bar3.png + multi: + - name: remastered/msn/fr/TT07_WORM_02.bar/FR_TT07_WORM_02_bar3.png + - name: remastered/msn/gr/TT07_WORM_02.bar/GR_TT07_WORM_02_bar3.png + - name: remastered/msn/it/TT07_WORM_02.bar/IT_TT07_WORM_02_bar3.png + - name: remastered/msn/sp/TT07_WORM_02.bar/SP_TT07_WORM_02_bar3.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_WORM_02.bar/US_TT07_WORM_02_bar3.png + type: internal +- name: remastered/msn/us/TT07_WORM_02.bar/US_TT07_WORM_02_bar4.png + multi: + - name: remastered/msn/fr/TT07_WORM_02.bar/FR_TT07_WORM_02_bar4.png + - name: remastered/msn/gr/TT07_WORM_02.bar/GR_TT07_WORM_02_bar4.png + - name: remastered/msn/it/TT07_WORM_02.bar/IT_TT07_WORM_02_bar4.png + - name: remastered/msn/sp/TT07_WORM_02.bar/SP_TT07_WORM_02_bar4.png + platform: pc + method: copy + source: + - name: remastered/msn/us/TT07_WORM_02.bar/US_TT07_WORM_02_bar4.png + type: internal diff --git a/obj/B_EX170_LAST.bdscript b/obj/B_EX170_LAST.bdscript new file mode 100644 index 0000000..9b1992f --- /dev/null +++ b/obj/B_EX170_LAST.bdscript @@ -0,0 +1,14659 @@ +--- +WorkSize: 5360 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 17 + Addr: OBJ_ANMATR_CALLBACK +- Key: 16 + Addr: OBJ_ANMATR_EFFECT +- Key: 15 + Addr: OBJ_ATTACK +- Key: 11 + Addr: REACTION_CALLBACK +- Key: 6 + Addr: OBJ_DAMAGE +- Key: 1 + Addr: OBJ_MAIN +- Key: 0 + Addr: OBJ_INIT +Name: b_ex170_last + +--- +; codeLabels: +; codeRevealer: -l 399 -l 1085 -l 1243 -l 1402 -l 1410 -l 1670 -l 1793 -l 2944 -l 3718 -l 3792 -l 5195 -l 5377 -l 5389 -l 5424 -l 5651 -l 5841 -l 5904 -l 6103 -l 7049 -l 7074 -l 7118 -l 7169 -l 7302 -l 8066 -l 8583 -l 8657 -l 8874 -l 8926 -l 8950 -l 8982 -l 9240 -l 9629 -l 9654 -l 10238 -l 13148 -l 13380 -l 13436 -l 13453 -l 13458 -l 13473 -l 13550 -l 13747 -l 13803 -l 13819 -l 13924 -l 13937 -l 14067 -l 14109 -l 14175 -l 14241 -l 14472 -l 14565 -l 14624 -l 14643 -l 14742 -l 14743 -l 14838 -l 14922 -l 15058 -l 15101 -l 15150 -l 15181 -l 15189 -l 15342 -l 15545 -l 15657 -l 16000 -l 16062 -l 16201 -l 16250 -l 16306 -l 16317 -l 16324 -l 16446 -l 16752 -l 17004 -l 17021 -l 17052 -l 17174 -l 17265 -l 17307 -l 17359 -l 17401 -l 17441 -l 17794 -l 17801 -l 17926 -l 17933 -l 17978 -l 18063 -l 18070 -l 18149 -l 18156 -l 18201 -l 18301 -l 18384 -l 18426 -l 18636 -l 18944 -l 18951 -l 19030 -l 19037 -l 19082 -l 19122 -l 19571 -l 19801 -l 20230 -l 20570 -l 20689 -l 20788 -l 21196 -l 21567 -l 21577 -l 22132 -l 22503 -l 22637 -l 23278 -l 23607 -l 23622 -l 23633 -l 23748 -l 24014 -l 24049 -l 24074 -l 24391 -l 24401 -l 24411 -l 24421 -l 24431 -l 24441 -l 24451 -l 24461 -l 24494 -l 24504 -l 24514 -l 24546 -l 24594 -l 24709 -l 24882 -l 24933 -l 24978 -l 25061 -l 25097 -l 25123 -l 25158 -l 25163 -l 25395 -l 25562 -l 25603 -l 25699 -l 25868 -l 25936 -l 26257 -l 26267 -l 26356 -l 26371 -l 26429 -l 26530 -l 26622 -l 26818 -l 26897 -l 27180 -l 27208 -l 27223 -l 27574 + section .text +OBJ_ANMATR_CALLBACK: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 4 + dup + pushImm 200 + sub + jz L55 + jmp L115 +L55: + pushFromPWp W1072 + gosub 8, L117 + popToSp 12 + pushFromFSp 12 + jz L99 + pushFromPWp W1072 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromPWp W1072 + pushFromFSp 12 + gosub 8, L371 + drop + gosub 8, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromPWp W1072 + gosub 12, L922 + jmp L113 +L99: + pushFromPWp W1072 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + sub + memcpy 0 +L113: + jmp L115 +L115: + drop + ret +L117: + popToSp 0 + pushImm 0 + popToSp 32 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + gosub 12, L284 + dup + jz L148 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + gosub 12, L291 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + eqz + eqzv +L148: + dup + jz L166 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + gosub 20, L291 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 225 ; trap_obj_is_star (1 in, 1 out) + eqz + eqzv +L166: + dup + jz L177 + syscall 6, 2 ; trap_player_get_form (0 in, 1 out) + pushImm 3 + sub + neqz + eqzv +L177: + jz L281 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + gosub 20, L311 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + fetchValue 12 + pushImmf 10000 + subf + infzf + jz L279 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromFSp 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromPSp 16 + syscall 0, 21 ; trap_vector_get_rot_xz (2 in, 1 out) + syscall 0, 23 ; trap_absf (1 in, 1 out) + pushImmf 3.141593 + subf + infzf + popToSp 32 + jmp L279 +L279: + jmp L281 +L281: + pushFromFSp 32 + ret +L284: + popToSp 0 + pushFromFSpVal 0 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + ret +L291: + popToSp 0 + pushFromPSp 16 + pushFromFSpVal 0 + gosub 12, L302 + pushFromPSp 16 + ret +L302: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 4 + ret +L311: + popToSp 0 + pushFromPSp 16 + pushImmf 0 + pushImmf -198 + pushImmf -126 + pushImmf 1 + gosub 12, L344 + pushFromFSp 0 + pushImm 16384 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + ret +L344: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + pushFromFSp 16 + popToSpVal 0 + pushFromFSp 12 + popToSpVal 4 + pushFromFSp 8 + popToSpVal 8 + pushFromFSp 4 + popToSpVal 12 + ret +L371: + popToSp 0 + popToSp 4 + pushImm 112 + pushImm L399 + pushFromFSp 4 + gosub 8, L847 + popToSp 8 + pushFromFSp 8 + pushImm 96 + add + pushFromFSp 0 + memcpy 0 + pushFromFSp 8 + ret +D399: +L399: + popToSp 0 + pushFromFSp 0 + gosub 4, L414 + pushFromFSp 0 + gosub 4, L448 + pushFromFSp 0 + gosub 4, L836 + ret +L414: + popToSp 0 + pushFromFSpVal 16 + pushImm 0 + sub + neqz + dup + jz L431 + pushFromFSpVal 16 + syscall 0, 50 ; trap_effect_is_active (1 in, 1 out) + eqzv +L431: + jz L447 + pushFromFSpVal 16 + syscall 0, 53 ; trap_effect_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + memcpyToSpVal 16, 32 + jmp L447 +L447: + ret +L448: + popToSp 0 + pushFromPSpVal 64 + gosub 4, L493 + pushFromPSpVal 68 + gosub 4, L493 + pushFromFSpVal 96 + jz L476 + pushFromPSpVal 64 + pushFromPSpVal 0 + pushImm 68 + pushImm 0 + gosub 4, L501 + jmp L476 +L476: + syscall 1, 34 ; trap_event_is_exec (0 in, 1 out) + eqz + jz L488 + pushFromFSp 0 + gosub 4, L534 + halt + jmp L476 +L488: + pushFromPSpVal 64 + gosub 4, L813 + ret +L493: + popToSp 0 + pushImm 0 + popToSpVal 0 + ret +D501: +L501: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + jz L533 + pushFromFSp 12 + pushFromFSp 8 + pushImm 0 + pushFromFSp 4 + syscall 1, 87 ; trap_obj_effect_start_bind (4 in, 1 out) + popToSpVal 0 + jmp L533 +L533: + ret +L534: + popToSp 0 + pushFromPSpVal 0 + gosub 12, L614 + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSpVal 64 + pushFromPSp 16 + gosub 12, L647 + pushFromPSp 16 + pushFromFSp 0 + gosub 12, L669 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSpVal 64 + pushFromPSp 16 + gosub 12, L769 + pushFromPSp 16 + pushImmf 1 + pushImmf 1 + pushFromPSp 16 + fetchValue 12 + pushImmf 500 + divf + pushImmf 1 + gosub 12, L344 + pushFromPSpVal 64 + pushFromPSp 16 + gosub 12, L791 + ret +L614: + popToSp 0 + pushFromPSp 16 + pushImmf 0 + pushImmf -198 + pushImmf -126 + pushImmf 1 + gosub 12, L344 + pushFromFSp 0 + pushImm 16384 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + ret +L647: + popToSp 4 + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + jz L668 + pushFromFSpVal 0 + pushFromFSp 4 + syscall 0, 38 ; trap_effect_set_pos (2 in, 0 out) + jmp L668 +L668: + ret +L669: + popToSp 0 + pushFromPSp 32 + pushImm 2258 + syscall 1, 114 ; trap_obj_search_by_entry (2 in, 0 out) + pushFromPSp 16 + pushImmf 1 + gosub 16, L737 + pushFromPSp 32 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L712 + pushFromPSp 32 + pushImm 67 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + jmp L734 +L712: + gosub 16, L757 + memcpyToSp 16, 48 + pushFromPSp 48 + pushImm 67 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 +L734: + pushFromPSp 16 + ret +L737: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushFromFSp 4 + gosub 4, L344 + ret +L757: + pushFromPSp 0 + pushImm 4 + add + syscall 1, 3 ; trap_sysobj_player (0 in, 1 out) + memcpy 0 + pushFromPSp 0 + ret +D769: +L769: + popToSp 4 + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + jz L790 + pushFromFSpVal 0 + pushFromFSp 4 + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + jmp L790 +L790: + ret +L791: + popToSp 4 + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + jz L812 + pushFromFSpVal 0 + pushFromFSp 4 + syscall 0, 39 ; trap_effect_set_scale (2 in, 0 out) + jmp L812 +L812: + ret +L813: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + jz L835 + pushFromFSpVal 0 + syscall 0, 51 ; trap_effect_kill (1 in, 0 out) + pushImm 0 + popToSpVal 0 + jmp L835 +L835: + ret +L836: + popToSp 0 + pushFromFSpVal 48 + syscall 1, 132 ; trap_target_free (1 in, 0 out) + pushFromFSp 0 + syscall 0, 48 ; trap_memory_free (1 in, 0 out) + ret +L847: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L879 + popToSp 12 + pushFromFSp 12 + pushImm 52 + add + pushFromFSp 4 + pushFromFSp 12 + syscall 2, 20 ; trap_magic_start_thread (2 in, 1 out) + memcpy 0 + pushFromFSp 12 + ret +L879: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + syscall 0, 47 ; trap_memory_alloc (1 in, 1 out) + popToSp 12 + pushFromFSp 12 + pushFromFSp 0 + memcpy 16 + pushFromFSp 12 + pushImm 16 + add + pushImm 0 + memcpy 0 + pushFromFSp 12 + pushImm 48 + add + pushFromFSp 12 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 131 ; trap_target_dup (1 in, 1 out) + memcpy 0 + pushFromFSp 12 + ret +L922: + popToSp 0 + popToSp 4 + pushFromPWp W688 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L935 + ret +L935: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L1021 + pushImmf 8 + syscall 0, 32 ; func_screen_whitein (1 in, 0 out) + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 8 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 8 + pushFromFSp 4 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 8 + pushImm 261 + pushImmf 0 + gosub 12, L1054 + drop + pushFromFSp 8 + pushImm L1085 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + ret +L1021: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1039 + pushFromPSpVal 144 + pushImm 13 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + ret +L1039: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 0 + pushImm -1 + popToSpVal 128 + ret +L1054: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromPSpVal 0 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + syscall 1, 29 ; trap_obj_motion_capture (4 in, 1 out) + popToSpVal 132 + pushFromFSp 8 + popToSpVal 128 + pushFromFSp 4 + popToSpVal 124 + pushFromFSpVal 132 + ret +D1085: +L1085: + popToSp 0 + pushImmf 20 + gosub 4, L1244 + pushFromPWp W688 + pushFromFSp 0 + gosub 4, L1266 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 +L1104: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1411 + eqz + jz L1116 + halt + jmp L1104 +L1116: + pushFromPAi L27786 ; ___ai riku detach (L27786) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushFromPWp W688 + pushImm 144 + add + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + pushFromPWp W688 + pushImm 12 + syscall 10, 6 ; trap_obj_set_special_command (2 in, 0 out) + pushFromFSp 0 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + pushFromFSp 0 + pushFromPWp W688 + pushImm 144 + add + gosub 4, L1444 + pushFromPWp W688 + pushFromFSp 0 + pushImm 264 + pushImmf 0 + gosub 4, L1054 + drop + pushFromPWp W688 + pushFromFSp 0 + gosub 4, L4892 +L1168: + pushFromPWp W688 + pushImm 144 + add + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + dup + pushImm 197 + sub + jz L1187 + jmp L1202 +L1187: + pushFromPWp W688 + pushFromFSp 0 + pushImm 265 + pushImmf 0 + gosub 4, L4953 + drop + jmp L1239 +L1202: + dup + pushImm 198 + sub + jz L1211 + jmp L1226 +L1211: + pushFromPWp W688 + pushFromFSp 0 + pushImm 266 + pushImmf 0 + gosub 4, L4953 + drop + jmp L1239 +L1226: + pushFromPWp W688 + pushFromFSp 0 + pushImm 264 + pushImmf 0 + gosub 4, L4953 + drop +L1239: + drop + halt + jmp L1168 +L1243: + ret +L1244: + popToSp 0 +L1246: + pushFromFSp 0 + pushImmf 0 + subf + supzf + jz L1265 + pushFromFSp 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 0 + halt + jmp L1246 +L1265: + ret +D1266: +L1266: + popToSp 4 + popToSp 0 + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 4 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 4 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L344 + pushFromFSp 4 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromPSpVal 144 + pushImm L1402 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 144 + pushFromFSp 4 + pushImm 16386 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromPSpVal 144 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 144 + pushImm 259 + pushImmf 0 + gosub 12, L1054 + drop + pushFromFSp 0 + pushFromFSp 4 + pushImm 259 + pushImmf 0 + gosub 12, L1054 + drop + pushFromFSp 0 + pushFromPAi L27708 ; ___ai rc_invitation_to_dark2 (L27708) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromPSpVal 0 + pushImm 9 + syscall 1, 52 ; method_obj_enable_collision (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L27737 ; ___ai 50 (L27737) + pushFromFSp 4 + syscall 1, 157 ; trap_obj_camera_start (3 in, 0 out) + ret +L1402: + popToSp 0 + gosub 4, L1407 + ret +L1407: + halt + jmp L1407 +L1410: + ret +L1411: + popToSp 0 + popToSp 4 + pushFromFSp 4 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + dup + jz L1431 + pushFromFSp 4 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqzv +L1431: + dup + jnz L1443 + pushFromFSp 4 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + pushFromFSp 0 + sub + neqz + neqzv +L1443: + ret +L1444: + popToSp 0 + popToSp 4 + pushImm L19571 + syscall 4, 4 ; trap_mission_information (1 in, 0 out) + pushFromPWp W448 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L1484 + pushFromFSp 0 + pushImm L1670 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + ret +L1484: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L1039 + pushFromPSpVal 144 + pushFromFSp 4 + fetchValue 4 + gosub 12, L302 + pushFromPSpVal 144 + pushImm 251 + syscall 1, 75 ; trap_obj_motion_hook (2 in, 0 out) + pushFromPSpVal 144 + pushImm 0 + gosub 12, L1645 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 251 + syscall 1, 75 ; trap_obj_motion_hook (2 in, 0 out) + pushFromPSpVal 144 + syscall 1, 60 ; trap_obj_is_air (1 in, 1 out) + jz L1558 + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromPSpVal 144 + pushFromPSp 16 + pushImm 3 + pushImmf 0 + pushImm 1 + syscall 1, 55 ; method_obj_jump (5 in, 0 out) + jmp L1570 +L1558: + pushFromPSpVal 144 + fetchValue 4 + pushImm 0 + pushImmf 8 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L1570: + pushFromPSpVal 144 + pushImm 1 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + pushFromPSpVal 144 + pushImm 2 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + pushFromPSpVal 160 + pushImm 2079 + syscall 1, 114 ; trap_obj_search_by_entry (2 in, 0 out) + pushFromPSpVal 176 + pushFromFSp 8 + fetchValue 4 + gosub 12, L302 + pushFromPSpVal 176 + syscall 1, 133 ; trap_obj_hide (1 in, 0 out) + pushFromPSpVal 176 + pushImm 8 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromPSpVal 176 + pushImm 3 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromPSpVal 176 + pushFromFSp 0 + pushImm 144 + add + pushImm 16384 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushImm 0 + popToSpVal 228 + ret +L1645: + popToSp 0 + popToSp 4 + pushFromPSp 24 + pushFromFSp 4 + fetchValue 4 + gosub 12, L302 + pushFromPSp 8 + pushFromPSp 24 + pushFromFSp 0 + syscall 1, 234 ; trap_party_get_weapon (2 in, 1 out) + gosub 12, L302 + pushFromPSp 8 + ret +L1670: + popToSp 0 + pushFromPWp W448 + gosub 4, L1695 + pushFromFSp 0 + syscall 1, 76 ; trap_obj_motion_unhook (1 in, 0 out) + pushFromFSp 0 + pushImm 0 + gosub 4, L1645 + memcpyToSp 16, 4 + pushFromPSp 4 + syscall 1, 76 ; trap_obj_motion_unhook (1 in, 0 out) + ret +L1695: + popToSp 0 +L1697: + pushFromFSp 0 + pushImm 1 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L1712 + pushFromPAi L28006 ; ___ai range 1 (L28006) + syscall 0, 2 ; trap_puts (1 in, 0 out) + jmp L1712 +L1712: + pushFromFSp 0 + pushImm 2 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L1727 + pushFromPAi L28030 ; ___ai range 2 (L28030) + syscall 0, 2 ; trap_puts (1 in, 0 out) + jmp L1727 +L1727: + pushFromFSpVal 228 + dup + pushImm 0 + sub + jz L1738 + jmp L1744 +L1738: + pushFromFSp 0 + gosub 4, L1794 + jmp L1789 +L1744: + dup + pushImm 1 + sub + jz L1753 + jmp L1759 +L1753: + pushFromFSp 0 + gosub 4, L2048 + jmp L1789 +L1759: + dup + pushImm 2 + sub + jz L1768 + jmp L1774 +L1768: + pushFromFSp 0 + gosub 4, L2189 + jmp L1789 +L1774: + dup + pushImm 3 + sub + jz L1783 + jmp L1789 +L1783: + pushFromFSp 0 + gosub 4, L2220 + jmp L1789 +L1789: + drop + halt + jmp L1697 +L1793: + ret +L1794: + popToSp 0 + pushFromFSp 0 + gosub 12, L1857 + pushFromFSp 0 + gosub 12, L1937 + jz L1856 + pushImm 8 + syscall 0, 81 ; trap_pad_is_trigger (1 in, 1 out) + jz L1844 + pushFromPSpVal 208 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + gosub 12, L757 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 97 ; trap_obj_spec (1 in, 1 out) + fetchValue 8 + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + gosub 12, L2013 + jmp L1854 +L1844: + pushFromFSp 0 + pushFromPSpVal 208 + pushFromPSpVal 208 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) +L1854: + jmp L1856 +L1856: + ret +L1857: + popToSp 0 + syscall 1, 3 ; trap_sysobj_player (0 in, 1 out) + memcpyToSp 16, 4 + pushFromPSp 4 + syscall 1, 113 ; trap_player_get_movement (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSpVal 16, 208 + pushFromPSpVal 208 + fetchValue 12 + pushImmf 0 + subf + supzf + jz L1936 + pushFromPSpVal 208 + fetchValue 12 + pushImmf 0.8 + subf + infzf + jz L1917 + pushFromPSpVal 208 + pushImm 12 + add + pushFromFSp 0 + syscall 1, 97 ; trap_obj_spec (1 in, 1 out) + fetchValue 0 + pushImmf 1 + mulf + memcpy 0 + jmp L1934 +L1917: + pushFromPSpVal 208 + pushImm 12 + add + pushFromFSp 0 + syscall 1, 97 ; trap_obj_spec (1 in, 1 out) + fetchValue 4 + pushImmf 1 + mulf + memcpy 0 +L1934: + jmp L1936 +L1936: + ret +L1937: + popToSp 0 + pushImm 0 + popToSp 4 + pushFromPSpVal 144 + gosub 4, L2005 + jz L2002 + pushFromPSpVal 144 + syscall 1, 192 ; trap_obj_is_motion_cancel (1 in, 1 out) + jz L1963 + pushImm 1 + popToSp 4 + jmp L2000 +L1963: + pushFromPSpVal 144 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + dup + pushImm 0 + sub + jz L1992 + dup + pushImm 2 + sub + jz L1992 + dup + pushImm 1 + sub + jz L1992 + jmp L1999 +L1992: + pushImm 1 + popToSp 4 + jmp L1999 +L1999: + drop +L2000: + jmp L2002 +L2002: + pushFromFSp 4 + ret +L2005: + popToSp 0 + pushFromFSp 0 + syscall 1, 60 ; trap_obj_is_air (1 in, 1 out) + eqz + ret +D2013: +L2013: + popToSp 4 + popToSp 0 + pushFromPSpVal 144 + pushFromFSp 4 + pushImm 3 + pushImmf 0 + pushImm 1 + syscall 1, 55 ; method_obj_jump (5 in, 0 out) + pushImm 1 + popToSpVal 228 + pushImmf 0 + popToSpVal 224 + pushImm 0 + popToSpVal 236 + ret +L2048: + popToSp 0 + pushFromFSp 0 + gosub 4, L1857 + pushFromPSpVal 144 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + dup + pushImm 5 + sub + jz L2073 + jmp L2088 +L2073: + pushFromPSpVal 144 + syscall 1, 192 ; trap_obj_is_motion_cancel (1 in, 1 out) + jz L2086 + pushImm 0 + popToSpVal 228 + jmp L2086 +L2086: + jmp L2187 +L2088: + dup + pushImm 0 + sub + jz L2097 + jmp L2104 +L2097: + pushImm 0 + popToSpVal 228 + jmp L2187 +L2104: + dup + pushImm 3 + sub + jz L2113 + jmp L2169 +L2113: + pushFromFSpVal 224 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + addf + popToSpVal 224 + pushFromFSpVal 236 + eqz + dup + jz L2134 + pushFromFSpVal 224 + pushImmf 10 + subf + supzf + eqzv +L2134: + jz L2167 + pushImm 8 + syscall 0, 80 ; trap_pad_is_button (1 in, 1 out) + eqz + jz L2165 + pushFromPSpVal 144 + pushImmf 0 + syscall 1, 128 ; trap_obj_sysjump (2 in, 0 out) + pushFromPSpVal 144 + pushImm 4 + syscall 1, 179 ; trap_obj_set_fall_motion (2 in, 0 out) + pushImm 1 + popToSpVal 236 + jmp L2165 +L2165: + jmp L2167 +L2167: + jmp L2187 +L2169: + pushFromFSp 0 + syscall 1, 57 ; trap_obj_is_jump (1 in, 1 out) + jz L2187 + pushFromFSp 0 + pushFromPSpVal 208 + pushFromPSpVal 208 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + jmp L2187 +L2187: + drop + ret +L2189: + popToSp 0 + pushFromPSpVal 144 + fetchValue 4 + pushFromFSpVal 232 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromPSpVal 144 + fetchValue 4 + pushImm 4 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushImm 3 + popToSpVal 228 + ret +L2220: + popToSp 0 + pushFromPSp 48 + pushImmf 10 + gosub 24, L2494 + pushFromPSp 48 + pushImmf 0 + gosub 24, L2509 + pushImmf 0 + popToSp 72 + pushFromPSp 56 + pushImmf 12 + pushImmf -0.8 + pushImmf 0 + pushImmf 0 + gosub 24, L2518 + syscall 2, 67 ; trap_attack_new_combo_group (0 in, 1 out) + popToSp 76 +L2261: + pushFromFSpVal 232 + pushFromPSpVal 144 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + sub + eqz + jz L2488 + pushFromPSpVal 144 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + gosub 24, L757 + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 191 ; trap_obj_lockon_target (1 in, 1 out) + gosub 28, L2613 + pushFromPSpVal 144 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + eqz + jz L2315 + pushFromPSpVal 144 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + gosub 24, L757 + memcpyToSp 16, 80 + pushFromPSp 80 + pushImm 5 + syscall 1, 121 ; trap_target_search (3 in, 0 out) + jmp L2315 +L2315: + pushFromPSpVal 144 + pushImm 1 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L2420 + pushFromPSp 48 + gosub 24, L2637 + jz L2413 + pushFromPSp 48 + gosub 24, L2647 + pushFromPSp 32 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 1 + gosub 24, L344 + pushFromPSpVal 144 + pushImm 52 + pushFromPSp 32 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + pushFromPSpVal 144 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushImmf 0.349066 + pushFromFSp 72 + gosub 28, L2656 + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromPSpVal 144 + pushFromPSp 32 + pushFromPSp 16 + pushFromFSp 76 + gosub 24, L2896 + pushFromFSp 72 + pushImmf 0.523599 + addf + syscall 0, 43 ; trap_fixrad (1 in, 1 out) + popToSp 72 + jmp L2413 +L2413: + pushFromPSp 48 + gosub 24, L4567 + drop + jmp L2420 +L2420: + pushFromPSpVal 144 + pushImm 2 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L2485 + pushFromPSpVal 144 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + jz L2483 + pushFromPSpVal 144 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromPSpVal 144 + gosub 28, L4854 + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 32 + pushFromPSpVal 144 + pushFromPSp 32 + pushFromPSp 56 + gosub 24, L4330 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + pushFromPSp 56 + gosub 24, L4526 + jmp L2483 +L2483: + jmp L2485 +L2485: + halt + jmp L2261 +L2488: + pushImm 0 + popToSpVal 228 + ret +L2494: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 4 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L2509 + ret +L2509: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 0 + ret +L2518: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + pushFromFSp 0 + pushFromFSp 16 + pushFromFSp 12 + pushFromFSp 8 + gosub 8, L2545 + pushFromFSp 0 + pushFromFSp 4 + gosub 8, L2599 + ret +L2545: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L2572 + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L2581 + pushFromFSp 0 + pushFromFSp 4 + gosub 8, L2590 + ret +L2572: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 8 + ret +L2581: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 4 + ret +L2590: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 0 + ret +L2599: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushImm 12 + add + pushFromFSp 4 + memcpy 0 + ret +L2613: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L291 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 160 ; trap_target_set_obj (2 in, 0 out) + pushFromFSp 4 + syscall 6, 57 ; trap_target_get_group (1 in, 1 out) + popToSpVal 4 + ret +L2637: + popToSp 0 + pushFromFSpVal 0 + pushImmf 0 + subf + infoezf + ret +L2647: + popToSp 0 + pushFromFSp 0 + pushFromFSpVal 4 + gosub 4, L2509 + ret +L2656: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + popToSp 12 + pushFromFSp 0 + fetchValue 0 + syscall 0, 23 ; trap_absf (1 in, 1 out) + popToSp 24 + pushFromFSp 0 + fetchValue 4 + syscall 0, 23 ; trap_absf (1 in, 1 out) + popToSp 20 + pushFromFSp 0 + fetchValue 8 + syscall 0, 23 ; trap_absf (1 in, 1 out) + popToSp 16 + pushFromFSp 24 + pushFromFSp 20 + subf + infoezf + dup + jz L2708 + pushFromFSp 24 + pushFromFSp 16 + subf + infoezf + eqzv +L2708: + jz L2728 + pushFromPSp 48 + pushImmf 1 + pushImmf 0 + pushImmf 0 + pushImmf 1 + gosub 24, L344 + jmp L2780 +L2728: + pushFromFSp 20 + pushFromFSp 24 + subf + infoezf + dup + jz L2744 + pushFromFSp 20 + pushFromFSp 16 + subf + infoezf + eqzv +L2744: + jz L2764 + pushFromPSp 48 + pushImmf 0 + pushImmf 1 + pushImmf 0 + pushImmf 1 + gosub 24, L344 + jmp L2780 +L2764: + pushFromPSp 48 + pushImmf 0 + pushImmf 0 + pushImmf 1 + pushImmf 1 + gosub 24, L344 +L2780: + pushFromFSp 0 + pushFromPSp 48 + syscall 0, 82 ; trap_vector_outer_product (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 48 + pushFromFSp 8 + sin + pushFromFSp 8 + cos + divf + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 48 + pushFromPSp 48 + pushImm 12 + add + pushImmf 0 + memcpy 0 + pushFromFSp 0 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 48 + pushFromPSp 64 + pushFromFSp 4 + syscall 0, 83 ; trap_vector_rot (3 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromPSp 64 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 32 + pushFromFSp 12 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 12 + add + pushFromFSp 0 + fetchValue 12 + memcpy 0 + pushFromPSp 32 + ret +L2896: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushImm 288 + pushImm L2944 + pushFromFSp 12 + gosub 8, L4675 + popToSp 16 + pushFromFSp 16 + pushFromFSp 4 + pushImm 0 + gosub 8, L4813 + pushFromFSp 16 + pushImm 32 + add + pushFromFSp 8 + memcpy 16 + pushFromFSp 16 + pushImm 248 + add + pushFromFSp 0 + memcpy 0 + ret +L2944: + popToSp 0 + pushFromFSp 0 + gosub 4, L2959 + pushFromFSp 0 + gosub 4, L3167 + pushFromFSp 0 + gosub 4, L4653 + ret +L2959: + popToSp 0 + pushFromFSpVal 248 + popToSp 4 + pushFromFSp 0 + gosub 4, L2979 + pushFromFSp 4 + popToSpVal 248 + pushImm 1 + popToSpVal 260 + ret +L2979: + popToSp 0 + pushFromFSp 0 + gosub 4, L3025 + pushImm -1 + popToSpVal 248 + pushFromPSpVal 112 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 200 + pushImmf 0 + gosub 4, L3042 + pushImm 0 + popToSpVal 260 + pushImm 0 + popToSpVal 264 + pushImmf 0 + popToSpVal 252 + ret +L3025: + popToSp 0 + pushFromFSp 0 + gosub 4, L414 + pushImm 0 + popToSpVal 64 + pushImm 0 + popToSpVal 68 + ret +L3042: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 20 + popToSp 0 + pushFromFSp 0 + pushFromFSp 20 + pushFromFSp 16 + pushFromFSp 12 + gosub 8, L2545 + pushFromFSp 0 + pushFromFSp 4 + gosub 8, L3135 + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L3158 + pushFromPSpVal 48 + pushImmf 1 + gosub 8, L737 + pushFromFSp 8 + popToSpVal 68 + pushFromPSpVal 32 + pushImmf 1 + gosub 8, L737 + pushImm 0 + popToSpVal 92 + pushImm 0 + popToSpVal 96 + pushImm 0 + popToSpVal 104 + pushImm 0 + popToSpVal 64 + pushImm 0 + popToSpVal 100 + pushImmf 100000 + popToSpVal 76 + pushImmf 200 + popToSpVal 80 + pushImmf -1 + popToSpVal 84 + ret +L3135: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 72 + pushFromFSp 0 + pushImm 88 + add + pushFromFSpVal 72 + pushImmf 0 + subf + infoezf + memcpy 0 + ret +L3158: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 68 + ret +L3167: + popToSp 0 + pushFromFSpVal 280 + pushImm 0 + sub + neqz + jz L3192 + pushFromFSpVal 280 + pushImm 2 + pushImm 0 + syscall 2, 57 ; trap_limit_effect_start (3 in, 1 out) + popToSpVal 64 + jmp L3207 +L3192: + pushFromPSpVal 0 + pushImm 2 + pushImm 0 + pushImm 0 + syscall 1, 21 ; trap_obj_effect_start (4 in, 1 out) + popToSpVal 64 +L3207: + pushFromPSpVal 0 + pushImm 1700 + pushFromFSpVal 248 + pushFromFSpVal 244 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSpVal 68 + pushFromFSpVal 268 + jz L3234 + pushFromFSpVal 68 + pushFromFSpVal 276 + pushFromPSpVal 280 + syscall 2, 38 ; trap_attack_set_hit_callback (3 in, 0 out) + jmp L3234 +L3234: + pushFromFSpVal 256 + jz L3253 + pushFromFSpVal 68 + pushFromPSpVal 0 + syscall 1, 88 ; trap_obj_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + jmp L3253 +L3253: + pushFromFSp 0 + gosub 8, L3447 + pushFromFSp 0 + gosub 8, L3629 + pushFromFSpVal 68 + pushImm 0 + sub + neqz + dup + jz L3276 + pushFromFSpVal 68 + syscall 2, 39 ; trap_attack_is_reflect (1 in, 1 out) + eqzv +L3276: + dup + jz L3288 + pushImm -1 + pushImm 0 + sub + msbi + eqzv +L3288: + jz L3386 + pushFromFSpVal 68 + syscall 2, 44 ; trap_attack_reflecter (1 in, 1 out) + memcpyToSp 16, 20 + pushFromPSp 20 + memcpyToSp 16, 4 + pushFromFSp 0 + gosub 8, L3387 + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSpVal 16, 80 + pushFromFSpVal 280 + pushImm 0 + sub + neqz + jz L3337 + pushFromFSpVal 280 + pushImm 2 + pushImm 0 + syscall 2, 57 ; trap_limit_effect_start (3 in, 1 out) + popToSpVal 64 + jmp L3352 +L3337: + pushFromPSpVal 0 + pushImm 2 + pushImm 0 + pushImm 0 + syscall 1, 21 ; trap_obj_effect_start (4 in, 1 out) + popToSpVal 64 +L3352: + pushFromPSp 4 + pushImm -1 + pushFromFSpVal 248 + pushFromFSpVal 244 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSpVal 68 + pushFromFSpVal 68 + pushFromPSpVal 0 + syscall 2, 22 ; trap_attack_set_obj_pax (2 in, 0 out) + pushFromPSp 4 + memcpyToSpVal 16, 0 + pushFromFSp 0 + gosub 8, L3447 + pushFromFSp 0 + gosub 8, L3629 + jmp L3386 +L3386: + ret +L3387: + popToSp 0 + pushFromFSpVal 48 + syscall 1, 132 ; trap_target_free (1 in, 0 out) + pushFromFSpVal 68 + syscall 2, 44 ; trap_attack_reflecter (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 131 ; trap_target_dup (1 in, 1 out) + popToSpVal 48 + pushFromFSpVal 48 + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + eqz + jz L3423 + pushFromFSpVal 48 + pushFromPSpVal 0 + syscall 1, 160 ; trap_target_set_obj (2 in, 0 out) + jmp L3423 +L3423: + pushFromFSpVal 68 + syscall 2, 43 ; trap_attack_get_reflect_vector (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromFSpVal 68 + syscall 2, 13 ; trap_attack_free (1 in, 0 out) + pushImm 0 + popToSpVal 68 + pushFromPSp 16 + ret +L3447: + popToSp 0 + pushFromPSpVal 224 + pushImmf 30 + gosub 4, L2509 + pushFromPSpVal 228 + pushImmf 40 + pushImmf 0 + pushImmf 40 + pushImmf 0 + gosub 4, L2518 + pushFromPSpVal 112 + pushImmf 0.174533 + gosub 4, L2572 + pushFromPSpVal 112 + pushImmf 0.087266 + gosub 4, L2581 + pushFromPSpVal 112 + pushImmf 0.523599 + gosub 4, L2590 + pushFromPSpVal 112 + pushImmf 50 + gosub 4, L3158 + pushFromPSpVal 112 + pushImmf 4 + gosub 4, L3556 + pushFromPSpVal 112 + pushFromPSpVal 80 + gosub 4, L3576 + pushFromPSpVal 112 + pushFromFSpVal 48 + pushImm 1 + gosub 4, L3591 + pushFromFSpVal 68 + pushImm 0 + sub + neqz + jz L3543 + pushFromFSpVal 68 + pushImmf 80 + pushImmf 0 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + jmp L3543 +L3543: + pushFromFSpVal 272 + jz L3555 + pushFromPSpVal 112 + pushFromPSpVal 96 + gosub 4, L3614 + jmp L3555 +L3555: + ret +L3556: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 72 + pushFromFSp 0 + pushFromFSpVal 72 + gosub 4, L3135 + pushImm 0 + popToSpVal 92 + ret +L3576: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 16 + pushFromPSpVal 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + ret +L3591: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + popToSpVal 64 + pushFromFSp 4 + jz L3613 + pushFromFSp 0 + pushFromFSpVal 72 + gosub 8, L3135 + jmp L3613 +L3613: + ret +L3614: + popToSp 4 + popToSp 0 + pushImm 1 + popToSpVal 100 + pushFromFSp 4 + memcpyToSpVal 16, 48 + ret +L3629: + popToSp 0 + pushFromPSp 4 + pushImmf 0 + gosub 4, L2509 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 4, L4335 + pushFromFSp 0 + pushFromPSpVal 80 + gosub 4, L4493 +L3650: + pushFromFSpVal 64 + pushImm 0 + sub + eqz + dup + jnz L3665 + pushFromFSpVal 64 + syscall 0, 50 ; trap_effect_is_active (1 in, 1 out) + neqzv +L3665: + jz L3828 + pushFromFSpVal 68 + pushImm 0 + sub + neqz + jz L3722 + pushFromFSpVal 68 + syscall 2, 29 ; trap_attack_is_hit_bg (1 in, 1 out) + dup + jnz L3688 + pushFromFSpVal 68 + syscall 2, 39 ; trap_attack_is_reflect (1 in, 1 out) + neqzv +L3688: + dup + jnz L3703 + pushFromFSpVal 260 + eqz + dup + jz L3702 + pushFromFSpVal 68 + syscall 2, 14 ; trap_attack_is_hit (1 in, 1 out) + eqzv +L3702: + neqzv +L3703: + jz L3720 + pushImm 1 + jz L3716 + pushFromFSp 0 + gosub 4, L3829 + jmp L3716 +L3716: + jmp L3828 +L3718: + jmp L3720 +L3720: + jmp L3722 +L3722: + pushFromPSpVal 112 + pushFromPSpVal 32 + gosub 4, L3852 + pushFromPSpVal 32 + pushFromPSpVal 112 + pushImm 16 + add + pushFromPSpVal 228 + gosub 4, L4330 + syscall 0, 45 ; trap_vector_addf (3 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 32 + gosub 4, L4335 + pushFromFSp 0 + pushFromPSpVal 112 + pushImm 16 + add + gosub 4, L4493 + halt + pushFromPSpVal 228 + gosub 4, L4526 + pushFromPSp 4 + gosub 4, L4567 + jz L3775 + pushFromFSp 0 + gosub 4, L4630 + jmp L3775 +L3775: + pushFromPSpVal 224 + gosub 4, L4567 + jz L3826 + pushFromFSpVal 64 + pushImm 0 + sub + eqz + jz L3794 + jmp L3828 +L3792: + jmp L3794 +L3794: + pushFromFSpVal 64 + pushImmf 8 + gosub 4, L4601 + pushFromPSp 4 + pushImmf 8 + gosub 4, L2509 + pushImmf 8 + pushImmf 0 + subf + infoezf + jz L3824 + pushFromFSp 0 + gosub 4, L4630 + jmp L3824 +L3824: + jmp L3826 +L3826: + jmp L3650 +L3828: + ret +L3829: + popToSp 0 + pushFromFSpVal 64 + pushImm 0 + sub + neqz + jz L3851 + pushFromFSpVal 64 + syscall 0, 51 ; trap_effect_kill (1 in, 0 out) + pushImm 0 + popToSpVal 64 + jmp L3851 +L3851: + ret +L3852: + popToSp 4 + popToSp 0 + pushImmf 100000 + popToSpVal 76 + pushFromFSpVal 88 + jz L3954 + pushFromFSp 0 + gosub 12, L3989 + jz L3911 + pushFromFSpVal 64 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPSpVal 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 4 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromFSp 4 + pushFromPSp 16 + gosub 12, L4007 + jmp L3952 +L3911: + pushFromFSpVal 100 + jz L3948 + pushFromPSpVal 48 + pushFromPSpVal 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 4 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromFSp 4 + pushFromPSp 16 + gosub 12, L4007 + jmp L3952 +L3948: + pushFromFSp 0 + gosub 12, L4240 +L3952: + jmp L3988 +L3954: + pushFromFSpVal 72 + pushImmf 0 + subf + supzf + jz L3988 + pushFromFSpVal 72 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSpVal 72 + pushFromFSpVal 72 + pushImmf 0 + subf + infoezf + jz L3986 + pushImm 1 + popToSpVal 88 + jmp L3986 +L3986: + jmp L3988 +L3988: + ret +L3989: + popToSp 0 + pushFromFSpVal 64 + pushImm 0 + sub + neqz + dup + jz L4006 + pushFromFSpVal 64 + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + eqzv +L4006: + ret +L4007: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L4134 + pushFromFSpVal 68 + subf + infzf + jz L4031 + pushFromFSp 0 + gosub 8, L4240 + jmp L4133 +L4031: + pushFromFSpVal 104 + jz L4110 + pushFromFSp 0 + gosub 8, L4270 + pushImmf 0 + subf + supzf + jz L4108 + pushFromPSpVal 16 + pushFromFSp 4 + syscall 0, 21 ; trap_vector_get_rot_xz (2 in, 1 out) + popToSp 12 + pushFromFSp 12 + syscall 0, 23 ; trap_absf (1 in, 1 out) + pushFromFSp 0 + gosub 8, L4270 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + subf + supzf + jz L4092 + pushFromFSp 12 + pushFromFSp 12 + syscall 0, 23 ; trap_absf (1 in, 1 out) + divf + popToSp 12 + pushFromFSp 12 + pushFromFSp 0 + gosub 8, L4270 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + mulf + popToSp 12 + jmp L4092 +L4092: + pushFromPSpVal 16 + pushFromFSp 12 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + memcpyToSpVal 16, 16 + jmp L4108 +L4108: + jmp L4120 +L4110: + pushFromPSpVal 16 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L4270 + syscall 0, 46 ; trap_vector_homing (3 in, 0 out) +L4120: + pushFromFSpVal 8 + pushFromFSpVal 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + pushFromFSpVal 0 + gosub 8, L4275 + popToSpVal 8 +L4133: + ret +L4134: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 12, L3989 + jz L4183 + pushFromFSp 4 + memcpyToSp 16, 16 + pushFromFSpVal 96 + jz L4173 + pushFromPSp 16 + pushImm 4 + add + pushFromFSpVal 64 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + fetchValue 4 + memcpy 0 + jmp L4173 +L4173: + pushFromFSpVal 64 + pushFromPSp 16 + syscall 6, 9 ; trap_target_dist (2 in, 1 out) + popToSpVal 76 + jmp L4237 +L4183: + pushFromFSpVal 100 + jz L4237 + pushFromPSpVal 48 + pushFromPSpVal 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 4 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromFSpVal 96 + jz L4226 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + memcpy 0 + jmp L4226 +L4226: + pushFromPSp 16 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + pushFromFSpVal 80 + subf + popToSpVal 76 + jmp L4237 +L4237: + pushFromFSpVal 76 + ret +L4240: + popToSp 0 + pushImm 0 + popToSpVal 88 + pushImm 1 + popToSpVal 92 + pushFromFSpVal 84 + pushImmf 0 + subf + supoezf + jz L4269 + pushFromFSp 0 + pushFromFSpVal 84 + gosub 4, L3556 + jmp L4269 +L4269: + ret +L4270: + popToSp 0 + pushFromFSpVal 8 + ret +L4275: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + pushFromFSp 4 + addf + popToSp 8 + pushFromFSp 4 + pushImmf 0 + subf + infzf + jz L4313 + pushFromFSp 8 + pushFromFSp 0 + subf + infzf + jz L4311 + pushFromFSp 0 + popToSp 8 + jmp L4311 +L4311: + jmp L4327 +L4313: + pushFromFSp 8 + pushFromFSp 0 + subf + supzf + jz L4327 + pushFromFSp 0 + popToSp 8 + jmp L4327 +L4327: + pushFromFSp 8 + ret +L4330: + popToSp 0 + pushFromFSpVal 8 + ret +L4335: + popToSp 4 + popToSp 0 + pushFromFSpVal 264 + jz L4415 + pushFromFSp 4 + memcpyToSp 16, 64 + pushFromPSp 64 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -200 + addf + memcpy 0 + pushFromFSp 4 + memcpyToSp 16, 48 + pushFromPSp 48 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 10000 + addf + memcpy 0 + pushFromPSp 16 + pushFromPSp 64 + pushFromPSp 48 + pushImm 65540 + syscall 6, 51 ; trap_bghit_check_line (4 in, 1 out) + jz L4408 + pushFromPSp 16 + syscall 6, 54 ; trap_bghit_get_cross_pos (1 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 80 + jmp L4413 +L4408: + pushFromFSp 4 + memcpyToSp 16, 80 +L4413: + jmp L4420 +L4415: + pushFromFSp 4 + memcpyToSp 16, 80 +L4420: + pushFromPSp 80 + memcpyToSpVal 16, 32 + pushFromFSpVal 64 + pushImm 0 + sub + neqz + jz L4442 + pushFromFSpVal 64 + pushFromPSp 80 + syscall 0, 38 ; trap_effect_set_pos (2 in, 0 out) + jmp L4442 +L4442: + pushFromFSpVal 68 + pushImm 0 + sub + neqz + jz L4492 + pushFromFSpVal 252 + pushImmf 0 + subf + supzf + jz L4484 + pushFromFSpVal 68 + pushFromPSpVal 32 + pushFromPSp 80 + syscall 2, 19 ; trap_attack_set_line (3 in, 0 out) + pushFromPSp 80 + pushImm 4 + add + dup + fetchValue 0 + pushFromFSpVal 252 + negf + addf + memcpy 0 + jmp L4490 +L4484: + pushFromFSpVal 68 + pushFromPSp 80 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) +L4490: + jmp L4492 +L4492: + ret +L4493: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 80 + pushFromFSpVal 64 + pushImm 0 + sub + neqz + jz L4519 + pushFromFSpVal 64 + pushFromFSp 4 + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + jmp L4519 +L4519: + pushFromPSpVal 112 + pushFromFSp 4 + gosub 4, L3576 + ret +L4526: + popToSp 0 + pushFromFSpVal 12 + pushImmf 0 + subf + infoezf + jz L4543 + pushFromFSp 0 + gosub 4, L4551 + jmp L4550 +L4543: + pushFromFSpVal 12 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSpVal 12 +L4550: + ret +L4551: + popToSp 0 + pushFromFSpVal 8 + pushFromFSpVal 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + pushFromFSpVal 0 + gosub 4, L4275 + popToSpVal 8 + ret +L4567: + popToSp 0 + pushImm 0 + popToSp 4 + pushFromFSpVal 0 + pushImmf 0 + subf + supzf + jz L4598 + pushFromFSpVal 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSpVal 0 + pushFromFSp 0 + gosub 4, L2637 + popToSp 4 + jmp L4598 +L4598: + pushFromFSp 4 + ret +L4601: + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushImmf 0 + subf + supoezf + jz L4625 + pushFromFSp 0 + pushFromFSp 4 + pushImm 0 + syscall 0, 52 ; trap_effect_fadeout (3 in, 0 out) + jmp L4629 +L4625: + pushFromFSp 0 + syscall 0, 44 ; trap_effect_loop_end (1 in, 0 out) +L4629: + ret +L4630: + popToSp 0 + pushFromFSpVal 68 + pushImm 0 + sub + neqz + jz L4652 + pushFromFSpVal 68 + syscall 2, 13 ; trap_attack_free (1 in, 0 out) + pushImm 0 + popToSpVal 68 + jmp L4652 +L4652: + ret +L4653: + popToSp 0 + pushFromFSp 0 + gosub 4, L4664 + pushFromFSp 0 + gosub 4, L836 + ret +L4664: + popToSp 0 + pushFromFSp 0 + gosub 4, L3829 + pushFromFSp 0 + gosub 4, L4630 + ret +L4675: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L847 + popToSp 12 + pushFromFSp 12 + gosub 8, L4698 + pushFromFSp 12 + ret +L4698: + popToSp 0 + pushFromPSpVal 80 + pushImmf 1 + gosub 4, L737 + pushFromPSpVal 96 + pushImmf 1 + gosub 4, L737 + pushFromPSpVal 112 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 200 + pushImmf 0 + gosub 4, L3042 + pushFromPSpVal 224 + pushImmf 0 + gosub 4, L2509 + pushFromPSpVal 228 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 0 + gosub 4, L2518 + pushImm 0 + popToSpVal 244 + pushImm -1 + popToSpVal 248 + pushImmf 0 + popToSpVal 252 + pushImm 0 + popToSpVal 256 + pushImm 0 + popToSpVal 260 + pushImm 0 + popToSpVal 264 + pushImm 0 + popToSpVal 268 + pushImm 0 + popToSpVal 272 + pushImm 0 + popToSpVal 276 + pushImm 0 + memcpyToSpVal 0, 280 + pushImm 0 + popToSpVal 280 + ret +L4813: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + gosub 8, L4698 + pushFromFSp 8 + memcpyToSpVal 16, 80 + pushFromFSp 4 + popToSpVal 244 + pushImm 0 + popToSpVal 256 + pushImm 0 + popToSpVal 268 + pushImm 0 + popToSpVal 276 + pushImm 0 + memcpyToSpVal 0, 280 + ret +L4854: + popToSp 0 + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 1 + gosub 12, L344 + pushFromFSp 0 + pushImm 16385 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + ret +L4892: + popToSp 4 + popToSp 0 + pushFromPSpVal 160 + pushImm 2258 + gosub 4, L4940 + pushFromPSpVal 160 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L4939 + pushFromPSpVal 160 + pushFromFSp 4 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) + pushFromPSpVal 160 + pushFromFSp 4 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + jmp L4939 +L4939: + ret +L4940: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + syscall 1, 0 ; trap_sysobj_appear (1 in, 1 out) + gosub 4, L302 + ret +L4953: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L4986 + eqz + jz L4983 + pushFromFSp 0 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + gosub 8, L1054 + drop + jmp L4983 +L4983: + pushFromFSpVal 132 + ret +L4986: + popToSp 4 + popToSp 0 + pushFromFSp 4 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + pushFromFSpVal 132 + sub + neqz + ret +OBJ_ANMATR_EFFECT: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 4 + dup + pushImm 25 + sub + jz L5016 + jmp L5140 +L5016: + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 1 + pushImmf 1 + gosub 12, L344 + pushFromPSp 16 + pushImmf -1.047198 + syscall 0, 68 ; trap_vector_rotx (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 8 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + fetchValue 12 + pushImmf 1.570796 + addf + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 8 + pushFromFSp 0 + pushFromPSp 16 + gosub 12, L5168 + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 1 + pushImmf 1 + gosub 12, L344 + pushFromPSp 16 + pushImmf 1.047198 + syscall 0, 68 ; trap_vector_rotx (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 8 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + fetchValue 12 + pushImmf -1.570796 + addf + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 8 + pushFromFSp 0 + pushFromPSp 16 + gosub 12, L5168 + jmp L5166 +L5140: + dup + pushImm 44 + sub + jz L5149 + jmp L5166 +L5149: + pushFromPWp W1072 + fetchValue 160 + eqz + jz L5164 + pushFromFSp 8 + pushFromFSp 0 + gosub 12, L5809 + jmp L5164 +L5164: + jmp L5166 +L5166: + drop + ret +L5168: + popToSp 0 + popToSp 4 + popToSp 8 + pushImm 96 + pushImm L5195 + pushFromFSp 8 + pushFromFSp 4 + gosub 8, L5769 + popToSp 12 + pushFromFSp 12 + pushFromFSp 0 + gosub 8, L5799 + ret +D5195: +L5195: + popToSp 0 + pushFromFSp 0 + gosub 4, L3025 + pushFromFSp 0 + gosub 4, L5210 + pushFromFSp 0 + gosub 4, L4653 + ret +L5210: + popToSp 0 + pushFromPSp 32 + pushImmf 8 + gosub 44, L2509 + pushFromPSpVal 0 + pushImm 1609 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSpVal 68 + pushFromFSpVal 68 + pushImmf 70 + pushImmf 0 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromPSpVal 0 + pushImm 26 + pushImm 0 + pushImm 0 + syscall 1, 21 ; trap_obj_effect_start (4 in, 1 out) + popToSpVal 64 + pushFromPSpVal 72 + pushImmf 30 + pushImmf 120 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + gosub 44, L2509 + pushFromPSp 48 + pushImmf 0.02618 + pushImmf 0 + pushImmf 0.02618 + pushImmf 300 + pushImmf 8 + gosub 44, L3042 + pushFromPSp 48 + pushFromFSpVal 48 + pushImm 1 + gosub 44, L3591 + pushFromPSp 48 + pushFromPSpVal 80 + gosub 44, L3576 + pushFromPSp 48 + pushFromFSp 0 + gosub 44, L5507 + memcpyToSp 16, 160 + pushFromPSp 160 + gosub 48, L5614 + pushFromPSp 36 + pushImmf 8 + gosub 44, L2494 +L5325: + pushFromFSpVal 64 + syscall 0, 50 ; trap_effect_is_active (1 in, 1 out) + jz L5453 + pushFromPSp 48 + pushFromPSpVal 32 + gosub 44, L3852 + pushFromFSpVal 48 + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + jz L5381 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 160 + pushFromPSp 160 + pushFromPSpVal 32 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 176 + pushFromPSp 176 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + pushImmf 100 + subf + infzf + jz L5379 + jmp L5453 +L5377: + jmp L5379 +L5379: + jmp L5381 +L5381: + pushFromFSpVal 68 + syscall 2, 14 ; trap_attack_is_hit (1 in, 1 out) + jz L5391 + jmp L5453 +L5389: + jmp L5391 +L5391: + pushFromPSpVal 32 + pushFromPSp 48 + pushImm 16 + add + pushImmf 6 + syscall 0, 45 ; trap_vector_addf (3 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 32 + gosub 44, L5463 + halt + pushFromPSp 32 + gosub 44, L4567 + drop + pushFromPSpVal 72 + gosub 44, L4567 + jz L5426 + jmp L5453 +L5424: + jmp L5426 +L5426: + pushFromPSp 36 + gosub 44, L4567 + jz L5451 + pushFromPSp 48 + pushFromFSp 0 + gosub 44, L5507 + memcpyToSp 16, 160 + pushFromPSp 160 + gosub 48, L5614 + pushFromPSp 36 + gosub 44, L2647 + jmp L5451 +L5451: + jmp L5325 +L5453: + pushFromPSpVal 0 + pushFromPSpVal 32 + pushImm -1 + gosub 44, L5624 + ret +L5463: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 32 + pushFromFSpVal 64 + pushImm 0 + sub + neqz + jz L5489 + pushFromFSpVal 64 + pushFromFSp 4 + syscall 0, 38 ; trap_effect_set_pos (2 in, 0 out) + jmp L5489 +L5489: + pushFromFSpVal 68 + pushImm 0 + sub + neqz + jz L5506 + pushFromFSpVal 68 + pushFromFSp 4 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + jmp L5506 +L5506: + ret +L5507: + popToSp 0 + pushImmf 200 + pushImmf 600 + gosub 12, L5571 + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf 200 + pushImmf 600 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + memcpy 0 + pushImmf 1 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + pushImmf 0.5 + subf + infzf + jz L5568 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -1 + mulf + memcpy 0 + jmp L5568 +L5568: + pushFromPSp 16 + ret +L5571: + popToSp 0 + popToSp 4 + pushFromPSp 16 + pushFromFSp 4 + pushFromFSp 0 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + pushImmf 0 + pushImmf 0 + pushImmf 0 + gosub 12, L344 + pushFromPSp 16 + pushImmf 6.283185 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + ret +L5614: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 32 + ret +L5624: + popToSp 0 + popToSp 4 + popToSp 8 + pushImm 68 + pushImm L5651 + pushFromFSp 8 + gosub 8, L847 + popToSp 12 + pushFromFSp 12 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L5753 + ret +L5651: + popToSp 0 + pushFromFSp 0 + gosub 4, L414 + pushFromFSp 0 + gosub 4, L5666 + pushFromFSp 0 + gosub 4, L836 + ret +L5666: + popToSp 0 + pushImm 27 + pushImm 0 + sub + msbi + jz L5700 + pushFromPSpVal 0 + pushImm 27 + pushFromFSp 0 + pushImm 32 + add + pushImm 1 + pushImm 0 + syscall 1, 22 ; trap_obj_effect_start_pos (5 in, 1 out) + drop + jmp L5700 +L5700: + pushImmf 16 + gosub 4, L1244 + pushFromPSpVal 0 + pushImm 1611 + pushFromFSpVal 64 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImmf 320 + pushImmf 320 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromFSp 4 + pushFromFSp 0 + pushImm 32 + add + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 4 + pushImmf 90 + pushImmf 320 + pushImmf 320 + syscall 2, 62 ; trap_attack_set_time (4 in, 0 out) + ret +L5753: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + memcpyToSpVal 16, 32 + pushFromFSp 4 + popToSpVal 64 + ret +L5769: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + gosub 8, L847 + popToSp 16 + pushFromFSp 16 + pushImm 16 + add + pushFromFSp 0 + memcpy 0 + pushFromFSp 16 + ret +L5799: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 80 + ret +L5809: + popToSp 0 + popToSp 4 + pushImm 68 + pushImm L5841 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L5769 + popToSp 8 + pushFromFSp 8 + pushImm 64 + add + pushFromFSp 4 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + memcpy 0 + ret +D5841: +L5841: + popToSp 0 + pushFromFSp 0 + gosub 4, L414 + pushFromFSp 0 + gosub 4, L5856 + pushFromFSp 0 + gosub 4, L836 + ret +L5856: + popToSp 0 + pushFromPSp 4 + pushImmf 120 + gosub 8, L2494 + pushFromPSp 4 + pushImmf 0 + gosub 8, L2509 +L5872: + pushFromPSpVal 0 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + dup + jz L5892 + pushFromPSpVal 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushFromFSpVal 64 + sub + eqz + eqzv +L5892: + jz L5969 + pushFromPSpVal 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L5906 + jmp L5969 +L5904: + jmp L5906 +L5906: + pushFromPSpVal 0 + pushImm 1 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L5966 + pushFromPSp 4 + gosub 8, L2637 + jz L5959 + pushImm 0 + popToSp 12 + pushImm 8 +L5929: + dup + pushFromFSp 12 + sub + info + jnz L5952 + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L5970 + pushFromFSp 12 + pushImm 1 + add + popToSp 12 + jmp L5929 +L5952: + drop + pushFromPSp 4 + gosub 8, L2647 + jmp L5959 +L5959: + pushFromPSp 4 + gosub 8, L4567 + drop + jmp L5966 +L5966: + halt + jmp L5872 +L5969: + ret +L5970: + popToSp 4 + popToSp 0 + pushFromPSp 16 + pushImmf 1 + pushImmf 0 + pushImmf 0 + pushImmf 0 + gosub 12, L344 + pushFromPSpVal 0 + pushImm 127 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromPSpVal 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf 0.5 + gosub 16, L6040 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSpVal 0 + pushFromPSpVal 32 + pushFromPSp 16 + gosub 12, L6076 + ret +L6040: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 8 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSp 4 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 8 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + ret +L6076: + popToSp 0 + popToSp 4 + popToSp 8 + pushImm 176 + pushImm L6103 + pushFromFSp 8 + gosub 8, L847 + popToSp 12 + pushFromFSp 12 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L6886 + ret +L6103: + popToSp 0 + pushFromFSp 0 + gosub 4, L6118 + pushFromFSp 0 + gosub 4, L6168 + pushFromFSp 0 + gosub 4, L6830 + ret +L6118: + popToSp 0 + pushFromFSp 0 + gosub 4, L6125 + ret +L6125: + popToSp 0 + pushFromFSp 0 + gosub 4, L414 + pushFromPSpVal 32 + memcpyToSpVal 16, 96 + pushFromPSpVal 32 + memcpyToSpVal 16, 112 + pushFromPSpVal 64 + memcpyToSpVal 16, 80 + pushFromPSpVal 148 + gosub 4, L493 + pushFromPSpVal 152 + gosub 4, L6160 + pushImm 0 + popToSpVal 164 + ret +L6160: + popToSp 0 + pushImm 0 + popToSpVal 0 + ret +L6168: + popToSp 0 + pushFromFSp 0 + pushImmf 0.25 + pushImmf 0.5 + gosub 40, L6375 + pushFromFSp 0 + pushImm 1021 + pushImmf 120 + gosub 40, L6445 + pushFromFSpVal 160 + jz L6206 + pushFromFSp 0 + pushImm 635 + pushImmf 600 + gosub 40, L6540 + jmp L6206 +L6206: + pushFromPSpVal 128 + pushImmf 0 + pushImmf 70 + gosub 40, L6613 + pushFromPSp 32 + pushImmf 0.017453 + pushImmf 0.005236 + pushImmf 0.05236 + pushImmf 200 + pushImmf 2 + gosub 40, L3042 + pushFromPSp 32 + pushFromFSpVal 48 + pushImm 1 + gosub 40, L3591 + pushFromPSp 32 + pushFromPSpVal 64 + gosub 40, L3576 + pushImmf 0 + pushImmf 300 + gosub 40, L5571 + memcpyToSp 16, 144 + pushFromPSp 144 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf -100 + pushImmf 50 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + memcpy 0 + pushFromPSp 32 + pushFromPSp 16 + gosub 40, L5614 + pushFromPSpVal 140 + pushImmf 35 + pushImmf 70 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + gosub 40, L2509 +L6299: + pushFromPSpVal 140 + gosub 40, L2637 + eqz + jz L6351 + pushFromPSp 32 + pushFromPSpVal 32 + gosub 40, L3852 + pushFromPSpVal 128 + gosub 40, L6628 + drop + pushFromPSp 32 + pushImm 16 + add + memcpyToSpVal 16, 64 + pushFromFSp 0 + gosub 40, L6641 + pushFromFSp 0 + pushImmf 600 + gosub 40, L6576 + pushFromPSpVal 148 + pushFromPSpVal 64 + gosub 40, L769 + halt + pushFromPSpVal 140 + gosub 40, L4567 + drop + jmp L6299 +L6351: + pushFromPSpVal 152 + gosub 40, L6743 + pushFromPSpVal 148 + pushImm 1 + gosub 40, L6763 + pushImmf 60 + gosub 40, L1244 + pushFromPSpVal 148 + pushImmf 12 + gosub 40, L6800 + ret +L6375: + popToSp 4 + popToSp 8 + popToSp 0 + pushImmf 1 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + popToSp 12 + pushImm 10 + popToSp 16 + pushFromFSp 12 + pushFromFSp 8 + subf + supzf + jz L6433 + pushFromFSp 12 + pushImmf 1 + pushFromFSp 4 + subf + subf + infzf + jz L6423 + pushFromFSp 16 + pushImm 1 + add + popToSp 16 + jmp L6431 +L6423: + pushFromFSp 16 + pushImm 2 + add + popToSp 16 +L6431: + jmp L6433 +L6433: + pushFromPSpVal 148 + pushFromPSpVal 0 + pushFromFSp 16 + pushImm 0 + gosub 8, L501 + ret +L6445: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromPSpVal 152 + pushFromPSpVal 0 + pushFromFSp 8 + pushImm -1 + pushImm 0 + gosub 8, L6475 + pushFromPSpVal 152 + pushFromFSp 4 + pushImmf 0 + gosub 8, L6517 + ret +L6475: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + pushFromFSp 0 + gosub 8, L6507 + eqz + jz L6506 + pushFromFSp 16 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSpVal 0 + jmp L6506 +L6506: + ret +L6507: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + ret +L6517: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + gosub 8, L6507 + jz L6539 + pushFromFSpVal 0 + pushFromFSp 8 + pushFromFSp 4 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + jmp L6539 +L6539: + ret +L6540: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromPSpVal 152 + gosub 8, L6507 + jz L6575 + pushFromPSpVal 152 + fetchValue 0 + pushFromFSp 0 + pushFromFSp 8 + pushFromFSp 4 + pushImmf 0 + syscall 2, 51 ; trap_attack_set_rc (5 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + gosub 8, L6576 + jmp L6575 +L6575: + ret +L6576: + popToSp 4 + popToSp 0 + pushFromPSpVal 152 + gosub 12, L6507 + jz L6612 + pushFromPSpVal 64 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + pushFromFSp 4 + syscall 0, 35 ; method_vector_scale (2 in, 0 out) + pushFromPSpVal 152 + fetchValue 0 + pushFromPSp 16 + syscall 7, 14 ; trap_attack_set_reaction_offset (2 in, 0 out) + jmp L6612 +L6612: + ret +L6613: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + ret +L6628: + popToSp 0 + pushFromFSpVal 0 + pushFromFSpVal 4 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + popToSpVal 8 + pushFromFSpVal 8 + ret +L6641: + popToSp 0 + pushFromPSpVal 64 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromFSpVal 164 + eqz + jz L6685 + pushFromPSp 16 + pushFromPSpVal 80 + syscall 0, 91 ; trap_vector_inner_prodcut (2 in, 1 out) + pushImmf 0 + subf + infzf + jz L6683 + pushFromPSpVal 32 + memcpyToSpVal 16, 112 + pushImm 1 + popToSpVal 164 + jmp L6683 +L6683: + jmp L6685 +L6685: + pushFromPSpVal 32 + pushFromPSpVal 64 + pushFromPSpVal 128 + fetchValue 8 + syscall 0, 45 ; trap_vector_addf (3 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 32 + gosub 12, L6702 + ret +L6702: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 32 + pushFromPSpVal 148 + pushFromFSp 4 + gosub 4, L647 + pushFromPSpVal 152 + pushFromFSp 4 + gosub 4, L6724 + ret +L6724: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 4, L6507 + jz L6742 + pushFromFSpVal 0 + pushFromFSp 4 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + jmp L6742 +L6742: + ret +L6743: + popToSp 0 + pushFromFSp 0 + gosub 4, L6507 + jz L6762 + pushFromFSpVal 0 + syscall 2, 13 ; trap_attack_free (1 in, 0 out) + pushImm 0 + popToSpVal 0 + jmp L6762 +L6762: + ret +L6763: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 4, L6782 + jz L6781 + pushFromFSpVal 0 + pushFromFSp 4 + syscall 0, 66 ; trap_effect_pause (2 in, 0 out) + jmp L6781 +L6781: + ret +L6782: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + dup + jz L6799 + pushFromFSpVal 0 + syscall 0, 50 ; trap_effect_is_active (1 in, 1 out) + eqzv +L6799: + ret +L6800: + popToSp 4 + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + jz L6829 + pushFromFSpVal 0 + pushFromFSp 4 + pushImm 1 + syscall 0, 52 ; trap_effect_fadeout (3 in, 0 out) + pushImm 0 + popToSpVal 0 + jmp L6829 +L6829: + ret +L6830: + popToSp 0 + pushFromFSp 0 + gosub 4, L6841 + pushFromFSp 0 + gosub 4, L6875 + ret +L6841: + popToSp 0 + pushFromPSpVal 148 + gosub 4, L6852 + pushFromPSpVal 152 + gosub 4, L6743 + ret +L6852: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + jz L6874 + pushFromFSpVal 0 + syscall 0, 85 ; trap_effect_loop_end_kill (1 in, 0 out) + pushImm 0 + popToSpVal 0 + jmp L6874 +L6874: + ret +L6875: + popToSp 0 + pushFromFSp 0 + gosub 4, L6841 + pushFromFSp 0 + gosub 4, L836 + ret +L6886: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + memcpyToSpVal 16, 32 + pushFromFSp 4 + memcpyToSpVal 16, 64 + pushFromPSpVal 64 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + ret +OBJ_ATTACK: + popToSp 0 + popToSp 4 + pushFromFSp 0 + syscall 2, 25 ; trap_attack_get_param_id (1 in, 1 out) + dup + pushImm 1143 + sub + jz L6925 + jmp L6933 +L6925: + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L6935 + jmp L6933 +L6933: + drop + ret +L6935: + popToSp 0 + popToSp 4 + pushFromFSp 4 + syscall 1, 225 ; trap_obj_is_star (1 in, 1 out) + eqz + jz L6956 + pushFromPWp W176 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L6957 + jmp L6956 +L6956: + ret +L6957: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 271 + sub + eqz + jz L7002 + pushImmf 1 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + pushImmf 0.95 + subf + infzf + jz L6995 + pushImm 270 + popToSp 12 + jmp L7000 +L6995: + pushImm 271 + popToSp 12 +L7000: + jmp L7026 +L7002: + pushImmf 1 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + pushImmf 0.95 + subf + infzf + jz L7021 + pushImm 271 + popToSp 12 + jmp L7026 +L7021: + pushImm 270 + popToSp 12 +L7026: + pushFromFSp 0 + pushFromFSp 8 + pushFromFSp 12 + pushImmf 0 + gosub 8, L1054 + drop + pushFromFSp 8 + pushImm L7049 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + ret +D7049: +L7049: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 +L7057: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1411 + eqz + jz L7079 + pushFromFSp 0 + gosub 4, L7175 + jz L7076 + jmp L7079 +L7074: + jmp L7076 +L7076: + halt + jmp L7057 +L7079: + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + jz L7138 + pushFromPWp W176 + pushFromFSp 0 + pushImm 275 + pushImmf 0 + gosub 4, L1054 + popToSp 4 +L7101: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1411 + eqz + jz L7123 + pushFromFSp 0 + gosub 4, L7175 + jz L7120 + jmp L7123 +L7118: + jmp L7120 +L7120: + halt + jmp L7101 +L7123: + pushFromPWp W176 + pushFromFSp 0 + pushImm 272 + pushImmf 0 + gosub 4, L1054 + drop + jmp L7150 +L7138: + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L7150: + gosub 4, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + jz L7174 + pushFromFSp 0 + gosub 4, L7175 + jz L7171 + jmp L7174 +L7169: + jmp L7171 +L7171: + halt + jmp L7150 +L7174: + ret +L7175: + popToSp 0 + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + dup + jz L7191 + pushFromPWp W176 + gosub 4, L7206 + eqzv +L7191: + popToSp 4 + pushFromFSp 4 + jz L7203 + pushFromFSp 0 + gosub 4, L7213 + jmp L7203 +L7203: + pushFromFSp 4 + ret +L7206: + popToSp 0 + pushFromPSpVal 256 + gosub 4, L2637 + ret +L7213: + popToSp 0 + pushFromPAi L28020 ; ___ai crowd_laser_finish (L28020) + syscall 0, 2 ; trap_puts (1 in, 0 out) + syscall 8, 5 ; trap_special_last_xemnus_laser_end (0 in, 0 out) + pushFromPWp W176 + pushFromFSp 0 + pushImm 275 + pushImmf 0 + gosub 4, L1054 + drop + pushFromPWp W176 + pushFromPWp W176 + pushImm 160 + add + pushImm 275 + pushImmf 0 + gosub 4, L1054 + drop + pushFromPWp W176 + pushImm 160 + add + pushImm L7302 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushImmf 360 + popToSp 4 + syscall 1, 354 ; trap_event_layer_off (0 in, 0 out) +L7272: + pushFromFSp 4 + pushImmf 0 + subf + supzf + jz L7291 + halt + pushFromFSp 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 4 + jmp L7272 +L7291: + pushFromPWp W176 + pushFromFSp 0 + gosub 4, L7323 + pushFromFSp 0 + gosub 4, L7475 + ret +L7302: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 +L7310: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1411 + eqz + jz L7322 + halt + jmp L7310 +L7322: + ret +L7323: + popToSp 4 + popToSp 0 + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 4 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L344 + pushFromFSp 4 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 4 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + pushFromPSpVal 160 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + pushImm 263 + pushImmf 0 + gosub 12, L1054 + drop + pushFromFSp 4 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 160 + pushImm 263 + pushImmf 0 + gosub 12, L1054 + drop + pushFromPSpVal 160 + pushFromFSp 4 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromPSpVal 160 + pushImm 7475 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 0 + pushFromPAi L27957 ; ___ai rc_crowd_laser_finish (L27957) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromPAi L27973 ; ___ai camera start 70 (L27973) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushFromFSp 0 + pushFromPAi L27986 ; ___ai 70 (L27986) + syscall 1, 164 ; trap_obj_camera_start_global (2 in, 0 out) + pushFromFSp 4 + pushImm 0 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 4 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + pushFromPSpVal 160 + pushImm 0 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromPSpVal 160 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + ret +L7475: + popToSp 0 + pushFromFSp 0 + pushImm 0 + gosub 12, L1645 + memcpyToSp 16, 36 + pushFromPSp 36 + pushImm 1 + syscall 6, 65 ; trap_obj_set_scissoring (2 in, 0 out) + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 32 + pushFromFSp 0 + pushFromFSp 32 + gosub 12, L7671 + drop + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + jz L7558 + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L344 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromPWp W176 + pushFromPAi L27887 ; ___ai 71 (L27887) + syscall 1, 164 ; trap_obj_camera_start_global (2 in, 0 out) + jmp L7558 +L7558: + pushFromPWp W176 + pushFromFSp 0 + pushImm 273 + pushImmf 0 + gosub 12, L1054 + popToSp 32 + pushFromFSp 0 + pushFromFSp 32 + gosub 12, L7671 + drop + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + jz L7630 + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L344 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromPWp W176 + pushFromPAi L27898 ; ___ai 72 (L27898) + syscall 1, 164 ; trap_obj_camera_start_global (2 in, 0 out) + jmp L7630 +L7630: + pushFromPWp W176 + pushFromFSp 0 + pushImm 274 + pushImmf 0 + gosub 12, L1054 + popToSp 32 + pushFromFSp 0 + pushFromFSp 32 + gosub 12, L7671 + drop + pushFromFSp 0 + pushImm 0 + gosub 12, L1645 + memcpyToSp 16, 36 + pushFromPSp 36 + pushImm 0 + syscall 6, 65 ; trap_obj_set_scissoring (2 in, 0 out) + gosub 12, L1407 + ret +L7671: + popToSp 0 + popToSp 4 +L7675: + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L1411 + eqz + jz L7687 + halt + jmp L7675 +L7687: + pushFromFSp 4 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + ret +REACTION_CALLBACK: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 4 + pushFromPAi L28102 ; ___ai INT (L28102) + syscall 0, 0 ; trap_puti (2 in, 0 out) + pushFromFSp 4 + dup + pushImm 635 + sub + jz L7717 + jmp L7725 +L7717: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L7829 + jmp L7827 +L7725: + dup + pushImm 650 + sub + jz L7734 + jmp L7742 +L7734: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L8610 + jmp L7827 +L7742: + dup + pushImm 651 + sub + jz L7751 + jmp L7759 +L7751: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L9186 + jmp L7827 +L7759: + dup + pushImm 652 + sub + jz L7768 + jmp L7776 +L7768: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L9336 + jmp L7827 +L7776: + dup + pushImm 653 + sub + jz L7785 + jmp L7793 +L7785: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L9407 + jmp L7827 +L7793: + dup + pushImm 654 + sub + jz L7802 + jmp L7810 +L7802: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L9419 + jmp L7827 +L7810: + dup + pushImm 665 + sub + jz L7819 + jmp L7827 +L7819: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L9676 + jmp L7827 +L7827: + drop + ret +L7829: + popToSp 0 + popToSp 4 + pushFromPSp 16 + pushImm 13 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + pushFromPWp W864 + pushFromFSp 0 + gosub 12, L291 + memcpyToSp 16, 32 + pushFromPSp 32 + gosub 16, L1039 + pushFromPWp W864 + pushFromFSp 4 + pushFromFSp 0 + gosub 12, L7884 + pushFromPSp 16 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L7883 + pushFromPSp 16 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + pushFromPWp W864 + pushFromPSp 16 + pushFromFSp 0 + gosub 12, L7884 + jmp L7883 +L7883: + ret +L7884: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 4 + syscall 1, 166 ; trap_target_attack (1 in, 1 out) + syscall 2, 52 ; trap_attack_rc_receiver (1 in, 1 out) + popToSp 48 + pushFromFSp 48 + pushImm 32 + add + pushFromFSp 48 + pushImm 96 + add + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 48 + pushImm 96 + add + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSp 32 + syscall 0, 42 ; trap_vector_atan_xz (1 in, 1 out) + pushFromPSp 16 + syscall 0, 42 ; trap_vector_atan_xz (1 in, 1 out) + subf + syscall 0, 43 ; trap_fixrad (1 in, 1 out) + pushImmf 0 + subf + infzf + jz L8008 + pushFromFSp 0 + pushFromFSp 8 + pushImm 253 + pushImmf 0 + gosub 16, L1054 + drop + pushFromFSp 8 + pushImm L8066 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + jmp L8031 +L8008: + pushFromFSp 0 + pushFromFSp 8 + pushImm 252 + pushImmf 0 + gosub 16, L1054 + drop + pushFromFSp 8 + pushImm L8583 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) +L8031: + pushFromFSp 48 + pushImm 96 + add + memcpyToSpVal 16, 160 + pushFromFSp 48 + pushImm 112 + add + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSpVal 16, 176 + ret +D8066: +L8066: + popToSp 0 + pushFromPWp W864 + pushFromFSp 0 + pushImmf 0.785398 + gosub 4, L8093 + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + eqz + jz L8092 + pushFromFSp 0 + gosub 4, L8392 + jmp L8092 +L8092: + ret +L8093: + popToSp 4 + popToSp 8 + popToSp 0 + pushImmf 80 + popToSpVal 192 + pushFromFSp 8 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 56 + pushFromFSp 8 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushImm 0 + popToSp 60 + pushImmf 30 + popToSp 52 +L8132: + pushFromFSp 8 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + pushFromFSp 56 + sub + eqz + jz L8370 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSpVal 160 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 4 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSp 32 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + popToSp 48 + pushImmf 200 + pushFromFSp 48 + pushImmf 200 + subf + pushImmf 0.4 + mulf + addf + popToSp 48 + pushFromPSp 32 + pushFromFSp 48 + syscall 0, 35 ; method_vector_scale (2 in, 0 out) + pushFromPSp 32 + pushFromPSpVal 160 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 8 + pushFromPSp 16 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSpVal 192 + syscall 1, 89 ; trap_obj_move_request (3 in, 0 out) + pushFromFSp 60 + eqz + dup + jz L8267 + pushFromFSp 48 + pushImmf 400 + subf + infzf + eqzv +L8267: + jz L8302 + pushFromPSpVal 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSpVal 16, 160 + pushFromPSpVal 160 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 30 + subf + memcpy 0 + pushImm 0 + popToSp 60 + jmp L8302 +L8302: + pushFromFSp 48 + pushImmf 250 + subf + infzf + jz L8330 + pushFromFSpVal 192 + pushImmf 0.8 + mulf + popToSpVal 192 + pushFromFSpVal 192 + pushImmf 5 + gosub 20, L8371 + popToSpVal 192 + jmp L8338 +L8330: + pushFromFSpVal 192 + pushImmf 0.95 + mulf + popToSpVal 192 +L8338: + pushFromFSp 8 + pushFromPSpVal 160 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + halt + pushFromFSp 52 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 52 + jmp L8132 +L8370: + ret +L8371: + popToSp 0 + popToSp 4 + pushFromFSp 4 + pushFromFSp 0 + subf + infzf + jz L8389 + pushFromFSp 0 + popToSp 4 + jmp L8389 +L8389: + pushFromFSp 4 + ret +L8392: + popToSp 0 + halt + pushFromPWp W864 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + fetchValue 4 + popToSp 32 + pushFromPSp 16 + pushImm 12 + add + pushFromPSp 16 + gosub 12, L8561 + memcpy 0 + pushFromFSp 32 + pushImmf -100 + subf + supzf + dup + jz L8460 + pushFromPSp 16 + fetchValue 12 + pushImmf 1000 + subf + infzf + eqzv +L8460: + jz L8560 + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 181 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) +L8502: + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 181 + sub + eqz + jz L8547 + pushFromFSp 0 + pushFromPWp W864 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) + halt + jmp L8502 +L8547: + pushFromFSp 0 + syscall 1, 95 ; trap_obj_fly_to_jump (1 in, 0 out) + pushFromFSp 0 + pushImm 3 + syscall 1, 115 ; trap_obj_set_jump_motion (2 in, 0 out) + jmp L8560 +L8560: + ret +L8561: + popToSp 0 + pushFromFSp 0 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSp 16 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + ret +L8583: + popToSp 0 + pushFromPWp W864 + pushFromFSp 0 + pushImmf -0.785398 + gosub 4, L8093 + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + eqz + jz L8609 + pushFromFSp 0 + gosub 4, L8392 + jmp L8609 +L8609: + ret +L8610: + popToSp 0 + popToSp 4 + pushFromPWp W176 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L8623 + ret +L8623: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSpVal 260 + pushImm 1 + add + popToSpVal 260 +L8637: + pushFromFSp 0 + gosub 8, L8735 + popToSp 12 + pushFromFSp 12 + pushFromFSp 8 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + sub + neqz + jz L8659 + jmp L8661 +D8657: +L8657: + jmp L8659 +L8659: + jmp L8637 +L8661: + pushFromFSp 0 + pushFromFSp 8 + pushFromFSp 12 + pushImmf 0 + gosub 8, L1054 + drop + pushFromFSp 12 + pushImm 254 + sub + neqz + jz L8712 + pushFromPSpVal 240 + pushFromFSp 0 + pushFromPSpVal 240 + fetchValue 0 + pushFromPSpVal 240 + pushImm 8 + add + fetchValue 0 + gosub 8, L8783 + memcpy 0 + pushFromPSpVal 240 + pushImm 4 + add + pushFromFSp 12 + memcpy 0 + jmp L8712 +L8712: + pushFromFSp 8 + pushImm L8874 + pushFromPSpVal 240 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromFSp 8 + pushFromFSp 8 + syscall 1, 98 ; trap_obj_step_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) + ret +L8735: + popToSp 0 + pushImm 3 + syscall 0, 16 ; trap_random_get (1 in, 1 out) + dup + pushImm 0 + sub + jz L8751 + jmp L8758 +L8751: + pushImm 254 + popToSp 4 + jmp L8779 +L8758: + dup + pushImm 1 + sub + jz L8767 + jmp L8774 +L8767: + pushImm 255 + popToSp 4 + jmp L8779 +L8774: + pushImm 256 + popToSp 4 +L8779: + drop + pushFromFSp 4 + ret +L8783: + popToSp 4 + popToSp 8 + popToSp 0 + pushImm 0 + popToSp 16 + pushImm 0 + popToSp 12 + pushImm 4 +L8802: + dup + pushFromFSp 12 + sub + info + jnz L8859 + pushFromFSp 12 + pushFromFSp 8 + sub + neqz + dup + jz L8825 + pushFromFSp 12 + pushFromFSp 4 + sub + neqz + eqzv +L8825: + jz L8849 + pushFromPSp 20 + pushFromFSp 16 + pushImm 4 + mul + add + pushFromFSp 12 + memcpy 0 + pushFromFSp 16 + pushImm 1 + add + popToSp 16 + jmp L8849 +L8849: + pushFromFSp 12 + pushImm 1 + add + popToSp 12 + jmp L8802 +L8859: + drop + pushFromPSp 20 + pushFromFSp 16 + syscall 0, 16 ; trap_random_get (1 in, 1 out) + pushImm 4 + mul + add + fetchValue 0 + ret +D8874: +L8874: + popToSp 4 + popToSp 0 + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromPWp W176 + pushFromFSp 4 + fetchValue 0 + gosub 12, L9001 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPWp W176 + pushFromFSp 0 + gosub 12, L9015 + popToSp 32 +L8918: + pushFromFSp 0 + gosub 12, L7175 + jz L8928 + jmp L8968 +L8926: + jmp L8928 +L8928: + pushFromFSp 0 + pushFromPSp 16 + pushFromFSp 32 + pushImm 1 + pushImm 0 + gosub 12, L9065 + pushFromFSp 32 + subf + infzf + jz L8952 + jmp L8968 +L8950: + jmp L8952 +L8952: + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) + halt + jmp L8918 +L8968: + pushFromFSp 0 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + jz L9000 + pushFromFSp 0 + gosub 12, L7175 + jz L8984 + jmp L9000 +L8982: + jmp L8984 +L8984: + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) + halt + jmp L8968 +L9000: + ret +L9001: + popToSp 4 + popToSp 0 + pushFromPSpVal 176 + pushFromFSp 4 + pushImm 16 + mul + add + ret +L9015: + popToSp 4 + popToSp 0 + pushFromFSp 4 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + dup + pushImm 255 + sub + jz L9034 + jmp L9041 +L9034: + pushImmf 10 + popToSp 8 + jmp L9061 +L9041: + dup + pushImm 256 + sub + jz L9050 + jmp L9057 +L9050: + pushImmf 30 + popToSp 8 + jmp L9061 +L9057: + pushImmf 0 + drop +L9061: + drop + pushFromFSp 8 + ret +L9065: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + pushFromFSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 32 + pushFromFSp 8 + jz L9112 + pushFromPSp 32 + pushImm 4 + add + pushImmf 0 + memcpy 0 + jmp L9112 +L9112: + pushFromPSp 32 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 32 + pushImm 12 + add + dup + fetchValue 0 + pushImmf 1 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + divf + mulf + memcpy 0 + pushFromPSp 32 + fetchValue 12 + pushFromFSp 12 + subf + supzf + jz L9155 + pushFromPSp 32 + pushImm 12 + add + pushFromFSp 12 + memcpy 0 + jmp L9155 +L9155: + pushFromFSp 4 + jz L9171 + pushFromFSp 0 + pushFromPSp 32 + pushFromPSp 32 + fetchValue 12 + syscall 1, 89 ; trap_obj_move_request (3 in, 0 out) + jmp L9181 +L9171: + pushFromFSp 0 + pushFromPSp 32 + pushFromPSp 32 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) +L9181: + pushFromPSp 32 + fetchValue 12 + ret +L9186: + popToSp 0 + popToSp 4 + pushFromPWp W176 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L9199 + ret +L9199: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSpVal 260 + pushImm 1 + add + popToSpVal 260 +L9213: + pushFromFSp 0 + pushImm 128 + add + pushFromFSp 0 + gosub 8, L8735 + memcpy 0 + pushFromFSp 0 + fetchValue 128 + pushFromPSpVal 160 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + sub + neqz + jz L9242 + jmp L9244 +D9240: +L9240: + jmp L9242 +L9242: + jmp L9213 +L9244: + pushFromFSp 0 + pushFromPSpVal 160 + pushFromFSp 0 + fetchValue 128 + pushImmf 0 + gosub 8, L1054 + drop + pushFromFSp 0 + fetchValue 128 + pushImm 254 + sub + neqz + jz L9309 + pushFromPSpVal 240 + pushImm 8 + add + pushFromFSp 0 + pushFromPSpVal 240 + pushImm 8 + add + fetchValue 0 + pushFromPSpVal 240 + fetchValue 0 + gosub 8, L8783 + memcpy 0 + pushFromPSpVal 240 + pushImm 8 + add + pushImm 4 + add + pushFromFSp 0 + fetchValue 128 + memcpy 0 + jmp L9309 +L9309: + pushFromPSpVal 160 + pushImm L8874 + pushFromPSpVal 240 + pushImm 8 + add + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 160 + pushFromPSpVal 160 + syscall 1, 98 ; trap_obj_step_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) + ret +L9336: + popToSp 0 + popToSp 4 + pushFromPWp W448 + pushImm 197 + gosub 4, L9348 + ret +L9348: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 4, L9370 + jz L9369 + pushFromFSp 4 + popToSpVal 232 + pushImm 2 + popToSpVal 228 + jmp L9369 +L9369: + ret +L9370: + popToSp 0 + pushFromFSp 0 + gosub 4, L1937 + dup + jnz L9391 + pushFromPSpVal 144 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 3 + sub + eqz + neqzv +L9391: + dup + jnz L9406 + pushFromPSpVal 144 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 4 + sub + eqz + neqzv +L9406: + ret +L9407: + popToSp 0 + popToSp 4 + pushFromPWp W448 + pushImm 198 + gosub 4, L9348 + ret +L9419: + popToSp 0 + popToSp 4 + pushFromPWp W688 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L9432 + ret +L9432: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + gosub 12, L9612 + pushFromPSpVal 0 + pushImm 9 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + pushFromPSpVal 0 + syscall 10, 7 ; trap_obj_reset_special_command (1 in, 0 out) + pushFromFSp 8 + pushImm L9629 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromFSp 8 + syscall 1, 161 ; trap_obj_is_attach (1 in, 1 out) + jz L9475 + pushFromFSp 8 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + jmp L9475 +L9475: + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 8 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 8 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 8 + syscall 1, 134 ; trap_obj_show (1 in, 0 out) + pushFromFSp 8 + pushImm 8 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 8 + pushImm 3 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromPSpVal 0 + syscall 1, 134 ; trap_obj_show (1 in, 0 out) + pushFromPSpVal 144 + pushFromFSp 8 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromPSpVal 144 + pushImm L9654 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 144 + pushImm 260 + pushImmf 0 + gosub 12, L1054 + drop + pushFromPSpVal 144 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + pushFromFSp 8 + pushImm 260 + pushImmf 0 + gosub 12, L1054 + drop + pushFromFSp 8 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + pushFromPAi L27841 ; ___ai rc_invitation_to_dark2_finish (L27841) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L27866 ; ___ai 51 (L27866) + pushFromFSp 8 + syscall 1, 157 ; trap_obj_camera_start (3 in, 0 out) + ret +L9612: + popToSp 0 + pushFromPSpVal 160 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L9628 + pushFromPSpVal 160 + syscall 1, 28 ; trap_obj_leave (1 in, 0 out) + jmp L9628 +L9628: + ret +D9629: +L9629: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 +L9637: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1411 + eqz + jz L9649 + halt + jmp L9637 +L9649: + pushFromFSp 0 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + ret +L9654: + popToSp 0 + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + ret +L9663: + popToSp 0 +L9665: + pushFromFSp 0 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L9675 + halt + jmp L9665 +L9675: + ret +L9676: + popToSp 0 + popToSp 4 + pushFromFSp 4 + pushImm 6 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromPWp W0 + pushImm 160 + add + pushImm 1 + memcpy 0 + ret +OBJ_DAMAGE: + popToSp 0 + pushFromPWp W1072 + pushFromFSp 0 + gosub 4, L9707 + ret +L9707: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 4, L9952 + jz L9779 + pushFromFSpVal 160 + dup + jz L9734 + pushFromFSp 4 + syscall 2, 64 ; trap_damage_orig_reaction (1 in, 1 out) + syscall 2, 91 ; trap_damage_get_reaction_type (1 in, 1 out) + pushImm 4 + sub + eqz + eqzv +L9734: + jz L9777 + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.5 + subf + infzf + jz L9759 + pushFromFSp 0 + pushImm 4 + pushImm 1 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + jmp L9769 +L9759: + pushFromFSp 0 + pushImm 5 + pushImm 1 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) +L9769: + pushFromFSp 0 + pushFromPAi L28112 ; ___ai reborn (L28112) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L9777 +L9777: + jmp L9951 +L9779: + pushFromFSpVal 172 + jz L9789 + pushFromFSp 4 + syscall 2, 15 ; trap_damage_exec_reaction (1 in, 0 out) + jmp L9951 +L9789: + pushFromFSp 0 + gosub 4, L9975 + jz L9833 + pushFromFSp 0 + pushImm 16 + add + pushImm -1 + memcpy 0 + pushFromFSp 0 + pushImm 20 + add + pushImm -1 + memcpy 0 + pushFromFSp 0 + pushImm 24 + add + pushImm 1 + memcpy 0 + pushFromFSp 0 + pushFromPAi L27777 ; ___ai mode_battle_boss (L27777) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L9951 +L9833: + pushFromFSp 0 + gosub 4, L10029 + jz L9877 + pushFromFSp 0 + pushImm 16 + add + pushImm -1 + memcpy 0 + pushFromFSp 0 + pushImm 20 + add + pushImm -1 + memcpy 0 + pushFromFSp 0 + pushImm 24 + add + pushImm 2 + memcpy 0 + pushFromFSp 0 + pushFromPAi L27777 ; ___ai mode_battle_boss (L27777) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L9951 +L9877: + pushFromFSp 4 + syscall 2, 8 ; trap_damage_is_reaction (1 in, 1 out) + jz L9951 + pushFromFSp 0 + gosub 4, L9960 + jz L9949 + pushFromFSp 4 + syscall 2, 64 ; trap_damage_orig_reaction (1 in, 1 out) + syscall 2, 91 ; trap_damage_get_reaction_type (1 in, 1 out) + pushImm 4 + sub + eqz + jz L9937 + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.5 + subf + infzf + jz L9925 + pushFromFSp 0 + pushImm 4 + pushImm 1 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + jmp L9935 +L9925: + pushFromFSp 0 + pushImm 5 + pushImm 1 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) +L9935: + jmp L9937 +L9937: + pushFromFSp 0 + pushFromPAi L27777 ; ___ai mode_battle_boss (L27777) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromPAi L27947 ; ___ai damage (L27947) + syscall 0, 2 ; trap_puts (1 in, 0 out) + jmp L9949 +L9949: + jmp L9951 +L9951: + ret +L9952: + popToSp 0 + pushFromFSp 0 + gosub 4, L9960 + eqz + ret +L9960: + popToSp 0 + pushFromFSp 0 + pushImm 1 + syscall 1, 39 ; trap_obj_unit_arg (2 in, 1 out) + pushImm 1 + sub + eqz + ret +L9975: + popToSp 0 + pushImm 0 + popToSp 4 + pushFromFSp 0 + fetchValue 24 + pushImm 0 + sub + eqz + dup + jz L10005 + pushFromFSp 0 + gosub 4, L10017 + pushFromFSp 0 + fetchValue 64 + subf + infzf + eqzv +L10005: + jz L10014 + pushImm 1 + popToSp 4 + jmp L10014 +L10014: + pushFromFSp 4 + ret +L10017: + popToSp 0 + pushFromFSp 0 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 0 + syscall 1, 230 ; trap_sheet_hp_rate (2 in, 1 out) + ret +L10029: + popToSp 0 + pushImm 0 + popToSp 4 + pushFromFSp 0 + fetchValue 24 + pushImm 1 + sub + eqz + dup + jz L10059 + pushFromFSp 0 + gosub 4, L10017 + pushFromFSp 0 + fetchValue 68 + subf + infzf + eqzv +L10059: + jz L10068 + pushImm 1 + popToSp 4 + jmp L10068 +L10068: + pushFromFSp 4 + ret +L10071: + popToSp 0 + pushImmf 1 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + ret +OBJ_MAIN: + pushFromPWp W1072 + gosub 4, L10088 + ret +L10088: + popToSp 0 + pushFromFSp 0 + pushImm 2 + gosub 4, L10239 + pushFromFSp 0 + gosub 4, L9952 + eqz + jz L10135 + pushFromFSp 0 + pushImm 24 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + pushImm 33 + syscall 1, 85 ; trap_obj_texanm_start (2 in, 0 out) + pushImmf 120 + gosub 4, L1244 + pushFromFSp 0 + pushImm 33 + syscall 1, 86 ; trap_obj_texanm_stop (2 in, 0 out) + jmp L10135 +L10135: + gosub 4, L10254 + pushFromFSp 0 + gosub 4, L10262 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 9 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + pushFromFSp 0 + gosub 4, L9960 + jz L10177 + pushFromFSp 0 + pushFromPAi L28144 ; ___ai atk_throw (L28144) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28172 ; ___ai atk_dance_l (L28172) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28228 ; ___ai run_near (L28228) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L10177 +L10177: + pushFromFSpVal 160 + jz L10205 + pushFromFSp 0 + pushImm 1 + syscall 1, 212 ; trap_obj_pattern_disable (2 in, 0 out) + pushFromFSp 0 + syscall 1, 10 ; trap_obj_is_act_exec (1 in, 1 out) + eqz + jz L10203 + pushFromFSp 0 + pushFromPAi L27889 ; ___ai mode_battle_dark (L27889) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L10203 +L10203: + jmp L10235 +L10205: + pushFromFSp 0 + pushImm 1 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + pushFromFSp 0 + syscall 1, 10 ; trap_obj_is_act_exec (1 in, 1 out) + eqz + dup + jz L10225 + pushFromFSp 0 + gosub 4, L9960 + eqzv +L10225: + jz L10235 + pushFromFSp 0 + pushFromPAi L27777 ; ___ai mode_battle_boss (L27777) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L10235 +L10235: + halt + jmp L10177 +D10238: +L10238: + ret +L10239: + popToSp 4 + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + pushFromFSp 0 + pushFromFSp 4 + syscall 1, 121 ; trap_target_search (3 in, 0 out) + ret +L10254: + syscall 1, 34 ; trap_event_is_exec (0 in, 1 out) + jz L10261 + halt + jmp L10254 +L10261: + ret +L10262: + popToSp 0 + pushFromPSp 16 + pushImm 2257 + syscall 1, 114 ; trap_obj_search_by_entry (2 in, 0 out) + pushFromPSp 16 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + eqz + jz L10290 + pushFromPSp 16 + pushFromFSp 0 + fetchValue 4 + gosub 12, L302 + jmp L10290 +L10290: + pushFromPSp 16 + ret +OBJ_INIT: + popToSp 0 + pushFromPWp W1072 + pushFromFSp 0 + gosub 4, L10302 + ret +L10302: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L13030 + pushFromFSp 0 + pushFromPWp W1248 + gosub 12, L13108 + pushFromFSp 0 + pushFromPWp W1248 + syscall 1, 7 ; trap_obj_set_act_table (2 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28098 ; ___ai appear (L28098) + pushImm 100 + pushImm L13148 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27690 ; ___ai leave (L27690) + pushImm 196908 + pushImm L13380 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28010 ; ___ai freeze (L28010) + pushImm 100 + pushImm L13436 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27801 ; ___ai event (L27801) + pushImm 196908 + pushImm L13453 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L13458 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27856 ; ___ai idle (L27856) + pushImm 100 + pushImm L13473 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27813 ; ___ai idle_time (L27813) + pushImm 100 + pushImm L13747 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27831 ; ___ai footwork (L27831) + pushImm 100 + pushImm L13803 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27988 ; ___ai mode_battle (L27988) + pushImm 100 + pushImm L13819 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27859 ; ___ai mode_revenge (L27859) + pushImm 100 + pushImm L14067 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27777 ; ___ai mode_battle_boss (L27777) + pushImm 100 + pushImm L14109 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27868 ; ___ai mode_revenge_boss (L27868) + pushImm 100 + pushImm L14175 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28003 ; ___ai talk (L28003) + pushImm 100 + pushImm L14241 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28080 ; ___ai near_wait (L28080) + pushImm 100 + pushImm L14565 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28149 ; ___ai near (L28149) + pushImm 100 + pushImm L14643 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27734 ; ___ai dead (L27734) + pushImm 196908 + pushImm L14743 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28116 ; ___ai rc_air_fight (L28116) + pushImm 100 + pushImm L14838 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28178 ; ___ai rc_crowd_laser (L28178) + pushImm 100 + pushImm L14922 + pushImm L15101 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27920 ; ___ai laser_faint (L27920) + pushImm 100 + pushImm L15150 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L15181 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27957 ; ___ai rc_crowd_laser_finish (L27957) + pushImm 100 + pushImm L15189 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27726 ; ___ai atk_crowd_laser (L27726) + pushImm 300 + pushImm L15545 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27685 ; ___ai atk_dark (L27685) + pushImm 65836 + pushImm L16250 + pushImm L16317 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27708 ; ___ai rc_invitation_to_dark2 (L27708) + pushImm 100 + pushImm L16324 + pushImm L17004 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L17021 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27841 ; ___ai rc_invitation_to_dark2_finish (L27841) + pushImm 65636 + pushImm L17052 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L17174 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27807 ; ___ai stop (L27807) + pushImm 100 + pushImm L17265 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28247 ; ___ai walk_start (L28247) + pushImm 100 + pushImm L17307 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27994 ; ___ai walk (L27994) + pushImm 100 + pushImm L17359 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L17401 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27906 ; ___ai run_start (L27906) + pushImm 100 + pushImm L17441 + pushImm L17794 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28069 ; ___ai run (L28069) + pushImm 100 + pushImm L17801 + pushImm L17926 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L17933 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27929 ; ___ai run2_start (L27929) + pushImm 100 + pushImm L17978 + pushImm L18063 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27693 ; ___ai run2 (L27693) + pushImm 100 + pushImm L18070 + pushImm L18149 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L18156 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28233 ; ___ai run3_start (L28233) + pushImm 100 + pushImm L18201 + pushImm L18944 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27810 ; ___ai run3 (L27810) + pushImm 100 + pushImm L18951 + pushImm L19030 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L19037 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28228 ; ___ai run_near (L28228) + pushImm 100 + pushImm L19082 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28186 ; ___ai atk_normal_laser1 (L28186) + pushImm 200 + pushImm L19122 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28160 ; ___ai atk_normal_laser1_child (L28160) + pushImm 200 + pushImm L20570 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28206 ; ___ai atk_normal_laser2 (L28206) + pushImm 200 + pushImm L20689 + pushImm L21567 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28273 ; ___ai atk_normal_laser3 (L28273) + pushImm 200 + pushImm L21577 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27739 ; ___ai atk_normal_laser3_child (L27739) + pushImm 200 + pushImm L22503 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27757 ; ___ai atk_normal_laser3_finish (L27757) + pushImm 200 + pushImm L23278 + pushImm L23607 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L23622 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28144 ; ___ai atk_throw (L28144) + pushImm 200 + pushImm L23633 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27696 ; ___ai atk_dance1 (L27696) + pushImm 200 + pushImm L24074 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28259 ; ___ai atk_dance2 (L28259) + pushImm 200 + pushImm L24391 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27881 ; ___ai atk_dance4 (L27881) + pushImm 200 + pushImm L24401 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28253 ; ___ai atk_dance5 (L28253) + pushImm 200 + pushImm L24411 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27751 ; ___ai atk_dance6 (L27751) + pushImm 200 + pushImm L24421 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27702 ; ___ai atk_dance7 (L27702) + pushImm 200 + pushImm L24431 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27720 ; ___ai atk_dance8 (L27720) + pushImm 200 + pushImm L24441 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27679 ; ___ai atk_dance9 (L27679) + pushImm 200 + pushImm L24451 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28239 ; ___ai atk_dance_start (L28239) + pushImm 200 + pushImm L24461 + pushImm L24494 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L24504 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27792 ; ___ai atk_dance_finish (L27792) + pushImm 200 + pushImm L24514 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28265 ; ___ai atk_dance_wait (L28265) + pushImm 200 + pushImm L24546 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28172 ; ___ai atk_dance_l (L28172) + pushImm 200 + pushImm L24594 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27951 ; ___ai atk_dance_s (L27951) + pushImm 200 + pushImm L24709 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27824 ; ___ai atk_dance_s2 (L27824) + pushImm 200 + pushImm L24882 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L24933 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28093 ; ___ai atk_bomb (L28093) + pushImm 200 + pushImm L24978 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27940 ; ___ai idle_wait (L27940) + pushImm 100 + pushImm L25097 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28129 ; ___ai atk_thorn1 (L28129) + pushImm 200 + pushImm L25123 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27770 ; ___ai atk_air_fight (L27770) + pushImm 200 + pushImm L25163 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27997 ; ___ai atk_shield (L27997) + pushImm 200 + pushImm L25699 + pushImm L26257 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28061 ; ___ai mode_dark_start (L28061) + pushImm 100 + pushImm L26267 + pushImm L26356 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28112 ; ___ai reborn (L28112) + pushImm 300 + pushImm L26371 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27889 ; ___ai mode_battle_dark (L27889) + pushImm 100 + pushImm L26429 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L27911 ; ___ai revenge (L27911) + pushImm 65836 + pushImm L26530 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28014 ; ___ai btl_normal (L28014) + pushImm 100 + pushImm L26622 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28123 ; ___ai rvg_normal (L28123) + pushImm 100 + pushImm L26818 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28040 ; ___ai btl_hard (L28040) + pushImm 100 + pushImm L26897 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28139 ; ___ai rvg_hard (L28139) + pushImm 100 + pushImm L27180 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28085 ; ___ai btl_super_hard (L28085) + pushImm 100 + pushImm L27208 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1248 + pushFromPAi L28152 ; ___ai rvg_super_hard (L28152) + pushImm 100 + pushImm L27223 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromFSp 0 + pushImm 1 + pushImm 1 + pushImm 0 + syscall 1, 87 ; trap_obj_effect_start_bind (4 in, 1 out) + drop + pushFromFSp 0 + pushImm 2 + pushImm 1 + pushImm 0 + syscall 1, 87 ; trap_obj_effect_start_bind (4 in, 1 out) + drop + pushFromFSp 0 + pushImmf 75 + syscall 2, 76 ; trap_enemy_set_karma_limit (2 in, 0 out) + pushFromFSp 0 + pushImm 90 + pushImm -1 + pushImmf 400 + pushImmf 1000 + pushImmf 8 + pushImm -1 + pushImmf 0.5 + pushImmf 0.1 + gosub 12, L27226 + pushImm 0 + popToSpVal 148 + pushImm 0 + popToSpVal 144 + pushImm 0 + popToSpVal 160 + pushImm 0 + popToSpVal 168 + pushFromPSpVal 164 + gosub 12, L493 + pushImm 0 + popToSpVal 172 + pushFromFSp 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 12 + add + pushImmf 0 + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 0 + pushImm 12 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + pushFromFSp 0 + pushImm 1 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + pushFromFSp 0 + pushImm 3 + pushImm 3 + pushImm 5 + gosub 12, L27541 + popToSpVal 156 + pushFromFSp 0 + pushImm 4 + pushImm 4 + pushImm 6 + gosub 12, L27541 + popToSpVal 152 + pushFromFSp 0 + gosub 12, L9960 + eqz + jz L13014 + pushFromFSp 0 + pushImm 14 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + pushImm 7 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + jmp L13014 +L13014: + pushFromFSp 0 + pushImm 2 + syscall 1, 39 ; trap_obj_unit_arg (2 in, 1 out) + pushFromPAi L27804 ; ___ai init (L27804) + syscall 0, 0 ; trap_puti (2 in, 0 out) + pushFromFSp 0 + gosub 12, L17212 + ret +L13030: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L302 + pushImm -1 + popToSpVal 28 + pushImmf 30 + popToSpVal 32 + pushFromPSpVal 72 + gosub 4, L13065 + pushImmf 2000 + popToSpVal 56 + pushImmf 1000 + popToSpVal 60 + ret +L13065: + popToSp 0 + pushImmf 200 + popToSpVal 0 + pushImmf 200 + popToSpVal 4 + pushImmf 0 + popToSpVal 8 + pushImm 2 + popToSpVal 12 + pushImmf 8 + popToSpVal 16 + pushImm 3 + popToSpVal 20 + pushImmf 8 + popToSpVal 24 + pushImm 0 + popToSpVal 32 + ret +L13108: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L13139 + pushFromFSp 0 + pushImm 16 + add + pushImm 0 + memcpy 0 + pushFromFSp 0 + pushImm 20 + add + pushImm 0 + memcpy 0 + ret +L13139: + popToSp 4 + popToSp 0 + pushFromFSp 4 + syscall 1, 5 ; trap_act_table_init (1 in, 0 out) + ret +D13148: +L13148: ;___label for action pushFromPAi L28098 ; ___ai appear + popToSp 0 + pushFromFSp 0 + syscall 1, 110 ; trap_obj_get_appear_way (1 in, 1 out) + dup + pushImm 2 + sub + jz L13170 + dup + pushImm -1 + sub + jz L13170 + jmp L13176 +L13170: + pushFromFSp 0 + gosub 4, L13182 + jmp L13180 +L13176: + pushFromFSp 0 + gosub 4, L13333 +L13180: + drop + ret +L13182: + popToSp 0 + gosub 12, L757 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushImm 4 + popToSp 32 + pushFromFSp 0 + fetchValue 4 + pushImm 44 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + syscall 1, 124 ; trap_obj_is_entry_fly (1 in, 1 out) + dup + jnz L13253 + pushFromFSp 0 + syscall 1, 60 ; trap_obj_is_air (1 in, 1 out) + eqz + neqzv +L13253: + jz L13262 + pushImm 0 + popToSp 32 + jmp L13262 +L13262: + pushFromFSp 0 + fetchValue 4 + pushFromFSpVal 32 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) +L13270: + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L13321 + gosub 12, L757 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) + halt + jmp L13270 +L13321: + pushFromFSp 0 + fetchValue 4 + pushFromFSp 32 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + ret +L13333: + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushFromFSp 0 + pushImm 0 + syscall 1, 67 ; trap_obj_motion_get_length (2 in, 1 out) + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + pushImmf 0 + syscall 1, 61 ; trap_sysobj_motion_frame_start (4 in, 0 out) + pushFromFSp 0 + gosub 4, L13361 + ret +L13361: + popToSp 0 + gosub 4, L10254 +L13365: + syscall 1, 301 ; trap_tutorial_is_open (0 in, 1 out) + jz L13372 + halt + jmp L13365 +L13372: + pushImmf 30 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + gosub 4, L1244 + ret +L13380: ;___label for action pushFromPAi L27690 ; ___ai leave + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 45 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + pushImm 1 + pushImm 1 + pushImm 0 + syscall 1, 87 ; trap_obj_effect_start_bind (4 in, 1 out) + drop + pushFromFSp 0 + pushImm 3 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImmf 30 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushImmf 30 + gosub 4, L1244 + pushFromFSp 0 + syscall 1, 28 ; trap_obj_leave (1 in, 0 out) + gosub 4, L1407 + ret +L13436: ;___label for action pushFromPAi L28010 ; ___ai freeze + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + gosub 4, L1407 + ret +L13453: ;___label for action pushFromPAi L27801 ; ___ai event + popToSp 0 + gosub 4, L1407 + ret +L13458: ;___callback for action pushFromPAi L27801 ; ___ai event + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + ret +L13473: ;___label for action pushFromPAi L27856 ; ___ai idle + popToSp 0 + pushFromFSp 0 + pushImm 0 + pushImm 0 + pushImm -1 + gosub 4, L13489 + ret +L13489: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 0 + gosub 8, L13586 + pushFromFSp 8 + pushImm 3 + sub + neqz + jz L13516 + pushFromFSp 0 + gosub 8, L13615 + jmp L13516 +L13516: + pushFromFSp 0 + fetchValue 4 + pushFromFSp 12 + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L13654 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) +L13530: + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L13563 + halt + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L13716 + jz L13552 + jmp L13563 +L13550: + jmp L13552 +L13552: + pushFromFSp 0 + syscall 2, 5 ; trap_enemy_is_no_control (1 in, 1 out) + jz L13561 + halt + jmp L13552 +L13561: + jmp L13530 +L13563: + pushFromFSp 4 + pushImm 0 + sub + msbi + jz L13585 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 4 + pushImmf 0 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) + jmp L13585 +L13585: + ret +L13586: + popToSp 0 +L13588: + pushFromFSp 0 + syscall 1, 124 ; trap_obj_is_entry_fly (1 in, 1 out) + eqz + dup + jz L13601 + pushFromFSp 0 + syscall 1, 60 ; trap_obj_is_air (1 in, 1 out) + eqzv +L13601: + dup + jnz L13609 + pushFromFSp 0 + syscall 2, 5 ; trap_enemy_is_no_control (1 in, 1 out) + neqzv +L13609: + jz L13614 + halt + jmp L13588 +L13614: + ret +L13615: + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) + ret +L13654: + popToSp 4 + popToSp 0 + pushFromFSp 0 + fetchValue 36 + popToSp 8 + pushFromFSp 4 + dup + pushImm 0 + sub + jz L13675 + jmp L13712 +L13675: + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 2 + sub + neqz + dup + jz L13701 + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 1 + sub + neqz + eqzv +L13701: + jz L13710 + pushImmf 0 + popToSp 8 + jmp L13710 +L13710: + jmp L13712 +L13712: + drop + pushFromFSp 8 + ret +L13716: + popToSp 4 + popToSp 0 + pushImm 0 + popToSp 8 + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushFromFSp 4 + sub + neqz + jz L13744 + pushImm 1 + popToSp 8 + jmp L13744 +L13744: + pushFromFSp 8 + ret +L13747: ;___label for action pushFromPAi L27813 ; ___ai idle_time + popToSp 0 + pushImmf 15 + pushImmf 45 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + popToSp 4 + pushFromFSp 0 + gosub 4, L13586 + pushFromFSp 0 + gosub 4, L13615 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushFromFSp 0 + pushImm 0 + gosub 4, L13654 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) +L13783: + pushFromFSp 4 + pushImmf 0 + subf + supzf + jz L13802 + pushFromFSp 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 4 + halt + jmp L13783 +L13802: + ret +L13803: ;___label for action pushFromPAi L27831 ; ___ai footwork + popToSp 0 + pushFromFSp 0 + pushImm 47 + pushImm 0 + pushImm -1 + gosub 4, L13489 + ret +L13819: ;___label for action pushFromPAi L27988 ; ___ai mode_battle + popToSp 0 + pushFromFSp 0 + gosub 4, L13893 + pushFromFSp 0 + pushImm 0 + gosub 4, L10239 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + gosub 4, L14016 + pushFromFSp 0 + fetchValue 48 + subf + infzf + jz L13866 + pushFromFSp 0 + pushFromPAi L27900 ; ___ai btl_attack (L27900) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L13892 +L13866: + pushFromFSp 0 + gosub 4, L14016 + pushFromFSp 0 + fetchValue 52 + subf + infzf + jz L13886 + pushFromFSp 0 + pushFromPAi L27915 ; ___ai btl_short (L27915) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L13892 +L13886: + pushFromFSp 0 + pushFromPAi L27935 ; ___ai btl_long (L27935) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L13892: + ret +L13893: + popToSp 0 + pushFromFSp 0 + gosub 4, L13911 + jz L13910 + pushFromFSp 0 + pushFromPAi L27690 ; ___ai leave (L27690) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + halt + jmp L13910 +L13910: + ret +L13911: + popToSp 0 + syscall 1, 206 ; trap_status_is_force_leave (0 in, 1 out) + jz L13926 + pushImm 1 + popToSp 8 + jmp L13981 +L13924: + jmp L13939 +L13926: + syscall 1, 171 ; trap_status_no_leave (0 in, 1 out) + jz L13939 + pushImm 0 + popToSp 8 + jmp L13981 +L13937: + jmp L13939 +L13939: + pushImm 0 + popToSp 8 + pushFromFSp 0 + gosub 8, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + gosub 12, L13984 + popToSp 4 + pushFromFSp 0 + syscall 1, 56 ; method_obj_is_culling (1 in, 1 out) + jz L13973 + pushFromFSp 4 + pushFromFSpVal 60 + subf + supzf + popToSp 8 + jmp L13981 +L13973: + pushFromFSp 4 + pushFromFSpVal 56 + subf + supzf + popToSp 8 +L13981: + pushFromFSp 8 + ret +L13984: + popToSp 4 + popToSp 0 + pushFromFSp 4 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + ret +L14016: + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + popToSp 32 + pushFromFSp 32 + ret +L14067: ;___label for action pushFromPAi L27859 ; ___ai mode_revenge + popToSp 0 + pushFromFSp 0 + pushImm 1 + gosub 4, L10239 + pushFromFSp 0 + gosub 4, L14016 + pushFromFSp 0 + fetchValue 52 + subf + infzf + jz L14096 + pushFromFSp 0 + pushFromPAi L27968 ; ___ai rvg_short (L27968) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14102 +L14096: + pushFromFSp 0 + pushFromPAi L27981 ; ___ai rvg_long (L27981) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L14102: + pushFromFSp 0 + pushFromPAi L27988 ; ___ai mode_battle (L27988) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + ret +L14109: ;___label for action pushFromPAi L27777 ; ___ai mode_battle_boss + popToSp 0 + pushFromFSp 0 + pushImm 2 + gosub 4, L10239 + pushFromFSp 0 + fetchValue 24 + dup + pushImm 0 + sub + jz L14131 + jmp L14139 +L14131: + pushFromFSp 0 + pushFromPAi L28014 ; ___ai btl_normal (L28014) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14173 +L14139: + dup + pushImm 1 + sub + jz L14148 + jmp L14156 +L14148: + pushFromFSp 0 + pushFromPAi L28040 ; ___ai btl_hard (L28040) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14173 +L14156: + dup + pushImm 2 + sub + jz L14165 + jmp L14173 +L14165: + pushFromFSp 0 + pushFromPAi L28085 ; ___ai btl_super_hard (L28085) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14173 +L14173: + drop + ret +L14175: ;___label for action pushFromPAi L27868 ; ___ai mode_revenge_boss + popToSp 0 + pushFromFSp 0 + pushImm 2 + gosub 4, L10239 + pushFromFSp 0 + fetchValue 24 + dup + pushImm 0 + sub + jz L14197 + jmp L14205 +L14197: + pushFromFSp 0 + pushFromPAi L28123 ; ___ai rvg_normal (L28123) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14239 +L14205: + dup + pushImm 1 + sub + jz L14214 + jmp L14222 +L14214: + pushFromFSp 0 + pushFromPAi L28139 ; ___ai rvg_hard (L28139) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14239 +L14222: + dup + pushImm 2 + sub + jz L14231 + jmp L14239 +L14231: + pushFromFSp 0 + pushFromPAi L28152 ; ___ai rvg_super_hard (L28152) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14239 +L14239: + drop + ret +L14241: ;___label for action pushFromPAi L28003 ; ___ai talk + popToSp 0 + pushFromFSp 0 + gosub 4, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSpVal 16 + gosub 12, L14257 + ret +L14257: + popToSp 4 + popToSp 8 + popToSp 0 + pushImm 0 + popToSpVal 20 + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + popToSpVal 24 +L14276: + pushFromFSpVal 20 + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + sub + neqz + jz L14299 + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + popToSpVal 24 + halt + jmp L14276 +L14299: + pushFromFSp 0 + syscall 4, 0 ; ? + pushFromFSp 4 + pushImm 0 + syscall 1, 32 ; trap_message_open (2 in, 1 out) + popToSp 48 + pushFromFSp 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 32 + pushFromFSp 0 + pushFromPSp 32 + pushImm 48 + pushImm 49 + gosub 16, L14423 + pushFromFSp 0 + fetchValue 4 + pushImm 50 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L14376: + pushFromFSp 48 + syscall 1, 48 ; method_message_is_end (1 in, 1 out) + eqz + jz L14386 + halt + jmp L14376 +L14386: + pushFromFSp 48 + syscall 1, 33 ; trap_message_close (1 in, 0 out) + syscall 4, 1 ; ? + pushFromFSp 0 + fetchValue 4 + pushImm 51 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 16, L9663 + pushFromFSp 0 + pushFromPSp 16 + pushImm 48 + pushImm 49 + gosub 16, L14423 + ret +L14423: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 42 ; trap_vector_atan_xz (1 in, 1 out) + popToSp 24 + pushFromFSp 12 + syscall 0, 42 ; trap_vector_atan_xz (1 in, 1 out) + popToSp 20 + pushFromFSp 20 + pushFromFSp 24 + subf + syscall 0, 43 ; trap_fixrad (1 in, 1 out) + popToSp 16 + pushFromFSp 16 + syscall 0, 23 ; trap_absf (1 in, 1 out) + pushImmf 0.349066 + subf + infzf + jz L14474 + jmp L14564 +L14472: + jmp L14507 +L14474: + pushFromFSp 16 + pushImmf 0 + subf + infzf + jz L14496 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 8 + pushImmf 8 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + jmp L14507 +L14496: + pushFromFSp 0 + fetchValue 4 + pushFromFSp 4 + pushImmf 8 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L14507: + pushFromFSp 0 + pushImm -1 + syscall 1, 67 ; trap_obj_motion_get_length (2 in, 1 out) + pushImmf 8 + addf + popToSp 32 + pushImmf 0 + popToSp 28 +L14525: + pushFromFSp 28 + pushFromFSp 32 + subf + infzf + jz L14558 + pushFromFSp 0 + pushFromFSp 24 + pushFromFSp 16 + pushFromFSp 28 + mulf + pushFromFSp 32 + divf + addf + syscall 1, 1 ; trap_obj_set_rot (2 in, 0 out) + pushFromFSp 28 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + addf + popToSp 28 + halt + jmp L14525 +L14558: + pushFromFSp 0 + pushFromFSp 20 + syscall 1, 1 ; trap_obj_set_rot (2 in, 0 out) +L14564: + ret +L14565: ;___label for action pushFromPAi L28080 ; ___ai near_wait + popToSp 0 + pushImmf 0 + popToSp 4 +L14572: + pushFromFSp 0 + gosub 4, L14625 + jz L14604 + pushFromFSp 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + addf + popToSp 4 + pushFromFSp 4 + pushImmf 15 + subf + supoezf + jz L14602 + pushFromFSp 0 + pushFromPAi L28149 ; ___ai near (L28149) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14602 +L14602: + jmp L14609 +L14604: + pushImmf 0 + popToSp 4 +L14609: + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 8 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) + halt + jmp L14572 +L14624: + ret +L14625: + popToSp 0 + gosub 4, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 145 ; trap_obj_touch_zone (1 in, 1 out) + pushFromFSp 0 + syscall 1, 170 ; trap_obj_unit_group (1 in, 1 out) + sub + eqz + ret +L14643: ;___label for action pushFromPAi L28149 ; ___ai near + popToSp 0 +L14645: + pushFromFSp 0 + gosub 12, L14625 + jz L14733 + gosub 12, L757 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + popToSp 32 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) + pushFromFSp 32 + pushImmf 200 + subf + infzf + jz L14719 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 8 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) + jmp L14731 +L14719: + pushFromFSp 0 + fetchValue 4 + pushImm 1 + pushImmf 8 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) +L14731: + jmp L14739 +L14733: + pushFromFSp 0 + pushFromPAi L28080 ; ___ai near_wait (L28080) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L14739: + halt + jmp L14645 +L14742: + ret +L14743: ;___label for action pushFromPAi L27734 ; ___ai dead + popToSp 0 + pushFromFSp 0 + pushImm 42 + pushImm 1 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + pushImmf 0 + pushImmf 0 + pushImmf 0 + gosub 4, L14783 + pushImmf 30 + gosub 4, L1244 + pushFromFSp 0 + pushImmf 0.05 + syscall 1, 107 ; trap_obj_motion_speed (2 in, 0 out) + gosub 4, L1407 + ret +L14783: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 4 + popToSp 16 + pushFromPSp 32 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 1 + gosub 16, L344 + pushFromFSp 0 + pushFromPSp 32 + pushFromFSp 16 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 0 + pushImm 40 + add + pushFromFSp 8 + memcpy 0 + pushFromFSp 0 + pushImm 44 + add + pushFromFSp 12 + memcpy 0 + ret +L14838: ;___label for action pushFromPAi L28116 ; ___ai rc_air_fight + popToSp 0 + pushFromFSp 0 + gosub 4, L14898 + pushFromFSp 0 + gosub 4, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 221 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + ret +L14898: + popToSp 0 + pushFromFSp 0 + pushImm 1 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + ret +L14922: ;___label for action pushFromPAi L28178 ; ___ai rc_crowd_laser + popToSp 0 + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L344 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 226 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 120 + gosub 12, L1244 + pushFromFSp 0 + syscall 8, 3 ; trap_special_last_xemnus_laser_start (1 in, 0 out) + pushFromFSp 0 + gosub 12, L10262 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 9 + syscall 1, 212 ; trap_obj_pattern_disable (2 in, 0 out) + pushFromFSp 0 + gosub 12, L9960 + jz L15013 + gosub 12, L15077 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPAi L27807 ; ___ai stop (L27807) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L15024 +L15013: + gosub 12, L15089 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPAi L27807 ; ___ai stop (L27807) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L15024: + pushFromFSp 0 + pushImm 226 + gosub 12, L13716 + eqz + jz L15062 + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L15047 + syscall 8, 6 ; trap_special_last_xemnus_laser_optimize (0 in, 0 out) + jmp L15047 +L15047: + halt + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L15060 + jmp L15062 +L15058: + jmp L15060 +L15060: + jmp L15024 +L15062: + pushImmf 1690 + gosub 12, L1244 + pushFromFSp 0 + pushImm 374067 + syscall 1, 318 ; trap_obj_play_se (2 in, 0 out) + gosub 12, L1407 + ret +L15077: + pushFromPSp 0 + pushImm 1 + syscall 6, 59 ; trap_xemnas_get_obj (1 in, 1 out) + gosub 8, L302 + pushFromPSp 0 + ret +L15089: + pushFromPSp 0 + pushImm 0 + syscall 6, 59 ; trap_xemnas_get_obj (1 in, 1 out) + gosub 8, L302 + pushFromPSp 0 + ret +L15101: ;___callback for action pushFromPAi L28178 ; ___ai rc_crowd_laser + popToSp 0 + pushFromFSp 0 + gosub 4, L15124 + pushFromFSp 0 + gosub 4, L10262 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 9 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + syscall 8, 7 ; trap_special_last_xemnus_laser_optimize_end (0 in, 0 out) + ret +L15124: + popToSp 0 + pushFromFSpVal 168 + pushImm 0 + sub + neqz + jz L15149 + pushFromFSpVal 168 + pushImmf 60 + syscall 1, 184 ; trap_light_fadeout (2 in, 0 out) + pushImm 0 + popToSpVal 168 + jmp L15149 +L15149: + ret +L15150: ;___label for action pushFromPAi L27920 ; ___ai laser_faint + popToSp 0 + pushFromFSp 0 + pushImm 2 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 191 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + pushImm 1 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + gosub 4, L1407 + ret +L15181: ;___callback for action pushFromPAi L27920 ; ___ai laser_faint + popToSp 0 + pushImm 1 + popToSpVal 172 + ret +L15189: ;___label for action pushFromPAi L27957 ; ___ai rc_crowd_laser_finish + popToSp 0 + pushFromFSp 0 + gosub 12, L757 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromFSp 0 + pushImm 9 + syscall 1, 212 ; trap_obj_pattern_disable (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 227 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 228 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 229 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) +L15257: + pushFromFSp 0 + pushImm 229 + gosub 12, L13716 + jz L15269 + halt + jmp L15257 +L15269: + pushFromFSp 0 + pushImm 229 + gosub 12, L13716 + eqz + jz L15346 + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L15315 + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 0 + syscall 1, 228 ; trap_sheet_hp (2 in, 1 out) + pushImm 1 + sub + neg + pushImm 0 + pushImm 0 + syscall 1, 155 ; trap_obj_add_hp (4 in, 1 out) + drop + jmp L15315 +L15315: + pushFromFSp 0 + pushImm 2 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L15331 + pushImmf 60 + syscall 0, 31 ; func_screen_whiteout (1 in, 0 out) + jmp L15331 +L15331: + halt + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L15344 + jmp L15346 +L15342: + jmp L15344 +L15344: + jmp L15269 +L15346: + pushFromFSp 0 + syscall 1, 161 ; trap_obj_is_attach (1 in, 1 out) + jz L15358 + pushFromFSp 0 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + jmp L15358 +L15358: + gosub 12, L757 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + gosub 20, L757 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushImmf 900 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf -800 + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) + pushFromFSp 0 + gosub 12, L757 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromPSp 16 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushImmf 120 + gosub 12, L1244 + syscall 1, 356 ; trap_event_layer_on (0 in, 0 out) + pushImm 0 + syscall 1, 42 ; func_obj_control_off (1 in, 0 out) + pushImm 1 + syscall 1, 42 ; func_obj_control_off (1 in, 0 out) + gosub 12, L757 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 214 ; trap_obj_hook_stop (1 in, 0 out) + gosub 12, L757 + memcpyToSp 16, 32 + pushFromPSp 32 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + gosub 12, L10262 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 214 ; trap_obj_hook_stop (1 in, 0 out) + pushFromFSp 0 + gosub 12, L10262 + memcpyToSp 16, 32 + pushFromPSp 32 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 120 + syscall 0, 32 ; func_screen_whitein (1 in, 0 out) + halt + pushImm 0 + syscall 1, 43 ; func_obj_control_on (1 in, 0 out) + pushImm 1 + syscall 1, 43 ; func_obj_control_on (1 in, 0 out) + pushFromFSp 0 + pushFromPAi L27920 ; ___ai laser_faint (L27920) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + ret +L15545: ;___label for action pushFromPAi L27726 ; ___ai atk_crowd_laser + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushFromFSp 0 + fetchValue 36 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) +L15560: + pushFromPSp 16 + pushImm 13 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + gosub 12, L757 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 225 ; trap_obj_is_star (1 in, 1 out) + eqz + dup + jz L15591 + gosub 16, L757 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + eqz + eqzv +L15591: + dup + jz L15601 + pushFromPSp 16 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + eqzv +L15601: + jz L15659 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushImmf 8 + syscall 0, 32 ; func_screen_whitein (1 in, 0 out) + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 131 ; trap_target_dup (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 160 ; trap_target_set_obj (2 in, 0 out) + gosub 12, L757 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 4 + gosub 16, L15663 + pushFromFSp 0 + gosub 12, L16206 + pushFromFSp 4 + syscall 1, 132 ; trap_target_free (1 in, 0 out) + jmp L15662 +L15657: + jmp L15659 +L15659: + halt + jmp L15560 +L15662: + ret +L15663: + popToSp 0 + popToSp 4 + pushFromPWp W176 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L15676 + ret +L15676: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L291 + memcpyToSp 16, 32 + pushFromPSp 32 + gosub 16, L15885 + pushFromFSp 8 + memcpyToSpVal 16, 144 + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 8 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 8 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L344 + pushFromFSp 8 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 8 + pushImm 262 + pushImmf 0 + gosub 12, L1054 + drop + pushFromFSp 8 + pushImm 0 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 8 + pushImm L16000 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 160 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L15848 + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromPSpVal 160 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromPSpVal 160 + pushImm 0 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 160 + pushImm 262 + pushImmf 0 + gosub 12, L1054 + drop + pushFromPSpVal 160 + pushImm L16000 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 160 + pushFromFSp 8 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + jmp L15848 +L15848: + pushFromPSpVal 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 4 + gosub 12, L291 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPAi L28178 ; ___ai rc_crowd_laser (L28178) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28201 ; ___ai 60 (L28201) + syscall 1, 164 ; trap_obj_camera_start_global (2 in, 0 out) + pushImm L16062 + pushFromFSp 0 + syscall 2, 20 ; trap_magic_start_thread (2 in, 1 out) + drop + ret +L15885: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L1039 + pushFromPSpVal 256 + pushImmf 1800 + gosub 12, L2509 + pushImm 0 + popToSpVal 260 + pushFromPSpVal 160 + pushImm 13 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + pushFromPSpVal 240 + pushImm 1 + memcpy 0 + pushFromPSpVal 240 + pushImm 8 + add + pushImm 3 + memcpy 0 + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 100 + pushImmf 1 + gosub 12, L344 + pushImm 0 + popToSp 32 + pushImm 4 +L15954: + dup + pushFromFSp 32 + sub + info + jnz L15998 + pushFromPSpVal 176 + pushFromFSp 32 + pushImm 16 + mul + add + pushFromPSp 16 + memcpy 16 + pushFromPSp 16 + pushImmf 1.570796 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromFSp 32 + pushImm 1 + add + popToSp 32 + jmp L15954 +L15998: + drop + ret +L16000: + popToSp 0 + pushFromFSp 0 + gosub 4, L7302 + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + jz L16033 + pushFromPWp W176 + pushFromFSp 0 + pushImm 272 + pushImmf 0 + gosub 4, L1054 + drop + pushFromFSp 0 + gosub 4, L7302 + jmp L16061 +L16033: + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L16045: + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 0 + sub + eqz + jz L16061 + halt + jmp L16045 +L16061: + ret +L16062: + popToSp 0 + gosub 4, L10254 + syscall 8, 4 ; trap_special_last_xemnus_laser_attack (0 in, 0 out) + pushImm 19572 + syscall 4, 4 ; trap_mission_information (1 in, 0 out) + pushFromFSp 0 + pushFromPAi L28137 ; ___ai 61 (L28137) + syscall 1, 164 ; trap_obj_camera_start_global (2 in, 0 out) + pushFromPSpVal 160 + syscall 1, 161 ; trap_obj_is_attach (1 in, 1 out) + jz L16091 + pushFromPSpVal 160 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + jmp L16091 +L16091: + pushFromPSpVal 144 + pushFromFSp 0 + pushFromPSpVal 240 + fetchValue 0 + gosub 4, L9001 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) + pushFromPSpVal 160 + pushFromFSp 0 + pushFromPSpVal 240 + pushImm 8 + add + fetchValue 0 + gosub 4, L9001 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) +L16129: + gosub 4, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + jz L16205 + pushFromPSpVal 160 + pushImm 4 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + dup + jnz L16162 + pushFromPSpVal 160 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 0 + sub + eqz + neqzv +L16162: + jz L16179 + pushImm 1 + pushImm 651 + pushFromPSpVal 0 + pushImm 1 + syscall 1, 165 ; trap_command_override (4 in, 0 out) + jmp L16179 +L16179: + pushImm 0 + pushImm 650 + pushFromPSpVal 0 + pushImm 1 + syscall 1, 165 ; trap_command_override (4 in, 0 out) + halt + pushFromPSpVal 256 + gosub 4, L4567 + jz L16203 + jmp L16205 +L16201: + jmp L16203 +L16203: + jmp L16129 +L16205: + ret +L16206: + popToSp 0 + pushFromFSpVal 168 + pushImm 0 + sub + eqz + jz L16226 + pushImm 0 + syscall 1, 181 ; trap_light_create (1 in, 1 out) + popToSpVal 168 + jmp L16226 +L16226: + pushFromFSpVal 168 + pushImm 1 + syscall 1, 182 ; trap_light_set_flag (2 in, 0 out) + pushFromFSpVal 168 + pushImm 64 + pushImm 64 + pushImm 64 + pushImmf 60 + syscall 1, 183 ; trap_light_set_color (5 in, 0 out) + ret +L16250: ;___label for action pushFromPAi L27685 ; ___ai atk_dark + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 224 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromPSpVal 164 + pushFromFSp 0 + pushImm 48 + pushImm 0 + gosub 4, L501 +L16285: + pushFromFSp 0 + pushImm 224 + gosub 4, L13716 + eqz + jz L16310 + halt + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L16308 + jmp L16310 +L16306: + jmp L16308 +L16308: + jmp L16285 +L16310: + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + ret +L16317: ;___callback for action pushFromPAi L27685 ; ___ai atk_dark + popToSp 0 + pushFromPSpVal 164 + gosub 4, L813 + ret +L16324: ;___label for action pushFromPAi L27708 ; ___ai rc_invitation_to_dark2 + popToSp 0 + pushFromFSp 0 + gosub 4, L16429 + popToSpVal 144 + pushFromFSp 0 + gosub 4, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 16386 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 222 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + pushFromFSp 0 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 225 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromPAi L27926 ; ___ai dark (L27926) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushFromFSp 0 + gosub 4, L16727 + popToSpVal 148 + pushFromFSp 0 + gosub 4, L16951 + pushFromFSp 0 + pushFromPAi L27708 ; ___ai rc_invitation_to_dark2 (L27708) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + pushFromFSp 0 + gosub 4, L10262 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 9 + syscall 1, 212 ; trap_obj_pattern_disable (2 in, 0 out) + gosub 4, L1407 + ret +L16429: + popToSp 0 + pushImm 112 + pushImm L16446 + pushFromFSp 0 + gosub 4, L847 + popToSp 4 + pushFromFSp 4 + ret +L16446: + popToSp 0 + pushFromFSp 0 + gosub 4, L414 + pushFromFSp 0 + gosub 4, L16461 + pushFromFSp 0 + gosub 4, L836 + ret +L16461: + popToSp 0 + pushFromPSpVal 64 + gosub 4, L493 + pushFromPSpVal 68 + gosub 4, L493 + pushFromPSpVal 64 + pushFromPSpVal 0 + pushImm 46 + pushImm 0 + gosub 4, L501 + pushFromPSpVal 68 + pushFromPSpVal 0 + pushImm 47 + pushImm 0 + gosub 4, L501 + pushImm 1 + popToSpVal 96 + pushFromFSp 0 + pushImm 0 + gosub 4, L16559 +L16507: + pushFromFSpVal 96 + jz L16520 + pushFromFSp 0 + pushImm 1 + gosub 4, L16559 + jmp L16507 +L16520: + pushImmf 46 + popToSp 4 +L16525: + pushFromFSp 4 + pushImmf 0 + subf + supzf + jz L16550 + pushFromFSp 0 + pushImm 1 + gosub 4, L16559 + pushFromFSp 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 4 + jmp L16525 +L16550: + pushFromPSpVal 68 + gosub 4, L6852 + pushFromPSpVal 64 + gosub 4, L6852 + ret +L16559: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 16, L16659 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 32 + pushFromFSp 4 + jz L16582 + halt + jmp L16582 +L16582: + pushFromPSpVal 0 + gosub 16, L311 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSpVal 64 + pushFromPSp 16 + gosub 16, L647 + pushFromPSp 16 + pushFromPSp 32 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSpVal 64 + pushFromPSp 16 + gosub 16, L769 + pushFromPSp 16 + pushImmf 1 + pushImmf 1 + pushFromPSp 16 + fetchValue 12 + pushImmf 500 + divf + pushImmf 1 + gosub 16, L344 + pushFromPSpVal 64 + pushFromPSp 16 + gosub 16, L791 + pushFromPSpVal 68 + pushFromPSp 32 + gosub 16, L647 + ret +L16659: + popToSp 0 + pushFromPSp 32 + pushImm 2258 + syscall 1, 114 ; trap_obj_search_by_entry (2 in, 0 out) + pushFromPSp 16 + pushImmf 1 + gosub 16, L737 + pushFromPSp 32 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L16702 + pushFromPSp 32 + pushImm 67 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + jmp L16724 +L16702: + gosub 16, L757 + memcpyToSp 16, 48 + pushFromPSp 48 + pushImm 67 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 +L16724: + pushFromPSp 16 + ret +L16727: + popToSp 0 + pushFromPSp 8 + pushFromFSp 0 + fetchValue 4 + gosub 8, L302 + pushImm 84 + pushImm L16752 + pushFromFSp 0 + gosub 8, L847 + popToSp 4 + pushFromFSp 4 + ret +L16752: + popToSp 0 + pushFromFSp 0 + gosub 4, L16767 + pushFromFSp 0 + gosub 4, L16789 + pushFromFSp 0 + gosub 4, L16932 + ret +L16767: + popToSp 0 + pushFromFSp 0 + gosub 4, L3025 + pushImm 1 + popToSpVal 80 + pushImm 0 + popToSpVal 76 + pushImmf 0 + popToSpVal 72 + ret +L16789: + popToSp 0 + pushImmf 10 + gosub 8, L1244 +L16796: + pushFromFSpVal 80 + jz L16931 + pushFromFSpVal 72 + pushImmf 0.015 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + addf + popToSpVal 72 + gosub 8, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 0 + syscall 1, 228 ; trap_sheet_hp (2 in, 1 out) + popToSp 8 + pushFromFSpVal 72 + pushImmf 1 + subf + supzf + jz L16851 + pushFromFSpVal 72 + cfti + popToSp 4 + pushFromFSpVal 72 + pushFromFSp 4 + citf + subf + popToSpVal 72 + jmp L16856 +L16851: + pushImm 0 + popToSp 4 +L16856: + pushFromFSp 4 + pushImm 0 + sub + ipos + jz L16928 + pushFromFSp 4 + pushFromPAi L27877 ; ___ai add hp (L27877) + syscall 0, 0 ; trap_puti (2 in, 0 out) + pushFromFSp 8 + pushFromFSp 4 + sub + pushImm 0 + sub + msb + jz L16907 + gosub 8, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 0 + pushFromFSp 8 + sub + pushImm 0 + pushImm 0 + syscall 1, 155 ; trap_obj_add_hp (4 in, 1 out) + drop + jmp L16926 +L16907: + gosub 8, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSp 4 + neg + pushImm 0 + pushImm 0 + syscall 1, 155 ; trap_obj_add_hp (4 in, 1 out) + drop +L16926: + jmp L16928 +L16928: + halt + jmp L16796 +L16931: + ret +L16932: + popToSp 0 +L16934: + pushFromFSpVal 76 + pushImm 0 + sub + ipos + jz L16946 + halt + jmp L16934 +L16946: + pushFromFSp 0 + gosub 4, L4653 + ret +L16951: + popToSp 0 + pushFromFSp 0 + gosub 4, L9952 + jz L16982 + pushFromFSp 0 + pushImm 1 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + jmp L17003 +L16982: + pushFromFSp 0 + pushImm 1 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) +L17003: + ret +L17004: ;___callback for action pushFromPAi L27708 ; ___ai rc_invitation_to_dark2 + popToSp 0 + pushFromFSp 0 + gosub 4, L10262 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 9 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + ret +L17021: ;___callback for action pushFromPAi L27708 ; ___ai rc_invitation_to_dark2 + popToSp 4 + popToSp 0 + pushImm 1 + popToSpVal 160 + pushFromFSp 0 + pushFromFSp 4 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L17051 + pushFromFSp 0 + syscall 1, 127 ; trap_obj_act_clear (1 in, 0 out) + pushFromFSp 0 + pushFromPAi L28061 ; ___ai mode_dark_start (L28061) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L17051 +L17051: + ret +L17052: ;___label for action pushFromPAi L27841 ; ___ai rc_invitation_to_dark2_finish + popToSp 0 + pushFromFSpVal 148 + gosub 4, L17158 + pushImm 0 + popToSpVal 148 + pushFromFSpVal 144 + gosub 4, L17166 + pushImm 0 + popToSpVal 144 + pushFromFSp 0 + gosub 4, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromFSp 0 + pushFromPAi L27841 ; ___ai rc_invitation_to_dark2_finish (L27841) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 223 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + pushFromFSp 0 + fetchValue 4 + pushImm 191 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 300 + gosub 4, L1244 + pushFromFSp 0 + fetchValue 4 + pushImm 192 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + ret +L17158: + popToSp 0 + pushImm 0 + popToSpVal 80 + ret +L17166: + popToSp 0 + pushImm 0 + popToSpVal 96 + ret +L17174: ;___callback for action pushFromPAi L27841 ; ___ai rc_invitation_to_dark2_finish + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 4, L17212 + pushImm 0 + popToSpVal 160 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L17211 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + syscall 1, 127 ; trap_obj_act_clear (1 in, 0 out) + jmp L17211 +L17211: + ret +L17212: + popToSp 0 + pushFromFSp 0 + gosub 4, L9952 + jz L17243 + pushFromFSp 0 + pushImm 1 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + jmp L17264 +L17243: + pushFromFSp 0 + pushImm 1 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) +L17264: + ret +D17265: +L17265: ;___label for action pushFromPAi L27807 ; ___ai stop + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + gosub 4, L17283 + gosub 4, L1407 + ret +L17283: + popToSp 0 + pushFromFSp 0 + pushImm 1 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + ret +L17307: ;___label for action pushFromPAi L28247 ; ___ai walk_start + popToSp 0 + pushFromFSp 0 + pushFromPAi L27994 ; ___ai walk (L27994) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 154 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 8 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + ret +L17359: ;___label for action pushFromPAi L27994 ; ___ai walk + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 164 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 8 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + ret +L17401: ;___callback for action pushFromPAi L27994 ; ___ai walk + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L17440 + pushFromFSp 0 + pushFromPAi L27994 ; ___ai walk (L27994) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + pushImm 16386 + pushImm 5 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + jmp L17440 +L17440: + ret +L17441: ;___label for action pushFromPAi L27906 ; ___ai run_start + popToSp 0 + pushFromFSp 0 + pushFromPAi L28069 ; ___ai run (L28069) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + pushFromFSp 0 + gosub 4, L17519 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 152 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + pushFromFSp 0 + pushImmf 500 + gosub 4, L17572 + pushFromFSp 0 + fetchValue 4 + pushImmf 10 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 153 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + ret +L17519: + popToSp 0 + pushFromFSp 0 + gosub 4, L9952 + jz L17550 + pushFromFSp 0 + pushImm 1 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + jmp L17571 +L17550: + pushFromFSp 0 + pushImm 1 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) +L17571: + ret +L17572: + popToSp 4 + popToSp 0 + pushFromPSp 16 + pushImmf 1 + pushImmf 0 + pushImmf 0 + pushImmf 1 + gosub 12, L344 + pushFromPSp 16 + pushImmf 6.283185 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromFSp 0 + pushImmf 0 + gosub 12, L17667 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPSp 16 + pushFromFSp 4 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 0 + gosub 12, L17764 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + ret +L17667: + popToSp 4 + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L17701 + memcpy 0 + pushFromPSp 16 + ret +L17701: + popToSp 4 + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + jz L17740 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + gosub 8, L291 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 98 ; trap_obj_step_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + fetchValue 4 + pushFromFSp 4 + subf + popToSp 8 + jmp L17761 +L17740: + gosub 8, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 98 ; trap_obj_step_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + fetchValue 4 + pushFromFSp 4 + subf + popToSp 8 +L17761: + pushFromFSp 8 + ret +L17764: + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + ret +L17794: ;___callback for action pushFromPAi L27906 ; ___ai run_start + popToSp 0 + pushFromFSp 0 + gosub 4, L17212 + ret +L17801: ;___label for action pushFromPAi L28069 ; ___ai run + popToSp 0 + pushFromFSp 0 + gosub 4, L17519 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 162 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + pushFromFSp 0 + fetchValue 4 + pushImm 163 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImmf 20 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushImmf 50 + gosub 4, L1244 + pushFromFSp 0 + gosub 4, L17880 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + ret +L17880: + popToSp 0 + pushImm 0 + popToSp 4 + pushImm 13 +L17890: + dup + pushFromFSp 4 + sub + info + jnz L17924 + pushFromFSp 0 + pushImm 28 + pushFromFSp 4 + add + pushImm 1 + pushImm 0 + syscall 1, 87 ; trap_obj_effect_start_bind (4 in, 1 out) + drop + pushFromFSp 4 + pushImm 1 + add + popToSp 4 + jmp L17890 +L17924: + drop + ret +L17926: ;___callback for action pushFromPAi L28069 ; ___ai run + popToSp 0 + pushFromFSp 0 + gosub 4, L17212 + ret +L17933: ;___callback for action pushFromPAi L28069 ; ___ai run + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L17977 + pushFromFSp 4 + memcpyToSpVal 16, 128 + pushFromFSp 0 + pushFromPAi L28069 ; ___ai run (L28069) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + pushImm 16386 + pushImm 5 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + jmp L17977 +L17977: + ret +L17978: ;___label for action pushFromPAi L27929 ; ___ai run2_start + popToSp 0 + pushFromFSp 0 + pushFromPAi L27693 ; ___ai run2 (L27693) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + pushFromFSp 0 + gosub 4, L17519 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 162 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + pushFromFSp 0 + pushImmf 200 + gosub 4, L17572 + pushFromFSp 0 + fetchValue 4 + pushImmf 10 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 163 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + pushImm 1 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + ret +L18063: ;___callback for action pushFromPAi L27929 ; ___ai run2_start + popToSp 0 + pushFromFSp 0 + gosub 4, L17212 + ret +L18070: ;___label for action pushFromPAi L27693 ; ___ai run2 + popToSp 0 + pushFromFSp 0 + gosub 4, L17519 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 152 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + pushFromFSp 0 + fetchValue 4 + pushImmf 20 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 153 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 50 + gosub 4, L1244 + pushFromFSp 0 + gosub 4, L17880 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + ret +L18149: ;___callback for action pushFromPAi L27693 ; ___ai run2 + popToSp 0 + pushFromFSp 0 + gosub 4, L17212 + ret +L18156: ;___callback for action pushFromPAi L27693 ; ___ai run2 + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L18200 + pushFromFSp 4 + memcpyToSpVal 16, 128 + pushFromFSp 0 + pushFromPAi L27693 ; ___ai run2 (L27693) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + pushImm 16386 + pushImm 5 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + jmp L18200 +L18200: + ret +L18201: ;___label for action pushFromPAi L28233 ; ___ai run3_start + popToSp 0 + pushFromFSp 0 + pushFromPAi L27810 ; ___ai run3 (L27810) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + pushFromFSp 0 + gosub 4, L18287 + pushFromFSp 0 + gosub 4, L18287 + pushFromFSp 0 + gosub 4, L17519 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 152 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + pushFromFSp 0 + pushImmf -1000 + gosub 4, L17572 + pushFromFSp 0 + fetchValue 4 + pushImmf 10 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 153 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + ret +L18287: + popToSp 0 + pushImm 72 + pushImm L18301 + pushFromFSp 0 + gosub 4, L847 + drop + ret +L18301: + popToSp 0 + pushFromFSp 0 + gosub 4, L414 + pushFromFSp 0 + gosub 4, L18316 + pushFromFSp 0 + gosub 4, L836 + ret +L18316: + popToSp 0 + pushFromPSpVal 64 + gosub 8, L493 + pushFromPSp 4 + pushImmf 120 + gosub 8, L2494 + pushFromPSp 4 + pushImmf 0 + gosub 8, L2509 + pushImmf 0 + popToSpVal 68 + pushFromPSpVal 64 + pushFromPSpVal 0 + pushImm 45 + pushImm 0 + gosub 8, L501 + pushFromPSpVal 64 + pushFromFSp 0 + gosub 8, L18448 + memcpyToSp 16, 16 + pushFromPSp 16 + gosub 12, L647 +L18366: + pushFromPSpVal 0 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L18435 + pushFromPSpVal 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L18386 + jmp L18435 +L18384: + jmp L18386 +L18386: + pushFromPSp 4 + gosub 8, L2637 + jz L18432 + pushImm 0 + popToSp 12 + pushImm 5 +L18400: + dup + pushFromFSp 12 + sub + info + jnz L18423 + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L18486 + pushFromFSp 12 + pushImm 1 + add + popToSp 12 + jmp L18400 +L18423: + drop + jmp L18435 +L18426: + pushFromPSp 4 + gosub 8, L2647 + jmp L18432 +L18432: + halt + jmp L18366 +L18435: + pushFromFSpVal 68 + pushImmf 60 + addf + gosub 8, L1244 + pushFromPSpVal 64 + gosub 8, L6852 + ret +L18448: + popToSp 0 + pushFromPSpVal 0 + gosub 4, L4854 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromPSpVal 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf -200 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + ret +L18486: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 16, L18448 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushImmf 0 + pushImmf 1 + gosub 16, L5571 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 4 + add + pushImmf -1 + pushImmf 1 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + memcpy 0 + pushFromPSp 32 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 32 + pushFromPSpVal 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushImmf -1 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSpVal 0 + pushFromPSp 16 + pushFromPSp 32 + gosub 16, L18585 + popToSpVal 68 + ret +L18585: + popToSp 0 + popToSp 4 + popToSp 8 + pushImm 176 + pushImm L18636 + pushFromFSp 8 + gosub 8, L847 + popToSp 12 + pushFromFSp 12 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L6886 + pushFromFSp 12 + pushImm 140 + add + pushImmf 55 + pushImmf 90 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + gosub 8, L2509 + pushFromFSp 12 + pushImm 140 + add + fetchValue 0 + ret +L18636: + popToSp 0 + pushFromFSp 0 + gosub 4, L18651 + pushFromFSp 0 + gosub 4, L18658 + pushFromFSp 0 + gosub 4, L18933 + ret +L18651: + popToSp 0 + pushFromFSp 0 + gosub 4, L6125 + ret +L18658: + popToSp 0 + pushFromPSp 32 + pushImmf 0 + pushImmf 1 + pushImmf 0 + pushImmf 1 + gosub 16, L344 + pushFromPSp 32 + pushImmf 6.283185 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + syscall 0, 68 ; trap_vector_rotx (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf 6.283185 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 32 + pushImmf 1 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + pushImmf 0.5 + subf + infzf + jz L18739 + pushFromPSp 32 + pushImmf -1 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 32 + jmp L18739 +L18739: + pushFromFSp 0 + pushImmf 0.1 + pushImmf 0.8 + gosub 20, L6375 + pushFromFSp 0 + pushImm 1021 + pushImmf 60 + gosub 16, L6445 + pushFromFSpVal 160 + jz L18775 + pushFromFSp 0 + pushImm 635 + pushImmf 800 + gosub 16, L6540 + jmp L18775 +L18775: + pushFromPSpVal 128 + pushImmf 0 + pushImmf 80 + gosub 16, L6613 + pushFromPSpVal 64 + pushImmf 1 + gosub 16, L737 +L18792: + pushFromPSpVal 140 + gosub 16, L2637 + eqz + jz L18909 + pushFromPSpVal 32 + pushFromPSpVal 0 + gosub 16, L4854 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromPSp 32 + pushImmf 0.174533 + syscall 0, 83 ; trap_vector_rot (3 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromPSpVal 0 + gosub 16, L4854 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromPSp 16 + memcpyToSpVal 16, 32 + pushFromPSp 16 + pushFromPSpVal 32 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSpVal 16, 64 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L6702 + pushFromFSp 0 + pushImmf 800 + gosub 16, L6576 + pushFromPSpVal 148 + pushFromPSpVal 64 + gosub 16, L769 + halt + pushFromPSpVal 128 + gosub 16, L6628 + drop + pushFromPSpVal 140 + gosub 16, L4567 + drop + jmp L18792 +L18909: + pushFromPSpVal 152 + gosub 16, L6743 + pushFromPSpVal 148 + pushImm 1 + gosub 16, L6763 + pushImmf 60 + gosub 16, L1244 + pushFromPSpVal 148 + pushImmf 12 + gosub 16, L6800 + ret +L18933: + popToSp 0 + pushFromFSp 0 + gosub 4, L6841 + pushFromFSp 0 + gosub 4, L6875 + ret +L18944: ;___callback for action pushFromPAi L28233 ; ___ai run3_start + popToSp 0 + pushFromFSp 0 + gosub 4, L17212 + ret +L18951: ;___label for action pushFromPAi L27810 ; ___ai run3 + popToSp 0 + pushFromFSp 0 + gosub 4, L17519 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 162 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + pushFromFSp 0 + fetchValue 4 + pushImm 163 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImmf 20 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushImmf 50 + gosub 4, L1244 + pushFromFSp 0 + gosub 4, L17880 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + ret +L19030: ;___callback for action pushFromPAi L27810 ; ___ai run3 + popToSp 0 + pushFromFSp 0 + gosub 4, L17212 + ret +L19037: ;___callback for action pushFromPAi L27810 ; ___ai run3 + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L19081 + pushFromFSp 4 + memcpyToSpVal 16, 128 + pushFromFSp 0 + pushFromPAi L27810 ; ___ai run3 (L27810) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + pushImm 16386 + pushImm 5 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + jmp L19081 +L19081: + ret +L19082: ;___label for action pushFromPAi L28228 ; ___ai run_near + popToSp 0 + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.5 + subf + infzf + jz L19103 + pushFromFSp 0 + pushFromPAi L27906 ; ___ai run_start (L27906) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L19109 +L19103: + pushFromFSp 0 + pushFromPAi L27929 ; ___ai run2_start (L27929) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) +L19109: + pushFromFSp 0 + pushFromPAi L27940 ; ___ai idle_wait (L27940) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L27951 ; ___ai atk_dance_s (L27951) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + ret +L19122: ;___label for action pushFromPAi L28186 ; ___ai atk_normal_laser1 + popToSp 0 + pushFromFSp 0 + pushImm 23 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + gosub 20, L10071 + pushImmf 0.5 + subf + infzf + jz L19161 + pushFromPAi L28203 ; ___ai right (L28203) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushImmf 0.069813 + popToSp 36 + pushImm 205 + popToSp 56 + jmp L19171 +L19161: + pushImmf -0.069813 + popToSp 36 + pushImm 206 + popToSp 56 +L19171: + pushFromPSp 44 + pushImmf 90 + gosub 20, L2509 + pushFromPSp 48 + pushImmf 6 + gosub 20, L2494 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 56 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 1 + pushImmf 1 + gosub 20, L344 + pushFromPSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 21 ; trap_vector_get_rot_xz (2 in, 1 out) + popToSp 32 + pushFromFSp 0 + gosub 20, L19498 + popToSp 40 + pushFromFSp 0 + pushImmf 150 + gosub 20, L19539 + popToSp 60 + pushFromFSp 0 + gosub 20, L19670 +L19264: + pushFromPSp 44 + gosub 20, L2637 + eqz + jz L19425 + pushFromFSp 40 + pushImmf 300 + pushImmf 0.9 + gosub 20, L19703 + popToSp 40 + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushFromFSp 40 + pushImmf 1 + gosub 20, L344 + pushFromFSp 32 + pushFromFSp 36 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + addf + syscall 0, 43 ; trap_fixrad (1 in, 1 out) + popToSp 32 + pushFromPSp 16 + pushFromFSp 32 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushImmf 0 + gosub 20, L17667 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 16 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + gosub 20, L13615 + pushFromPSp 48 + gosub 20, L2637 + jz L19412 + pushFromFSp 0 + pushFromFSp 0 + gosub 20, L4854 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSp 0 + gosub 28, L4854 + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + pushFromFSp 60 + gosub 36, L19721 + pushFromPSp 48 + gosub 20, L2647 + jmp L19412 +L19412: + halt + pushFromPSp 44 + gosub 20, L4567 + drop + pushFromPSp 48 + gosub 20, L4567 + drop + jmp L19264 +L19425: + pushFromFSp 0 + gosub 20, L20482 + gosub 20, L20519 + pushImm 4 + add + pushFromFSp 36 + memcpy 0 + gosub 20, L15077 + memcpyToSp 16, 64 + pushFromPSp 64 + fetchValue 4 + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + gosub 20, L15077 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + pushImmf 0 + gosub 24, L20532 + gosub 20, L15077 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPAi L28160 ; ___ai atk_normal_laser1_child (L28160) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushImmf 60 + pushImmf 180 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + pushImmf 0.5 + mulf + gosub 20, L1244 + ret +L19498: + popToSp 0 + pushFromFSp 0 + gosub 4, L19512 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + ret +L19512: + popToSp 0 + pushFromFSp 0 + gosub 12, L17764 + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSp 16 + ret +L19539: + popToSp 0 + popToSp 4 + pushImm 80 + pushImm L19571 + pushFromFSp 4 + gosub 8, L847 + popToSp 8 + pushFromFSp 8 + gosub 8, L19643 + pushFromFSp 8 + pushImm 68 + add + pushFromFSp 0 + memcpy 0 + pushFromFSp 8 + ret +L19571: + popToSp 0 +L19573: + pushFromFSpVal 72 + dup + jz L19588 + pushFromFSp 0 + fetchValue 68 + pushImmf 0 + subf + supzf + eqzv +L19588: + jz L19615 + halt + pushFromPSpVal 0 + syscall 6, 49 ; trap_obj_is_stop (1 in, 1 out) + eqz + jz L19613 + pushFromFSp 0 + pushImm 68 + add + dup + fetchValue 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + memcpy 0 + jmp L19613 +L19613: + jmp L19573 +L19615: + pushImm 0 + popToSpVal 72 +L19620: + pushFromFSpVal 64 + pushImm 0 + sub + ipos + jz L19638 + pushFromFSpVal 64 + pushFromPAi L28055 ; ___ai @ref_count (L28055) + syscall 0, 0 ; trap_puti (2 in, 0 out) + halt + jmp L19620 +L19638: + pushFromFSp 0 + gosub 4, L836 + ret +L19643: + popToSp 0 + pushFromFSp 0 + gosub 4, L414 + pushImm 0 + popToSpVal 64 + pushImmf 0 + popToSpVal 68 + pushImm 1 + popToSpVal 72 + pushImm 1 + popToSpVal 76 + ret +L19670: + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + pushImm 1 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + ret +L19703: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + pushFromFSp 4 + subf + pushFromFSp 0 + mulf + pushFromFSp 4 + addf + ret +L19721: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + pushImmf -1 + gosub 8, L19753 + popToSp 16 + pushFromFSp 16 + pushFromFSp 0 + gosub 8, L20462 + pushFromFSp 0 + gosub 8, L20471 + ret +L19753: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushFromFSp 12 + gosub 8, L19780 + popToSp 16 + pushFromFSp 16 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L20433 + pushFromFSp 16 + ret +L19780: + popToSp 0 + pushImm 228 + pushImm L19801 + pushFromFSp 0 + gosub 4, L847 + popToSp 4 + pushFromFSp 4 + gosub 4, L20333 + pushFromFSp 4 + ret +L19801: + popToSp 0 + pushFromFSp 0 + gosub 4, L3025 + pushFromFSp 0 + gosub 4, L19816 + pushFromFSp 0 + gosub 4, L20296 + ret +L19816: + popToSp 0 + pushFromFSp 0 + pushFromPSpVal 0 + pushImm 1240 + pushImmf 50 + gosub 16, L20098 + pushFromFSp 0 + gosub 16, L20040 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L5463 + pushFromFSp 0 + pushFromPSpVal 80 + pushImm 16 + add + gosub 16, L20076 + pushFromFSpVal 212 + pushImmf 0 + subf + infzf + dup + jz L19868 + pushFromFSpVal 224 + pushImm 0 + sub + neqz + eqzv +L19868: + jz L19968 + pushFromFSpVal 224 + fetchValue 76 + jz L19905 + pushFromPSpVal 32 + fetchValue 4 + popToSp 48 + pushFromPSpVal 32 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + jmp L19905 +L19905: + pushFromFSpVal 224 + fetchValue 72 + jz L19966 + pushFromFSpVal 224 + fetchValue 76 + dup + jz L19923 + pushFromFSpVal 48 + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + eqzv +L19923: + jz L19963 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSpVal 16, 32 + pushFromPSpVal 32 + pushImm 4 + add + pushFromFSp 48 + memcpy 0 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L5463 + jmp L19963 +L19963: + halt + jmp L19905 +L19966: + jmp L19972 +L19968: + pushFromFSpVal 212 + gosub 16, L1244 +L19972: + pushFromFSp 0 + gosub 16, L20136 + pushFromFSpVal 68 + syscall 2, 39 ; trap_attack_is_reflect (1 in, 1 out) + jz L20039 + pushFromFSpVal 68 + syscall 2, 44 ; trap_attack_reflecter (1 in, 1 out) + memcpyToSp 16, 52 + pushFromPSp 52 + memcpyToSp 16, 4 + pushFromPSpVal 80 + pushFromFSp 0 + gosub 16, L3387 + memcpyToSp 16, 64 + pushFromPSp 64 + gosub 24, L3576 + pushFromFSp 0 + pushFromPSp 4 + pushImm 1240 + pushImmf 50 + gosub 16, L20098 + pushFromPSp 4 + memcpyToSpVal 16, 0 + pushFromPSpVal 80 + pushFromFSpVal 48 + pushImm 1 + gosub 16, L3591 + pushFromFSp 0 + gosub 16, L20136 + jmp L20039 +L20039: + ret +L20040: + popToSp 0 + pushFromPSpVal 0 + pushImm 15 + pushFromPSpVal 32 + pushImm 1 + pushImm 0 + syscall 1, 22 ; trap_obj_effect_start_pos (5 in, 1 out) + drop + pushFromPSpVal 0 + pushImm 16 + pushFromPSpVal 32 + pushImm 0 + pushImm 0 + syscall 1, 22 ; trap_obj_effect_start_pos (5 in, 1 out) + popToSpVal 64 + ret +L20076: + popToSp 4 + popToSp 0 + pushFromFSpVal 64 + pushImm 0 + sub + neqz + jz L20097 + pushFromFSpVal 64 + pushFromFSp 4 + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + jmp L20097 +L20097: + ret +L20098: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + pushFromFSp 8 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSpVal 68 + pushFromFSpVal 68 + pushFromFSp 4 + pushImmf 0 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromFSpVal 68 + pushFromPSpVal 0 + syscall 2, 22 ; trap_attack_set_obj_pax (2 in, 0 out) + ret +L20136: + popToSp 0 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L2581 + pushFromPSpVal 80 + pushImmf 0.017453 + gosub 4, L2572 + pushFromPSpVal 80 + pushImmf 0.017453 + gosub 4, L2590 + pushFromPSpVal 80 + pushImmf 400 + gosub 4, L3158 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L3135 + pushFromPSpVal 192 + pushImmf 50 + pushImmf 0 + pushImmf 50 + pushImmf 0 + gosub 4, L2518 + pushFromPSpVal 208 + pushImmf 18 + gosub 4, L2509 + pushFromFSp 0 + gosub 4, L20201 + ret +L20201: + popToSp 0 +L20203: + pushFromFSpVal 64 + syscall 0, 50 ; trap_effect_is_active (1 in, 1 out) + jz L20252 + pushFromFSp 0 + gosub 4, L20253 + pushFromFSpVal 68 + pushImm 0 + sub + neqz + jz L20234 + pushFromFSpVal 68 + syscall 2, 39 ; trap_attack_is_reflect (1 in, 1 out) + jz L20232 + jmp L20252 +L20230: + jmp L20232 +L20232: + jmp L20234 +L20234: + halt + pushFromPSpVal 208 + gosub 4, L4567 + jz L20250 + pushFromFSpVal 64 + pushImmf -1 + gosub 4, L4601 + jmp L20250 +L20250: + jmp L20203 +L20252: + ret +L20253: + popToSp 0 + pushFromPSpVal 80 + pushFromPSpVal 32 + gosub 4, L3852 + pushFromPSpVal 32 + pushFromPSpVal 80 + pushImm 16 + add + pushFromPSpVal 192 + gosub 4, L4330 + syscall 0, 45 ; trap_vector_addf (3 in, 0 out) + pushFromPSpVal 192 + gosub 4, L4526 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 4, L5463 + pushFromFSpVal 64 + pushFromPSpVal 80 + pushImm 16 + add + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + ret +L20296: + popToSp 0 + pushFromFSp 0 + fetchValue 224 + pushImm 0 + sub + neqz + jz L20317 + pushFromFSp 0 + fetchValue 224 + gosub 4, L20322 + jmp L20317 +L20317: + pushFromFSp 0 + gosub 4, L4653 + ret +L20322: + popToSp 0 + pushFromFSpVal 64 + pushImm 1 + sub + popToSpVal 64 + ret +L20333: + popToSp 0 + pushFromFSp 0 + gosub 4, L20345 + pushImm 0 + popToSpVal 224 + ret +L20345: + popToSp 0 + pushFromPSpVal 32 + pushImmf 1 + gosub 12, L737 + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 1 + pushImmf 1 + gosub 12, L344 + pushFromPSpVal 80 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 200 + pushImmf 0 + gosub 12, L3042 + pushFromPSpVal 80 + pushFromPSp 16 + gosub 12, L3576 + pushFromPSpVal 80 + pushFromFSpVal 48 + pushImm 1 + gosub 12, L3591 + pushFromPSpVal 192 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 0 + gosub 12, L2518 + pushFromPSpVal 208 + pushImmf 60 + gosub 12, L2509 + pushImmf 0 + popToSpVal 212 + ret +L20433: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + memcpyToSpVal 16, 32 + pushFromPSpVal 80 + pushFromFSp 8 + gosub 8, L3576 + pushFromFSp 4 + popToSpVal 212 + pushImm 0 + popToSpVal 224 + ret +L20462: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 224 + ret +L20471: + popToSp 0 + pushFromFSpVal 64 + pushImm 1 + add + popToSpVal 64 + ret +L20482: + popToSp 0 + pushFromFSp 0 + gosub 4, L17880 + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + pushImm 1 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + ret +L20519: + pushImm 41 + pushImm 8 + syscall 2, 21 ; trap_teamwork_alloc (2 in, 1 out) + popToSp 0 + pushFromFSp 0 + ret +L20532: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 8 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + fetchValue 12 + pushFromFSp 4 + addf + syscall 1, 1 ; trap_obj_set_rot (2 in, 0 out) + ret +L20570: ;___label for action pushFromPAi L28160 ; ___ai atk_normal_laser1_child + popToSp 0 + pushFromFSp 0 + gosub 12, L17880 + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushImmf 16 + popToSp 4 + gosub 12, L20519 + fetchValue 4 + popToSp 8 +L20596: + pushFromFSp 4 + pushImmf 0 + subf + supzf + jz L20688 + pushFromFSp 0 + gosub 12, L19512 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf -1 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSp 8 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromFSp 0 + pushImmf 0 + gosub 12, L17667 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPSp 16 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + gosub 12, L13615 + halt + pushFromFSp 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 4 + jmp L20596 +L20688: + ret +L20689: ;___label for action pushFromPAi L28206 ; ___ai atk_normal_laser2 + popToSp 0 + pushFromFSp 0 + pushImm 16 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushImm 0 + popToSp 72 + pushFromPSp 32 + pushImmf 30 + gosub 24, L2494 + pushFromPSp 40 + pushImmf 8 + gosub 24, L2494 + pushFromPSp 48 + pushImmf 90 + gosub 24, L2494 + pushFromPSp 56 + pushImmf 22 + gosub 24, L2494 + pushFromPSp 32 + pushImmf 0 + gosub 24, L2509 + pushFromPSp 48 + pushImmf 0 + gosub 24, L2509 +L20748: + pushFromFSp 72 + pushImm 1 + sub + info + jz L21147 + pushFromPSp 32 + gosub 24, L2637 + jz L21017 + pushFromPSp 48 + gosub 24, L2637 + jz L21003 + pushFromFSp 72 + pushImm 1 + add + popToSp 72 + pushFromFSp 72 + pushImm 1 + sub + ipos + jz L20790 + jmp L21147 +L20788: + jmp L20790 +L20790: + pushFromPSp 48 + gosub 24, L2647 + pushFromPSp 40 + gosub 24, L2647 + pushFromPSp 56 + gosub 24, L2647 + pushFromPSp 32 + gosub 24, L2647 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushImmf 300 + pushImmf 300 + gosub 28, L5571 + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -100 + pushImmf 100 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + addf + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushImmf 20 + popToSp 64 + pushFromFSp 0 + gosub 24, L10071 + pushImmf 0.5 + subf + infzf + jz L20893 + pushImmf -0.610865 + popToSp 68 + pushImm 205 + popToSp 76 + jmp L20903 +L20893: + pushImmf 0.610865 + popToSp 68 + pushImm 206 + popToSp 76 +L20903: + pushFromFSp 0 + gosub 24, L19670 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + gosub 24, L17764 + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSp 68 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + fetchValue 4 + pushImmf 0 + subf + infzf + jz L20969 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -0.15 + addf + memcpy 0 + jmp L20983 +L20969: + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 0.15 + addf + memcpy 0 +L20983: + pushFromFSp 0 + fetchValue 4 + pushFromFSp 76 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + jmp L21015 +L21003: + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromPSp 48 + gosub 24, L4567 + drop +L21015: + jmp L21144 +L21017: + pushFromFSp 0 + pushFromPSp 16 + pushFromFSp 64 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + pushFromFSp 64 + pushImmf 1 + mulf + popToSp 64 + pushFromFSp 68 + pushImmf 0 + subf + infzf + jz L21060 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 1.570796 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + jmp L21076 +L21060: + pushFromFSp 0 + pushFromPSp 16 + pushImmf -1.570796 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) +L21076: + pushFromPSp 56 + gosub 24, L4567 + jz L21101 + pushFromFSp 0 + gosub 24, L17880 + pushFromFSp 0 + gosub 24, L20482 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + jmp L21101 +L21101: + pushFromPSp 40 + gosub 24, L4567 + jz L21139 + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSp 0 + gosub 28, L17764 + memcpyToSp 16, 96 + pushFromPSp 96 + pushImmf 65 + gosub 32, L21148 + drop + pushFromPSp 40 + gosub 24, L2647 + jmp L21139 +L21139: + pushFromPSp 32 + gosub 24, L4567 + drop +L21144: + halt + jmp L20748 +L21147: + ret +L21148: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushFromFSp 12 + gosub 8, L21175 + popToSp 16 + pushFromFSp 16 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L21538 + pushFromFSp 16 + ret +L21175: + popToSp 0 + pushImm 228 + pushImm L21196 + pushFromFSp 0 + gosub 4, L847 + popToSp 4 + pushFromFSp 4 + gosub 4, L21526 + pushFromFSp 4 + ret +L21196: + popToSp 0 + pushFromFSp 0 + gosub 4, L3025 + pushFromFSp 0 + gosub 4, L21211 + pushFromFSp 0 + gosub 4, L21500 + ret +L21211: + popToSp 0 + pushFromFSp 0 + pushFromPSpVal 0 + pushImm 1240 + pushImmf 50 + gosub 16, L20098 + pushFromFSp 0 + gosub 16, L20040 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L5463 + pushFromFSp 0 + pushFromPSpVal 80 + pushImm 16 + add + gosub 16, L20076 + pushFromFSpVal 212 + pushImmf 0 + subf + infzf + dup + jz L21263 + pushFromFSpVal 224 + pushImm 0 + sub + neqz + eqzv +L21263: + jz L21363 + pushFromFSpVal 224 + fetchValue 76 + jz L21300 + pushFromPSpVal 32 + fetchValue 4 + popToSp 48 + pushFromPSpVal 32 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + jmp L21300 +L21300: + pushFromFSpVal 224 + fetchValue 72 + jz L21361 + pushFromFSpVal 224 + fetchValue 76 + dup + jz L21318 + pushFromFSpVal 48 + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + eqzv +L21318: + jz L21358 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSpVal 16, 32 + pushFromPSpVal 32 + pushImm 4 + add + pushFromFSp 48 + memcpy 0 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L5463 + jmp L21358 +L21358: + halt + jmp L21300 +L21361: + jmp L21367 +L21363: + pushFromFSpVal 212 + gosub 16, L1244 +L21367: + pushFromFSp 0 + gosub 16, L21435 + pushFromFSpVal 68 + syscall 2, 39 ; trap_attack_is_reflect (1 in, 1 out) + jz L21434 + pushFromFSpVal 68 + syscall 2, 44 ; trap_attack_reflecter (1 in, 1 out) + memcpyToSp 16, 52 + pushFromPSp 52 + memcpyToSp 16, 4 + pushFromPSpVal 80 + pushFromFSp 0 + gosub 16, L3387 + memcpyToSp 16, 64 + pushFromPSp 64 + gosub 24, L3576 + pushFromFSp 0 + pushFromPSp 4 + pushImm 1240 + pushImmf 50 + gosub 16, L20098 + pushFromPSp 4 + memcpyToSpVal 16, 0 + pushFromPSpVal 80 + pushFromFSpVal 48 + pushImm 1 + gosub 16, L3591 + pushFromFSp 0 + gosub 16, L21435 + jmp L21434 +L21434: + ret +L21435: + popToSp 0 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L2581 + pushFromPSpVal 80 + pushImmf 0.349066 + gosub 4, L2572 + pushFromPSpVal 80 + pushImmf 0.349066 + gosub 4, L2590 + pushFromPSpVal 80 + pushImmf 100 + gosub 4, L3158 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L3135 + pushFromPSpVal 192 + pushImmf 60 + pushImmf 0 + pushImmf 60 + pushImmf 0 + gosub 4, L2518 + pushFromPSpVal 208 + pushImmf 18 + gosub 4, L2509 + pushFromFSp 0 + gosub 4, L20201 + ret +L21500: + popToSp 0 + pushFromFSp 0 + fetchValue 224 + pushImm 0 + sub + neqz + jz L21521 + pushFromFSp 0 + fetchValue 224 + gosub 4, L20322 + jmp L21521 +L21521: + pushFromFSp 0 + gosub 4, L4653 + ret +L21526: + popToSp 0 + pushFromFSp 0 + gosub 4, L20345 + pushImm 0 + popToSpVal 224 + ret +L21538: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + memcpyToSpVal 16, 32 + pushFromPSpVal 80 + pushFromFSp 8 + gosub 8, L3576 + pushFromFSp 4 + popToSpVal 212 + pushImm 0 + popToSpVal 224 + ret +L21567: ;___callback for action pushFromPAi L28206 ; ___ai atk_normal_laser2 + popToSp 0 + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + ret +L21577: ;___label for action pushFromPAi L28273 ; ___ai atk_normal_laser3 + popToSp 0 + pushFromFSp 0 + gosub 20, L20482 + pushFromFSp 0 + fetchValue 4 + pushImm 207 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 30 + gosub 20, L1244 + pushFromFSp 0 + pushImm 26 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushImmf 200 + pushImmf 200 + gosub 24, L5571 + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + gosub 20, L19670 + pushImmf 120 + gosub 20, L1244 + gosub 20, L15077 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPAi L27739 ; ___ai atk_normal_laser3_child (L27739) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushImmf 240 + popToSp 56 + pushFromPSp 32 + pushImmf 10 + gosub 20, L2494 + pushFromPSp 32 + pushImmf 0 + gosub 20, L2509 + pushFromPSp 40 + pushImmf 60 + gosub 20, L2494 + pushFromPSp 48 + pushImmf 90 + gosub 20, L2494 + pushFromPSp 48 + pushImmf 0 + gosub 20, L2509 +L21710: + pushFromFSp 56 + pushImmf 0 + subf + supzf + jz L21905 + pushFromFSp 0 + gosub 20, L13615 + pushFromFSp 0 + gosub 20, L17764 + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + pushImmf 300 + syscall 0, 35 ; method_vector_scale (2 in, 0 out) + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 16 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 4 + pushImm 0 + pushImm 0 + gosub 20, L21925 + drop + pushFromPSp 48 + gosub 20, L2637 + jz L21869 + pushFromPSp 32 + gosub 20, L2637 + jz L21846 + pushFromFSp 0 + gosub 20, L22046 + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 16 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushImmf 0 + gosub 28, L22084 + drop + pushFromPSp 32 + gosub 20, L2647 + jmp L21846 +L21846: + pushFromPSp 32 + gosub 20, L4567 + drop + pushFromPSp 40 + gosub 20, L4567 + jz L21867 + pushFromFSp 0 + gosub 20, L20482 + pushFromPSp 48 + gosub 20, L2647 + jmp L21867 +L21867: + jmp L21895 +L21869: + pushFromPSp 48 + gosub 20, L4567 + jz L21895 + pushFromFSp 0 + pushImm 9 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + gosub 20, L19670 + pushFromPSp 40 + gosub 20, L2647 + jmp L21895 +L21895: + halt + pushFromFSp 56 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 56 + jmp L21710 +L21905: + pushFromFSp 0 + gosub 20, L20482 + pushImmf 90 + gosub 20, L1244 + pushFromFSp 0 + pushFromPAi L27757 ; ___ai atk_normal_laser3_finish (L27757) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + ret +L21925: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + pushFromFSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 32 + pushFromFSp 8 + jz L21972 + pushFromPSp 32 + pushImm 4 + add + pushImmf 0 + memcpy 0 + jmp L21972 +L21972: + pushFromPSp 32 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 32 + pushImm 12 + add + dup + fetchValue 0 + pushImmf 1 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + divf + mulf + memcpy 0 + pushFromPSp 32 + fetchValue 12 + pushFromFSp 12 + subf + supzf + jz L22015 + pushFromPSp 32 + pushImm 12 + add + pushFromFSp 12 + memcpy 0 + jmp L22015 +L22015: + pushFromFSp 4 + jz L22031 + pushFromFSp 0 + pushFromPSp 32 + pushFromPSp 32 + fetchValue 12 + syscall 1, 89 ; trap_obj_move_request (3 in, 0 out) + jmp L22041 +L22031: + pushFromFSp 0 + pushFromPSp 32 + pushFromPSp 32 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) +L22041: + pushFromPSp 32 + fetchValue 12 + ret +L22046: + popToSp 0 + pushFromPSp 16 + pushImmf 50 + pushImmf 0 + pushImmf 0 + pushImmf 1 + gosub 12, L344 + pushFromFSp 0 + pushImm 265 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + ret +L22084: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushFromFSp 12 + gosub 8, L22111 + popToSp 16 + pushFromFSp 16 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L22474 + pushFromFSp 16 + ret +L22111: + popToSp 0 + pushImm 228 + pushImm L22132 + pushFromFSp 0 + gosub 4, L847 + popToSp 4 + pushFromFSp 4 + gosub 4, L22462 + pushFromFSp 4 + ret +L22132: + popToSp 0 + pushFromFSp 0 + gosub 4, L3025 + pushFromFSp 0 + gosub 4, L22147 + pushFromFSp 0 + gosub 4, L22436 + ret +L22147: + popToSp 0 + pushFromFSp 0 + pushFromPSpVal 0 + pushImm 1240 + pushImmf 50 + gosub 16, L20098 + pushFromFSp 0 + gosub 16, L20040 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L5463 + pushFromFSp 0 + pushFromPSpVal 80 + pushImm 16 + add + gosub 16, L20076 + pushFromFSpVal 212 + pushImmf 0 + subf + infzf + dup + jz L22199 + pushFromFSpVal 224 + pushImm 0 + sub + neqz + eqzv +L22199: + jz L22299 + pushFromFSpVal 224 + fetchValue 76 + jz L22236 + pushFromPSpVal 32 + fetchValue 4 + popToSp 48 + pushFromPSpVal 32 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + jmp L22236 +L22236: + pushFromFSpVal 224 + fetchValue 72 + jz L22297 + pushFromFSpVal 224 + fetchValue 76 + dup + jz L22254 + pushFromFSpVal 48 + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + eqzv +L22254: + jz L22294 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSpVal 16, 32 + pushFromPSpVal 32 + pushImm 4 + add + pushFromFSp 48 + memcpy 0 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L5463 + jmp L22294 +L22294: + halt + jmp L22236 +L22297: + jmp L22303 +L22299: + pushFromFSpVal 212 + gosub 16, L1244 +L22303: + pushFromFSp 0 + gosub 16, L22371 + pushFromFSpVal 68 + syscall 2, 39 ; trap_attack_is_reflect (1 in, 1 out) + jz L22370 + pushFromFSpVal 68 + syscall 2, 44 ; trap_attack_reflecter (1 in, 1 out) + memcpyToSp 16, 52 + pushFromPSp 52 + memcpyToSp 16, 4 + pushFromPSpVal 80 + pushFromFSp 0 + gosub 16, L3387 + memcpyToSp 16, 64 + pushFromPSp 64 + gosub 24, L3576 + pushFromFSp 0 + pushFromPSp 4 + pushImm 1240 + pushImmf 50 + gosub 16, L20098 + pushFromPSp 4 + memcpyToSpVal 16, 0 + pushFromPSpVal 80 + pushFromFSpVal 48 + pushImm 1 + gosub 16, L3591 + pushFromFSp 0 + gosub 16, L22371 + jmp L22370 +L22370: + ret +L22371: + popToSp 0 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L2581 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L2572 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L2590 + pushFromPSpVal 80 + pushImmf 1000 + gosub 4, L3158 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L3135 + pushFromPSpVal 192 + pushImmf 40 + pushImmf 0 + pushImmf 40 + pushImmf 0 + gosub 4, L2518 + pushFromPSpVal 208 + pushImmf 30 + gosub 4, L2509 + pushFromFSp 0 + gosub 4, L20201 + ret +L22436: + popToSp 0 + pushFromFSp 0 + fetchValue 224 + pushImm 0 + sub + neqz + jz L22457 + pushFromFSp 0 + fetchValue 224 + gosub 4, L20322 + jmp L22457 +L22457: + pushFromFSp 0 + gosub 4, L4653 + ret +L22462: + popToSp 0 + pushFromFSp 0 + gosub 4, L20345 + pushImm 0 + popToSpVal 224 + ret +L22474: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + memcpyToSpVal 16, 32 + pushFromPSpVal 80 + pushFromFSp 8 + gosub 8, L3576 + pushFromFSp 4 + popToSpVal 212 + pushImm 0 + popToSpVal 224 + ret +L22503: ;___label for action pushFromPAi L27739 ; ___ai atk_normal_laser3_child + popToSp 0 + pushFromFSp 0 + gosub 4, L20482 + pushImmf 60 + gosub 4, L1244 + pushFromFSp 0 + gosub 4, L22538 + pushFromFSp 0 + gosub 4, L20482 + pushImmf 60 + gosub 4, L1244 + pushFromFSp 0 + gosub 4, L22961 + pushFromFSp 0 + gosub 4, L20482 + gosub 4, L1407 + ret +L22538: + popToSp 0 + pushFromFSp 0 + pushImm 16 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushImm 0 + popToSp 72 + pushFromPSp 32 + pushImmf 30 + gosub 24, L2494 + pushFromPSp 40 + pushImmf 8 + gosub 24, L2494 + pushFromPSp 48 + pushImmf 90 + gosub 24, L2494 + pushFromPSp 56 + pushImmf 22 + gosub 24, L2494 + pushFromPSp 32 + pushImmf 0 + gosub 24, L2509 + pushFromPSp 48 + pushImmf 0 + gosub 24, L2509 +L22597: + pushFromFSp 72 + pushImm 1 + sub + info + jz L22960 + pushFromPSp 32 + gosub 24, L2637 + jz L22843 + pushFromPSp 48 + gosub 24, L2637 + jz L22836 + pushFromFSp 72 + pushImm 1 + add + popToSp 72 + pushFromFSp 72 + pushImm 1 + sub + ipos + jz L22639 + jmp L22960 +L22637: + jmp L22639 +L22639: + pushFromPSp 48 + gosub 24, L2647 + pushFromPSp 40 + gosub 24, L2647 + pushFromPSp 56 + gosub 24, L2647 + pushFromPSp 32 + gosub 24, L2647 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushImmf 300 + pushImmf 300 + gosub 28, L5571 + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -100 + pushImmf 100 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + addf + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushImmf 20 + popToSp 64 + pushFromFSp 0 + gosub 24, L10071 + pushImmf 0.5 + subf + infzf + jz L22742 + pushImmf -0.610865 + popToSp 68 + pushImm 205 + popToSp 76 + jmp L22752 +L22742: + pushImmf 0.610865 + popToSp 68 + pushImm 206 + popToSp 76 +L22752: + pushFromFSp 0 + gosub 24, L19670 + pushFromFSp 0 + gosub 24, L17764 + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSp 68 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + fetchValue 4 + pushImmf 0 + subf + infzf + jz L22809 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -0.15 + addf + memcpy 0 + jmp L22823 +L22809: + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 0.15 + addf + memcpy 0 +L22823: + pushFromFSp 0 + fetchValue 4 + pushFromFSp 76 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + jmp L22841 +L22836: + pushFromPSp 48 + gosub 24, L4567 + drop +L22841: + jmp L22957 +L22843: + pushFromFSp 0 + pushFromPSp 16 + pushFromFSp 64 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + pushFromFSp 64 + pushImmf 1 + mulf + popToSp 64 + pushFromFSp 68 + pushImmf 0 + subf + infzf + jz L22886 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 1.570796 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + jmp L22902 +L22886: + pushFromFSp 0 + pushFromPSp 16 + pushImmf -1.570796 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) +L22902: + pushFromPSp 56 + gosub 24, L4567 + jz L22914 + pushFromFSp 0 + gosub 24, L20482 + jmp L22914 +L22914: + pushFromPSp 40 + gosub 24, L4567 + jz L22952 + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSp 0 + gosub 28, L17764 + memcpyToSp 16, 96 + pushFromPSp 96 + pushImmf 65 + gosub 32, L22084 + drop + pushFromPSp 40 + gosub 24, L2647 + jmp L22952 +L22952: + pushFromPSp 32 + gosub 24, L4567 + drop +L22957: + halt + jmp L22597 +L22960: + ret +L22961: + popToSp 0 + pushFromFSp 0 + pushImm 23 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + gosub 20, L19670 + pushFromFSp 0 + gosub 20, L10071 + pushImmf 0.5 + subf + infzf + jz L23004 + pushFromPAi L28203 ; ___ai right (L28203) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushImmf 0.069813 + popToSp 36 + pushImm 205 + popToSp 56 + jmp L23014 +L23004: + pushImmf -0.069813 + popToSp 36 + pushImm 206 + popToSp 56 +L23014: + pushFromPSp 44 + pushImmf 90 + gosub 20, L2509 + pushFromPSp 48 + pushImmf 6 + gosub 20, L2494 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 56 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 1 + pushImmf 1 + gosub 20, L344 + pushFromPSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 21 ; trap_vector_get_rot_xz (2 in, 1 out) + popToSp 32 + pushFromFSp 0 + gosub 20, L19498 + popToSp 40 + pushFromFSp 0 + pushImmf 150 + gosub 20, L19539 + popToSp 60 + pushFromFSp 0 + gosub 20, L19670 +L23107: + pushFromPSp 44 + gosub 20, L2637 + eqz + jz L23268 + pushFromFSp 40 + pushImmf 300 + pushImmf 0.9 + gosub 20, L19703 + popToSp 40 + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushFromFSp 40 + pushImmf 1 + gosub 20, L344 + pushFromFSp 32 + pushFromFSp 36 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + addf + syscall 0, 43 ; trap_fixrad (1 in, 1 out) + popToSp 32 + pushFromPSp 16 + pushFromFSp 32 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushImmf 0 + gosub 20, L17667 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 16 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + gosub 20, L13615 + pushFromPSp 48 + gosub 20, L2637 + jz L23255 + pushFromFSp 0 + pushFromFSp 0 + gosub 20, L4854 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSp 0 + gosub 28, L4854 + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + pushFromFSp 60 + gosub 36, L19721 + pushFromPSp 48 + gosub 20, L2647 + jmp L23255 +L23255: + halt + pushFromPSp 44 + gosub 20, L4567 + drop + pushFromPSp 48 + gosub 20, L4567 + drop + jmp L23107 +L23268: + pushFromFSp 0 + gosub 20, L20482 + pushImmf 16 + gosub 20, L1244 + ret +L23278: ;___label for action pushFromPAi L27757 ; ___ai atk_normal_laser3_finish + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 207 + pushImmf 0 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) + pushFromFSp 0 + gosub 16, L20482 + pushFromFSp 0 + gosub 16, L9952 + eqz + jz L23315 + pushFromFSp 0 + pushImm 18 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + jmp L23315 +L23315: + pushImmf 180 + gosub 16, L1244 + pushFromFSp 0 + gosub 16, L19670 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushImmf 400 + pushImmf 500 + gosub 20, L5571 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -200 + pushImmf 200 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + addf + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 32 + pushImmf 130 + gosub 16, L2509 + pushFromPSp 36 + pushImmf 10 + gosub 16, L2494 + pushFromPSp 36 + pushImmf 0 + pushImmf 10 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + gosub 16, L2509 + pushFromFSp 0 + gosub 16, L9952 + jz L23426 + pushFromFSp 0 + fetchValue 4 + pushImmf 30 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + jmp L23435 +L23426: + pushFromFSp 0 + fetchValue 4 + pushImmf 10 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) +L23435: + pushFromFSp 0 + pushFromFSp 0 + gosub 16, L17764 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushImmf 120 + gosub 16, L1244 +L23453: + pushFromPSp 32 + gosub 16, L2637 + eqz + jz L23531 + pushFromFSp 0 + gosub 16, L13615 + pushFromPSp 36 + gosub 16, L2637 + jz L23518 + pushFromFSp 0 + gosub 16, L22046 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromPSp 16 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushImmf 0 + gosub 24, L22084 + drop + pushFromPSp 36 + gosub 16, L2647 + jmp L23518 +L23518: + halt + pushFromPSp 32 + gosub 16, L4567 + drop + pushFromPSp 36 + gosub 16, L4567 + drop + jmp L23453 +L23531: + pushFromFSp 0 + gosub 16, L20482 + pushFromFSp 0 + gosub 16, L9952 + jz L23547 + pushFromFSp 0 + gosub 16, L20482 + jmp L23606 +L23547: + pushFromFSp 0 + gosub 16, L19670 + pushFromFSp 0 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 6 + pushImm 0 + syscall 1, 311 ; trap_sheet_set_element_rate (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushImmf 16 + gosub 16, L1244 + pushImmf 120 + gosub 16, L1244 + pushFromFSp 0 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 6 + pushImm 100 + syscall 1, 311 ; trap_sheet_set_element_rate (3 in, 0 out) +L23606: + ret +L23607: ;___callback for action pushFromPAi L27757 ; ___ai atk_normal_laser3_finish + popToSp 0 + pushFromFSp 0 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 6 + pushImm 100 + syscall 1, 311 ; trap_sheet_set_element_rate (3 in, 0 out) + ret +L23622: ;___callback for action pushFromPAi L27757 ; ___ai atk_normal_laser3_finish + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromPAi L27757 ; ___ai atk_normal_laser3_finish (L27757) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + ret +L23633: ;___label for action pushFromPAi L28144 ; ___ai atk_throw + popToSp 0 + pushFromFSp 0 + gosub 12, L20482 + pushImmf 16 + gosub 12, L1244 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf 200 + pushImmf 300 + gosub 16, L5571 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + gosub 12, L23755 + pushFromFSp 0 + gosub 12, L17880 + pushFromFSp 0 + gosub 12, L19670 + halt + pushFromFSp 0 + gosub 12, L23794 + jz L23754 + pushFromFSp 0 + gosub 12, L23900 + pushFromFSp 0 + pushFromPAi L27945 ; ___ai 11 (L27945) + pushFromFSp 0 + syscall 1, 157 ; trap_obj_camera_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 204 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L23727: + pushFromFSp 0 + pushImm 204 + gosub 12, L13716 + eqz + jz L23752 + halt + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L23750 + jmp L23752 +L23748: + jmp L23750 +L23750: + jmp L23727 +L23752: + jmp L23754 +L23754: + ret +L23755: + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + ret +L23794: + popToSp 0 + pushImm 0 + popToSp 32 + gosub 12, L757 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 225 ; trap_obj_is_star (1 in, 1 out) + eqz + dup + jz L23825 + gosub 20, L757 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + eqz + eqzv +L23825: + jz L23897 + gosub 12, L757 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromFSp 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromPSp 16 + syscall 0, 21 ; trap_vector_get_rot_xz (2 in, 1 out) + syscall 0, 23 ; trap_absf (1 in, 1 out) + pushImmf 3.141593 + subf + infzf + jz L23895 + pushFromPSp 16 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + pushImmf 400 + subf + infzf + popToSp 32 + jmp L23895 +L23895: + jmp L23897 +L23897: + pushFromFSp 32 + ret +L23900: + popToSp 0 + gosub 12, L757 + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromPSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf -1 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + gosub 20, L23977 + pushFromFSp 0 + pushFromPSp 16 + pushImm 257 + pushImmf 0 + syscall 1, 29 ; trap_obj_motion_capture (4 in, 1 out) + drop + pushFromPSp 16 + pushImm L24014 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + ret +L23977: + popToSp 4 + popToSp 0 + pushFromFSp 4 + fetchValue 0 + pushImmf 0 + subf + neqzf + dup + jnz L24003 + pushFromFSp 4 + fetchValue 8 + pushImmf 0 + subf + neqzf + neqzv +L24003: + jz L24013 + pushFromFSp 0 + pushFromFSp 4 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + jmp L24013 +L24013: + ret +L24014: + popToSp 0 + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) +L24032: + pushFromFSp 0 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + jz L24053 + halt + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L24051 + jmp L24053 +L24049: + jmp L24051 +L24051: + jmp L24032 +L24053: + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 227 ; trap_obj_jump_direct (2 in, 0 out) + pushFromFSp 0 + pushImm 4 + syscall 1, 179 ; trap_obj_set_fall_motion (2 in, 0 out) + ret +L24074: ;___label for action pushFromPAi L27696 ; ___ai atk_dance1 + popToSp 0 + pushFromFSp 0 + pushImm 211 + gosub 4, L24084 + ret +L24084: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + syscall 1, 67 ; trap_obj_motion_get_length (2 in, 1 out) + pushImmf 2 + subf + popToSp 32 + pushFromFSp 0 + pushImm 1 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + pushFromFSp 0 + gosub 12, L23755 + pushFromFSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushImmf 100 + pushImmf 100 + gosub 20, L5571 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 75 + subf + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushImmf 100 + pushImmf 260 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + degr + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 0 + gosub 12, L18287 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 4 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L24238: + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L24390 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 100 + addf + memcpy 0 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + pushImm 12 + add + dup + fetchValue 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + divf + memcpy 0 + pushFromPSp 16 + fetchValue 12 + pushImmf 12 + subf + supzf + jz L24331 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + jmp L24341 +L24331: + pushFromFSp 0 + pushFromPSp 16 + pushFromPSp 16 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) +L24341: + halt + pushFromFSp 32 + pushImmf 0 + subf + supzf + jz L24388 + pushFromFSp 32 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 32 + pushFromFSp 32 + pushImmf 0 + subf + infoezf + jz L24386 + pushFromFSp 0 + gosub 12, L17283 + pushFromFSp 0 + gosub 12, L17880 + pushFromFSp 0 + fetchValue 4 + pushImmf 2 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + jmp L24386 +L24386: + jmp L24388 +L24388: + jmp L24238 +L24390: + ret +L24391: ;___label for action pushFromPAi L28259 ; ___ai atk_dance2 + popToSp 0 + pushFromFSp 0 + pushImm 212 + gosub 4, L24084 + ret +L24401: ;___label for action pushFromPAi L27881 ; ___ai atk_dance4 + popToSp 0 + pushFromFSp 0 + pushImm 214 + gosub 4, L24084 + ret +L24411: ;___label for action pushFromPAi L28253 ; ___ai atk_dance5 + popToSp 0 + pushFromFSp 0 + pushImm 215 + gosub 4, L24084 + ret +L24421: ;___label for action pushFromPAi L27751 ; ___ai atk_dance6 + popToSp 0 + pushFromFSp 0 + pushImm 216 + gosub 4, L24084 + ret +L24431: ;___label for action pushFromPAi L27702 ; ___ai atk_dance7 + popToSp 0 + pushFromFSp 0 + pushImm 217 + gosub 4, L24084 + ret +L24441: ;___label for action pushFromPAi L27720 ; ___ai atk_dance8 + popToSp 0 + pushFromFSp 0 + pushImm 218 + gosub 4, L24084 + ret +L24451: ;___label for action pushFromPAi L27679 ; ___ai atk_dance9 + popToSp 0 + pushFromFSp 0 + pushImm 219 + gosub 4, L24084 + ret +L24461: ;___label for action pushFromPAi L28239 ; ___ai atk_dance_start + popToSp 0 + pushFromFSp 0 + gosub 4, L17880 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 8 + gosub 4, L1244 + ret +L24494: ;___callback for action pushFromPAi L28239 ; ___ai atk_dance_start + popToSp 0 + pushFromFSp 0 + pushImm 8 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + ret +L24504: ;___callback for action pushFromPAi L28239 ; ___ai atk_dance_start + popToSp 0 + pushFromFSp 0 + pushImm 8 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + ret +L24514: ;___label for action pushFromPAi L27792 ; ___ai atk_dance_finish + popToSp 0 + pushFromFSp 0 + gosub 4, L17212 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + gosub 4, L23755 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + ret +L24546: ;___label for action pushFromPAi L28265 ; ___ai atk_dance_wait + popToSp 0 + halt + pushFromFSp 0 + gosub 4, L15077 + memcpyToSp 16, 16 + pushFromPSp 16 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + syscall 1, 67 ; trap_obj_motion_get_length (2 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImmf -8 + subf + popToSp 4 +L24574: + pushFromFSp 4 + pushImmf 0 + subf + supzf + jz L24593 + halt + pushFromFSp 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 4 + jmp L24574 +L24593: + ret +L24594: ;___label for action pushFromPAi L28172 ; ___ai atk_dance_l + popToSp 0 + pushFromFSp 0 + gosub 4, L9952 + eqz + jz L24708 + pushFromFSp 0 + pushFromPAi L28239 ; ___ai atk_dance_start (L28239) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28253 ; ___ai atk_dance5 (L28253) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28259 ; ___ai atk_dance2 (L28259) + syscall 6, 58 ; trap_obj_act_child_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28265 ; ___ai atk_dance_wait (L28265) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L27679 ; ___ai atk_dance9 (L27679) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L27696 ; ___ai atk_dance1 (L27696) + syscall 6, 58 ; trap_obj_act_child_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28265 ; ___ai atk_dance_wait (L28265) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L27702 ; ___ai atk_dance7 (L27702) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L27720 ; ___ai atk_dance8 (L27720) + syscall 6, 58 ; trap_obj_act_child_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28265 ; ___ai atk_dance_wait (L28265) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L27751 ; ___ai atk_dance6 (L27751) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L27751 ; ___ai atk_dance6 (L27751) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + fetchValue 16 + pushImm -1 + sub + eqz + jz L24694 + pushFromFSp 0 + pushFromPAi L27770 ; ___ai atk_air_fight (L27770) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L24706 +L24694: + pushFromFSp 0 + pushFromPAi L27792 ; ___ai atk_dance_finish (L27792) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L27940 ; ___ai idle_wait (L27940) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) +L24706: + jmp L24708 +L24708: + ret +L24709: ;___label for action pushFromPAi L27951 ; ___ai atk_dance_s + popToSp 0 + pushImm 214 + popToSp 36 + pushFromFSp 0 + pushFromPAi L27824 ; ___ai atk_dance_s2 (L27824) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + pushFromFSp 0 + gosub 12, L10071 + popToSp 32 + pushFromFSp 32 + pushImmf 0.3 + subf + infzf + jz L24748 + pushImm 217 + popToSp 36 + jmp L24764 +L24748: + pushFromFSp 32 + pushImmf 0.6 + subf + infzf + jz L24764 + pushImm 218 + popToSp 36 + jmp L24764 +L24764: + pushFromFSp 0 + fetchValue 4 + pushFromFSp 36 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L24775: + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L24868 + pushFromFSp 0 + pushImmf 0 + gosub 12, L17667 + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + pushImm 12 + add + dup + fetchValue 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + divf + memcpy 0 + pushFromPSp 16 + fetchValue 12 + pushImmf 8 + subf + supzf + jz L24855 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 8 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + jmp L24865 +L24855: + pushFromFSp 0 + pushFromPSp 16 + pushFromPSp 16 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) +L24865: + halt + jmp L24775 +L24868: + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushFromFSp 0 + fetchValue 36 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + ret +L24882: ;___label for action pushFromPAi L27824 ; ___ai atk_dance_s2 + popToSp 0 + pushFromFSp 0 + pushFromPSpVal 128 + pushImmf 0 + gosub 4, L20532 + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 16 + gosub 4, L1244 + pushFromFSp 0 + gosub 4, L17880 + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + ret +L24933: ;___callback for action pushFromPAi L27824 ; ___ai atk_dance_s2 + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L24977 + pushFromFSp 4 + memcpyToSpVal 16, 128 + pushFromFSp 0 + pushFromPAi L27824 ; ___ai atk_dance_s2 (L27824) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + pushImm 16386 + pushImm 5 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + jmp L24977 +L24977: + ret +L24978: ;___label for action pushFromPAi L28093 ; ___ai atk_bomb + popToSp 0 + pushFromFSp 0 + pushImm 203 + pushImm 0 + gosub 4, L25013 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 25 + pushImmf 30 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + gosub 4, L1244 + ret +L25013: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + gosub 8, L13586 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 8 + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L13654 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) +L25037: + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L25074 + pushFromFSp 0 + gosub 8, L13615 + halt + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L13716 + jz L25063 + jmp L25074 +L25061: + jmp L25063 +L25063: + pushFromFSp 0 + syscall 2, 5 ; trap_enemy_is_no_control (1 in, 1 out) + jz L25072 + halt + jmp L25063 +L25072: + jmp L25037 +L25074: + pushFromFSp 4 + pushImm 0 + sub + msbi + jz L25096 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 4 + pushImmf 0 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) + jmp L25096 +L25096: + ret +L25097: ;___label for action pushFromPAi L27940 ; ___ai idle_wait + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushFromFSp 0 + fetchValue 36 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 25 + pushImmf 30 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + gosub 4, L1244 + ret +L25123: ;___label for action pushFromPAi L28129 ; ___ai atk_thorn1 + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 202 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L25137: + pushFromFSp 0 + pushImm 202 + gosub 4, L13716 + eqz + jz L25162 + halt + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L25160 + jmp L25162 +L25158: + jmp L25160 +L25160: + jmp L25137 +L25162: + ret +L25163: ;___label for action pushFromPAi L27770 ; ___ai atk_air_fight + popToSp 0 + gosub 4, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSp 0 + gosub 12, L25178 + drop + ret +L25178: + popToSp 0 + popToSp 4 + pushFromPSp 16 + pushImm 13 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + pushFromFSp 4 + syscall 1, 225 ; trap_obj_is_star (1 in, 1 out) + eqz + dup + jz L25203 + pushFromFSp 4 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + eqz + eqzv +L25203: + dup + jz L25213 + pushFromPSp 16 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + eqzv +L25213: + popToSp 8 + pushFromFSp 8 + jz L25229 + pushFromPWp W0 + pushFromFSp 4 + pushFromFSp 0 + gosub 12, L25232 + jmp L25229 +L25229: + pushFromFSp 8 + ret +L25232: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L25377 + pushImm 0 + popToSpVal 160 + pushFromPSp 16 + pushImmf 1 + gosub 12, L737 + pushFromFSp 8 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 8 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L344 + pushFromFSp 8 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 8 + pushImm 258 + pushImmf 0 + gosub 12, L1054 + drop + pushFromFSp 8 + pushImm L25395 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 144 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L25353 + pushFromPWp W0 + pushFromPSpVal 144 + pushImm 258 + pushImmf 0 + syscall 1, 29 ; trap_obj_motion_capture (4 in, 1 out) + drop + pushFromPAi L28104 ; ___ai riku hook start (L28104) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushFromPSpVal 144 + pushImm L25603 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + jmp L25353 +L25353: + pushFromPSpVal 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 4 + pushFromPAi L28116 ; ___ai rc_air_fight (L28116) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28135 ; ___ai 40 (L28135) + pushFromFSp 8 + syscall 1, 157 ; trap_obj_camera_start (3 in, 0 out) + ret +L25377: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1039 + pushFromPSpVal 144 + pushImm 13 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + ret +L25395: + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 4 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) +L25409: + pushFromFSp 0 + pushFromPWp W0 + fetchValue 132 + gosub 4, L1411 + eqz + jz L25569 + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L25566 + pushFromPWp W0 + fetchValue 160 + eqz + jz L25564 + pushImm 1 + syscall 1, 223 ; trap_camera_cancel (1 in, 0 out) + halt + pushFromFSp 0 + syscall 1, 59 ; trap_obj_is_fly (1 in, 1 out) + jz L25468 + pushFromFSp 0 + syscall 1, 95 ; trap_obj_fly_to_jump (1 in, 0 out) + pushFromFSp 0 + pushImm -1 + syscall 1, 179 ; trap_obj_set_fall_motion (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 180 ; trap_obj_set_land_motion (2 in, 0 out) + jmp L25468 +L25468: + pushFromPWp W0 + pushImm 144 + add + fetchValue 4 + pushImm 4 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromPWp W0 + pushImm 1706 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushFromPWp W0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 4 + pushFromFSp 0 + pushImm 0 + pushImm 0 + syscall 2, 17 ; trap_attack_strike (4 in, 0 out) + pushFromFSp 4 + pushFromPWp W0 + pushImm 144 + add + pushImm 0 + pushImm 0 + syscall 2, 17 ; trap_attack_strike (4 in, 0 out) + pushFromFSp 4 + syscall 2, 13 ; trap_attack_free (1 in, 0 out) + pushFromPWp W0 + syscall 1, 127 ; trap_obj_act_clear (1 in, 0 out) + pushFromPWp W0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + jmp L25569 +L25562: + jmp L25564 +L25564: + jmp L25566 +L25566: + halt + jmp L25409 +L25569: + pushFromFSp 0 + pushImm 6 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + syscall 1, 59 ; trap_obj_is_fly (1 in, 1 out) + jz L25602 + pushFromFSp 0 + syscall 1, 95 ; trap_obj_fly_to_jump (1 in, 0 out) + pushFromFSp 0 + pushImm -1 + syscall 1, 179 ; trap_obj_set_fall_motion (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 180 ; trap_obj_set_land_motion (2 in, 0 out) + jmp L25602 +L25602: + ret +L25603: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 + pushFromFSp 0 + gosub 4, L757 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) +L25634: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1411 + eqz + jz L25646 + halt + jmp L25634 +L25646: + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushFromPAi L28045 ; ___ai riku end motion_id (L28045) + syscall 0, 0 ; trap_puti (2 in, 0 out) + pushFromFSp 0 + syscall 1, 161 ; trap_obj_is_attach (1 in, 1 out) + jz L25668 + pushFromFSp 0 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + jmp L25668 +L25668: + pushFromFSp 0 + syscall 1, 59 ; trap_obj_is_fly (1 in, 1 out) + jz L25698 + pushFromFSp 0 + syscall 1, 95 ; trap_obj_fly_to_jump (1 in, 0 out) + pushFromPAi L28071 ; ___ai riku fly_to_jump (L28071) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushFromFSp 0 + pushImm 4 + syscall 1, 179 ; trap_obj_set_fall_motion (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 180 ; trap_obj_set_land_motion (2 in, 0 out) + jmp L25698 +L25698: + ret +L25699: ;___label for action pushFromPAi L27997 ; ___ai atk_shield + popToSp 0 + pushFromFSp 0 + pushImmf 0.6 + gosub 20, L25880 + pushFromFSp 0 + fetchValue 4 + pushImm 209 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L25720: + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L25873 + pushFromFSp 0 + gosub 20, L13615 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 100 + addf + memcpy 0 + pushFromPSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromFSp 0 + gosub 20, L14016 + pushImmf 350 + subf + supzf + jz L25809 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 40 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + jmp L25809 +L25809: + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L25870 + pushFromFSp 0 + gosub 20, L17764 + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf 0.8 + syscall 0, 35 ; method_vector_scale (2 in, 0 out) + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 48 + pushFromFSp 0 + pushFromPSp 48 + pushFromPSp 32 + gosub 20, L25909 + jmp L25873 +L25868: + jmp L25870 +L25870: + halt + jmp L25720 +L25873: + pushFromFSp 0 + fetchValue 4 + gosub 20, L9663 + ret +L25880: + popToSp 4 + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 32 + add + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromFSp 0 + pushFromPSp 16 + pushFromFSp 4 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + ret +L25909: + popToSp 0 + popToSp 4 + popToSp 8 + pushImm 80 + pushImm L25936 + pushFromFSp 8 + gosub 8, L847 + popToSp 12 + pushFromFSp 12 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L26225 + ret +L25936: + popToSp 0 + pushFromFSp 0 + gosub 4, L414 + pushFromFSp 0 + gosub 4, L25951 + pushFromFSp 0 + gosub 4, L836 + ret +L25951: + popToSp 0 + pushFromPSpVal 64 + pushImmf 1.570796 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImmf 60 + syscall 0, 35 ; method_vector_scale (2 in, 0 out) + pushFromPSpVal 32 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -100 + addf + memcpy 0 + pushFromPSpVal 32 + pushFromPSp 16 + pushImmf 4 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushImmf -0.5 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 32 + pushFromPSpVal 0 + pushImm 18 + pushImm 0 + pushImm 0 + syscall 1, 21 ; trap_obj_effect_start (4 in, 1 out) + popToSp 52 + pushFromFSp 52 + pushFromPSpVal 32 + syscall 0, 38 ; trap_effect_set_pos (2 in, 0 out) + pushFromFSp 52 + pushFromPSpVal 64 + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + pushImm 0 + popToSp 76 + pushImm 5 +L26058: + dup + pushFromFSp 76 + sub + info + jnz L26168 + pushFromPSp 56 + pushFromFSp 76 + pushImm 4 + mul + add + pushFromPSpVal 0 + pushImm 1610 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + memcpy 0 + pushFromPSp 56 + pushFromFSp 76 + pushImm 4 + mul + add + fetchValue 0 + pushImmf 30 + pushImmf 200 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromPSp 56 + pushFromFSp 76 + pushImm 4 + mul + add + fetchValue 0 + pushImmf 60 + pushImmf 0 + pushImmf 0 + syscall 2, 62 ; trap_attack_set_time (4 in, 0 out) + pushFromPSp 56 + pushFromFSp 76 + pushImm 4 + mul + add + fetchValue 0 + pushFromPSp 32 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromPSp 32 + pushFromPSp 16 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + pushFromFSp 76 + pushImm 1 + add + popToSp 76 + jmp L26058 +L26168: + drop + pushFromPSpVal 0 + pushImm 19 + pushFromPSpVal 32 + pushImm 1 + pushImm 0 + syscall 1, 22 ; trap_obj_effect_start_pos (5 in, 1 out) + popToSp 48 + pushFromFSp 48 + pushFromPSpVal 64 + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + pushImmf 8 + gosub 24, L1244 + pushFromPSpVal 0 + pushImm 20 + pushFromPSpVal 32 + pushImm 1 + pushImm 0 + syscall 1, 22 ; trap_obj_effect_start_pos (5 in, 1 out) + popToSp 48 + pushFromFSp 52 + syscall 0, 51 ; trap_effect_kill (1 in, 0 out) + pushFromFSp 48 + pushFromPSpVal 64 + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + ret +L26225: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + memcpyToSpVal 16, 32 + pushFromFSp 4 + memcpyToSpVal 16, 64 + pushFromPSpVal 64 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSpVal 64 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + ret +L26257: ;___callback for action pushFromPAi L27997 ; ___ai atk_shield + popToSp 0 + pushFromFSp 0 + pushImmf 0 + gosub 4, L25880 + ret +L26267: ;___label for action pushFromPAi L28061 ; ___ai mode_dark_start + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + gosub 4, L16951 + pushFromFSp 0 + gosub 4, L23755 + pushFromFSp 0 + pushImm 23 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 154 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + gosub 4, L15089 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 16386 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9663 + pushFromFSp 0 + syscall 1, 161 ; trap_obj_is_attach (1 in, 1 out) + jz L26349 + pushFromFSp 0 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + jmp L26349 +L26349: + pushFromFSp 0 + pushFromPAi L27997 ; ___ai atk_shield (L27997) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + ret +L26356: ;___callback for action pushFromPAi L28061 ; ___ai mode_dark_start + popToSp 0 + pushFromFSp 0 + syscall 1, 161 ; trap_obj_is_attach (1 in, 1 out) + jz L26370 + pushFromFSp 0 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + jmp L26370 +L26370: + ret +L26371: ;___label for action pushFromPAi L28112 ; ___ai reborn + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 14 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + pushImmf 14 + gosub 4, L1244 + pushFromFSp 0 + gosub 4, L17880 + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushImmf 16 + gosub 4, L1244 + pushFromFSp 0 + pushFromPAi L28061 ; ___ai mode_dark_start (L28061) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + ret +L26429: ;___label for action pushFromPAi L27889 ; ___ai mode_battle_dark + popToSp 0 + gosub 12, L15089 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + popToSp 32 + pushFromFSp 32 + pushImmf 1500 + subf + infzf + jz L26506 + pushFromFSp 0 + gosub 12, L10071 + pushImmf 0.8 + subf + infzf + jz L26498 + pushFromFSp 0 + pushFromPAi L27997 ; ___ai atk_shield (L27997) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L26504 +L26498: + pushFromFSp 0 + pushFromPAi L28093 ; ___ai atk_bomb (L28093) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L26504: + jmp L26529 +L26506: + pushFromFSp 32 + pushImmf 2500 + subf + infzf + jz L26523 + pushFromFSp 0 + pushFromPAi L27997 ; ___ai atk_shield (L27997) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L26529 +L26523: + pushFromFSp 0 + pushFromPAi L28112 ; ___ai reborn (L28112) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L26529: + ret +L26530: ;___label for action pushFromPAi L27911 ; ___ai revenge + popToSp 0 + pushFromFSp 0 + fetchValue 24 + dup + pushImm 0 + sub + jz L26545 + jmp L26572 +L26545: + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.7 + subf + infzf + jz L26564 + pushFromFSp 0 + pushFromPAi L27951 ; ___ai atk_dance_s (L27951) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L26570 +L26564: + pushFromFSp 0 + pushFromPAi L28129 ; ___ai atk_thorn1 (L28129) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L26570: + jmp L26620 +L26572: + dup + pushImm 1 + sub + jz L26581 + jmp L26620 +L26581: + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.7 + subf + infzf + jz L26606 + pushFromFSp 0 + pushFromPAi L28144 ; ___ai atk_throw (L28144) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28172 ; ___ai atk_dance_l (L28172) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L26618 +L26606: + pushFromFSp 0 + pushFromPAi L28186 ; ___ai atk_normal_laser1 (L28186) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28206 ; ___ai atk_normal_laser2 (L28206) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) +L26618: + jmp L26620 +L26620: + drop + ret +L26622: ;___label for action pushFromPAi L28014 ; ___ai btl_normal + popToSp 0 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + gosub 4, L14016 + pushFromFSp 0 + fetchValue 48 + subf + infzf + jz L26696 + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.7 + subf + infzf + jz L26669 + pushFromFSp 0 + pushFromPAi L28129 ; ___ai atk_thorn1 (L28129) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L26675 +L26669: + pushFromFSp 0 + pushFromPAi L28093 ; ___ai atk_bomb (L28093) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L26675: + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.4 + subf + infzf + jz L26694 + pushFromFSp 0 + pushFromPAi L28228 ; ___ai run_near (L28228) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L26694 +L26694: + jmp L26817 +L26696: + pushFromFSp 0 + gosub 4, L14016 + pushFromFSp 0 + fetchValue 52 + subf + infzf + jz L26754 + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.9 + subf + infzf + jz L26727 + pushFromFSp 0 + pushFromPAi L28228 ; ___ai run_near (L28228) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L26733 +L26727: + pushFromFSp 0 + pushFromPAi L28129 ; ___ai atk_thorn1 (L28129) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L26733: + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.3 + subf + infzf + jz L26752 + pushFromFSp 0 + pushFromPAi L28233 ; ___ai run3_start (L28233) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L26752 +L26752: + jmp L26817 +L26754: + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.8 + subf + infzf + jz L26773 + pushFromFSp 0 + pushFromPAi L28247 ; ___ai walk_start (L28247) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L26798 +L26773: + pushFromFSp 0 + pushFromPAi L28129 ; ___ai atk_thorn1 (L28129) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.5 + subf + infzf + jz L26798 + pushFromFSp 0 + pushFromPAi L28093 ; ___ai atk_bomb (L28093) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L26798 +L26798: + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.3 + subf + infzf + jz L26817 + pushFromFSp 0 + pushFromPAi L28233 ; ___ai run3_start (L28233) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L26817 +L26817: + ret +L26818: ;___label for action pushFromPAi L28123 ; ___ai rvg_normal + popToSp 0 + pushFromFSp 0 + gosub 4, L14016 + pushFromFSp 0 + fetchValue 48 + subf + infzf + jz L26865 + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.7 + subf + infzf + jz L26851 + pushFromFSp 0 + pushFromPAi L27951 ; ___ai atk_dance_s (L27951) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L26863 +L26851: + pushFromFSp 0 + pushFromPAi L28144 ; ___ai atk_throw (L28144) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28129 ; ___ai atk_thorn1 (L28129) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) +L26863: + jmp L26896 +L26865: + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.7 + subf + infzf + jz L26890 + pushFromFSp 0 + pushFromPAi L28144 ; ___ai atk_throw (L28144) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28129 ; ___ai atk_thorn1 (L28129) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L26896 +L26890: + pushFromFSp 0 + pushFromPAi L28129 ; ___ai atk_thorn1 (L28129) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L26896: + ret +L26897: ;___label for action pushFromPAi L28040 ; ___ai btl_hard + popToSp 0 + pushFromFSp 0 + fetchValue 16 + pushImm -1 + sub + eqz + jz L26928 + pushFromFSp 0 + pushImm 16 + add + pushImm 0 + memcpy 0 + pushFromFSp 0 + pushFromPAi L28186 ; ___ai atk_normal_laser1 (L28186) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27179 +L26928: + pushFromFSp 0 + fetchValue 16 + pushImm 4 + sub + msb + jz L26961 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L28206 ; ___ai atk_normal_laser2 (L28206) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27179 +L26961: + pushFromFSp 0 + fetchValue 16 + pushImm 5 + sub + msb + jz L26994 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L28186 ; ___ai atk_normal_laser1 (L28186) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27179 +L26994: + pushFromFSp 0 + fetchValue 16 + pushImm 7 + sub + msb + jz L27027 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L28273 ; ___ai atk_normal_laser3 (L28273) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27179 +L27027: + pushFromFSp 0 + fetchValue 16 + pushImm 8 + sub + msb + jz L27071 + syscall 6, 2 ; trap_player_get_form (0 in, 1 out) + pushImm 3 + sub + neqz + jz L27055 + pushFromFSp 0 + pushFromPAi L27685 ; ___ai atk_dark (L27685) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27069 +L27055: + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + sub + memcpy 0 +L27069: + jmp L27179 +L27071: + pushFromFSp 0 + fetchValue 16 + pushImm 9 + sub + msb + jz L27110 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L28144 ; ___ai atk_throw (L28144) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28172 ; ___ai atk_dance_l (L28172) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L27179 +L27110: + pushFromFSp 0 + pushFromPAi L28233 ; ___ai run3_start (L28233) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.7 + subf + infzf + jz L27135 + pushFromFSp 0 + pushFromPAi L28129 ; ___ai atk_thorn1 (L28129) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L27141 +L27135: + pushFromFSp 0 + pushFromPAi L28228 ; ___ai run_near (L28228) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) +L27141: + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.2 + subf + infzf + jz L27160 + pushFromFSp 0 + pushFromPAi L28247 ; ___ai walk_start (L28247) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L27160 +L27160: + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.2 + subf + infzf + jz L27179 + pushFromFSp 0 + pushFromPAi L27940 ; ___ai idle_wait (L27940) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L27179 +L27179: + ret +L27180: ;___label for action pushFromPAi L28139 ; ___ai rvg_hard + popToSp 0 + pushFromFSp 0 + gosub 4, L10071 + pushImmf 0.7 + subf + infzf + jz L27201 + pushFromFSp 0 + pushFromPAi L28186 ; ___ai atk_normal_laser1 (L28186) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27207 +L27201: + pushFromFSp 0 + pushFromPAi L28206 ; ___ai atk_normal_laser2 (L28206) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L27207: + ret +L27208: ;___label for action pushFromPAi L28085 ; ___ai btl_super_hard + popToSp 0 + pushFromFSp 0 + pushFromPAi L27726 ; ___ai atk_crowd_laser (L27726) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L27856 ; ___ai idle (L27856) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + ret +L27223: ;___label for action pushFromPAi L28152 ; ___ai rvg_super_hard + popToSp 0 + ret +L27226: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 20 + popToSp 24 + popToSp 28 + popToSp 32 + popToSp 0 + pushFromFSp 0 + pushFromFSp 32 + pushImm 0 + syscall 2, 9 ; trap_btlobj_set_sheet (3 in, 0 out) + pushFromFSp 0 + pushFromFSp 28 + pushFromFSp 24 + pushFromFSp 20 + pushFromFSp 16 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + gosub 12, L27272 + ret +L27272: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 20 + popToSp 24 + popToSp 28 + popToSp 0 + pushFromFSp 0 + pushFromFSp 16 + gosub 12, L27356 + pushFromFSp 0 + pushFromFSp 24 + pushFromFSp 20 + gosub 12, L27370 + pushFromFSp 0 + pushImm 28 + add + pushFromFSp 28 + memcpy 0 + pushFromFSp 0 + pushFromFSp 12 + gosub 12, L27395 + pushFromFSp 0 + pushFromFSp 8 + pushFromFSp 4 + gosub 12, L27516 + pushFromFSp 0 + pushImm 24 + add + pushImm 0 + memcpy 0 + pushFromFSp 0 + pushImm 16 + add + pushImm -1 + memcpy 0 + pushFromFSp 0 + pushImm 20 + add + pushImm -1 + memcpy 0 + ret +L27356: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushImm 36 + add + pushFromFSp 4 + memcpy 0 + ret +L27370: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushImm 48 + add + pushFromFSp 8 + memcpy 0 + pushFromFSp 0 + pushImm 52 + add + pushFromFSp 4 + memcpy 0 + ret +L27395: + popToSp 4 + popToSp 0 + pushFromFSp 4 + dup + pushImm 5 + sub + jz L27410 + jmp L27432 +L27410: + pushFromFSp 0 + pushImm 56 + add + pushImmf 2500 + memcpy 0 + pushFromFSp 0 + pushImm 60 + add + pushImmf 1800 + memcpy 0 + jmp L27514 +L27432: + dup + pushImm 6 + sub + jz L27441 + jmp L27463 +L27441: + pushFromFSp 0 + pushImm 56 + add + pushImmf 2500 + memcpy 0 + pushFromFSp 0 + pushImm 60 + add + pushImmf 1200 + memcpy 0 + jmp L27514 +L27463: + syscall 1, 23 ; trap_area_world (0 in, 1 out) + pushImm 10 + sub + eqz + jz L27494 + pushFromFSp 0 + pushImm 56 + add + pushImmf 2500 + memcpy 0 + pushFromFSp 0 + pushImm 60 + add + pushImmf 1200 + memcpy 0 + jmp L27514 +L27494: + pushFromFSp 0 + pushImm 56 + add + pushImmf 2000 + memcpy 0 + pushFromFSp 0 + pushImm 60 + add + pushImmf 1200 + memcpy 0 +L27514: + drop + ret +L27516: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushImm 64 + add + pushFromFSp 8 + memcpy 0 + pushFromFSp 0 + pushImm 68 + add + pushFromFSp 4 + memcpy 0 + ret +L27541: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushImm 84 + pushImm L27574 + pushFromFSp 12 + gosub 8, L847 + popToSp 16 + pushFromFSp 16 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L27658 + pushFromFSp 16 + ret +D27574: +L27574: + popToSp 0 + pushFromFSp 0 + gosub 4, L27589 + pushFromFSp 0 + gosub 4, L27604 + pushFromFSp 0 + gosub 4, L836 + ret +L27589: + popToSp 0 + pushFromFSp 0 + gosub 4, L414 + pushFromPSpVal 64 + gosub 4, L493 + pushFromPSpVal 68 + gosub 4, L493 + ret +L27604: + popToSp 0 +L27606: + pushFromPSpVal 0 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L27657 + pushFromPSpVal 0 + pushFromFSpVal 80 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L27646 + pushFromPSpVal 64 + pushFromPSpVal 0 + pushFromFSpVal 72 + pushImm 0 + gosub 4, L501 + pushFromPSpVal 68 + pushFromPSpVal 0 + pushFromFSpVal 76 + pushImm 0 + gosub 4, L501 + jmp L27654 +L27646: + pushFromPSpVal 64 + gosub 4, L6852 + pushFromPSpVal 68 + gosub 4, L6852 +L27654: + halt + jmp L27606 +L27657: + ret +L27658: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + popToSpVal 80 + pushFromFSp 8 + popToSpVal 72 + pushFromFSp 4 + popToSpVal 76 + ret +L27679: +D27679: +TXT27679: + db 'atk_dance9',0,0 +L27685: +TXT27685: + db 'atk_dark',0,0 +L27690: +TXT27690: + db 'leave',0 +L27693: +TXT27693: + db 'run2',0,0 +L27696: +TXT27696: + db 'atk_dance1',0,0 +L27702: +TXT27702: + db 'atk_dance7',0,0 +L27708: +TXT27708: + db 'rc_invitation_to_dark2',0,0 +L27720: +TXT27720: + db 'atk_dance8',0,0 +L27726: +TXT27726: + db 'atk_crowd_laser',0 +L27734: +TXT27734: + db 'dead',0,0 +TXT27737: +L27737: + db '50',0,0 +L27739: +TXT27739: + db 'atk_normal_laser3_child',0 +L27751: +TXT27751: + db 'atk_dance6',0,0 +L27757: +TXT27757: + db 'atk_normal_laser3_finish',0,0 +L27770: +TXT27770: + db 'atk_air_fight',0 +L27777: +TXT27777: + db 'mode_battle_boss',0,0 +TXT27786: +L27786: + db 'riku detach',0 +L27792: +TXT27792: + db 'atk_dance_finish',0,0 +L27801: +TXT27801: + db 'event',0 +L27804: +TXT27804: + db 'init',0,0 +L27807: +TXT27807: + db 'stop',0,0 +L27810: +TXT27810: + db 'run3',0,0 +L27813: +TXT27813: + db 'idle_time',0 +TXT27818: + db 'jump start',0,0 +L27824: +TXT27824: + db 'atk_dance_s2',0,0 +L27831: +TXT27831: + db 'footwork',0,0 +TXT27836: + db 'jump end',0,0 +L27841: +TXT27841: + db 'rc_invitation_to_dark2_finish',0 +L27856: +TXT27856: + db 'idle',0,0 +L27859: +TXT27859: + db 'mode_revenge',0,0 +L27866: +TXT27866: + db '51',0,0 +L27868: +TXT27868: + db 'mode_revenge_boss',0 +TXT27877: +L27877: + db 'add hp',0,0 +L27881: +TXT27881: + db 'atk_dance4',0,0 +TXT27887: +L27887: + db '71',0,0 +L27889: +TXT27889: + db 'mode_battle_dark',0,0 +TXT27898: +L27898: + db '72',0,0 +TXT27900: +L27900: + db 'btl_attack',0,0 +L27906: +TXT27906: + db 'run_start',0 +L27911: +TXT27911: + db 'revenge',0 +TXT27915: +L27915: + db 'btl_short',0 +L27920: +TXT27920: + db 'laser_faint',0 +TXT27926: +L27926: + db 'dark',0,0 +L27929: +TXT27929: + db 'run2_start',0,0 +TXT27935: +L27935: + db 'btl_long',0,0 +L27940: +TXT27940: + db 'idle_wait',0 +TXT27945: +L27945: + db '11',0,0 +L27947: +TXT27947: + db 'damage',0,0 +L27951: +TXT27951: + db 'atk_dance_s',0 +L27957: +TXT27957: + db 'rc_crowd_laser_finish',0 +TXT27968: +L27968: + db 'rvg_short',0 +TXT27973: +L27973: + db 'camera start 70',0 +TXT27981: +L27981: + db 'rvg_long',0,0 +TXT27986: +L27986: + db '70',0,0 +L27988: +TXT27988: + db 'mode_battle',0 +L27994: +TXT27994: + db 'walk',0,0 +L27997: +TXT27997: + db 'atk_shield',0,0 +L28003: +TXT28003: + db 'talk',0,0 +TXT28006: +L28006: + db 'range 1',0 +L28010: +TXT28010: + db 'freeze',0,0 +L28014: +TXT28014: + db 'btl_normal',0,0 +TXT28020: +L28020: + db 'crowd_laser_finish',0,0 +TXT28030: +L28030: + db 'range 2',0 +TXT28034: + db 'laser start',0 +L28040: +TXT28040: + db 'btl_hard',0,0 +TXT28045: +L28045: + db 'riku end motion_id',0,0 +TXT28055: +L28055: + db '@ref_count',0,0 +L28061: +TXT28061: + db 'mode_dark_start',0 +L28069: +TXT28069: + db 'run',0 +TXT28071: +L28071: + db 'riku fly_to_jump',0,0 +L28080: +TXT28080: + db 'near_wait',0 +L28085: +TXT28085: + db 'btl_super_hard',0,0 +L28093: +TXT28093: + db 'atk_bomb',0,0 +L28098: +TXT28098: + db 'appear',0,0 +L28102: +TXT28102: + db 'INT',0 +TXT28104: +L28104: + db 'riku hook start',0 +L28112: +TXT28112: + db 'reborn',0,0 +L28116: +TXT28116: + db 'rc_air_fight',0,0 +L28123: +TXT28123: + db 'rvg_normal',0,0 +L28129: +TXT28129: + db 'atk_thorn1',0,0 +TXT28135: +L28135: + db '40',0,0 +TXT28137: +L28137: + db '61',0,0 +L28139: +TXT28139: + db 'rvg_hard',0,0 +L28144: +TXT28144: + db 'atk_throw',0 +L28149: +TXT28149: + db 'near',0,0 +L28152: +TXT28152: + db 'rvg_super_hard',0,0 +L28160: +TXT28160: + db 'atk_normal_laser1_child',0 +L28172: +TXT28172: + db 'atk_dance_l',0 +L28178: +TXT28178: + db 'rc_crowd_laser',0,0 +L28186: +TXT28186: + db 'atk_normal_laser1',0 +TXT28195: + db 'rst_normal',0,0 +TXT28201: +L28201: + db '60',0,0 +TXT28203: +L28203: + db 'right',0 +L28206: +TXT28206: + db 'atk_normal_laser2',0 +TXT28215: + db 'rst_hard',0,0 +TXT28220: + db 'rst_super_hard',0,0 +L28228: +TXT28228: + db 'run_near',0,0 +L28233: +TXT28233: + db 'run3_start',0,0 +L28239: +TXT28239: + db 'atk_dance_start',0 +L28247: +TXT28247: + db 'walk_start',0,0 +L28253: +TXT28253: + db 'atk_dance5',0,0 +L28259: +TXT28259: + db 'atk_dance2',0,0 +L28265: +TXT28265: + db 'atk_dance_wait',0,0 +L28273: +TXT28273: + db 'atk_normal_laser3',0 + + section .bss +W0: + resb 176 +W176: + resb 272 +W448: + resb 240 +W688: + resb 176 +W864: + resb 208 +W1072: + resb 176 +W1248: + resb 4112 diff --git a/obj/B_EX170_LAST_LV99.bdscript b/obj/B_EX170_LAST_LV99.bdscript new file mode 100644 index 0000000..5a09c02 --- /dev/null +++ b/obj/B_EX170_LAST_LV99.bdscript @@ -0,0 +1,15349 @@ +--- +WorkSize: 5376 +StackSize: 512 +TempSize: 512 +Triggers: +- Key: 17 + Addr: OBJ_ANMATR_CALLBACK +- Key: 16 + Addr: OBJ_ANMATR_EFFECT +- Key: 15 + Addr: OBJ_ATTACK +- Key: 11 + Addr: REACTION_CALLBACK +- Key: 6 + Addr: OBJ_DAMAGE +- Key: 1 + Addr: OBJ_MAIN +- Key: 0 + Addr: OBJ_INIT +Name: b_ex170_last_lv + +--- +; codeLabels: +; codeRevealer: -l 381 -l 1067 -l 1225 -l 1384 -l 1392 -l 1652 -l 1775 -l 2926 -l 3700 -l 3774 -l 5177 -l 5460 -l 5724 -l 5914 -l 5977 -l 6176 -l 7122 -l 7147 -l 7191 -l 7242 -l 7375 -l 8139 -l 8656 -l 8730 -l 8947 -l 8999 -l 9023 -l 9055 -l 9313 -l 9702 -l 9727 -l 10294 -l 13296 -l 13528 -l 13584 -l 13601 -l 13606 -l 13621 -l 13698 -l 13895 -l 13951 -l 13967 -l 14072 -l 14085 -l 14215 -l 14257 -l 14323 -l 14389 -l 14620 -l 14713 -l 14772 -l 14791 -l 14890 -l 14891 -l 14986 -l 15070 -l 15206 -l 15249 -l 15298 -l 15329 -l 15337 -l 15490 -l 15693 -l 15805 -l 16148 -l 16210 -l 16349 -l 16398 -l 16454 -l 16465 -l 16472 -l 16594 -l 16900 -l 17184 -l 17201 -l 17232 -l 17354 -l 17445 -l 17487 -l 17539 -l 17581 -l 17621 -l 17974 -l 17981 -l 18106 -l 18113 -l 18158 -l 18243 -l 18250 -l 18329 -l 18336 -l 18381 -l 18481 -l 18564 -l 18606 -l 18816 -l 19124 -l 19131 -l 19210 -l 19217 -l 19262 -l 19296 -l 19745 -l 19975 -l 20404 -l 20744 -l 20863 -l 20962 -l 21370 -l 21741 -l 21751 -l 22306 -l 22677 -l 22811 -l 23452 -l 23781 -l 23796 -l 23807 -l 23922 -l 24188 -l 24223 -l 24248 -l 24565 -l 24575 -l 24585 -l 24595 -l 24605 -l 24615 -l 24625 -l 24635 -l 24668 -l 24678 -l 24688 -l 24720 -l 24768 -l 24870 -l 25043 -l 25094 -l 25139 -l 25222 -l 25258 -l 25284 -l 25478 -l 25682 -l 25689 -l 25848 -l 25853 -l 26097 -l 26264 -l 26305 -l 26401 -l 26570 -l 26638 -l 26959 -l 26969 -l 27052 -l 27067 -l 27125 -l 27221 -l 27371 -l 27786 -l 27865 -l 28466 -l 28494 -l 28509 -l 28860 + section .text +OBJ_ANMATR_CALLBACK: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 4 + dup + pushImm 200 + sub + jz L55 + jmp L97 +L55: + pushFromPWp W1072 + gosub 8, L99 + popToSp 12 + pushFromFSp 12 + jz L95 + pushFromPWp W1072 + pushImm 176 + add + pushImm 0 + memcpy 0 + pushFromPWp W1072 + pushFromFSp 12 + gosub 8, L353 + drop + gosub 8, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromPWp W1072 + gosub 12, L904 + jmp L95 +L95: + jmp L97 +L97: + drop + ret +L99: + popToSp 0 + pushImm 0 + popToSp 32 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + gosub 12, L266 + dup + jz L130 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + gosub 12, L273 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + eqz + eqzv +L130: + dup + jz L148 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + gosub 20, L273 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 225 ; trap_obj_is_star (1 in, 1 out) + eqz + eqzv +L148: + dup + jz L159 + syscall 6, 2 ; trap_player_get_form (0 in, 1 out) + pushImm 3 + sub + neqz + eqzv +L159: + jz L263 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + gosub 20, L293 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + fetchValue 12 + pushImmf 10000 + subf + infzf + jz L261 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromFSp 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromPSp 16 + syscall 0, 21 ; trap_vector_get_rot_xz (2 in, 1 out) + syscall 0, 23 ; trap_absf (1 in, 1 out) + pushImmf 3.141593 + subf + infzf + popToSp 32 + jmp L261 +L261: + jmp L263 +L263: + pushFromFSp 32 + ret +L266: + popToSp 0 + pushFromFSpVal 0 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + ret +L273: + popToSp 0 + pushFromPSp 16 + pushFromFSpVal 0 + gosub 12, L284 + pushFromPSp 16 + ret +L284: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 4 + ret +L293: + popToSp 0 + pushFromPSp 16 + pushImmf 0 + pushImmf -198 + pushImmf -126 + pushImmf 1 + gosub 12, L326 + pushFromFSp 0 + pushImm 16384 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + ret +L326: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + pushFromFSp 16 + popToSpVal 0 + pushFromFSp 12 + popToSpVal 4 + pushFromFSp 8 + popToSpVal 8 + pushFromFSp 4 + popToSpVal 12 + ret +L353: + popToSp 0 + popToSp 4 + pushImm 112 + pushImm L381 + pushFromFSp 4 + gosub 8, L829 + popToSp 8 + pushFromFSp 8 + pushImm 96 + add + pushFromFSp 0 + memcpy 0 + pushFromFSp 8 + ret +D381: +L381: + popToSp 0 + pushFromFSp 0 + gosub 4, L396 + pushFromFSp 0 + gosub 4, L430 + pushFromFSp 0 + gosub 4, L818 + ret +L396: + popToSp 0 + pushFromFSpVal 16 + pushImm 0 + sub + neqz + dup + jz L413 + pushFromFSpVal 16 + syscall 0, 50 ; trap_effect_is_active (1 in, 1 out) + eqzv +L413: + jz L429 + pushFromFSpVal 16 + syscall 0, 53 ; trap_effect_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + memcpyToSpVal 16, 32 + jmp L429 +L429: + ret +L430: + popToSp 0 + pushFromPSpVal 64 + gosub 4, L475 + pushFromPSpVal 68 + gosub 4, L475 + pushFromFSpVal 96 + jz L458 + pushFromPSpVal 64 + pushFromPSpVal 0 + pushImm 68 + pushImm 0 + gosub 4, L483 + jmp L458 +L458: + syscall 1, 34 ; trap_event_is_exec (0 in, 1 out) + eqz + jz L470 + pushFromFSp 0 + gosub 4, L516 + halt + jmp L458 +L470: + pushFromPSpVal 64 + gosub 4, L795 + ret +L475: + popToSp 0 + pushImm 0 + popToSpVal 0 + ret +D483: +L483: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + eqz + jz L515 + pushFromFSp 12 + pushFromFSp 8 + pushImm 0 + pushFromFSp 4 + syscall 1, 87 ; trap_obj_effect_start_bind (4 in, 1 out) + popToSpVal 0 + jmp L515 +L515: + ret +L516: + popToSp 0 + pushFromPSpVal 0 + gosub 12, L596 + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSpVal 64 + pushFromPSp 16 + gosub 12, L629 + pushFromPSp 16 + pushFromFSp 0 + gosub 12, L651 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSpVal 64 + pushFromPSp 16 + gosub 12, L751 + pushFromPSp 16 + pushImmf 1 + pushImmf 1 + pushFromPSp 16 + fetchValue 12 + pushImmf 500 + divf + pushImmf 1 + gosub 12, L326 + pushFromPSpVal 64 + pushFromPSp 16 + gosub 12, L773 + ret +L596: + popToSp 0 + pushFromPSp 16 + pushImmf 0 + pushImmf -198 + pushImmf -126 + pushImmf 1 + gosub 12, L326 + pushFromFSp 0 + pushImm 16384 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + ret +L629: + popToSp 4 + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + jz L650 + pushFromFSpVal 0 + pushFromFSp 4 + syscall 0, 38 ; trap_effect_set_pos (2 in, 0 out) + jmp L650 +L650: + ret +L651: + popToSp 0 + pushFromPSp 32 + pushImm 2258 + syscall 1, 114 ; trap_obj_search_by_entry (2 in, 0 out) + pushFromPSp 16 + pushImmf 1 + gosub 16, L719 + pushFromPSp 32 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L694 + pushFromPSp 32 + pushImm 67 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + jmp L716 +L694: + gosub 16, L739 + memcpyToSp 16, 48 + pushFromPSp 48 + pushImm 67 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 +L716: + pushFromPSp 16 + ret +L719: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushFromFSp 4 + gosub 4, L326 + ret +L739: + pushFromPSp 0 + pushImm 4 + add + syscall 1, 3 ; trap_sysobj_player (0 in, 1 out) + memcpy 0 + pushFromPSp 0 + ret +D751: +L751: + popToSp 4 + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + jz L772 + pushFromFSpVal 0 + pushFromFSp 4 + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + jmp L772 +L772: + ret +L773: + popToSp 4 + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + jz L794 + pushFromFSpVal 0 + pushFromFSp 4 + syscall 0, 39 ; trap_effect_set_scale (2 in, 0 out) + jmp L794 +L794: + ret +L795: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + jz L817 + pushFromFSpVal 0 + syscall 0, 51 ; trap_effect_kill (1 in, 0 out) + pushImm 0 + popToSpVal 0 + jmp L817 +L817: + ret +L818: + popToSp 0 + pushFromFSpVal 48 + syscall 1, 132 ; trap_target_free (1 in, 0 out) + pushFromFSp 0 + syscall 0, 48 ; trap_memory_free (1 in, 0 out) + ret +L829: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L861 + popToSp 12 + pushFromFSp 12 + pushImm 52 + add + pushFromFSp 4 + pushFromFSp 12 + syscall 2, 20 ; trap_magic_start_thread (2 in, 1 out) + memcpy 0 + pushFromFSp 12 + ret +L861: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + syscall 0, 47 ; trap_memory_alloc (1 in, 1 out) + popToSp 12 + pushFromFSp 12 + pushFromFSp 0 + memcpy 16 + pushFromFSp 12 + pushImm 16 + add + pushImm 0 + memcpy 0 + pushFromFSp 12 + pushImm 48 + add + pushFromFSp 12 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 131 ; trap_target_dup (1 in, 1 out) + memcpy 0 + pushFromFSp 12 + ret +L904: + popToSp 0 + popToSp 4 + pushFromPWp W688 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L917 + ret +L917: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L1003 + pushImmf 8 + syscall 0, 32 ; func_screen_whitein (1 in, 0 out) + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 8 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 8 + pushFromFSp 4 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 8 + pushImm 261 + pushImmf 0 + gosub 12, L1036 + drop + pushFromFSp 8 + pushImm L1067 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + ret +L1003: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1021 + pushFromPSpVal 144 + pushImm 13 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + ret +L1021: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 0 + pushImm -1 + popToSpVal 128 + ret +L1036: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromPSpVal 0 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + syscall 1, 29 ; trap_obj_motion_capture (4 in, 1 out) + popToSpVal 132 + pushFromFSp 8 + popToSpVal 128 + pushFromFSp 4 + popToSpVal 124 + pushFromFSpVal 132 + ret +D1067: +L1067: + popToSp 0 + pushImmf 20 + gosub 4, L1226 + pushFromPWp W688 + pushFromFSp 0 + gosub 4, L1248 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 +L1086: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1393 + eqz + jz L1098 + halt + jmp L1086 +L1098: + pushFromPAi L29072 ; ___ai riku detach (L29072) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushFromPWp W688 + pushImm 144 + add + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + pushFromPWp W688 + pushImm 12 + syscall 10, 6 ; trap_obj_set_special_command (2 in, 0 out) + pushFromFSp 0 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + pushFromFSp 0 + pushFromPWp W688 + pushImm 144 + add + gosub 4, L1426 + pushFromPWp W688 + pushFromFSp 0 + pushImm 264 + pushImmf 0 + gosub 4, L1036 + drop + pushFromPWp W688 + pushFromFSp 0 + gosub 4, L4874 +L1150: + pushFromPWp W688 + pushImm 144 + add + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + dup + pushImm 197 + sub + jz L1169 + jmp L1184 +L1169: + pushFromPWp W688 + pushFromFSp 0 + pushImm 265 + pushImmf 0 + gosub 4, L4935 + drop + jmp L1221 +L1184: + dup + pushImm 198 + sub + jz L1193 + jmp L1208 +L1193: + pushFromPWp W688 + pushFromFSp 0 + pushImm 266 + pushImmf 0 + gosub 4, L4935 + drop + jmp L1221 +L1208: + pushFromPWp W688 + pushFromFSp 0 + pushImm 264 + pushImmf 0 + gosub 4, L4935 + drop +L1221: + drop + halt + jmp L1150 +L1225: + ret +L1226: + popToSp 0 +L1228: + pushFromFSp 0 + pushImmf 0 + subf + supzf + jz L1247 + pushFromFSp 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 0 + halt + jmp L1228 +L1247: + ret +D1248: +L1248: + popToSp 4 + popToSp 0 + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 4 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 4 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L326 + pushFromFSp 4 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromPSpVal 144 + pushImm L1384 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 144 + pushFromFSp 4 + pushImm 16386 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromPSpVal 144 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 144 + pushImm 259 + pushImmf 0 + gosub 12, L1036 + drop + pushFromFSp 0 + pushFromFSp 4 + pushImm 259 + pushImmf 0 + gosub 12, L1036 + drop + pushFromFSp 0 + pushFromPAi L29014 ; ___ai rc_invitation_to_dark2 (L29014) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromPSpVal 0 + pushImm 9 + syscall 1, 52 ; method_obj_enable_collision (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29037 ; ___ai 50 (L29037) + pushFromFSp 4 + syscall 1, 157 ; trap_obj_camera_start (3 in, 0 out) + ret +L1384: + popToSp 0 + gosub 4, L1389 + ret +L1389: + halt + jmp L1389 +L1392: + ret +L1393: + popToSp 0 + popToSp 4 + pushFromFSp 4 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + dup + jz L1413 + pushFromFSp 4 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqzv +L1413: + dup + jnz L1425 + pushFromFSp 4 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + pushFromFSp 0 + sub + neqz + neqzv +L1425: + ret +L1426: + popToSp 0 + popToSp 4 + pushImm 19571 + syscall 4, 4 ; trap_mission_information (1 in, 0 out) + pushFromPWp W448 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L1466 + pushFromFSp 0 + pushImm L1652 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + ret +L1466: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L1021 + pushFromPSpVal 144 + pushFromFSp 4 + fetchValue 4 + gosub 12, L284 + pushFromPSpVal 144 + pushImm 251 + syscall 1, 75 ; trap_obj_motion_hook (2 in, 0 out) + pushFromPSpVal 144 + pushImm 0 + gosub 12, L1627 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 251 + syscall 1, 75 ; trap_obj_motion_hook (2 in, 0 out) + pushFromPSpVal 144 + syscall 1, 60 ; trap_obj_is_air (1 in, 1 out) + jz L1540 + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromPSpVal 144 + pushFromPSp 16 + pushImm 3 + pushImmf 0 + pushImm 1 + syscall 1, 55 ; method_obj_jump (5 in, 0 out) + jmp L1552 +L1540: + pushFromPSpVal 144 + fetchValue 4 + pushImm 0 + pushImmf 8 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L1552: + pushFromPSpVal 144 + pushImm 1 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + pushFromPSpVal 144 + pushImm 2 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + pushFromPSpVal 160 + pushImm 2079 + syscall 1, 114 ; trap_obj_search_by_entry (2 in, 0 out) + pushFromPSpVal 176 + pushFromFSp 8 + fetchValue 4 + gosub 12, L284 + pushFromPSpVal 176 + syscall 1, 133 ; trap_obj_hide (1 in, 0 out) + pushFromPSpVal 176 + pushImm 8 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromPSpVal 176 + pushImm 3 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromPSpVal 176 + pushFromFSp 0 + pushImm 144 + add + pushImm 16384 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushImm 0 + popToSpVal 228 + ret +L1627: + popToSp 0 + popToSp 4 + pushFromPSp 24 + pushFromFSp 4 + fetchValue 4 + gosub 12, L284 + pushFromPSp 8 + pushFromPSp 24 + pushFromFSp 0 + syscall 1, 234 ; trap_party_get_weapon (2 in, 1 out) + gosub 12, L284 + pushFromPSp 8 + ret +L1652: + popToSp 0 + pushFromPWp W448 + gosub 4, L1677 + pushFromFSp 0 + syscall 1, 76 ; trap_obj_motion_unhook (1 in, 0 out) + pushFromFSp 0 + pushImm 0 + gosub 4, L1627 + memcpyToSp 16, 4 + pushFromPSp 4 + syscall 1, 76 ; trap_obj_motion_unhook (1 in, 0 out) + ret +L1677: + popToSp 0 +L1679: + pushFromFSp 0 + pushImm 1 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L1694 + pushFromPAi L29339 ; ___ai range 1 (L29339) + syscall 0, 2 ; trap_puts (1 in, 0 out) + jmp L1694 +L1694: + pushFromFSp 0 + pushImm 2 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L1709 + pushFromPAi L29371 ; ___ai range 2 (L29371) + syscall 0, 2 ; trap_puts (1 in, 0 out) + jmp L1709 +L1709: + pushFromFSpVal 228 + dup + pushImm 0 + sub + jz L1720 + jmp L1726 +L1720: + pushFromFSp 0 + gosub 4, L1776 + jmp L1771 +L1726: + dup + pushImm 1 + sub + jz L1735 + jmp L1741 +L1735: + pushFromFSp 0 + gosub 4, L2030 + jmp L1771 +L1741: + dup + pushImm 2 + sub + jz L1750 + jmp L1756 +L1750: + pushFromFSp 0 + gosub 4, L2171 + jmp L1771 +L1756: + dup + pushImm 3 + sub + jz L1765 + jmp L1771 +L1765: + pushFromFSp 0 + gosub 4, L2202 + jmp L1771 +L1771: + drop + halt + jmp L1679 +L1775: + ret +L1776: + popToSp 0 + pushFromFSp 0 + gosub 12, L1839 + pushFromFSp 0 + gosub 12, L1919 + jz L1838 + pushImm 8 + syscall 0, 81 ; trap_pad_is_trigger (1 in, 1 out) + jz L1826 + pushFromPSpVal 208 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + gosub 12, L739 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 97 ; trap_obj_spec (1 in, 1 out) + fetchValue 8 + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + gosub 12, L1995 + jmp L1836 +L1826: + pushFromFSp 0 + pushFromPSpVal 208 + pushFromPSpVal 208 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) +L1836: + jmp L1838 +L1838: + ret +L1839: + popToSp 0 + syscall 1, 3 ; trap_sysobj_player (0 in, 1 out) + memcpyToSp 16, 4 + pushFromPSp 4 + syscall 1, 113 ; trap_player_get_movement (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSpVal 16, 208 + pushFromPSpVal 208 + fetchValue 12 + pushImmf 0 + subf + supzf + jz L1918 + pushFromPSpVal 208 + fetchValue 12 + pushImmf 0.8 + subf + infzf + jz L1899 + pushFromPSpVal 208 + pushImm 12 + add + pushFromFSp 0 + syscall 1, 97 ; trap_obj_spec (1 in, 1 out) + fetchValue 0 + pushImmf 1 + mulf + memcpy 0 + jmp L1916 +L1899: + pushFromPSpVal 208 + pushImm 12 + add + pushFromFSp 0 + syscall 1, 97 ; trap_obj_spec (1 in, 1 out) + fetchValue 4 + pushImmf 1 + mulf + memcpy 0 +L1916: + jmp L1918 +L1918: + ret +L1919: + popToSp 0 + pushImm 0 + popToSp 4 + pushFromPSpVal 144 + gosub 4, L1987 + jz L1984 + pushFromPSpVal 144 + syscall 1, 192 ; trap_obj_is_motion_cancel (1 in, 1 out) + jz L1945 + pushImm 1 + popToSp 4 + jmp L1982 +L1945: + pushFromPSpVal 144 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + dup + pushImm 0 + sub + jz L1974 + dup + pushImm 2 + sub + jz L1974 + dup + pushImm 1 + sub + jz L1974 + jmp L1981 +L1974: + pushImm 1 + popToSp 4 + jmp L1981 +L1981: + drop +L1982: + jmp L1984 +L1984: + pushFromFSp 4 + ret +L1987: + popToSp 0 + pushFromFSp 0 + syscall 1, 60 ; trap_obj_is_air (1 in, 1 out) + eqz + ret +D1995: +L1995: + popToSp 4 + popToSp 0 + pushFromPSpVal 144 + pushFromFSp 4 + pushImm 3 + pushImmf 0 + pushImm 1 + syscall 1, 55 ; method_obj_jump (5 in, 0 out) + pushImm 1 + popToSpVal 228 + pushImmf 0 + popToSpVal 224 + pushImm 0 + popToSpVal 236 + ret +L2030: + popToSp 0 + pushFromFSp 0 + gosub 4, L1839 + pushFromPSpVal 144 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + dup + pushImm 5 + sub + jz L2055 + jmp L2070 +L2055: + pushFromPSpVal 144 + syscall 1, 192 ; trap_obj_is_motion_cancel (1 in, 1 out) + jz L2068 + pushImm 0 + popToSpVal 228 + jmp L2068 +L2068: + jmp L2169 +L2070: + dup + pushImm 0 + sub + jz L2079 + jmp L2086 +L2079: + pushImm 0 + popToSpVal 228 + jmp L2169 +L2086: + dup + pushImm 3 + sub + jz L2095 + jmp L2151 +L2095: + pushFromFSpVal 224 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + addf + popToSpVal 224 + pushFromFSpVal 236 + eqz + dup + jz L2116 + pushFromFSpVal 224 + pushImmf 10 + subf + supzf + eqzv +L2116: + jz L2149 + pushImm 8 + syscall 0, 80 ; trap_pad_is_button (1 in, 1 out) + eqz + jz L2147 + pushFromPSpVal 144 + pushImmf 0 + syscall 1, 128 ; trap_obj_sysjump (2 in, 0 out) + pushFromPSpVal 144 + pushImm 4 + syscall 1, 179 ; trap_obj_set_fall_motion (2 in, 0 out) + pushImm 1 + popToSpVal 236 + jmp L2147 +L2147: + jmp L2149 +L2149: + jmp L2169 +L2151: + pushFromFSp 0 + syscall 1, 57 ; trap_obj_is_jump (1 in, 1 out) + jz L2169 + pushFromFSp 0 + pushFromPSpVal 208 + pushFromPSpVal 208 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + jmp L2169 +L2169: + drop + ret +L2171: + popToSp 0 + pushFromPSpVal 144 + fetchValue 4 + pushFromFSpVal 232 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromPSpVal 144 + fetchValue 4 + pushImm 4 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushImm 3 + popToSpVal 228 + ret +L2202: + popToSp 0 + pushFromPSp 48 + pushImmf 10 + gosub 24, L2476 + pushFromPSp 48 + pushImmf 0 + gosub 24, L2491 + pushImmf 0 + popToSp 72 + pushFromPSp 56 + pushImmf 12 + pushImmf -0.8 + pushImmf 0 + pushImmf 0 + gosub 24, L2500 + syscall 2, 67 ; trap_attack_new_combo_group (0 in, 1 out) + popToSp 76 +L2243: + pushFromFSpVal 232 + pushFromPSpVal 144 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + sub + eqz + jz L2470 + pushFromPSpVal 144 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + gosub 24, L739 + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 191 ; trap_obj_lockon_target (1 in, 1 out) + gosub 28, L2595 + pushFromPSpVal 144 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + eqz + jz L2297 + pushFromPSpVal 144 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + gosub 24, L739 + memcpyToSp 16, 80 + pushFromPSp 80 + pushImm 5 + syscall 1, 121 ; trap_target_search (3 in, 0 out) + jmp L2297 +L2297: + pushFromPSpVal 144 + pushImm 1 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L2402 + pushFromPSp 48 + gosub 24, L2619 + jz L2395 + pushFromPSp 48 + gosub 24, L2629 + pushFromPSp 32 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 1 + gosub 24, L326 + pushFromPSpVal 144 + pushImm 52 + pushFromPSp 32 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + pushFromPSpVal 144 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushImmf 0.349066 + pushFromFSp 72 + gosub 28, L2638 + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromPSpVal 144 + pushFromPSp 32 + pushFromPSp 16 + pushFromFSp 76 + gosub 24, L2878 + pushFromFSp 72 + pushImmf 0.523599 + addf + syscall 0, 43 ; trap_fixrad (1 in, 1 out) + popToSp 72 + jmp L2395 +L2395: + pushFromPSp 48 + gosub 24, L4549 + drop + jmp L2402 +L2402: + pushFromPSpVal 144 + pushImm 2 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L2467 + pushFromPSpVal 144 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + jz L2465 + pushFromPSpVal 144 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromPSpVal 144 + gosub 28, L4836 + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 32 + pushFromPSpVal 144 + pushFromPSp 32 + pushFromPSp 56 + gosub 24, L4312 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + pushFromPSp 56 + gosub 24, L4508 + jmp L2465 +L2465: + jmp L2467 +L2467: + halt + jmp L2243 +L2470: + pushImm 0 + popToSpVal 228 + ret +L2476: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 4 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L2491 + ret +L2491: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 0 + ret +L2500: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + pushFromFSp 0 + pushFromFSp 16 + pushFromFSp 12 + pushFromFSp 8 + gosub 8, L2527 + pushFromFSp 0 + pushFromFSp 4 + gosub 8, L2581 + ret +L2527: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L2554 + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L2563 + pushFromFSp 0 + pushFromFSp 4 + gosub 8, L2572 + ret +L2554: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 8 + ret +L2563: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 4 + ret +L2572: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 0 + ret +L2581: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushImm 12 + add + pushFromFSp 4 + memcpy 0 + ret +L2595: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L273 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 160 ; trap_target_set_obj (2 in, 0 out) + pushFromFSp 4 + syscall 6, 57 ; trap_target_get_group (1 in, 1 out) + popToSpVal 4 + ret +L2619: + popToSp 0 + pushFromFSpVal 0 + pushImmf 0 + subf + infoezf + ret +L2629: + popToSp 0 + pushFromFSp 0 + pushFromFSpVal 4 + gosub 4, L2491 + ret +L2638: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + popToSp 12 + pushFromFSp 0 + fetchValue 0 + syscall 0, 23 ; trap_absf (1 in, 1 out) + popToSp 24 + pushFromFSp 0 + fetchValue 4 + syscall 0, 23 ; trap_absf (1 in, 1 out) + popToSp 20 + pushFromFSp 0 + fetchValue 8 + syscall 0, 23 ; trap_absf (1 in, 1 out) + popToSp 16 + pushFromFSp 24 + pushFromFSp 20 + subf + infoezf + dup + jz L2690 + pushFromFSp 24 + pushFromFSp 16 + subf + infoezf + eqzv +L2690: + jz L2710 + pushFromPSp 48 + pushImmf 1 + pushImmf 0 + pushImmf 0 + pushImmf 1 + gosub 24, L326 + jmp L2762 +L2710: + pushFromFSp 20 + pushFromFSp 24 + subf + infoezf + dup + jz L2726 + pushFromFSp 20 + pushFromFSp 16 + subf + infoezf + eqzv +L2726: + jz L2746 + pushFromPSp 48 + pushImmf 0 + pushImmf 1 + pushImmf 0 + pushImmf 1 + gosub 24, L326 + jmp L2762 +L2746: + pushFromPSp 48 + pushImmf 0 + pushImmf 0 + pushImmf 1 + pushImmf 1 + gosub 24, L326 +L2762: + pushFromFSp 0 + pushFromPSp 48 + syscall 0, 82 ; trap_vector_outer_product (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 48 + pushFromFSp 8 + sin + pushFromFSp 8 + cos + divf + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 48 + pushFromPSp 48 + pushImm 12 + add + pushImmf 0 + memcpy 0 + pushFromFSp 0 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 48 + pushFromPSp 64 + pushFromFSp 4 + syscall 0, 83 ; trap_vector_rot (3 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromPSp 64 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 32 + pushFromFSp 12 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 12 + add + pushFromFSp 0 + fetchValue 12 + memcpy 0 + pushFromPSp 32 + ret +L2878: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushImm 288 + pushImm L2926 + pushFromFSp 12 + gosub 8, L4657 + popToSp 16 + pushFromFSp 16 + pushFromFSp 4 + pushImm 0 + gosub 8, L4795 + pushFromFSp 16 + pushImm 32 + add + pushFromFSp 8 + memcpy 16 + pushFromFSp 16 + pushImm 248 + add + pushFromFSp 0 + memcpy 0 + ret +L2926: + popToSp 0 + pushFromFSp 0 + gosub 4, L2941 + pushFromFSp 0 + gosub 4, L3149 + pushFromFSp 0 + gosub 4, L4635 + ret +L2941: + popToSp 0 + pushFromFSpVal 248 + popToSp 4 + pushFromFSp 0 + gosub 4, L2961 + pushFromFSp 4 + popToSpVal 248 + pushImm 1 + popToSpVal 260 + ret +L2961: + popToSp 0 + pushFromFSp 0 + gosub 4, L3007 + pushImm -1 + popToSpVal 248 + pushFromPSpVal 112 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 200 + pushImmf 0 + gosub 4, L3024 + pushImm 0 + popToSpVal 260 + pushImm 0 + popToSpVal 264 + pushImmf 0 + popToSpVal 252 + ret +L3007: + popToSp 0 + pushFromFSp 0 + gosub 4, L396 + pushImm 0 + popToSpVal 64 + pushImm 0 + popToSpVal 68 + ret +L3024: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 20 + popToSp 0 + pushFromFSp 0 + pushFromFSp 20 + pushFromFSp 16 + pushFromFSp 12 + gosub 8, L2527 + pushFromFSp 0 + pushFromFSp 4 + gosub 8, L3117 + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L3140 + pushFromPSpVal 48 + pushImmf 1 + gosub 8, L719 + pushFromFSp 8 + popToSpVal 68 + pushFromPSpVal 32 + pushImmf 1 + gosub 8, L719 + pushImm 0 + popToSpVal 92 + pushImm 0 + popToSpVal 96 + pushImm 0 + popToSpVal 104 + pushImm 0 + popToSpVal 64 + pushImm 0 + popToSpVal 100 + pushImmf 100000 + popToSpVal 76 + pushImmf 200 + popToSpVal 80 + pushImmf -1 + popToSpVal 84 + ret +L3117: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 72 + pushFromFSp 0 + pushImm 88 + add + pushFromFSpVal 72 + pushImmf 0 + subf + infoezf + memcpy 0 + ret +L3140: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 68 + ret +L3149: + popToSp 0 + pushFromFSpVal 280 + pushImm 0 + sub + neqz + jz L3174 + pushFromFSpVal 280 + pushImm 2 + pushImm 0 + syscall 2, 57 ; trap_limit_effect_start (3 in, 1 out) + popToSpVal 64 + jmp L3189 +L3174: + pushFromPSpVal 0 + pushImm 2 + pushImm 0 + pushImm 0 + syscall 1, 21 ; trap_obj_effect_start (4 in, 1 out) + popToSpVal 64 +L3189: + pushFromPSpVal 0 + pushImm 1700 + pushFromFSpVal 248 + pushFromFSpVal 244 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSpVal 68 + pushFromFSpVal 268 + jz L3216 + pushFromFSpVal 68 + pushFromFSpVal 276 + pushFromPSpVal 280 + syscall 2, 38 ; trap_attack_set_hit_callback (3 in, 0 out) + jmp L3216 +L3216: + pushFromFSpVal 256 + jz L3235 + pushFromFSpVal 68 + pushFromPSpVal 0 + syscall 1, 88 ; trap_obj_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + jmp L3235 +L3235: + pushFromFSp 0 + gosub 8, L3429 + pushFromFSp 0 + gosub 8, L3611 + pushFromFSpVal 68 + pushImm 0 + sub + neqz + dup + jz L3258 + pushFromFSpVal 68 + syscall 2, 39 ; trap_attack_is_reflect (1 in, 1 out) + eqzv +L3258: + dup + jz L3270 + pushImm -1 + pushImm 0 + sub + msbi + eqzv +L3270: + jz L3368 + pushFromFSpVal 68 + syscall 2, 44 ; trap_attack_reflecter (1 in, 1 out) + memcpyToSp 16, 20 + pushFromPSp 20 + memcpyToSp 16, 4 + pushFromFSp 0 + gosub 8, L3369 + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSpVal 16, 80 + pushFromFSpVal 280 + pushImm 0 + sub + neqz + jz L3319 + pushFromFSpVal 280 + pushImm 2 + pushImm 0 + syscall 2, 57 ; trap_limit_effect_start (3 in, 1 out) + popToSpVal 64 + jmp L3334 +L3319: + pushFromPSpVal 0 + pushImm 2 + pushImm 0 + pushImm 0 + syscall 1, 21 ; trap_obj_effect_start (4 in, 1 out) + popToSpVal 64 +L3334: + pushFromPSp 4 + pushImm -1 + pushFromFSpVal 248 + pushFromFSpVal 244 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSpVal 68 + pushFromFSpVal 68 + pushFromPSpVal 0 + syscall 2, 22 ; trap_attack_set_obj_pax (2 in, 0 out) + pushFromPSp 4 + memcpyToSpVal 16, 0 + pushFromFSp 0 + gosub 8, L3429 + pushFromFSp 0 + gosub 8, L3611 + jmp L3368 +L3368: + ret +L3369: + popToSp 0 + pushFromFSpVal 48 + syscall 1, 132 ; trap_target_free (1 in, 0 out) + pushFromFSpVal 68 + syscall 2, 44 ; trap_attack_reflecter (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 131 ; trap_target_dup (1 in, 1 out) + popToSpVal 48 + pushFromFSpVal 48 + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + eqz + jz L3405 + pushFromFSpVal 48 + pushFromPSpVal 0 + syscall 1, 160 ; trap_target_set_obj (2 in, 0 out) + jmp L3405 +L3405: + pushFromFSpVal 68 + syscall 2, 43 ; trap_attack_get_reflect_vector (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromFSpVal 68 + syscall 2, 13 ; trap_attack_free (1 in, 0 out) + pushImm 0 + popToSpVal 68 + pushFromPSp 16 + ret +L3429: + popToSp 0 + pushFromPSpVal 224 + pushImmf 30 + gosub 4, L2491 + pushFromPSpVal 228 + pushImmf 40 + pushImmf 0 + pushImmf 40 + pushImmf 0 + gosub 4, L2500 + pushFromPSpVal 112 + pushImmf 0.174533 + gosub 4, L2554 + pushFromPSpVal 112 + pushImmf 0.087266 + gosub 4, L2563 + pushFromPSpVal 112 + pushImmf 0.523599 + gosub 4, L2572 + pushFromPSpVal 112 + pushImmf 50 + gosub 4, L3140 + pushFromPSpVal 112 + pushImmf 4 + gosub 4, L3538 + pushFromPSpVal 112 + pushFromPSpVal 80 + gosub 4, L3558 + pushFromPSpVal 112 + pushFromFSpVal 48 + pushImm 1 + gosub 4, L3573 + pushFromFSpVal 68 + pushImm 0 + sub + neqz + jz L3525 + pushFromFSpVal 68 + pushImmf 80 + pushImmf 0 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + jmp L3525 +L3525: + pushFromFSpVal 272 + jz L3537 + pushFromPSpVal 112 + pushFromPSpVal 96 + gosub 4, L3596 + jmp L3537 +L3537: + ret +L3538: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 72 + pushFromFSp 0 + pushFromFSpVal 72 + gosub 4, L3117 + pushImm 0 + popToSpVal 92 + ret +L3558: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 16 + pushFromPSpVal 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + ret +L3573: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + popToSpVal 64 + pushFromFSp 4 + jz L3595 + pushFromFSp 0 + pushFromFSpVal 72 + gosub 8, L3117 + jmp L3595 +L3595: + ret +L3596: + popToSp 4 + popToSp 0 + pushImm 1 + popToSpVal 100 + pushFromFSp 4 + memcpyToSpVal 16, 48 + ret +L3611: + popToSp 0 + pushFromPSp 4 + pushImmf 0 + gosub 4, L2491 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 4, L4317 + pushFromFSp 0 + pushFromPSpVal 80 + gosub 4, L4475 +L3632: + pushFromFSpVal 64 + pushImm 0 + sub + eqz + dup + jnz L3647 + pushFromFSpVal 64 + syscall 0, 50 ; trap_effect_is_active (1 in, 1 out) + neqzv +L3647: + jz L3810 + pushFromFSpVal 68 + pushImm 0 + sub + neqz + jz L3704 + pushFromFSpVal 68 + syscall 2, 29 ; trap_attack_is_hit_bg (1 in, 1 out) + dup + jnz L3670 + pushFromFSpVal 68 + syscall 2, 39 ; trap_attack_is_reflect (1 in, 1 out) + neqzv +L3670: + dup + jnz L3685 + pushFromFSpVal 260 + eqz + dup + jz L3684 + pushFromFSpVal 68 + syscall 2, 14 ; trap_attack_is_hit (1 in, 1 out) + eqzv +L3684: + neqzv +L3685: + jz L3702 + pushImm 1 + jz L3698 + pushFromFSp 0 + gosub 4, L3811 + jmp L3698 +L3698: + jmp L3810 +L3700: + jmp L3702 +L3702: + jmp L3704 +L3704: + pushFromPSpVal 112 + pushFromPSpVal 32 + gosub 4, L3834 + pushFromPSpVal 32 + pushFromPSpVal 112 + pushImm 16 + add + pushFromPSpVal 228 + gosub 4, L4312 + syscall 0, 45 ; trap_vector_addf (3 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 32 + gosub 4, L4317 + pushFromFSp 0 + pushFromPSpVal 112 + pushImm 16 + add + gosub 4, L4475 + halt + pushFromPSpVal 228 + gosub 4, L4508 + pushFromPSp 4 + gosub 4, L4549 + jz L3757 + pushFromFSp 0 + gosub 4, L4612 + jmp L3757 +L3757: + pushFromPSpVal 224 + gosub 4, L4549 + jz L3808 + pushFromFSpVal 64 + pushImm 0 + sub + eqz + jz L3776 + jmp L3810 +L3774: + jmp L3776 +L3776: + pushFromFSpVal 64 + pushImmf 8 + gosub 4, L4583 + pushFromPSp 4 + pushImmf 8 + gosub 4, L2491 + pushImmf 8 + pushImmf 0 + subf + infoezf + jz L3806 + pushFromFSp 0 + gosub 4, L4612 + jmp L3806 +L3806: + jmp L3808 +L3808: + jmp L3632 +L3810: + ret +L3811: + popToSp 0 + pushFromFSpVal 64 + pushImm 0 + sub + neqz + jz L3833 + pushFromFSpVal 64 + syscall 0, 51 ; trap_effect_kill (1 in, 0 out) + pushImm 0 + popToSpVal 64 + jmp L3833 +L3833: + ret +L3834: + popToSp 4 + popToSp 0 + pushImmf 100000 + popToSpVal 76 + pushFromFSpVal 88 + jz L3936 + pushFromFSp 0 + gosub 12, L3971 + jz L3893 + pushFromFSpVal 64 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPSpVal 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 4 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromFSp 4 + pushFromPSp 16 + gosub 12, L3989 + jmp L3934 +L3893: + pushFromFSpVal 100 + jz L3930 + pushFromPSpVal 48 + pushFromPSpVal 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 4 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromFSp 4 + pushFromPSp 16 + gosub 12, L3989 + jmp L3934 +L3930: + pushFromFSp 0 + gosub 12, L4222 +L3934: + jmp L3970 +L3936: + pushFromFSpVal 72 + pushImmf 0 + subf + supzf + jz L3970 + pushFromFSpVal 72 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSpVal 72 + pushFromFSpVal 72 + pushImmf 0 + subf + infoezf + jz L3968 + pushImm 1 + popToSpVal 88 + jmp L3968 +L3968: + jmp L3970 +L3970: + ret +L3971: + popToSp 0 + pushFromFSpVal 64 + pushImm 0 + sub + neqz + dup + jz L3988 + pushFromFSpVal 64 + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + eqzv +L3988: + ret +L3989: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L4116 + pushFromFSpVal 68 + subf + infzf + jz L4013 + pushFromFSp 0 + gosub 8, L4222 + jmp L4115 +L4013: + pushFromFSpVal 104 + jz L4092 + pushFromFSp 0 + gosub 8, L4252 + pushImmf 0 + subf + supzf + jz L4090 + pushFromPSpVal 16 + pushFromFSp 4 + syscall 0, 21 ; trap_vector_get_rot_xz (2 in, 1 out) + popToSp 12 + pushFromFSp 12 + syscall 0, 23 ; trap_absf (1 in, 1 out) + pushFromFSp 0 + gosub 8, L4252 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + subf + supzf + jz L4074 + pushFromFSp 12 + pushFromFSp 12 + syscall 0, 23 ; trap_absf (1 in, 1 out) + divf + popToSp 12 + pushFromFSp 12 + pushFromFSp 0 + gosub 8, L4252 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + mulf + popToSp 12 + jmp L4074 +L4074: + pushFromPSpVal 16 + pushFromFSp 12 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + memcpyToSpVal 16, 16 + jmp L4090 +L4090: + jmp L4102 +L4092: + pushFromPSpVal 16 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L4252 + syscall 0, 46 ; trap_vector_homing (3 in, 0 out) +L4102: + pushFromFSpVal 8 + pushFromFSpVal 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + pushFromFSpVal 0 + gosub 8, L4257 + popToSpVal 8 +L4115: + ret +L4116: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 12, L3971 + jz L4165 + pushFromFSp 4 + memcpyToSp 16, 16 + pushFromFSpVal 96 + jz L4155 + pushFromPSp 16 + pushImm 4 + add + pushFromFSpVal 64 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + fetchValue 4 + memcpy 0 + jmp L4155 +L4155: + pushFromFSpVal 64 + pushFromPSp 16 + syscall 6, 9 ; trap_target_dist (2 in, 1 out) + popToSpVal 76 + jmp L4219 +L4165: + pushFromFSpVal 100 + jz L4219 + pushFromPSpVal 48 + pushFromPSpVal 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 4 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromFSpVal 96 + jz L4208 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + memcpy 0 + jmp L4208 +L4208: + pushFromPSp 16 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + pushFromFSpVal 80 + subf + popToSpVal 76 + jmp L4219 +L4219: + pushFromFSpVal 76 + ret +L4222: + popToSp 0 + pushImm 0 + popToSpVal 88 + pushImm 1 + popToSpVal 92 + pushFromFSpVal 84 + pushImmf 0 + subf + supoezf + jz L4251 + pushFromFSp 0 + pushFromFSpVal 84 + gosub 4, L3538 + jmp L4251 +L4251: + ret +L4252: + popToSp 0 + pushFromFSpVal 8 + ret +L4257: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + pushFromFSp 4 + addf + popToSp 8 + pushFromFSp 4 + pushImmf 0 + subf + infzf + jz L4295 + pushFromFSp 8 + pushFromFSp 0 + subf + infzf + jz L4293 + pushFromFSp 0 + popToSp 8 + jmp L4293 +L4293: + jmp L4309 +L4295: + pushFromFSp 8 + pushFromFSp 0 + subf + supzf + jz L4309 + pushFromFSp 0 + popToSp 8 + jmp L4309 +L4309: + pushFromFSp 8 + ret +L4312: + popToSp 0 + pushFromFSpVal 8 + ret +L4317: + popToSp 4 + popToSp 0 + pushFromFSpVal 264 + jz L4397 + pushFromFSp 4 + memcpyToSp 16, 64 + pushFromPSp 64 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -200 + addf + memcpy 0 + pushFromFSp 4 + memcpyToSp 16, 48 + pushFromPSp 48 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 10000 + addf + memcpy 0 + pushFromPSp 16 + pushFromPSp 64 + pushFromPSp 48 + pushImm 65540 + syscall 6, 51 ; trap_bghit_check_line (4 in, 1 out) + jz L4390 + pushFromPSp 16 + syscall 6, 54 ; trap_bghit_get_cross_pos (1 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 80 + jmp L4395 +L4390: + pushFromFSp 4 + memcpyToSp 16, 80 +L4395: + jmp L4402 +L4397: + pushFromFSp 4 + memcpyToSp 16, 80 +L4402: + pushFromPSp 80 + memcpyToSpVal 16, 32 + pushFromFSpVal 64 + pushImm 0 + sub + neqz + jz L4424 + pushFromFSpVal 64 + pushFromPSp 80 + syscall 0, 38 ; trap_effect_set_pos (2 in, 0 out) + jmp L4424 +L4424: + pushFromFSpVal 68 + pushImm 0 + sub + neqz + jz L4474 + pushFromFSpVal 252 + pushImmf 0 + subf + supzf + jz L4466 + pushFromFSpVal 68 + pushFromPSpVal 32 + pushFromPSp 80 + syscall 2, 19 ; trap_attack_set_line (3 in, 0 out) + pushFromPSp 80 + pushImm 4 + add + dup + fetchValue 0 + pushFromFSpVal 252 + negf + addf + memcpy 0 + jmp L4472 +L4466: + pushFromFSpVal 68 + pushFromPSp 80 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) +L4472: + jmp L4474 +L4474: + ret +L4475: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 80 + pushFromFSpVal 64 + pushImm 0 + sub + neqz + jz L4501 + pushFromFSpVal 64 + pushFromFSp 4 + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + jmp L4501 +L4501: + pushFromPSpVal 112 + pushFromFSp 4 + gosub 4, L3558 + ret +L4508: + popToSp 0 + pushFromFSpVal 12 + pushImmf 0 + subf + infoezf + jz L4525 + pushFromFSp 0 + gosub 4, L4533 + jmp L4532 +L4525: + pushFromFSpVal 12 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSpVal 12 +L4532: + ret +L4533: + popToSp 0 + pushFromFSpVal 8 + pushFromFSpVal 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + pushFromFSpVal 0 + gosub 4, L4257 + popToSpVal 8 + ret +L4549: + popToSp 0 + pushImm 0 + popToSp 4 + pushFromFSpVal 0 + pushImmf 0 + subf + supzf + jz L4580 + pushFromFSpVal 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSpVal 0 + pushFromFSp 0 + gosub 4, L2619 + popToSp 4 + jmp L4580 +L4580: + pushFromFSp 4 + ret +L4583: + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushImmf 0 + subf + supoezf + jz L4607 + pushFromFSp 0 + pushFromFSp 4 + pushImm 0 + syscall 0, 52 ; trap_effect_fadeout (3 in, 0 out) + jmp L4611 +L4607: + pushFromFSp 0 + syscall 0, 44 ; trap_effect_loop_end (1 in, 0 out) +L4611: + ret +L4612: + popToSp 0 + pushFromFSpVal 68 + pushImm 0 + sub + neqz + jz L4634 + pushFromFSpVal 68 + syscall 2, 13 ; trap_attack_free (1 in, 0 out) + pushImm 0 + popToSpVal 68 + jmp L4634 +L4634: + ret +L4635: + popToSp 0 + pushFromFSp 0 + gosub 4, L4646 + pushFromFSp 0 + gosub 4, L818 + ret +L4646: + popToSp 0 + pushFromFSp 0 + gosub 4, L3811 + pushFromFSp 0 + gosub 4, L4612 + ret +L4657: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L829 + popToSp 12 + pushFromFSp 12 + gosub 8, L4680 + pushFromFSp 12 + ret +L4680: + popToSp 0 + pushFromPSpVal 80 + pushImmf 1 + gosub 4, L719 + pushFromPSpVal 96 + pushImmf 1 + gosub 4, L719 + pushFromPSpVal 112 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 200 + pushImmf 0 + gosub 4, L3024 + pushFromPSpVal 224 + pushImmf 0 + gosub 4, L2491 + pushFromPSpVal 228 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 0 + gosub 4, L2500 + pushImm 0 + popToSpVal 244 + pushImm -1 + popToSpVal 248 + pushImmf 0 + popToSpVal 252 + pushImm 0 + popToSpVal 256 + pushImm 0 + popToSpVal 260 + pushImm 0 + popToSpVal 264 + pushImm 0 + popToSpVal 268 + pushImm 0 + popToSpVal 272 + pushImm 0 + popToSpVal 276 + pushImm 0 + memcpyToSpVal 0, 280 + pushImm 0 + popToSpVal 280 + ret +L4795: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + gosub 8, L4680 + pushFromFSp 8 + memcpyToSpVal 16, 80 + pushFromFSp 4 + popToSpVal 244 + pushImm 0 + popToSpVal 256 + pushImm 0 + popToSpVal 268 + pushImm 0 + popToSpVal 276 + pushImm 0 + memcpyToSpVal 0, 280 + ret +L4836: + popToSp 0 + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 1 + gosub 12, L326 + pushFromFSp 0 + pushImm 16385 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + ret +L4874: + popToSp 4 + popToSp 0 + pushFromPSpVal 160 + pushImm 2258 + gosub 4, L4922 + pushFromPSpVal 160 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L4921 + pushFromPSpVal 160 + pushFromFSp 4 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) + pushFromPSpVal 160 + pushFromFSp 4 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + jmp L4921 +L4921: + ret +L4922: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + syscall 1, 0 ; trap_sysobj_appear (1 in, 1 out) + gosub 4, L284 + ret +L4935: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L4968 + eqz + jz L4965 + pushFromFSp 0 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + gosub 8, L1036 + drop + jmp L4965 +L4965: + pushFromFSpVal 132 + ret +L4968: + popToSp 4 + popToSp 0 + pushFromFSp 4 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + pushFromFSpVal 132 + sub + neqz + ret +OBJ_ANMATR_EFFECT: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 4 + dup + pushImm 25 + sub + jz L4998 + jmp L5122 +L4998: + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 1 + pushImmf 1 + gosub 12, L326 + pushFromPSp 16 + pushImmf -1.047198 + syscall 0, 68 ; trap_vector_rotx (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 8 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + fetchValue 12 + pushImmf 1.570796 + addf + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 8 + pushFromFSp 0 + pushFromPSp 16 + gosub 12, L5150 + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 1 + pushImmf 1 + gosub 12, L326 + pushFromPSp 16 + pushImmf 1.047198 + syscall 0, 68 ; trap_vector_rotx (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 8 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + fetchValue 12 + pushImmf -1.570796 + addf + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 8 + pushFromFSp 0 + pushFromPSp 16 + gosub 12, L5150 + jmp L5148 +L5122: + dup + pushImm 44 + sub + jz L5131 + jmp L5148 +L5131: + pushFromPWp W1072 + fetchValue 160 + eqz + jz L5146 + pushFromFSp 8 + pushFromFSp 0 + gosub 12, L5882 + jmp L5146 +L5146: + jmp L5148 +L5148: + drop + ret +L5150: + popToSp 0 + popToSp 4 + popToSp 8 + pushImm 96 + pushImm L5177 + pushFromFSp 8 + pushFromFSp 4 + gosub 8, L5842 + popToSp 12 + pushFromFSp 12 + pushFromFSp 0 + gosub 8, L5872 + ret +D5177: +L5177: + popToSp 0 + pushFromFSp 0 + gosub 4, L3007 + pushFromFSp 0 + gosub 4, L5192 + pushFromFSp 0 + gosub 4, L4635 + ret +L5192: + popToSp 0 + pushFromPSp 36 + pushImmf 0 + gosub 44, L2491 + pushFromPSpVal 0 + pushImm 1979 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSpVal 68 + pushFromFSpVal 68 + pushImmf 70 + pushImmf 0 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromPSpVal 0 + pushImm 26 + pushImm 0 + pushImm 0 + syscall 1, 21 ; trap_obj_effect_start (4 in, 1 out) + popToSpVal 64 + pushFromPSpVal 80 + fetchValue 4 + pushImmf 0 + subf + supzf + jz L5280 + pushFromPSpVal 72 + pushImmf 50 + gosub 44, L2491 + pushFromPSp 48 + pushImmf 0 + pushImmf 0.008727 + pushImmf 0.07854 + pushImmf 100 + pushImmf 0 + gosub 44, L3024 + jmp L5306 +L5280: + pushFromPSpVal 72 + pushImmf 20 + gosub 44, L2491 + pushFromPSp 48 + pushImmf 0.07854 + pushImmf 0.008727 + pushImmf 0.094248 + pushImmf 100 + pushImmf 0 + gosub 44, L3024 +L5306: + pushFromPSp 48 + pushFromFSpVal 48 + pushImm 1 + gosub 44, L3573 + pushFromPSp 48 + pushFromPSpVal 80 + gosub 44, L3558 + pushFromPSp 48 + pushFromFSp 0 + gosub 44, L5580 + memcpyToSp 16, 160 + pushFromPSp 160 + gosub 48, L5687 + pushFromPSp 40 + pushImmf 0 + gosub 44, L2476 + pushImmf 40 + popToSp 32 + pushFromFSpVal 48 + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + jz L5416 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 160 + pushFromPSp 160 + pushFromPSpVal 32 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 176 + pushFromPSp 176 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + pushImmf 800 + divf + pushImmf 1 + subf + pushImmf 0 + pushImmf 1 + gosub 44, L5499 + popToSp 32 + pushImmf 20 + pushImmf 1 + pushFromFSp 32 + subf + mulf + pushImmf 40 + pushFromFSp 32 + mulf + addf + popToSp 32 + jmp L5416 +L5416: + pushFromFSpVal 64 + syscall 0, 50 ; trap_effect_is_active (1 in, 1 out) + jz L5489 + pushFromPSp 48 + pushFromPSpVal 32 + gosub 44, L3834 + pushFromPSpVal 32 + pushFromPSp 48 + pushImm 16 + add + pushFromFSp 32 + syscall 0, 45 ; trap_vector_addf (3 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 32 + gosub 44, L5536 + halt + pushFromPSp 36 + gosub 44, L4549 + drop + pushFromPSpVal 72 + gosub 44, L4549 + jz L5462 + jmp L5489 +L5460: + jmp L5462 +L5462: + pushFromPSp 40 + gosub 44, L4549 + jz L5487 + pushFromPSp 48 + pushFromFSp 0 + gosub 44, L5580 + memcpyToSp 16, 160 + pushFromPSp 160 + gosub 48, L5687 + pushFromPSp 40 + gosub 44, L2629 + jmp L5487 +L5487: + jmp L5416 +L5489: + pushFromPSpVal 0 + pushFromPSpVal 32 + pushImm -1 + gosub 44, L5697 + ret +L5499: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + pushFromFSp 4 + subf + infzf + jz L5519 + pushFromFSp 4 + popToSp 8 + jmp L5533 +L5519: + pushFromFSp 0 + pushFromFSp 8 + subf + infzf + jz L5533 + pushFromFSp 0 + popToSp 8 + jmp L5533 +L5533: + pushFromFSp 8 + ret +L5536: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 32 + pushFromFSpVal 64 + pushImm 0 + sub + neqz + jz L5562 + pushFromFSpVal 64 + pushFromFSp 4 + syscall 0, 38 ; trap_effect_set_pos (2 in, 0 out) + jmp L5562 +L5562: + pushFromFSpVal 68 + pushImm 0 + sub + neqz + jz L5579 + pushFromFSpVal 68 + pushFromFSp 4 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + jmp L5579 +L5579: + ret +L5580: + popToSp 0 + pushImmf 0 + pushImmf 0 + gosub 12, L5644 + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + pushImmf 0 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + memcpy 0 + pushImmf 1 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + pushImmf 0.5 + subf + infzf + jz L5641 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -1 + mulf + memcpy 0 + jmp L5641 +L5641: + pushFromPSp 16 + ret +L5644: + popToSp 0 + popToSp 4 + pushFromPSp 16 + pushFromFSp 4 + pushFromFSp 0 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + pushImmf 0 + pushImmf 0 + pushImmf 0 + gosub 12, L326 + pushFromPSp 16 + pushImmf 6.283185 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + ret +L5687: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 32 + ret +L5697: + popToSp 0 + popToSp 4 + popToSp 8 + pushImm 68 + pushImm L5724 + pushFromFSp 8 + gosub 8, L829 + popToSp 12 + pushFromFSp 12 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L5826 + ret +L5724: + popToSp 0 + pushFromFSp 0 + gosub 4, L396 + pushFromFSp 0 + gosub 4, L5739 + pushFromFSp 0 + gosub 4, L818 + ret +L5739: + popToSp 0 + pushImm 27 + pushImm 0 + sub + msbi + jz L5773 + pushFromPSpVal 0 + pushImm 27 + pushFromFSp 0 + pushImm 32 + add + pushImm 1 + pushImm 0 + syscall 1, 22 ; trap_obj_effect_start_pos (5 in, 1 out) + drop + jmp L5773 +L5773: + pushImmf 16 + gosub 4, L1226 + pushFromPSpVal 0 + pushImm 1980 + pushFromFSpVal 64 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImmf 320 + pushImmf 320 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromFSp 4 + pushFromFSp 0 + pushImm 32 + add + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 4 + pushImmf 90 + pushImmf 320 + pushImmf 320 + syscall 2, 62 ; trap_attack_set_time (4 in, 0 out) + ret +L5826: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + memcpyToSpVal 16, 32 + pushFromFSp 4 + popToSpVal 64 + ret +L5842: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + gosub 8, L829 + popToSp 16 + pushFromFSp 16 + pushImm 16 + add + pushFromFSp 0 + memcpy 0 + pushFromFSp 16 + ret +L5872: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 80 + ret +L5882: + popToSp 0 + popToSp 4 + pushImm 68 + pushImm L5914 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L5842 + popToSp 8 + pushFromFSp 8 + pushImm 64 + add + pushFromFSp 4 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + memcpy 0 + ret +D5914: +L5914: + popToSp 0 + pushFromFSp 0 + gosub 4, L396 + pushFromFSp 0 + gosub 4, L5929 + pushFromFSp 0 + gosub 4, L818 + ret +L5929: + popToSp 0 + pushFromPSp 4 + pushImmf 120 + gosub 8, L2476 + pushFromPSp 4 + pushImmf 0 + gosub 8, L2491 +L5945: + pushFromPSpVal 0 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + dup + jz L5965 + pushFromPSpVal 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushFromFSpVal 64 + sub + eqz + eqzv +L5965: + jz L6042 + pushFromPSpVal 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L5979 + jmp L6042 +L5977: + jmp L5979 +L5979: + pushFromPSpVal 0 + pushImm 1 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L6039 + pushFromPSp 4 + gosub 8, L2619 + jz L6032 + pushImm 0 + popToSp 12 + pushImm 8 +L6002: + dup + pushFromFSp 12 + sub + info + jnz L6025 + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L6043 + pushFromFSp 12 + pushImm 1 + add + popToSp 12 + jmp L6002 +L6025: + drop + pushFromPSp 4 + gosub 8, L2629 + jmp L6032 +L6032: + pushFromPSp 4 + gosub 8, L4549 + drop + jmp L6039 +L6039: + halt + jmp L5945 +L6042: + ret +L6043: + popToSp 4 + popToSp 0 + pushFromPSp 16 + pushImmf 1 + pushImmf 0 + pushImmf 0 + pushImmf 0 + gosub 12, L326 + pushFromPSpVal 0 + pushImm 127 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromPSpVal 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf 0.5 + gosub 16, L6113 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSpVal 0 + pushFromPSpVal 32 + pushFromPSp 16 + gosub 12, L6149 + ret +L6113: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 8 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSp 4 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 8 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + ret +L6149: + popToSp 0 + popToSp 4 + popToSp 8 + pushImm 176 + pushImm L6176 + pushFromFSp 8 + gosub 8, L829 + popToSp 12 + pushFromFSp 12 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L6959 + ret +L6176: + popToSp 0 + pushFromFSp 0 + gosub 4, L6191 + pushFromFSp 0 + gosub 4, L6241 + pushFromFSp 0 + gosub 4, L6903 + ret +L6191: + popToSp 0 + pushFromFSp 0 + gosub 4, L6198 + ret +L6198: + popToSp 0 + pushFromFSp 0 + gosub 4, L396 + pushFromPSpVal 32 + memcpyToSpVal 16, 96 + pushFromPSpVal 32 + memcpyToSpVal 16, 112 + pushFromPSpVal 64 + memcpyToSpVal 16, 80 + pushFromPSpVal 148 + gosub 4, L475 + pushFromPSpVal 152 + gosub 4, L6233 + pushImm 0 + popToSpVal 164 + ret +L6233: + popToSp 0 + pushImm 0 + popToSpVal 0 + ret +L6241: + popToSp 0 + pushFromFSp 0 + pushImmf 0.25 + pushImmf 0.5 + gosub 40, L6448 + pushFromFSp 0 + pushImm 1021 + pushImmf 120 + gosub 40, L6518 + pushFromFSpVal 160 + jz L6279 + pushFromFSp 0 + pushImm 635 + pushImmf 600 + gosub 40, L6613 + jmp L6279 +L6279: + pushFromPSpVal 128 + pushImmf 0 + pushImmf 70 + gosub 40, L6686 + pushFromPSp 32 + pushImmf 0.017453 + pushImmf 0.005236 + pushImmf 0.10472 + pushImmf 200 + pushImmf 2 + gosub 40, L3024 + pushFromPSp 32 + pushFromFSpVal 48 + pushImm 1 + gosub 40, L3573 + pushFromPSp 32 + pushFromPSpVal 64 + gosub 40, L3558 + pushImmf 0 + pushImmf 300 + gosub 40, L5644 + memcpyToSp 16, 144 + pushFromPSp 144 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf -100 + pushImmf 50 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + memcpy 0 + pushFromPSp 32 + pushFromPSp 16 + gosub 40, L5687 + pushFromPSpVal 140 + pushImmf 35 + pushImmf 70 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + gosub 40, L2491 +L6372: + pushFromPSpVal 140 + gosub 40, L2619 + eqz + jz L6424 + pushFromPSp 32 + pushFromPSpVal 32 + gosub 40, L3834 + pushFromPSpVal 128 + gosub 40, L6701 + drop + pushFromPSp 32 + pushImm 16 + add + memcpyToSpVal 16, 64 + pushFromFSp 0 + gosub 40, L6714 + pushFromFSp 0 + pushImmf 600 + gosub 40, L6649 + pushFromPSpVal 148 + pushFromPSpVal 64 + gosub 40, L751 + halt + pushFromPSpVal 140 + gosub 40, L4549 + drop + jmp L6372 +L6424: + pushFromPSpVal 152 + gosub 40, L6816 + pushFromPSpVal 148 + pushImm 1 + gosub 40, L6836 + pushImmf 60 + gosub 40, L1226 + pushFromPSpVal 148 + pushImmf 12 + gosub 40, L6873 + ret +L6448: + popToSp 4 + popToSp 8 + popToSp 0 + pushImmf 1 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + popToSp 12 + pushImm 10 + popToSp 16 + pushFromFSp 12 + pushFromFSp 8 + subf + supzf + jz L6506 + pushFromFSp 12 + pushImmf 1 + pushFromFSp 4 + subf + subf + infzf + jz L6496 + pushFromFSp 16 + pushImm 1 + add + popToSp 16 + jmp L6504 +L6496: + pushFromFSp 16 + pushImm 2 + add + popToSp 16 +L6504: + jmp L6506 +L6506: + pushFromPSpVal 148 + pushFromPSpVal 0 + pushFromFSp 16 + pushImm 0 + gosub 8, L483 + ret +L6518: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromPSpVal 152 + pushFromPSpVal 0 + pushFromFSp 8 + pushImm -1 + pushImm 0 + gosub 8, L6548 + pushFromPSpVal 152 + pushFromFSp 4 + pushImmf 0 + gosub 8, L6590 + ret +L6548: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + pushFromFSp 0 + gosub 8, L6580 + eqz + jz L6579 + pushFromFSp 16 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSpVal 0 + jmp L6579 +L6579: + ret +L6580: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + ret +L6590: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + gosub 8, L6580 + jz L6612 + pushFromFSpVal 0 + pushFromFSp 8 + pushFromFSp 4 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + jmp L6612 +L6612: + ret +L6613: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromPSpVal 152 + gosub 8, L6580 + jz L6648 + pushFromPSpVal 152 + fetchValue 0 + pushFromFSp 0 + pushFromFSp 8 + pushFromFSp 4 + pushImmf 0 + syscall 2, 51 ; trap_attack_set_rc (5 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + gosub 8, L6649 + jmp L6648 +L6648: + ret +L6649: + popToSp 4 + popToSp 0 + pushFromPSpVal 152 + gosub 12, L6580 + jz L6685 + pushFromPSpVal 64 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + pushFromFSp 4 + syscall 0, 35 ; method_vector_scale (2 in, 0 out) + pushFromPSpVal 152 + fetchValue 0 + pushFromPSp 16 + syscall 7, 14 ; trap_attack_set_reaction_offset (2 in, 0 out) + jmp L6685 +L6685: + ret +L6686: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + popToSpVal 0 + pushFromFSp 4 + popToSpVal 4 + ret +L6701: + popToSp 0 + pushFromFSpVal 0 + pushFromFSpVal 4 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + popToSpVal 8 + pushFromFSpVal 8 + ret +L6714: + popToSp 0 + pushFromPSpVal 64 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromFSpVal 164 + eqz + jz L6758 + pushFromPSp 16 + pushFromPSpVal 80 + syscall 0, 91 ; trap_vector_inner_prodcut (2 in, 1 out) + pushImmf 0 + subf + infzf + jz L6756 + pushFromPSpVal 32 + memcpyToSpVal 16, 112 + pushImm 1 + popToSpVal 164 + jmp L6756 +L6756: + jmp L6758 +L6758: + pushFromPSpVal 32 + pushFromPSpVal 64 + pushFromPSpVal 128 + fetchValue 8 + syscall 0, 45 ; trap_vector_addf (3 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 32 + gosub 12, L6775 + ret +L6775: + popToSp 4 + popToSp 0 + pushFromFSp 4 + memcpyToSpVal 16, 32 + pushFromPSpVal 148 + pushFromFSp 4 + gosub 4, L629 + pushFromPSpVal 152 + pushFromFSp 4 + gosub 4, L6797 + ret +L6797: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 4, L6580 + jz L6815 + pushFromFSpVal 0 + pushFromFSp 4 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + jmp L6815 +L6815: + ret +L6816: + popToSp 0 + pushFromFSp 0 + gosub 4, L6580 + jz L6835 + pushFromFSpVal 0 + syscall 2, 13 ; trap_attack_free (1 in, 0 out) + pushImm 0 + popToSpVal 0 + jmp L6835 +L6835: + ret +L6836: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 4, L6855 + jz L6854 + pushFromFSpVal 0 + pushFromFSp 4 + syscall 0, 66 ; trap_effect_pause (2 in, 0 out) + jmp L6854 +L6854: + ret +L6855: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + dup + jz L6872 + pushFromFSpVal 0 + syscall 0, 50 ; trap_effect_is_active (1 in, 1 out) + eqzv +L6872: + ret +L6873: + popToSp 4 + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + jz L6902 + pushFromFSpVal 0 + pushFromFSp 4 + pushImm 1 + syscall 0, 52 ; trap_effect_fadeout (3 in, 0 out) + pushImm 0 + popToSpVal 0 + jmp L6902 +L6902: + ret +L6903: + popToSp 0 + pushFromFSp 0 + gosub 4, L6914 + pushFromFSp 0 + gosub 4, L6948 + ret +L6914: + popToSp 0 + pushFromPSpVal 148 + gosub 4, L6925 + pushFromPSpVal 152 + gosub 4, L6816 + ret +L6925: + popToSp 0 + pushFromFSpVal 0 + pushImm 0 + sub + neqz + jz L6947 + pushFromFSpVal 0 + syscall 0, 85 ; trap_effect_loop_end_kill (1 in, 0 out) + pushImm 0 + popToSpVal 0 + jmp L6947 +L6947: + ret +L6948: + popToSp 0 + pushFromFSp 0 + gosub 4, L6914 + pushFromFSp 0 + gosub 4, L818 + ret +L6959: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + memcpyToSpVal 16, 32 + pushFromFSp 4 + memcpyToSpVal 16, 64 + pushFromPSpVal 64 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + ret +OBJ_ATTACK: + popToSp 0 + popToSp 4 + pushFromFSp 0 + syscall 2, 25 ; trap_attack_get_param_id (1 in, 1 out) + dup + pushImm 1143 + sub + jz L6998 + jmp L7006 +L6998: + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L7008 + jmp L7006 +L7006: + drop + ret +L7008: + popToSp 0 + popToSp 4 + pushFromFSp 4 + syscall 1, 225 ; trap_obj_is_star (1 in, 1 out) + eqz + jz L7029 + pushFromPWp W176 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L7030 + jmp L7029 +L7029: + ret +L7030: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 271 + sub + eqz + jz L7075 + pushImmf 1 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + pushImmf 0.95 + subf + infzf + jz L7068 + pushImm 270 + popToSp 12 + jmp L7073 +L7068: + pushImm 271 + popToSp 12 +L7073: + jmp L7099 +L7075: + pushImmf 1 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + pushImmf 0.95 + subf + infzf + jz L7094 + pushImm 271 + popToSp 12 + jmp L7099 +L7094: + pushImm 270 + popToSp 12 +L7099: + pushFromFSp 0 + pushFromFSp 8 + pushFromFSp 12 + pushImmf 0 + gosub 8, L1036 + drop + pushFromFSp 8 + pushImm L7122 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + ret +D7122: +L7122: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 +L7130: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1393 + eqz + jz L7152 + pushFromFSp 0 + gosub 4, L7248 + jz L7149 + jmp L7152 +L7147: + jmp L7149 +L7149: + halt + jmp L7130 +L7152: + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + jz L7211 + pushFromPWp W176 + pushFromFSp 0 + pushImm 275 + pushImmf 0 + gosub 4, L1036 + popToSp 4 +L7174: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1393 + eqz + jz L7196 + pushFromFSp 0 + gosub 4, L7248 + jz L7193 + jmp L7196 +L7191: + jmp L7193 +L7193: + halt + jmp L7174 +L7196: + pushFromPWp W176 + pushFromFSp 0 + pushImm 272 + pushImmf 0 + gosub 4, L1036 + drop + jmp L7223 +L7211: + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L7223: + gosub 4, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + jz L7247 + pushFromFSp 0 + gosub 4, L7248 + jz L7244 + jmp L7247 +L7242: + jmp L7244 +L7244: + halt + jmp L7223 +L7247: + ret +L7248: + popToSp 0 + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + dup + jz L7264 + pushFromPWp W176 + gosub 4, L7279 + eqzv +L7264: + popToSp 4 + pushFromFSp 4 + jz L7276 + pushFromFSp 0 + gosub 4, L7286 + jmp L7276 +L7276: + pushFromFSp 4 + ret +L7279: + popToSp 0 + pushFromPSpVal 256 + gosub 4, L2619 + ret +L7286: + popToSp 0 + pushFromPAi L29361 ; ___ai crowd_laser_finish (L29361) + syscall 0, 2 ; trap_puts (1 in, 0 out) + syscall 8, 5 ; trap_special_last_xemnus_laser_end (0 in, 0 out) + pushFromPWp W176 + pushFromFSp 0 + pushImm 275 + pushImmf 0 + gosub 4, L1036 + drop + pushFromPWp W176 + pushFromPWp W176 + pushImm 160 + add + pushImm 275 + pushImmf 0 + gosub 4, L1036 + drop + pushFromPWp W176 + pushImm 160 + add + pushImm L7375 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushImmf 360 + popToSp 4 + syscall 1, 354 ; trap_event_layer_off (0 in, 0 out) +L7345: + pushFromFSp 4 + pushImmf 0 + subf + supzf + jz L7364 + halt + pushFromFSp 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 4 + jmp L7345 +L7364: + pushFromPWp W176 + pushFromFSp 0 + gosub 4, L7396 + pushFromFSp 0 + gosub 4, L7548 + ret +L7375: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 +L7383: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1393 + eqz + jz L7395 + halt + jmp L7383 +L7395: + ret +L7396: + popToSp 4 + popToSp 0 + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 4 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L326 + pushFromFSp 4 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 4 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + pushFromPSpVal 160 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + pushImm 263 + pushImmf 0 + gosub 12, L1036 + drop + pushFromFSp 4 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 160 + pushImm 263 + pushImmf 0 + gosub 12, L1036 + drop + pushFromPSpVal 160 + pushFromFSp 4 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromPSpVal 160 + pushImm 7548 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 0 + pushFromPAi L29239 ; ___ai rc_crowd_laser_finish (L29239) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromPAi L29263 ; ___ai camera start 70 (L29263) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushFromFSp 0 + pushFromPAi L29304 ; ___ai 70 (L29304) + syscall 1, 164 ; trap_obj_camera_start_global (2 in, 0 out) + pushFromFSp 4 + pushImm 0 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 4 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + pushFromPSpVal 160 + pushImm 0 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromPSpVal 160 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + ret +L7548: + popToSp 0 + pushFromFSp 0 + pushImm 0 + gosub 12, L1627 + memcpyToSp 16, 36 + pushFromPSp 36 + pushImm 1 + syscall 6, 65 ; trap_obj_set_scissoring (2 in, 0 out) + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 32 + pushFromFSp 0 + pushFromFSp 32 + gosub 12, L7744 + drop + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + jz L7631 + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L326 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromPWp W176 + pushFromPAi L29194 ; ___ai 71 (L29194) + syscall 1, 164 ; trap_obj_camera_start_global (2 in, 0 out) + jmp L7631 +L7631: + pushFromPWp W176 + pushFromFSp 0 + pushImm 273 + pushImmf 0 + gosub 12, L1036 + popToSp 32 + pushFromFSp 0 + pushFromFSp 32 + gosub 12, L7744 + drop + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + jz L7703 + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L326 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromPWp W176 + pushFromPAi L29211 ; ___ai 72 (L29211) + syscall 1, 164 ; trap_obj_camera_start_global (2 in, 0 out) + jmp L7703 +L7703: + pushFromPWp W176 + pushFromFSp 0 + pushImm 274 + pushImmf 0 + gosub 12, L1036 + popToSp 32 + pushFromFSp 0 + pushFromFSp 32 + gosub 12, L7744 + drop + pushFromFSp 0 + pushImm 0 + gosub 12, L1627 + memcpyToSp 16, 36 + pushFromPSp 36 + pushImm 0 + syscall 6, 65 ; trap_obj_set_scissoring (2 in, 0 out) + gosub 12, L1389 + ret +L7744: + popToSp 0 + popToSp 4 +L7748: + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L1393 + eqz + jz L7760 + halt + jmp L7748 +L7760: + pushFromFSp 4 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + ret +REACTION_CALLBACK: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 4 + pushFromPAi L29432 ; ___ai INT (L29432) + syscall 0, 0 ; trap_puti (2 in, 0 out) + pushFromFSp 4 + dup + pushImm 635 + sub + jz L7790 + jmp L7798 +L7790: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L7902 + jmp L7900 +L7798: + dup + pushImm 650 + sub + jz L7807 + jmp L7815 +L7807: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L8683 + jmp L7900 +L7815: + dup + pushImm 651 + sub + jz L7824 + jmp L7832 +L7824: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L9259 + jmp L7900 +L7832: + dup + pushImm 652 + sub + jz L7841 + jmp L7849 +L7841: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L9409 + jmp L7900 +L7849: + dup + pushImm 653 + sub + jz L7858 + jmp L7866 +L7858: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L9480 + jmp L7900 +L7866: + dup + pushImm 654 + sub + jz L7875 + jmp L7883 +L7875: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L9492 + jmp L7900 +L7883: + dup + pushImm 665 + sub + jz L7892 + jmp L7900 +L7892: + pushFromFSp 8 + pushFromFSp 0 + gosub 8, L9749 + jmp L7900 +L7900: + drop + ret +L7902: + popToSp 0 + popToSp 4 + pushFromPSp 16 + pushImm 13 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + pushFromPWp W864 + pushFromFSp 0 + gosub 12, L273 + memcpyToSp 16, 32 + pushFromPSp 32 + gosub 16, L1021 + pushFromPWp W864 + pushFromFSp 4 + pushFromFSp 0 + gosub 12, L7957 + pushFromPSp 16 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L7956 + pushFromPSp 16 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + pushFromPWp W864 + pushFromPSp 16 + pushFromFSp 0 + gosub 12, L7957 + jmp L7956 +L7956: + ret +L7957: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 4 + syscall 1, 166 ; trap_target_attack (1 in, 1 out) + syscall 2, 52 ; trap_attack_rc_receiver (1 in, 1 out) + popToSp 48 + pushFromFSp 48 + pushImm 32 + add + pushFromFSp 48 + pushImm 96 + add + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 48 + pushImm 96 + add + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSp 32 + syscall 0, 42 ; trap_vector_atan_xz (1 in, 1 out) + pushFromPSp 16 + syscall 0, 42 ; trap_vector_atan_xz (1 in, 1 out) + subf + syscall 0, 43 ; trap_fixrad (1 in, 1 out) + pushImmf 0 + subf + infzf + jz L8081 + pushFromFSp 0 + pushFromFSp 8 + pushImm 253 + pushImmf 0 + gosub 16, L1036 + drop + pushFromFSp 8 + pushImm L8139 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + jmp L8104 +L8081: + pushFromFSp 0 + pushFromFSp 8 + pushImm 252 + pushImmf 0 + gosub 16, L1036 + drop + pushFromFSp 8 + pushImm L8656 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) +L8104: + pushFromFSp 48 + pushImm 96 + add + memcpyToSpVal 16, 160 + pushFromFSp 48 + pushImm 112 + add + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSpVal 16, 176 + ret +D8139: +L8139: + popToSp 0 + pushFromPWp W864 + pushFromFSp 0 + pushImmf 0.785398 + gosub 4, L8166 + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + eqz + jz L8165 + pushFromFSp 0 + gosub 4, L8465 + jmp L8165 +L8165: + ret +L8166: + popToSp 4 + popToSp 8 + popToSp 0 + pushImmf 80 + popToSpVal 192 + pushFromFSp 8 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 56 + pushFromFSp 8 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushImm 0 + popToSp 60 + pushImmf 30 + popToSp 52 +L8205: + pushFromFSp 8 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + pushFromFSp 56 + sub + eqz + jz L8443 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSpVal 160 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 4 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSp 32 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + popToSp 48 + pushImmf 200 + pushFromFSp 48 + pushImmf 200 + subf + pushImmf 0.4 + mulf + addf + popToSp 48 + pushFromPSp 32 + pushFromFSp 48 + syscall 0, 35 ; method_vector_scale (2 in, 0 out) + pushFromPSp 32 + pushFromPSpVal 160 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 8 + pushFromPSp 16 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSpVal 192 + syscall 1, 89 ; trap_obj_move_request (3 in, 0 out) + pushFromFSp 60 + eqz + dup + jz L8340 + pushFromFSp 48 + pushImmf 400 + subf + infzf + eqzv +L8340: + jz L8375 + pushFromPSpVal 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSpVal 16, 160 + pushFromPSpVal 160 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 30 + subf + memcpy 0 + pushImm 0 + popToSp 60 + jmp L8375 +L8375: + pushFromFSp 48 + pushImmf 250 + subf + infzf + jz L8403 + pushFromFSpVal 192 + pushImmf 0.8 + mulf + popToSpVal 192 + pushFromFSpVal 192 + pushImmf 5 + gosub 20, L8444 + popToSpVal 192 + jmp L8411 +L8403: + pushFromFSpVal 192 + pushImmf 0.95 + mulf + popToSpVal 192 +L8411: + pushFromFSp 8 + pushFromPSpVal 160 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + halt + pushFromFSp 52 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 52 + jmp L8205 +L8443: + ret +L8444: + popToSp 0 + popToSp 4 + pushFromFSp 4 + pushFromFSp 0 + subf + infzf + jz L8462 + pushFromFSp 0 + popToSp 4 + jmp L8462 +L8462: + pushFromFSp 4 + ret +L8465: + popToSp 0 + halt + pushFromPWp W864 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + fetchValue 4 + popToSp 32 + pushFromPSp 16 + pushImm 12 + add + pushFromPSp 16 + gosub 12, L8634 + memcpy 0 + pushFromFSp 32 + pushImmf -100 + subf + supzf + dup + jz L8533 + pushFromPSp 16 + fetchValue 12 + pushImmf 1000 + subf + infzf + eqzv +L8533: + jz L8633 + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 181 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) +L8575: + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 181 + sub + eqz + jz L8620 + pushFromFSp 0 + pushFromPWp W864 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) + halt + jmp L8575 +L8620: + pushFromFSp 0 + syscall 1, 95 ; trap_obj_fly_to_jump (1 in, 0 out) + pushFromFSp 0 + pushImm 3 + syscall 1, 115 ; trap_obj_set_jump_motion (2 in, 0 out) + jmp L8633 +L8633: + ret +L8634: + popToSp 0 + pushFromFSp 0 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSp 16 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + ret +L8656: + popToSp 0 + pushFromPWp W864 + pushFromFSp 0 + pushImmf -0.785398 + gosub 4, L8166 + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + eqz + jz L8682 + pushFromFSp 0 + gosub 4, L8465 + jmp L8682 +L8682: + ret +L8683: + popToSp 0 + popToSp 4 + pushFromPWp W176 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L8696 + ret +L8696: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSpVal 260 + pushImm 1 + add + popToSpVal 260 +L8710: + pushFromFSp 0 + gosub 8, L8808 + popToSp 12 + pushFromFSp 12 + pushFromFSp 8 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + sub + neqz + jz L8732 + jmp L8734 +D8730: +L8730: + jmp L8732 +L8732: + jmp L8710 +L8734: + pushFromFSp 0 + pushFromFSp 8 + pushFromFSp 12 + pushImmf 0 + gosub 8, L1036 + drop + pushFromFSp 12 + pushImm 254 + sub + neqz + jz L8785 + pushFromPSpVal 240 + pushFromFSp 0 + pushFromPSpVal 240 + fetchValue 0 + pushFromPSpVal 240 + pushImm 8 + add + fetchValue 0 + gosub 8, L8856 + memcpy 0 + pushFromPSpVal 240 + pushImm 4 + add + pushFromFSp 12 + memcpy 0 + jmp L8785 +L8785: + pushFromFSp 8 + pushImm L8947 + pushFromPSpVal 240 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromFSp 8 + pushFromFSp 8 + syscall 1, 98 ; trap_obj_step_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) + ret +L8808: + popToSp 0 + pushImm 3 + syscall 0, 16 ; trap_random_get (1 in, 1 out) + dup + pushImm 0 + sub + jz L8824 + jmp L8831 +L8824: + pushImm 254 + popToSp 4 + jmp L8852 +L8831: + dup + pushImm 1 + sub + jz L8840 + jmp L8847 +L8840: + pushImm 255 + popToSp 4 + jmp L8852 +L8847: + pushImm 256 + popToSp 4 +L8852: + drop + pushFromFSp 4 + ret +L8856: + popToSp 4 + popToSp 8 + popToSp 0 + pushImm 0 + popToSp 16 + pushImm 0 + popToSp 12 + pushImm 4 +L8875: + dup + pushFromFSp 12 + sub + info + jnz L8932 + pushFromFSp 12 + pushFromFSp 8 + sub + neqz + dup + jz L8898 + pushFromFSp 12 + pushFromFSp 4 + sub + neqz + eqzv +L8898: + jz L8922 + pushFromPSp 20 + pushFromFSp 16 + pushImm 4 + mul + add + pushFromFSp 12 + memcpy 0 + pushFromFSp 16 + pushImm 1 + add + popToSp 16 + jmp L8922 +L8922: + pushFromFSp 12 + pushImm 1 + add + popToSp 12 + jmp L8875 +L8932: + drop + pushFromPSp 20 + pushFromFSp 16 + syscall 0, 16 ; trap_random_get (1 in, 1 out) + pushImm 4 + mul + add + fetchValue 0 + ret +D8947: +L8947: + popToSp 4 + popToSp 0 + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromPWp W176 + pushFromFSp 4 + fetchValue 0 + gosub 12, L9074 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPWp W176 + pushFromFSp 0 + gosub 12, L9088 + popToSp 32 +L8991: + pushFromFSp 0 + gosub 12, L7248 + jz L9001 + jmp L9041 +L8999: + jmp L9001 +L9001: + pushFromFSp 0 + pushFromPSp 16 + pushFromFSp 32 + pushImm 1 + pushImm 0 + gosub 12, L9138 + pushFromFSp 32 + subf + infzf + jz L9025 + jmp L9041 +L9023: + jmp L9025 +L9025: + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) + halt + jmp L8991 +L9041: + pushFromFSp 0 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + jz L9073 + pushFromFSp 0 + gosub 12, L7248 + jz L9057 + jmp L9073 +L9055: + jmp L9057 +L9057: + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) + halt + jmp L9041 +L9073: + ret +L9074: + popToSp 4 + popToSp 0 + pushFromPSpVal 176 + pushFromFSp 4 + pushImm 16 + mul + add + ret +L9088: + popToSp 4 + popToSp 0 + pushFromFSp 4 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + dup + pushImm 255 + sub + jz L9107 + jmp L9114 +L9107: + pushImmf 10 + popToSp 8 + jmp L9134 +L9114: + dup + pushImm 256 + sub + jz L9123 + jmp L9130 +L9123: + pushImmf 30 + popToSp 8 + jmp L9134 +L9130: + pushImmf 0 + drop +L9134: + drop + pushFromFSp 8 + ret +L9138: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + pushFromFSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 32 + pushFromFSp 8 + jz L9185 + pushFromPSp 32 + pushImm 4 + add + pushImmf 0 + memcpy 0 + jmp L9185 +L9185: + pushFromPSp 32 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 32 + pushImm 12 + add + dup + fetchValue 0 + pushImmf 1 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + divf + mulf + memcpy 0 + pushFromPSp 32 + fetchValue 12 + pushFromFSp 12 + subf + supzf + jz L9228 + pushFromPSp 32 + pushImm 12 + add + pushFromFSp 12 + memcpy 0 + jmp L9228 +L9228: + pushFromFSp 4 + jz L9244 + pushFromFSp 0 + pushFromPSp 32 + pushFromPSp 32 + fetchValue 12 + syscall 1, 89 ; trap_obj_move_request (3 in, 0 out) + jmp L9254 +L9244: + pushFromFSp 0 + pushFromPSp 32 + pushFromPSp 32 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) +L9254: + pushFromPSp 32 + fetchValue 12 + ret +L9259: + popToSp 0 + popToSp 4 + pushFromPWp W176 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L9272 + ret +L9272: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSpVal 260 + pushImm 1 + add + popToSpVal 260 +L9286: + pushFromFSp 0 + pushImm 128 + add + pushFromFSp 0 + gosub 8, L8808 + memcpy 0 + pushFromFSp 0 + fetchValue 128 + pushFromPSpVal 160 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + sub + neqz + jz L9315 + jmp L9317 +D9313: +L9313: + jmp L9315 +L9315: + jmp L9286 +L9317: + pushFromFSp 0 + pushFromPSpVal 160 + pushFromFSp 0 + fetchValue 128 + pushImmf 0 + gosub 8, L1036 + drop + pushFromFSp 0 + fetchValue 128 + pushImm 254 + sub + neqz + jz L9382 + pushFromPSpVal 240 + pushImm 8 + add + pushFromFSp 0 + pushFromPSpVal 240 + pushImm 8 + add + fetchValue 0 + pushFromPSpVal 240 + fetchValue 0 + gosub 8, L8856 + memcpy 0 + pushFromPSpVal 240 + pushImm 8 + add + pushImm 4 + add + pushFromFSp 0 + fetchValue 128 + memcpy 0 + jmp L9382 +L9382: + pushFromPSpVal 160 + pushImm L8947 + pushFromPSpVal 240 + pushImm 8 + add + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 160 + pushFromPSpVal 160 + syscall 1, 98 ; trap_obj_step_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) + ret +L9409: + popToSp 0 + popToSp 4 + pushFromPWp W448 + pushImm 197 + gosub 4, L9421 + ret +L9421: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 4, L9443 + jz L9442 + pushFromFSp 4 + popToSpVal 232 + pushImm 2 + popToSpVal 228 + jmp L9442 +L9442: + ret +L9443: + popToSp 0 + pushFromFSp 0 + gosub 4, L1919 + dup + jnz L9464 + pushFromPSpVal 144 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 3 + sub + eqz + neqzv +L9464: + dup + jnz L9479 + pushFromPSpVal 144 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 4 + sub + eqz + neqzv +L9479: + ret +L9480: + popToSp 0 + popToSp 4 + pushFromPWp W448 + pushImm 198 + gosub 4, L9421 + ret +L9492: + popToSp 0 + popToSp 4 + pushFromPWp W688 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L9505 + ret +L9505: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + gosub 12, L9685 + pushFromPSpVal 0 + pushImm 9 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + pushFromPSpVal 0 + syscall 10, 7 ; trap_obj_reset_special_command (1 in, 0 out) + pushFromFSp 8 + pushImm L9702 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromFSp 8 + syscall 1, 161 ; trap_obj_is_attach (1 in, 1 out) + jz L9548 + pushFromFSp 8 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + jmp L9548 +L9548: + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 8 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 8 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 8 + syscall 1, 134 ; trap_obj_show (1 in, 0 out) + pushFromFSp 8 + pushImm 8 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 8 + pushImm 3 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromPSpVal 0 + syscall 1, 134 ; trap_obj_show (1 in, 0 out) + pushFromPSpVal 144 + pushFromFSp 8 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromPSpVal 144 + pushImm L9727 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 144 + pushImm 260 + pushImmf 0 + gosub 12, L1036 + drop + pushFromPSpVal 144 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + pushFromFSp 8 + pushImm 260 + pushImmf 0 + gosub 12, L1036 + drop + pushFromFSp 8 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + pushFromPAi L29149 ; ___ai rc_invitation_to_dark2_finish (L29149) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29173 ; ___ai 51 (L29173) + pushFromFSp 8 + syscall 1, 157 ; trap_obj_camera_start (3 in, 0 out) + ret +L9685: + popToSp 0 + pushFromPSpVal 160 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L9701 + pushFromPSpVal 160 + syscall 1, 28 ; trap_obj_leave (1 in, 0 out) + jmp L9701 +L9701: + ret +D9702: +L9702: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 +L9710: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1393 + eqz + jz L9722 + halt + jmp L9710 +L9722: + pushFromFSp 0 + syscall 1, 74 ; trap_obj_idle (1 in, 0 out) + ret +L9727: + popToSp 0 + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + ret +L9736: + popToSp 0 +L9738: + pushFromFSp 0 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L9748 + halt + jmp L9738 +L9748: + ret +L9749: + popToSp 0 + popToSp 4 + pushFromFSp 4 + pushImm 6 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromPWp W0 + pushImm 160 + add + pushImm 1 + memcpy 0 + ret +OBJ_DAMAGE: + popToSp 0 + pushFromPWp W1072 + pushFromFSp 0 + gosub 4, L9780 + ret +L9780: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 4, L10026 + jz L9852 + pushFromFSpVal 160 + dup + jz L9807 + pushFromFSp 4 + syscall 2, 64 ; trap_damage_orig_reaction (1 in, 1 out) + syscall 2, 91 ; trap_damage_get_reaction_type (1 in, 1 out) + pushImm 4 + sub + eqz + eqzv +L9807: + jz L9850 + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.5 + subf + infzf + jz L9832 + pushFromFSp 0 + pushImm 4 + pushImm 1 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + jmp L9842 +L9832: + pushFromFSp 0 + pushImm 5 + pushImm 1 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) +L9842: + pushFromFSp 0 + pushFromPAi L28982 ; ___ai reborn (L28982) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L9850 +L9850: + jmp L10025 +L9852: + pushFromFSpVal 172 + jz L9862 + pushFromFSp 4 + syscall 2, 15 ; trap_damage_exec_reaction (1 in, 0 out) + jmp L10025 +L9862: + pushFromFSp 0 + gosub 4, L10049 + jz L9911 + pushFromFSp 0 + pushImm 16 + add + pushImm -1 + memcpy 0 + pushFromFSp 0 + pushImm 20 + add + pushImm -1 + memcpy 0 + pushImm 1 + popToSpVal 176 + pushFromFSp 0 + pushImm 24 + add + pushImm 1 + memcpy 0 + pushFromFSp 0 + pushFromPAi L29312 ; ___ai mode_battle_boss (L29312) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L10025 +L9911: + pushFromFSp 0 + gosub 4, L10103 + jz L9955 + pushFromFSp 0 + pushImm 16 + add + pushImm -1 + memcpy 0 + pushFromFSp 0 + pushImm 20 + add + pushImm -1 + memcpy 0 + pushFromFSp 0 + pushImm 24 + add + pushImm 2 + memcpy 0 + pushFromFSp 0 + pushFromPAi L29312 ; ___ai mode_battle_boss (L29312) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L10025 +L9955: + pushFromFSp 4 + syscall 2, 8 ; trap_damage_is_reaction (1 in, 1 out) + jz L10025 + pushFromFSp 0 + gosub 4, L10034 + jz L10023 + pushFromFSp 4 + syscall 2, 64 ; trap_damage_orig_reaction (1 in, 1 out) + syscall 2, 91 ; trap_damage_get_reaction_type (1 in, 1 out) + pushImm 4 + sub + eqz + jz L10015 + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.5 + subf + infzf + jz L10003 + pushFromFSp 0 + pushImm 4 + pushImm 1 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + jmp L10013 +L10003: + pushFromFSp 0 + pushImm 5 + pushImm 1 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) +L10013: + jmp L10015 +L10015: + pushFromFSp 0 + pushFromPAi L29312 ; ___ai mode_battle_boss (L29312) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L10023 +L10023: + jmp L10025 +L10025: + ret +L10026: + popToSp 0 + pushFromFSp 0 + gosub 4, L10034 + eqz + ret +L10034: + popToSp 0 + pushFromFSp 0 + pushImm 1 + syscall 1, 39 ; trap_obj_unit_arg (2 in, 1 out) + pushImm 1 + sub + eqz + ret +L10049: + popToSp 0 + pushImm 0 + popToSp 4 + pushFromFSp 0 + fetchValue 24 + pushImm 0 + sub + eqz + dup + jz L10079 + pushFromFSp 0 + gosub 4, L10091 + pushFromFSp 0 + fetchValue 64 + subf + infzf + eqzv +L10079: + jz L10088 + pushImm 1 + popToSp 4 + jmp L10088 +L10088: + pushFromFSp 4 + ret +L10091: + popToSp 0 + pushFromFSp 0 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 0 + syscall 1, 230 ; trap_sheet_hp_rate (2 in, 1 out) + ret +L10103: + popToSp 0 + pushImm 0 + popToSp 4 + pushFromFSp 0 + fetchValue 24 + pushImm 1 + sub + eqz + dup + jz L10133 + pushFromFSp 0 + gosub 4, L10091 + pushFromFSp 0 + fetchValue 68 + subf + infzf + eqzv +L10133: + jz L10142 + pushImm 1 + popToSp 4 + jmp L10142 +L10142: + pushFromFSp 4 + ret +L10145: + popToSp 0 + pushImmf 1 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + ret +OBJ_MAIN: + pushFromPWp W1072 + gosub 4, L10162 + ret +L10162: + popToSp 0 + pushFromFSp 0 + pushImm 2 + gosub 4, L10295 + pushFromFSp 0 + gosub 4, L10026 + eqz + jz L10209 + pushFromFSp 0 + pushImm 24 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + pushImm 33 + syscall 1, 85 ; trap_obj_texanm_start (2 in, 0 out) + pushImmf 120 + gosub 4, L1226 + pushFromFSp 0 + pushImm 33 + syscall 1, 86 ; trap_obj_texanm_stop (2 in, 0 out) + jmp L10209 +L10209: + gosub 4, L10310 + pushFromFSp 0 + gosub 4, L10318 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 9 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + pushFromFSp 0 + gosub 4, L10034 + jz L10233 + jmp L10233 +L10233: + pushFromFSpVal 160 + jz L10261 + pushFromFSp 0 + pushImm 1 + syscall 1, 212 ; trap_obj_pattern_disable (2 in, 0 out) + pushFromFSp 0 + syscall 1, 10 ; trap_obj_is_act_exec (1 in, 1 out) + eqz + jz L10259 + pushFromFSp 0 + pushFromPAi L29493 ; ___ai mode_battle_dark (L29493) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L10259 +L10259: + jmp L10291 +L10261: + pushFromFSp 0 + pushImm 1 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + pushFromFSp 0 + syscall 1, 10 ; trap_obj_is_act_exec (1 in, 1 out) + eqz + dup + jz L10281 + pushFromFSp 0 + gosub 4, L10034 + eqzv +L10281: + jz L10291 + pushFromFSp 0 + pushFromPAi L29312 ; ___ai mode_battle_boss (L29312) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L10291 +L10291: + halt + jmp L10233 +D10294: +L10294: + ret +L10295: + popToSp 4 + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + pushFromFSp 0 + pushFromFSp 4 + syscall 1, 121 ; trap_target_search (3 in, 0 out) + ret +L10310: + syscall 1, 34 ; trap_event_is_exec (0 in, 1 out) + jz L10317 + halt + jmp L10310 +L10317: + ret +L10318: + popToSp 0 + pushFromPSp 16 + pushImm 2257 + syscall 1, 114 ; trap_obj_search_by_entry (2 in, 0 out) + pushFromPSp 16 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + eqz + jz L10346 + pushFromPSp 16 + pushFromFSp 0 + fetchValue 4 + gosub 12, L284 + jmp L10346 +L10346: + pushFromPSp 16 + ret +OBJ_INIT: + popToSp 0 + pushFromPWp W1072 + pushFromFSp 0 + gosub 4, L10358 + ret +L10358: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L13178 + pushFromFSp 0 + pushFromPWp W1264 + gosub 12, L13256 + pushFromFSp 0 + pushFromPWp W1264 + syscall 1, 7 ; trap_obj_set_act_table (2 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29422 ; ___ai appear (L29422) + pushImm 100 + pushImm L13296 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L28973 ; ___ai leave (L28973) + pushImm 196908 + pushImm L13528 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29321 ; ___ai freeze (L29321) + pushImm 100 + pushImm L13584 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29260 ; ___ai event (L29260) + pushImm 196908 + pushImm L13601 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L13606 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29146 ; ___ai idle (L29146) + pushImm 100 + pushImm L13621 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29299 ; ___ai idle_time (L29299) + pushImm 100 + pushImm L13895 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29325 ; ___ai footwork (L29325) + pushImm 100 + pushImm L13951 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29271 ; ___ai mode_battle (L29271) + pushImm 100 + pushImm L13967 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29349 ; ___ai mode_revenge (L29349) + pushImm 100 + pushImm L14215 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29312 ; ___ai mode_battle_boss (L29312) + pushImm 100 + pushImm L14257 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29389 ; ___ai mode_revenge_boss (L29389) + pushImm 100 + pushImm L14323 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29330 ; ___ai talk (L29330) + pushImm 100 + pushImm L14389 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29443 ; ___ai near_wait (L29443) + pushImm 100 + pushImm L14713 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29506 ; ___ai near (L29506) + pushImm 100 + pushImm L14791 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29011 ; ___ai dead (L29011) + pushImm 196908 + pushImm L14891 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29481 ; ___ai rc_air_fight (L29481) + pushImm 100 + pushImm L14986 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29529 ; ___ai rc_crowd_laser (L29529) + pushImm 100 + pushImm L15070 + pushImm L15249 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29277 ; ___ai laser_faint (L29277) + pushImm 100 + pushImm L15298 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L15329 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29239 ; ___ai rc_crowd_laser_finish (L29239) + pushImm 100 + pushImm L15337 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29226 ; ___ai atk_crowd_laser (L29226) + pushImm 300 + pushImm L15693 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29111 ; ___ai atk_dark (L29111) + pushImm 65836 + pushImm L16398 + pushImm L16465 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29014 ; ___ai rc_invitation_to_dark2 (L29014) + pushImm 100 + pushImm L16472 + pushImm L17184 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L17201 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29149 ; ___ai rc_invitation_to_dark2_finish (L29149) + pushImm 65636 + pushImm L17232 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L17354 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29078 ; ___ai stop (L29078) + pushImm 100 + pushImm L17445 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29426 ; ___ai walk_start (L29426) + pushImm 100 + pushImm L17487 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29283 ; ___ai walk (L29283) + pushImm 100 + pushImm L17539 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L17581 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29255 ; ___ai run_start (L29255) + pushImm 100 + pushImm L17621 + pushImm L17974 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29381 ; ___ai run (L29381) + pushImm 100 + pushImm L17981 + pushImm L18106 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L18113 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29286 ; ___ai run2_start (L29286) + pushImm 100 + pushImm L18158 + pushImm L18243 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29051 ; ___ai run2 (L29051) + pushImm 100 + pushImm L18250 + pushImm L18329 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L18336 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29343 ; ___ai run3_start (L29343) + pushImm 100 + pushImm L18381 + pushImm L19124 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29175 ; ___ai run3 (L29175) + pushImm 100 + pushImm L19131 + pushImm L19210 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L19217 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29141 ; ___ai run_near (L29141) + pushImm 100 + pushImm L19262 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29185 ; ___ai atk_normal_laser1 (L29185) + pushImm 200 + pushImm L19296 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29561 ; ___ai atk_normal_laser1_child (L29561) + pushImm 200 + pushImm L20744 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29202 ; ___ai atk_normal_laser2 (L29202) + pushImm 200 + pushImm L20863 + pushImm L21741 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29060 ; ___ai atk_normal_laser3 (L29060) + pushImm 200 + pushImm L21751 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29093 ; ___ai atk_normal_laser3_child (L29093) + pushImm 200 + pushImm L22677 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29121 ; ___ai atk_normal_laser3_finish (L29121) + pushImm 200 + pushImm L23452 + pushImm L23781 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L23796 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29032 ; ___ai atk_throw (L29032) + pushImm 200 + pushImm L23807 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29039 ; ___ai atk_dance1 (L29039) + pushImm 200 + pushImm L24248 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L28986 ; ___ai atk_dance2 (L28986) + pushImm 200 + pushImm L24565 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29456 ; ___ai atk_dance4 (L29456) + pushImm 200 + pushImm L24575 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L28976 ; ___ai atk_dance5 (L28976) + pushImm 200 + pushImm L24585 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29105 ; ___ai atk_dance6 (L29105) + pushImm 200 + pushImm L24595 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29054 ; ___ai atk_dance7 (L29054) + pushImm 200 + pushImm L24605 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29081 ; ___ai atk_dance8 (L29081) + pushImm 200 + pushImm L24615 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29026 ; ___ai atk_dance9 (L29026) + pushImm 200 + pushImm L24625 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L28965 ; ___ai atk_dance_start (L28965) + pushImm 200 + pushImm L24635 + pushImm L24668 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L24678 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29164 ; ___ai atk_dance_finish (L29164) + pushImm 200 + pushImm L24688 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L28997 ; ___ai atk_dance_wait (L28997) + pushImm 200 + pushImm L24720 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29045 ; ___ai atk_dance_l (L29045) + pushImm 200 + pushImm L24768 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29306 ; ___ai atk_dance_s (L29306) + pushImm 200 + pushImm L24870 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29178 ; ___ai atk_dance_s2 (L29178) + pushImm 200 + pushImm L25043 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm L25094 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L28992 ; ___ai atk_bomb (L28992) + pushImm 200 + pushImm L25139 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29476 ; ___ai idle_wait (L29476) + pushImm 100 + pushImm L25258 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29448 ; ___ai atk_bomb_combo (L29448) + pushImm 200 + pushImm L25284 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29294 ; ___ai mode_bomb (L29294) + pushImm 100 + pushImm L25478 + pushImm L25682 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29383 ; ___ai atk_thorn1 (L29383) + pushImm 200 + pushImm L25689 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29134 ; ___ai atk_air_fight (L29134) + pushImm 200 + pushImm L25853 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29005 ; ___ai atk_shield (L29005) + pushImm 200 + pushImm L26401 + pushImm L26959 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29517 ; ___ai mode_dark_start (L29517) + pushImm 100 + pushImm L26969 + pushImm L27052 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L28982 ; ___ai reborn (L28982) + pushImm 300 + pushImm L27067 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29493 ; ___ai mode_battle_dark (L29493) + pushImm 100 + pushImm L27125 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29525 ; ___ai revenge (L29525) + pushImm 65836 + pushImm L27221 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29333 ; ___ai btl_normal (L29333) + pushImm 100 + pushImm L27371 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29470 ; ___ai rvg_normal (L29470) + pushImm 100 + pushImm L27786 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29356 ; ___ai btl_hard (L29356) + pushImm 100 + pushImm L27865 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29488 ; ___ai rvg_hard (L29488) + pushImm 100 + pushImm L28466 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29408 ; ___ai btl_super_hard (L29408) + pushImm 100 + pushImm L28494 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromPWp W1264 + pushFromPAi L29509 ; ___ai rvg_super_hard (L29509) + pushImm 100 + pushImm L28509 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 6 ; trap_act_table_add (12 in, 0 out) + pushFromFSp 0 + pushImm 1 + pushImm 1 + pushImm 0 + syscall 1, 87 ; trap_obj_effect_start_bind (4 in, 1 out) + drop + pushFromFSp 0 + pushImm 2 + pushImm 1 + pushImm 0 + syscall 1, 87 ; trap_obj_effect_start_bind (4 in, 1 out) + drop + pushFromFSp 0 + pushImmf 75 + syscall 2, 76 ; trap_enemy_set_karma_limit (2 in, 0 out) + pushFromFSp 0 + pushImm 239 + pushImm -1 + pushImmf 400 + pushImmf 1000 + pushImmf 8 + pushImm -1 + pushImmf 0.6 + pushImmf 0.04 + gosub 12, L28512 + pushImm 0 + popToSpVal 148 + pushImm 0 + popToSpVal 144 + pushImm 0 + popToSpVal 160 + pushImm 0 + popToSpVal 168 + pushFromPSpVal 164 + gosub 12, L475 + pushImm 0 + popToSpVal 172 + pushFromFSp 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 12 + add + pushImmf 0 + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 0 + pushImm 12 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + pushFromFSp 0 + pushImm 1 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + pushFromFSp 0 + pushImm 3 + pushImm 3 + pushImm 5 + gosub 12, L28827 + popToSpVal 156 + pushFromFSp 0 + pushImm 4 + pushImm 4 + pushImm 6 + gosub 12, L28827 + popToSpVal 152 + pushFromFSp 0 + gosub 12, L10034 + eqz + jz L13142 + pushFromFSp 0 + pushImm 14 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + pushImm 7 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + jmp L13142 +L13142: + pushFromFSp 0 + pushImm 2 + syscall 1, 39 ; trap_obj_unit_arg (2 in, 1 out) + pushFromPAi L29069 ; ___ai init (L29069) + syscall 0, 0 ; trap_puti (2 in, 0 out) + pushFromFSp 0 + gosub 12, L17392 + pushFromFSp 0 + pushImm 16 + add + pushImm -1 + memcpy 0 + pushImm 0 + popToSpVal 176 + pushImm 1 + popToSpVal 180 + ret +L13178: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L284 + pushImm -1 + popToSpVal 28 + pushImmf 30 + popToSpVal 32 + pushFromPSpVal 72 + gosub 4, L13213 + pushImmf 2000 + popToSpVal 56 + pushImmf 1000 + popToSpVal 60 + ret +L13213: + popToSp 0 + pushImmf 200 + popToSpVal 0 + pushImmf 200 + popToSpVal 4 + pushImmf 0 + popToSpVal 8 + pushImm 2 + popToSpVal 12 + pushImmf 8 + popToSpVal 16 + pushImm 3 + popToSpVal 20 + pushImmf 8 + popToSpVal 24 + pushImm 0 + popToSpVal 32 + ret +L13256: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L13287 + pushFromFSp 0 + pushImm 16 + add + pushImm 0 + memcpy 0 + pushFromFSp 0 + pushImm 20 + add + pushImm 0 + memcpy 0 + ret +L13287: + popToSp 4 + popToSp 0 + pushFromFSp 4 + syscall 1, 5 ; trap_act_table_init (1 in, 0 out) + ret +D13296: +L13296: ;___label for action pushFromPAi L29422 ; ___ai appear + popToSp 0 + pushFromFSp 0 + syscall 1, 110 ; trap_obj_get_appear_way (1 in, 1 out) + dup + pushImm 2 + sub + jz L13318 + dup + pushImm -1 + sub + jz L13318 + jmp L13324 +L13318: + pushFromFSp 0 + gosub 4, L13330 + jmp L13328 +L13324: + pushFromFSp 0 + gosub 4, L13481 +L13328: + drop + ret +L13330: + popToSp 0 + gosub 12, L739 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushImm 4 + popToSp 32 + pushFromFSp 0 + fetchValue 4 + pushImm 44 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + syscall 1, 124 ; trap_obj_is_entry_fly (1 in, 1 out) + dup + jnz L13401 + pushFromFSp 0 + syscall 1, 60 ; trap_obj_is_air (1 in, 1 out) + eqz + neqzv +L13401: + jz L13410 + pushImm 0 + popToSp 32 + jmp L13410 +L13410: + pushFromFSp 0 + fetchValue 4 + pushFromFSpVal 32 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) +L13418: + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L13469 + gosub 12, L739 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) + halt + jmp L13418 +L13469: + pushFromFSp 0 + fetchValue 4 + pushFromFSp 32 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + ret +L13481: + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushFromFSp 0 + pushImm 0 + syscall 1, 67 ; trap_obj_motion_get_length (2 in, 1 out) + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + pushImmf 0 + syscall 1, 61 ; trap_sysobj_motion_frame_start (4 in, 0 out) + pushFromFSp 0 + gosub 4, L13509 + ret +L13509: + popToSp 0 + gosub 4, L10310 +L13513: + syscall 1, 301 ; trap_tutorial_is_open (0 in, 1 out) + jz L13520 + halt + jmp L13513 +L13520: + pushImmf 30 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + gosub 4, L1226 + ret +L13528: ;___label for action pushFromPAi L28973 ; ___ai leave + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 45 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + pushImm 1 + pushImm 1 + pushImm 0 + syscall 1, 87 ; trap_obj_effect_start_bind (4 in, 1 out) + drop + pushFromFSp 0 + pushImm 3 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImmf 30 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushImmf 30 + gosub 4, L1226 + pushFromFSp 0 + syscall 1, 28 ; trap_obj_leave (1 in, 0 out) + gosub 4, L1389 + ret +L13584: ;___label for action pushFromPAi L29321 ; ___ai freeze + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + gosub 4, L1389 + ret +L13601: ;___label for action pushFromPAi L29260 ; ___ai event + popToSp 0 + gosub 4, L1389 + ret +L13606: ;___callback for action pushFromPAi L29260 ; ___ai event + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + ret +L13621: ;___label for action pushFromPAi L29146 ; ___ai idle + popToSp 0 + pushFromFSp 0 + pushImm 0 + pushImm 0 + pushImm -1 + gosub 4, L13637 + ret +L13637: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 0 + gosub 8, L13734 + pushFromFSp 8 + pushImm 3 + sub + neqz + jz L13664 + pushFromFSp 0 + gosub 8, L13763 + jmp L13664 +L13664: + pushFromFSp 0 + fetchValue 4 + pushFromFSp 12 + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L13802 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) +L13678: + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L13711 + halt + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L13864 + jz L13700 + jmp L13711 +L13698: + jmp L13700 +L13700: + pushFromFSp 0 + syscall 2, 5 ; trap_enemy_is_no_control (1 in, 1 out) + jz L13709 + halt + jmp L13700 +L13709: + jmp L13678 +L13711: + pushFromFSp 4 + pushImm 0 + sub + msbi + jz L13733 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 4 + pushImmf 0 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) + jmp L13733 +L13733: + ret +L13734: + popToSp 0 +L13736: + pushFromFSp 0 + syscall 1, 124 ; trap_obj_is_entry_fly (1 in, 1 out) + eqz + dup + jz L13749 + pushFromFSp 0 + syscall 1, 60 ; trap_obj_is_air (1 in, 1 out) + eqzv +L13749: + dup + jnz L13757 + pushFromFSp 0 + syscall 2, 5 ; trap_enemy_is_no_control (1 in, 1 out) + neqzv +L13757: + jz L13762 + halt + jmp L13736 +L13762: + ret +L13763: + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) + ret +L13802: + popToSp 4 + popToSp 0 + pushFromFSp 0 + fetchValue 36 + popToSp 8 + pushFromFSp 4 + dup + pushImm 0 + sub + jz L13823 + jmp L13860 +L13823: + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 2 + sub + neqz + dup + jz L13849 + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 1 + sub + neqz + eqzv +L13849: + jz L13858 + pushImmf 0 + popToSp 8 + jmp L13858 +L13858: + jmp L13860 +L13860: + drop + pushFromFSp 8 + ret +L13864: + popToSp 4 + popToSp 0 + pushImm 0 + popToSp 8 + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushFromFSp 4 + sub + neqz + jz L13892 + pushImm 1 + popToSp 8 + jmp L13892 +L13892: + pushFromFSp 8 + ret +L13895: ;___label for action pushFromPAi L29299 ; ___ai idle_time + popToSp 0 + pushImmf 15 + pushImmf 45 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + popToSp 4 + pushFromFSp 0 + gosub 4, L13734 + pushFromFSp 0 + gosub 4, L13763 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushFromFSp 0 + pushImm 0 + gosub 4, L13802 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) +L13931: + pushFromFSp 4 + pushImmf 0 + subf + supzf + jz L13950 + pushFromFSp 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 4 + halt + jmp L13931 +L13950: + ret +L13951: ;___label for action pushFromPAi L29325 ; ___ai footwork + popToSp 0 + pushFromFSp 0 + pushImm 47 + pushImm 0 + pushImm -1 + gosub 4, L13637 + ret +L13967: ;___label for action pushFromPAi L29271 ; ___ai mode_battle + popToSp 0 + pushFromFSp 0 + gosub 4, L14041 + pushFromFSp 0 + pushImm 0 + gosub 4, L10295 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + gosub 4, L14164 + pushFromFSp 0 + fetchValue 48 + subf + infzf + jz L14014 + pushFromFSp 0 + pushFromPAi L29196 ; ___ai btl_attack (L29196) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14040 +L14014: + pushFromFSp 0 + gosub 4, L14164 + pushFromFSp 0 + fetchValue 52 + subf + infzf + jz L14034 + pushFromFSp 0 + pushFromPAi L29213 ; ___ai btl_short (L29213) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14040 +L14034: + pushFromFSp 0 + pushFromPAi L29218 ; ___ai btl_long (L29218) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L14040: + ret +L14041: + popToSp 0 + pushFromFSp 0 + gosub 4, L14059 + jz L14058 + pushFromFSp 0 + pushFromPAi L28973 ; ___ai leave (L28973) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + halt + jmp L14058 +L14058: + ret +L14059: + popToSp 0 + syscall 1, 206 ; trap_status_is_force_leave (0 in, 1 out) + jz L14074 + pushImm 1 + popToSp 8 + jmp L14129 +L14072: + jmp L14087 +L14074: + syscall 1, 171 ; trap_status_no_leave (0 in, 1 out) + jz L14087 + pushImm 0 + popToSp 8 + jmp L14129 +L14085: + jmp L14087 +L14087: + pushImm 0 + popToSp 8 + pushFromFSp 0 + gosub 8, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + gosub 12, L14132 + popToSp 4 + pushFromFSp 0 + syscall 1, 56 ; method_obj_is_culling (1 in, 1 out) + jz L14121 + pushFromFSp 4 + pushFromFSpVal 60 + subf + supzf + popToSp 8 + jmp L14129 +L14121: + pushFromFSp 4 + pushFromFSpVal 56 + subf + supzf + popToSp 8 +L14129: + pushFromFSp 8 + ret +L14132: + popToSp 4 + popToSp 0 + pushFromFSp 4 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + ret +L14164: + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + popToSp 32 + pushFromFSp 32 + ret +L14215: ;___label for action pushFromPAi L29349 ; ___ai mode_revenge + popToSp 0 + pushFromFSp 0 + pushImm 1 + gosub 4, L10295 + pushFromFSp 0 + gosub 4, L14164 + pushFromFSp 0 + fetchValue 52 + subf + infzf + jz L14244 + pushFromFSp 0 + pushFromPAi L29234 ; ___ai rvg_short (L29234) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14250 +L14244: + pushFromFSp 0 + pushFromPAi L29250 ; ___ai rvg_long (L29250) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L14250: + pushFromFSp 0 + pushFromPAi L29271 ; ___ai mode_battle (L29271) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + ret +L14257: ;___label for action pushFromPAi L29312 ; ___ai mode_battle_boss + popToSp 0 + pushFromFSp 0 + pushImm 2 + gosub 4, L10295 + pushFromFSp 0 + fetchValue 24 + dup + pushImm 0 + sub + jz L14279 + jmp L14287 +L14279: + pushFromFSp 0 + pushFromPAi L29333 ; ___ai btl_normal (L29333) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14321 +L14287: + dup + pushImm 1 + sub + jz L14296 + jmp L14304 +L14296: + pushFromFSp 0 + pushFromPAi L29356 ; ___ai btl_hard (L29356) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14321 +L14304: + dup + pushImm 2 + sub + jz L14313 + jmp L14321 +L14313: + pushFromFSp 0 + pushFromPAi L29408 ; ___ai btl_super_hard (L29408) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14321 +L14321: + drop + ret +L14323: ;___label for action pushFromPAi L29389 ; ___ai mode_revenge_boss + popToSp 0 + pushFromFSp 0 + pushImm 2 + gosub 4, L10295 + pushFromFSp 0 + fetchValue 24 + dup + pushImm 0 + sub + jz L14345 + jmp L14353 +L14345: + pushFromFSp 0 + pushFromPAi L29470 ; ___ai rvg_normal (L29470) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14387 +L14353: + dup + pushImm 1 + sub + jz L14362 + jmp L14370 +L14362: + pushFromFSp 0 + pushFromPAi L29488 ; ___ai rvg_hard (L29488) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14387 +L14370: + dup + pushImm 2 + sub + jz L14379 + jmp L14387 +L14379: + pushFromFSp 0 + pushFromPAi L29509 ; ___ai rvg_super_hard (L29509) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14387 +L14387: + drop + ret +L14389: ;___label for action pushFromPAi L29330 ; ___ai talk + popToSp 0 + pushFromFSp 0 + gosub 4, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSpVal 16 + gosub 12, L14405 + ret +L14405: + popToSp 4 + popToSp 8 + popToSp 0 + pushImm 0 + popToSpVal 20 + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + popToSpVal 24 +L14424: + pushFromFSpVal 20 + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + sub + neqz + jz L14447 + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + popToSpVal 24 + halt + jmp L14424 +L14447: + pushFromFSp 0 + syscall 4, 0 ; ? + pushFromFSp 4 + pushImm 0 + syscall 1, 32 ; trap_message_open (2 in, 1 out) + popToSp 48 + pushFromFSp 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 32 + pushFromFSp 0 + pushFromPSp 32 + pushImm 48 + pushImm 49 + gosub 16, L14571 + pushFromFSp 0 + fetchValue 4 + pushImm 50 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L14524: + pushFromFSp 48 + syscall 1, 48 ; method_message_is_end (1 in, 1 out) + eqz + jz L14534 + halt + jmp L14524 +L14534: + pushFromFSp 48 + syscall 1, 33 ; trap_message_close (1 in, 0 out) + syscall 4, 1 ; ? + pushFromFSp 0 + fetchValue 4 + pushImm 51 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 16, L9736 + pushFromFSp 0 + pushFromPSp 16 + pushImm 48 + pushImm 49 + gosub 16, L14571 + ret +L14571: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 42 ; trap_vector_atan_xz (1 in, 1 out) + popToSp 24 + pushFromFSp 12 + syscall 0, 42 ; trap_vector_atan_xz (1 in, 1 out) + popToSp 20 + pushFromFSp 20 + pushFromFSp 24 + subf + syscall 0, 43 ; trap_fixrad (1 in, 1 out) + popToSp 16 + pushFromFSp 16 + syscall 0, 23 ; trap_absf (1 in, 1 out) + pushImmf 0.349066 + subf + infzf + jz L14622 + jmp L14712 +L14620: + jmp L14655 +L14622: + pushFromFSp 16 + pushImmf 0 + subf + infzf + jz L14644 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 8 + pushImmf 8 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + jmp L14655 +L14644: + pushFromFSp 0 + fetchValue 4 + pushFromFSp 4 + pushImmf 8 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L14655: + pushFromFSp 0 + pushImm -1 + syscall 1, 67 ; trap_obj_motion_get_length (2 in, 1 out) + pushImmf 8 + addf + popToSp 32 + pushImmf 0 + popToSp 28 +L14673: + pushFromFSp 28 + pushFromFSp 32 + subf + infzf + jz L14706 + pushFromFSp 0 + pushFromFSp 24 + pushFromFSp 16 + pushFromFSp 28 + mulf + pushFromFSp 32 + divf + addf + syscall 1, 1 ; trap_obj_set_rot (2 in, 0 out) + pushFromFSp 28 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + addf + popToSp 28 + halt + jmp L14673 +L14706: + pushFromFSp 0 + pushFromFSp 20 + syscall 1, 1 ; trap_obj_set_rot (2 in, 0 out) +L14712: + ret +L14713: ;___label for action pushFromPAi L29443 ; ___ai near_wait + popToSp 0 + pushImmf 0 + popToSp 4 +L14720: + pushFromFSp 0 + gosub 4, L14773 + jz L14752 + pushFromFSp 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + addf + popToSp 4 + pushFromFSp 4 + pushImmf 15 + subf + supoezf + jz L14750 + pushFromFSp 0 + pushFromPAi L29506 ; ___ai near (L29506) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L14750 +L14750: + jmp L14757 +L14752: + pushImmf 0 + popToSp 4 +L14757: + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 8 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) + halt + jmp L14720 +L14772: + ret +L14773: + popToSp 0 + gosub 4, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 145 ; trap_obj_touch_zone (1 in, 1 out) + pushFromFSp 0 + syscall 1, 170 ; trap_obj_unit_group (1 in, 1 out) + sub + eqz + ret +L14791: ;___label for action pushFromPAi L29506 ; ___ai near + popToSp 0 +L14793: + pushFromFSp 0 + gosub 12, L14773 + jz L14881 + gosub 12, L739 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + popToSp 32 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 4 ; trap_obj_wish_dir (2 in, 0 out) + pushFromFSp 32 + pushImmf 200 + subf + infzf + jz L14867 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 8 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) + jmp L14879 +L14867: + pushFromFSp 0 + fetchValue 4 + pushImm 1 + pushImmf 8 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) +L14879: + jmp L14887 +L14881: + pushFromFSp 0 + pushFromPAi L29443 ; ___ai near_wait (L29443) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L14887: + halt + jmp L14793 +L14890: + ret +L14891: ;___label for action pushFromPAi L29011 ; ___ai dead + popToSp 0 + pushFromFSp 0 + pushImm 42 + pushImm 1 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + pushImmf 0 + pushImmf 0 + pushImmf 0 + gosub 4, L14931 + pushImmf 30 + gosub 4, L1226 + pushFromFSp 0 + pushImmf 0.05 + syscall 1, 107 ; trap_obj_motion_speed (2 in, 0 out) + gosub 4, L1389 + ret +L14931: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 4 + popToSp 16 + pushFromPSp 32 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 1 + gosub 16, L326 + pushFromFSp 0 + pushFromPSp 32 + pushFromFSp 16 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 0 + pushImm 40 + add + pushFromFSp 8 + memcpy 0 + pushFromFSp 0 + pushImm 44 + add + pushFromFSp 12 + memcpy 0 + ret +L14986: ;___label for action pushFromPAi L29481 ; ___ai rc_air_fight + popToSp 0 + pushFromFSp 0 + gosub 4, L15046 + pushFromFSp 0 + gosub 4, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 221 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + ret +L15046: + popToSp 0 + pushFromFSp 0 + pushImm 1 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + ret +L15070: ;___label for action pushFromPAi L29529 ; ___ai rc_crowd_laser + popToSp 0 + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L326 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 226 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 120 + gosub 12, L1226 + pushFromFSp 0 + syscall 8, 3 ; trap_special_last_xemnus_laser_start (1 in, 0 out) + pushFromFSp 0 + gosub 12, L10318 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 9 + syscall 1, 212 ; trap_obj_pattern_disable (2 in, 0 out) + pushFromFSp 0 + gosub 12, L10034 + jz L15161 + gosub 12, L15225 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPAi L29078 ; ___ai stop (L29078) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L15172 +L15161: + gosub 12, L15237 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPAi L29078 ; ___ai stop (L29078) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L15172: + pushFromFSp 0 + pushImm 226 + gosub 12, L13864 + eqz + jz L15210 + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L15195 + syscall 8, 6 ; trap_special_last_xemnus_laser_optimize (0 in, 0 out) + jmp L15195 +L15195: + halt + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L15208 + jmp L15210 +L15206: + jmp L15208 +L15208: + jmp L15172 +L15210: + pushImmf 1690 + gosub 12, L1226 + pushFromFSp 0 + pushImm 374067 + syscall 1, 318 ; trap_obj_play_se (2 in, 0 out) + gosub 12, L1389 + ret +L15225: + pushFromPSp 0 + pushImm 1 + syscall 6, 59 ; trap_xemnas_get_obj (1 in, 1 out) + gosub 8, L284 + pushFromPSp 0 + ret +L15237: + pushFromPSp 0 + pushImm 0 + syscall 6, 59 ; trap_xemnas_get_obj (1 in, 1 out) + gosub 8, L284 + pushFromPSp 0 + ret +L15249: ;___callback for action pushFromPAi L29529 ; ___ai rc_crowd_laser + popToSp 0 + pushFromFSp 0 + gosub 4, L15272 + pushFromFSp 0 + gosub 4, L10318 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 9 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + syscall 8, 7 ; trap_special_last_xemnus_laser_optimize_end (0 in, 0 out) + ret +L15272: + popToSp 0 + pushFromFSpVal 168 + pushImm 0 + sub + neqz + jz L15297 + pushFromFSpVal 168 + pushImmf 60 + syscall 1, 184 ; trap_light_fadeout (2 in, 0 out) + pushImm 0 + popToSpVal 168 + jmp L15297 +L15297: + ret +L15298: ;___label for action pushFromPAi L29277 ; ___ai laser_faint + popToSp 0 + pushFromFSp 0 + pushImm 2 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 191 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + pushImm 1 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + gosub 4, L1389 + ret +L15329: ;___callback for action pushFromPAi L29277 ; ___ai laser_faint + popToSp 0 + pushImm 1 + popToSpVal 172 + ret +L15337: ;___label for action pushFromPAi L29239 ; ___ai rc_crowd_laser_finish + popToSp 0 + pushFromFSp 0 + gosub 12, L739 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromFSp 0 + pushImm 9 + syscall 1, 212 ; trap_obj_pattern_disable (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 227 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 228 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 229 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) +L15405: + pushFromFSp 0 + pushImm 229 + gosub 12, L13864 + jz L15417 + halt + jmp L15405 +L15417: + pushFromFSp 0 + pushImm 229 + gosub 12, L13864 + eqz + jz L15494 + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L15463 + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 0 + syscall 1, 228 ; trap_sheet_hp (2 in, 1 out) + pushImm 1 + sub + neg + pushImm 0 + pushImm 0 + syscall 1, 155 ; trap_obj_add_hp (4 in, 1 out) + drop + jmp L15463 +L15463: + pushFromFSp 0 + pushImm 2 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L15479 + pushImmf 60 + syscall 0, 31 ; func_screen_whiteout (1 in, 0 out) + jmp L15479 +L15479: + halt + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L15492 + jmp L15494 +L15490: + jmp L15492 +L15492: + jmp L15417 +L15494: + pushFromFSp 0 + syscall 1, 161 ; trap_obj_is_attach (1 in, 1 out) + jz L15506 + pushFromFSp 0 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + jmp L15506 +L15506: + gosub 12, L739 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + gosub 20, L739 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushImmf 900 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf -800 + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) + pushFromFSp 0 + gosub 12, L739 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromPSp 16 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushImmf 120 + gosub 12, L1226 + syscall 1, 356 ; trap_event_layer_on (0 in, 0 out) + pushImm 0 + syscall 1, 42 ; func_obj_control_off (1 in, 0 out) + pushImm 1 + syscall 1, 42 ; func_obj_control_off (1 in, 0 out) + gosub 12, L739 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 214 ; trap_obj_hook_stop (1 in, 0 out) + gosub 12, L739 + memcpyToSp 16, 32 + pushFromPSp 32 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + gosub 12, L10318 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 214 ; trap_obj_hook_stop (1 in, 0 out) + pushFromFSp 0 + gosub 12, L10318 + memcpyToSp 16, 32 + pushFromPSp 32 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 120 + syscall 0, 32 ; func_screen_whitein (1 in, 0 out) + halt + pushImm 0 + syscall 1, 43 ; func_obj_control_on (1 in, 0 out) + pushImm 1 + syscall 1, 43 ; func_obj_control_on (1 in, 0 out) + pushFromFSp 0 + pushFromPAi L29277 ; ___ai laser_faint (L29277) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + ret +L15693: ;___label for action pushFromPAi L29226 ; ___ai atk_crowd_laser + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushFromFSp 0 + fetchValue 36 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) +L15708: + pushFromPSp 16 + pushImm 13 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + gosub 12, L739 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 225 ; trap_obj_is_star (1 in, 1 out) + eqz + dup + jz L15739 + gosub 16, L739 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + eqz + eqzv +L15739: + dup + jz L15749 + pushFromPSp 16 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + eqzv +L15749: + jz L15807 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushImmf 8 + syscall 0, 32 ; func_screen_whitein (1 in, 0 out) + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 131 ; trap_target_dup (1 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 160 ; trap_target_set_obj (2 in, 0 out) + gosub 12, L739 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 4 + gosub 16, L15811 + pushFromFSp 0 + gosub 12, L16354 + pushFromFSp 4 + syscall 1, 132 ; trap_target_free (1 in, 0 out) + jmp L15810 +L15805: + jmp L15807 +L15807: + halt + jmp L15708 +L15810: + ret +L15811: + popToSp 0 + popToSp 4 + pushFromPWp W176 + pushFromFSp 4 + pushFromFSp 0 + gosub 4, L15824 + ret +L15824: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L273 + memcpyToSp 16, 32 + pushFromPSp 32 + gosub 16, L16033 + pushFromFSp 8 + memcpyToSpVal 16, 144 + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 8 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 8 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L326 + pushFromFSp 8 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 8 + pushImm 262 + pushImmf 0 + gosub 12, L1036 + drop + pushFromFSp 8 + pushImm 0 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 8 + pushImm L16148 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 160 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L15996 + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromPSpVal 160 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromPSpVal 160 + pushImm 0 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushFromPSpVal 160 + pushImm 262 + pushImmf 0 + gosub 12, L1036 + drop + pushFromPSpVal 160 + pushImm L16148 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 160 + pushFromFSp 8 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + jmp L15996 +L15996: + pushFromPSpVal 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 4 + gosub 12, L273 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPAi L29529 ; ___ai rc_crowd_laser (L29529) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29551 ; ___ai 60 (L29551) + syscall 1, 164 ; trap_obj_camera_start_global (2 in, 0 out) + pushImm L16210 + pushFromFSp 0 + syscall 2, 20 ; trap_magic_start_thread (2 in, 1 out) + drop + ret +L16033: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L1021 + pushFromPSpVal 256 + pushImmf 1800 + gosub 12, L2491 + pushImm 0 + popToSpVal 260 + pushFromPSpVal 160 + pushImm 13 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + pushFromPSpVal 240 + pushImm 1 + memcpy 0 + pushFromPSpVal 240 + pushImm 8 + add + pushImm 3 + memcpy 0 + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 100 + pushImmf 1 + gosub 12, L326 + pushImm 0 + popToSp 32 + pushImm 4 +L16102: + dup + pushFromFSp 32 + sub + info + jnz L16146 + pushFromPSpVal 176 + pushFromFSp 32 + pushImm 16 + mul + add + pushFromPSp 16 + memcpy 16 + pushFromPSp 16 + pushImmf 1.570796 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromFSp 32 + pushImm 1 + add + popToSp 32 + jmp L16102 +L16146: + drop + ret +L16148: + popToSp 0 + pushFromFSp 0 + gosub 4, L7375 + pushFromFSp 0 + fetchValue 4 + syscall 1, 309 ; trap_sysobj_is_player (1 in, 1 out) + jz L16181 + pushFromPWp W176 + pushFromFSp 0 + pushImm 272 + pushImmf 0 + gosub 4, L1036 + drop + pushFromFSp 0 + gosub 4, L7375 + jmp L16209 +L16181: + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L16193: + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 0 + sub + eqz + jz L16209 + halt + jmp L16193 +L16209: + ret +L16210: + popToSp 0 + gosub 4, L10310 + syscall 8, 4 ; trap_special_last_xemnus_laser_attack (0 in, 0 out) + pushImm 19572 + syscall 4, 4 ; trap_mission_information (1 in, 0 out) + pushFromFSp 0 + pushFromPAi L29504 ; ___ai 61 (L29504) + syscall 1, 164 ; trap_obj_camera_start_global (2 in, 0 out) + pushFromPSpVal 160 + syscall 1, 161 ; trap_obj_is_attach (1 in, 1 out) + jz L16239 + pushFromPSpVal 160 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + jmp L16239 +L16239: + pushFromPSpVal 144 + pushFromFSp 0 + pushFromPSpVal 240 + fetchValue 0 + gosub 4, L9074 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) + pushFromPSpVal 160 + pushFromFSp 0 + pushFromPSpVal 240 + pushImm 8 + add + fetchValue 0 + gosub 4, L9074 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) +L16277: + gosub 4, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + jz L16353 + pushFromPSpVal 160 + pushImm 4 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + dup + jnz L16310 + pushFromPSpVal 160 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImm 0 + sub + eqz + neqzv +L16310: + jz L16327 + pushImm 1 + pushImm 651 + pushFromPSpVal 0 + pushImm 1 + syscall 1, 165 ; trap_command_override (4 in, 0 out) + jmp L16327 +L16327: + pushImm 0 + pushImm 650 + pushFromPSpVal 0 + pushImm 1 + syscall 1, 165 ; trap_command_override (4 in, 0 out) + halt + pushFromPSpVal 256 + gosub 4, L4549 + jz L16351 + jmp L16353 +L16349: + jmp L16351 +L16351: + jmp L16277 +L16353: + ret +L16354: + popToSp 0 + pushFromFSpVal 168 + pushImm 0 + sub + eqz + jz L16374 + pushImm 0 + syscall 1, 181 ; trap_light_create (1 in, 1 out) + popToSpVal 168 + jmp L16374 +L16374: + pushFromFSpVal 168 + pushImm 1 + syscall 1, 182 ; trap_light_set_flag (2 in, 0 out) + pushFromFSpVal 168 + pushImm 64 + pushImm 64 + pushImm 64 + pushImmf 60 + syscall 1, 183 ; trap_light_set_color (5 in, 0 out) + ret +L16398: ;___label for action pushFromPAi L29111 ; ___ai atk_dark + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 224 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromPSpVal 164 + pushFromFSp 0 + pushImm 48 + pushImm 0 + gosub 4, L483 +L16433: + pushFromFSp 0 + pushImm 224 + gosub 4, L13864 + eqz + jz L16458 + halt + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L16456 + jmp L16458 +L16454: + jmp L16456 +L16456: + jmp L16433 +L16458: + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + ret +L16465: ;___callback for action pushFromPAi L29111 ; ___ai atk_dark + popToSp 0 + pushFromPSpVal 164 + gosub 4, L795 + ret +L16472: ;___label for action pushFromPAi L29014 ; ___ai rc_invitation_to_dark2 + popToSp 0 + pushFromFSp 0 + gosub 4, L16577 + popToSpVal 144 + pushFromFSp 0 + gosub 4, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 16386 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 222 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + pushFromFSp 0 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 225 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromPAi L29223 ; ___ai dark (L29223) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushFromFSp 0 + gosub 4, L16875 + popToSpVal 148 + pushFromFSp 0 + gosub 4, L17131 + pushFromFSp 0 + pushFromPAi L29014 ; ___ai rc_invitation_to_dark2 (L29014) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + pushFromFSp 0 + gosub 4, L10318 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 9 + syscall 1, 212 ; trap_obj_pattern_disable (2 in, 0 out) + gosub 4, L1389 + ret +L16577: + popToSp 0 + pushImm 112 + pushImm L16594 + pushFromFSp 0 + gosub 4, L829 + popToSp 4 + pushFromFSp 4 + ret +L16594: + popToSp 0 + pushFromFSp 0 + gosub 4, L396 + pushFromFSp 0 + gosub 4, L16609 + pushFromFSp 0 + gosub 4, L818 + ret +L16609: + popToSp 0 + pushFromPSpVal 64 + gosub 4, L475 + pushFromPSpVal 68 + gosub 4, L475 + pushFromPSpVal 64 + pushFromPSpVal 0 + pushImm 46 + pushImm 0 + gosub 4, L483 + pushFromPSpVal 68 + pushFromPSpVal 0 + pushImm 47 + pushImm 0 + gosub 4, L483 + pushImm 1 + popToSpVal 96 + pushFromFSp 0 + pushImm 0 + gosub 4, L16707 +L16655: + pushFromFSpVal 96 + jz L16668 + pushFromFSp 0 + pushImm 1 + gosub 4, L16707 + jmp L16655 +L16668: + pushImmf 46 + popToSp 4 +L16673: + pushFromFSp 4 + pushImmf 0 + subf + supzf + jz L16698 + pushFromFSp 0 + pushImm 1 + gosub 4, L16707 + pushFromFSp 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 4 + jmp L16673 +L16698: + pushFromPSpVal 68 + gosub 4, L6925 + pushFromPSpVal 64 + gosub 4, L6925 + ret +L16707: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 16, L16807 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 32 + pushFromFSp 4 + jz L16730 + halt + jmp L16730 +L16730: + pushFromPSpVal 0 + gosub 16, L293 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSpVal 64 + pushFromPSp 16 + gosub 16, L629 + pushFromPSp 16 + pushFromPSp 32 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSpVal 64 + pushFromPSp 16 + gosub 16, L751 + pushFromPSp 16 + pushImmf 1 + pushImmf 1 + pushFromPSp 16 + fetchValue 12 + pushImmf 500 + divf + pushImmf 1 + gosub 16, L326 + pushFromPSpVal 64 + pushFromPSp 16 + gosub 16, L773 + pushFromPSpVal 68 + pushFromPSp 32 + gosub 16, L629 + ret +L16807: + popToSp 0 + pushFromPSp 32 + pushImm 2258 + syscall 1, 114 ; trap_obj_search_by_entry (2 in, 0 out) + pushFromPSp 16 + pushImmf 1 + gosub 16, L719 + pushFromPSp 32 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L16850 + pushFromPSp 32 + pushImm 67 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + jmp L16872 +L16850: + gosub 16, L739 + memcpyToSp 16, 48 + pushFromPSp 48 + pushImm 67 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 +L16872: + pushFromPSp 16 + ret +L16875: + popToSp 0 + pushFromPSp 8 + pushFromFSp 0 + fetchValue 4 + gosub 8, L284 + pushImm 84 + pushImm L16900 + pushFromFSp 0 + gosub 8, L829 + popToSp 4 + pushFromFSp 4 + ret +L16900: + popToSp 0 + pushFromFSp 0 + gosub 4, L16915 + pushFromFSp 0 + gosub 4, L16937 + pushFromFSp 0 + gosub 4, L17112 + ret +L16915: + popToSp 0 + pushFromFSp 0 + gosub 4, L3007 + pushImm 1 + popToSpVal 80 + pushImm 0 + popToSpVal 76 + pushImmf 0 + popToSpVal 72 + ret +L16937: + popToSp 0 + pushImmf 0.01 + popToSp 12 + pushImmf 10 + gosub 8, L1226 +L16949: + pushFromFSpVal 80 + jz L17090 + pushFromFSpVal 72 + pushFromFSp 12 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + addf + popToSpVal 72 + gosub 8, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 0 + syscall 1, 228 ; trap_sheet_hp (2 in, 1 out) + popToSp 8 + pushFromFSpVal 72 + pushImmf 1 + subf + supzf + jz L17016 + pushFromFSpVal 72 + cfti + popToSp 4 + pushFromFSpVal 72 + pushFromFSp 4 + citf + subf + popToSpVal 72 + pushFromFSp 12 + pushImmf 0.002 + addf + pushImmf 0.2 + gosub 8, L17091 + popToSp 12 + jmp L17021 +L17016: + pushImm 0 + popToSp 4 +L17021: + pushFromFSp 4 + pushImm 0 + sub + ipos + jz L17087 + pushFromFSp 8 + pushFromFSp 4 + sub + pushImm 0 + sub + msb + jz L17066 + gosub 8, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 0 + pushFromFSp 8 + sub + pushImm 0 + pushImm 0 + syscall 1, 155 ; trap_obj_add_hp (4 in, 1 out) + drop + jmp L17085 +L17066: + gosub 8, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSp 4 + neg + pushImm 0 + pushImm 0 + syscall 1, 155 ; trap_obj_add_hp (4 in, 1 out) + drop +L17085: + jmp L17087 +L17087: + halt + jmp L16949 +L17090: + ret +L17091: + popToSp 0 + popToSp 4 + pushFromFSp 0 + pushFromFSp 4 + subf + infzf + jz L17109 + pushFromFSp 0 + popToSp 4 + jmp L17109 +L17109: + pushFromFSp 4 + ret +L17112: + popToSp 0 +L17114: + pushFromFSpVal 76 + pushImm 0 + sub + ipos + jz L17126 + halt + jmp L17114 +L17126: + pushFromFSp 0 + gosub 4, L4635 + ret +L17131: + popToSp 0 + pushFromFSp 0 + gosub 4, L10026 + jz L17162 + pushFromFSp 0 + pushImm 1 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + jmp L17183 +L17162: + pushFromFSp 0 + pushImm 1 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) +L17183: + ret +L17184: ;___callback for action pushFromPAi L29014 ; ___ai rc_invitation_to_dark2 + popToSp 0 + pushFromFSp 0 + gosub 4, L10318 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 9 + syscall 1, 211 ; trap_obj_pattern_enable (2 in, 0 out) + ret +L17201: ;___callback for action pushFromPAi L29014 ; ___ai rc_invitation_to_dark2 + popToSp 4 + popToSp 0 + pushImm 1 + popToSpVal 160 + pushFromFSp 0 + pushFromFSp 4 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L17231 + pushFromFSp 0 + syscall 1, 127 ; trap_obj_act_clear (1 in, 0 out) + pushFromFSp 0 + pushFromPAi L29517 ; ___ai mode_dark_start (L29517) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L17231 +L17231: + ret +L17232: ;___label for action pushFromPAi L29149 ; ___ai rc_invitation_to_dark2_finish + popToSp 0 + pushFromFSpVal 148 + gosub 4, L17338 + pushImm 0 + popToSpVal 148 + pushFromFSpVal 144 + gosub 4, L17346 + pushImm 0 + popToSpVal 144 + pushFromFSp 0 + gosub 4, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromFSp 0 + pushFromPAi L29149 ; ___ai rc_invitation_to_dark2_finish (L29149) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 223 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + pushFromFSp 0 + fetchValue 4 + pushImm 191 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 300 + gosub 4, L1226 + pushFromFSp 0 + fetchValue 4 + pushImm 192 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + ret +L17338: + popToSp 0 + pushImm 0 + popToSpVal 80 + ret +L17346: + popToSp 0 + pushImm 0 + popToSpVal 96 + ret +L17354: ;___callback for action pushFromPAi L29149 ; ___ai rc_invitation_to_dark2_finish + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 4, L17392 + pushImm 0 + popToSpVal 160 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L17391 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + syscall 1, 127 ; trap_obj_act_clear (1 in, 0 out) + jmp L17391 +L17391: + ret +L17392: + popToSp 0 + pushFromFSp 0 + gosub 4, L10026 + jz L17423 + pushFromFSp 0 + pushImm 1 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + jmp L17444 +L17423: + pushFromFSp 0 + pushImm 1 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) +L17444: + ret +D17445: +L17445: ;___label for action pushFromPAi L29078 ; ___ai stop + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + gosub 4, L17463 + gosub 4, L1389 + ret +L17463: + popToSp 0 + pushFromFSp 0 + pushImm 1 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + ret +L17487: ;___label for action pushFromPAi L29426 ; ___ai walk_start + popToSp 0 + pushFromFSp 0 + pushFromPAi L29283 ; ___ai walk (L29283) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 154 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 8 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + ret +L17539: ;___label for action pushFromPAi L29283 ; ___ai walk + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 164 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 8 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) + ret +L17581: ;___callback for action pushFromPAi L29283 ; ___ai walk + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L17620 + pushFromFSp 0 + pushFromPAi L29283 ; ___ai walk (L29283) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + pushImm 16386 + pushImm 5 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + jmp L17620 +L17620: + ret +L17621: ;___label for action pushFromPAi L29255 ; ___ai run_start + popToSp 0 + pushFromFSp 0 + pushFromPAi L29381 ; ___ai run (L29381) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + pushFromFSp 0 + gosub 4, L17699 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 152 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + pushFromFSp 0 + pushImmf 500 + gosub 4, L17752 + pushFromFSp 0 + fetchValue 4 + pushImmf 10 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 153 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + ret +L17699: + popToSp 0 + pushFromFSp 0 + gosub 4, L10026 + jz L17730 + pushFromFSp 0 + pushImm 1 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + jmp L17751 +L17730: + pushFromFSp 0 + pushImm 1 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) +L17751: + ret +L17752: + popToSp 4 + popToSp 0 + pushFromPSp 16 + pushImmf 1 + pushImmf 0 + pushImmf 0 + pushImmf 1 + gosub 12, L326 + pushFromPSp 16 + pushImmf 6.283185 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromFSp 0 + pushImmf 0 + gosub 12, L17847 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPSp 16 + pushFromFSp 4 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 0 + gosub 12, L17944 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + ret +L17847: + popToSp 4 + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L17881 + memcpy 0 + pushFromPSp 16 + ret +L17881: + popToSp 4 + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + jz L17920 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + gosub 8, L273 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 98 ; trap_obj_step_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + fetchValue 4 + pushFromFSp 4 + subf + popToSp 8 + jmp L17941 +L17920: + gosub 8, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 98 ; trap_obj_step_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + fetchValue 4 + pushFromFSp 4 + subf + popToSp 8 +L17941: + pushFromFSp 8 + ret +L17944: + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + ret +L17974: ;___callback for action pushFromPAi L29255 ; ___ai run_start + popToSp 0 + pushFromFSp 0 + gosub 4, L17392 + ret +L17981: ;___label for action pushFromPAi L29381 ; ___ai run + popToSp 0 + pushFromFSp 0 + gosub 4, L17699 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 162 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + pushFromFSp 0 + fetchValue 4 + pushImm 163 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImmf 20 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushImmf 50 + gosub 4, L1226 + pushFromFSp 0 + gosub 4, L18060 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + ret +L18060: + popToSp 0 + pushImm 0 + popToSp 4 + pushImm 13 +L18070: + dup + pushFromFSp 4 + sub + info + jnz L18104 + pushFromFSp 0 + pushImm 28 + pushFromFSp 4 + add + pushImm 1 + pushImm 0 + syscall 1, 87 ; trap_obj_effect_start_bind (4 in, 1 out) + drop + pushFromFSp 4 + pushImm 1 + add + popToSp 4 + jmp L18070 +L18104: + drop + ret +L18106: ;___callback for action pushFromPAi L29381 ; ___ai run + popToSp 0 + pushFromFSp 0 + gosub 4, L17392 + ret +L18113: ;___callback for action pushFromPAi L29381 ; ___ai run + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L18157 + pushFromFSp 4 + memcpyToSpVal 16, 128 + pushFromFSp 0 + pushFromPAi L29381 ; ___ai run (L29381) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + pushImm 16386 + pushImm 5 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + jmp L18157 +L18157: + ret +L18158: ;___label for action pushFromPAi L29286 ; ___ai run2_start + popToSp 0 + pushFromFSp 0 + pushFromPAi L29051 ; ___ai run2 (L29051) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + pushFromFSp 0 + gosub 4, L17699 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 162 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + pushFromFSp 0 + pushImmf 200 + gosub 4, L17752 + pushFromFSp 0 + fetchValue 4 + pushImmf 10 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 163 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + pushImm 1 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + ret +L18243: ;___callback for action pushFromPAi L29286 ; ___ai run2_start + popToSp 0 + pushFromFSp 0 + gosub 4, L17392 + ret +L18250: ;___label for action pushFromPAi L29051 ; ___ai run2 + popToSp 0 + pushFromFSp 0 + gosub 4, L17699 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 152 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + pushFromFSp 0 + fetchValue 4 + pushImmf 20 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 153 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 50 + gosub 4, L1226 + pushFromFSp 0 + gosub 4, L18060 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + ret +L18329: ;___callback for action pushFromPAi L29051 ; ___ai run2 + popToSp 0 + pushFromFSp 0 + gosub 4, L17392 + ret +L18336: ;___callback for action pushFromPAi L29051 ; ___ai run2 + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L18380 + pushFromFSp 4 + memcpyToSpVal 16, 128 + pushFromFSp 0 + pushFromPAi L29051 ; ___ai run2 (L29051) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + pushImm 16386 + pushImm 5 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + jmp L18380 +L18380: + ret +L18381: ;___label for action pushFromPAi L29343 ; ___ai run3_start + popToSp 0 + pushFromFSp 0 + pushFromPAi L29175 ; ___ai run3 (L29175) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + pushFromFSp 0 + gosub 4, L18467 + pushFromFSp 0 + gosub 4, L18467 + pushFromFSp 0 + gosub 4, L17699 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 152 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + pushFromFSp 0 + pushImmf -1000 + gosub 4, L17752 + pushFromFSp 0 + fetchValue 4 + pushImmf 10 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 153 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + ret +L18467: + popToSp 0 + pushImm 72 + pushImm L18481 + pushFromFSp 0 + gosub 4, L829 + drop + ret +L18481: + popToSp 0 + pushFromFSp 0 + gosub 4, L396 + pushFromFSp 0 + gosub 4, L18496 + pushFromFSp 0 + gosub 4, L818 + ret +L18496: + popToSp 0 + pushFromPSpVal 64 + gosub 8, L475 + pushFromPSp 4 + pushImmf 120 + gosub 8, L2476 + pushFromPSp 4 + pushImmf 0 + gosub 8, L2491 + pushImmf 0 + popToSpVal 68 + pushFromPSpVal 64 + pushFromPSpVal 0 + pushImm 45 + pushImm 0 + gosub 8, L483 + pushFromPSpVal 64 + pushFromFSp 0 + gosub 8, L18628 + memcpyToSp 16, 16 + pushFromPSp 16 + gosub 12, L629 +L18546: + pushFromPSpVal 0 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L18615 + pushFromPSpVal 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L18566 + jmp L18615 +L18564: + jmp L18566 +L18566: + pushFromPSp 4 + gosub 8, L2619 + jz L18612 + pushImm 0 + popToSp 12 + pushImm 5 +L18580: + dup + pushFromFSp 12 + sub + info + jnz L18603 + pushFromFSp 0 + pushFromFSp 12 + gosub 8, L18666 + pushFromFSp 12 + pushImm 1 + add + popToSp 12 + jmp L18580 +L18603: + drop + jmp L18615 +L18606: + pushFromPSp 4 + gosub 8, L2629 + jmp L18612 +L18612: + halt + jmp L18546 +L18615: + pushFromFSpVal 68 + pushImmf 60 + addf + gosub 8, L1226 + pushFromPSpVal 64 + gosub 8, L6925 + ret +L18628: + popToSp 0 + pushFromPSpVal 0 + gosub 4, L4836 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromPSpVal 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf -200 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + ret +L18666: + popToSp 4 + popToSp 0 + pushFromFSp 0 + gosub 16, L18628 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushImmf 0 + pushImmf 1 + gosub 16, L5644 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImm 4 + add + pushImmf -1 + pushImmf 1 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + memcpy 0 + pushFromPSp 32 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 32 + pushFromPSpVal 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushImmf -1 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSpVal 0 + pushFromPSp 16 + pushFromPSp 32 + gosub 16, L18765 + popToSpVal 68 + ret +L18765: + popToSp 0 + popToSp 4 + popToSp 8 + pushImm 176 + pushImm L18816 + pushFromFSp 8 + gosub 8, L829 + popToSp 12 + pushFromFSp 12 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L6959 + pushFromFSp 12 + pushImm 140 + add + pushImmf 55 + pushImmf 90 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + gosub 8, L2491 + pushFromFSp 12 + pushImm 140 + add + fetchValue 0 + ret +L18816: + popToSp 0 + pushFromFSp 0 + gosub 4, L18831 + pushFromFSp 0 + gosub 4, L18838 + pushFromFSp 0 + gosub 4, L19113 + ret +L18831: + popToSp 0 + pushFromFSp 0 + gosub 4, L6198 + ret +L18838: + popToSp 0 + pushFromPSp 32 + pushImmf 0 + pushImmf 1 + pushImmf 0 + pushImmf 1 + gosub 16, L326 + pushFromPSp 32 + pushImmf 6.283185 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + syscall 0, 68 ; trap_vector_rotx (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf 6.283185 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 32 + pushImmf 1 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + pushImmf 0.5 + subf + infzf + jz L18919 + pushFromPSp 32 + pushImmf -1 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 32 + jmp L18919 +L18919: + pushFromFSp 0 + pushImmf 0.1 + pushImmf 0.8 + gosub 20, L6448 + pushFromFSp 0 + pushImm 1021 + pushImmf 60 + gosub 16, L6518 + pushFromFSpVal 160 + jz L18955 + pushFromFSp 0 + pushImm 635 + pushImmf 800 + gosub 16, L6613 + jmp L18955 +L18955: + pushFromPSpVal 128 + pushImmf 0 + pushImmf 80 + gosub 16, L6686 + pushFromPSpVal 64 + pushImmf 1 + gosub 16, L719 +L18972: + pushFromPSpVal 140 + gosub 16, L2619 + eqz + jz L19089 + pushFromPSpVal 32 + pushFromPSpVal 0 + gosub 16, L4836 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromPSp 32 + pushImmf 0.174533 + syscall 0, 83 ; trap_vector_rot (3 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromPSpVal 0 + gosub 16, L4836 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromPSp 16 + memcpyToSpVal 16, 32 + pushFromPSp 16 + pushFromPSpVal 32 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSpVal 16, 64 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L6775 + pushFromFSp 0 + pushImmf 800 + gosub 16, L6649 + pushFromPSpVal 148 + pushFromPSpVal 64 + gosub 16, L751 + halt + pushFromPSpVal 128 + gosub 16, L6701 + drop + pushFromPSpVal 140 + gosub 16, L4549 + drop + jmp L18972 +L19089: + pushFromPSpVal 152 + gosub 16, L6816 + pushFromPSpVal 148 + pushImm 1 + gosub 16, L6836 + pushImmf 60 + gosub 16, L1226 + pushFromPSpVal 148 + pushImmf 12 + gosub 16, L6873 + ret +L19113: + popToSp 0 + pushFromFSp 0 + gosub 4, L6914 + pushFromFSp 0 + gosub 4, L6948 + ret +L19124: ;___callback for action pushFromPAi L29343 ; ___ai run3_start + popToSp 0 + pushFromFSp 0 + gosub 4, L17392 + ret +L19131: ;___label for action pushFromPAi L29175 ; ___ai run3 + popToSp 0 + pushFromFSp 0 + gosub 4, L17699 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 162 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + pushFromFSp 0 + fetchValue 4 + pushImm 163 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImmf 20 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushImmf 50 + gosub 4, L1226 + pushFromFSp 0 + gosub 4, L18060 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + ret +L19210: ;___callback for action pushFromPAi L29175 ; ___ai run3 + popToSp 0 + pushFromFSp 0 + gosub 4, L17392 + ret +L19217: ;___callback for action pushFromPAi L29175 ; ___ai run3 + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L19261 + pushFromFSp 4 + memcpyToSpVal 16, 128 + pushFromFSp 0 + pushFromPAi L29175 ; ___ai run3 (L29175) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + pushImm 16386 + pushImm 5 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + jmp L19261 +L19261: + ret +L19262: ;___label for action pushFromPAi L29141 ; ___ai run_near + popToSp 0 + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.5 + subf + infzf + jz L19283 + pushFromFSp 0 + pushFromPAi L29255 ; ___ai run_start (L29255) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L19289 +L19283: + pushFromFSp 0 + pushFromPAi L29286 ; ___ai run2_start (L29286) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) +L19289: + pushFromFSp 0 + pushFromPAi L29306 ; ___ai atk_dance_s (L29306) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + ret +L19296: ;___label for action pushFromPAi L29185 ; ___ai atk_normal_laser1 + popToSp 0 + pushFromFSp 0 + pushImm 23 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + gosub 20, L10145 + pushImmf 0.5 + subf + infzf + jz L19335 + pushFromPAi L29543 ; ___ai right (L29543) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushImmf 0.069813 + popToSp 36 + pushImm 205 + popToSp 56 + jmp L19345 +L19335: + pushImmf -0.069813 + popToSp 36 + pushImm 206 + popToSp 56 +L19345: + pushFromPSp 44 + pushImmf 90 + gosub 20, L2491 + pushFromPSp 48 + pushImmf 6 + gosub 20, L2476 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 56 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 1 + pushImmf 1 + gosub 20, L326 + pushFromPSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 21 ; trap_vector_get_rot_xz (2 in, 1 out) + popToSp 32 + pushFromFSp 0 + gosub 20, L19672 + popToSp 40 + pushFromFSp 0 + pushImmf 150 + gosub 20, L19713 + popToSp 60 + pushFromFSp 0 + gosub 20, L19844 +L19438: + pushFromPSp 44 + gosub 20, L2619 + eqz + jz L19599 + pushFromFSp 40 + pushImmf 300 + pushImmf 0.9 + gosub 20, L19877 + popToSp 40 + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushFromFSp 40 + pushImmf 1 + gosub 20, L326 + pushFromFSp 32 + pushFromFSp 36 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + addf + syscall 0, 43 ; trap_fixrad (1 in, 1 out) + popToSp 32 + pushFromPSp 16 + pushFromFSp 32 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushImmf 0 + gosub 20, L17847 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 16 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + gosub 20, L13763 + pushFromPSp 48 + gosub 20, L2619 + jz L19586 + pushFromFSp 0 + pushFromFSp 0 + gosub 20, L4836 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSp 0 + gosub 28, L4836 + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + pushFromFSp 60 + gosub 36, L19895 + pushFromPSp 48 + gosub 20, L2629 + jmp L19586 +L19586: + halt + pushFromPSp 44 + gosub 20, L4549 + drop + pushFromPSp 48 + gosub 20, L4549 + drop + jmp L19438 +L19599: + pushFromFSp 0 + gosub 20, L20656 + gosub 20, L20693 + pushImm 4 + add + pushFromFSp 36 + memcpy 0 + gosub 20, L15225 + memcpyToSp 16, 64 + pushFromPSp 64 + fetchValue 4 + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + gosub 20, L15225 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + pushImmf 0 + gosub 24, L20706 + gosub 20, L15225 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPAi L29561 ; ___ai atk_normal_laser1_child (L29561) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushImmf 60 + pushImmf 180 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + pushImmf 0.5 + mulf + gosub 20, L1226 + ret +L19672: + popToSp 0 + pushFromFSp 0 + gosub 4, L19686 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + ret +L19686: + popToSp 0 + pushFromFSp 0 + gosub 12, L17944 + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSp 16 + ret +L19713: + popToSp 0 + popToSp 4 + pushImm 80 + pushImm L19745 + pushFromFSp 4 + gosub 8, L829 + popToSp 8 + pushFromFSp 8 + gosub 8, L19817 + pushFromFSp 8 + pushImm 68 + add + pushFromFSp 0 + memcpy 0 + pushFromFSp 8 + ret +L19745: + popToSp 0 +L19747: + pushFromFSpVal 72 + dup + jz L19762 + pushFromFSp 0 + fetchValue 68 + pushImmf 0 + subf + supzf + eqzv +L19762: + jz L19789 + halt + pushFromPSpVal 0 + syscall 6, 49 ; trap_obj_is_stop (1 in, 1 out) + eqz + jz L19787 + pushFromFSp 0 + pushImm 68 + add + dup + fetchValue 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + memcpy 0 + jmp L19787 +L19787: + jmp L19747 +L19789: + pushImm 0 + popToSpVal 72 +L19794: + pushFromFSpVal 64 + pushImm 0 + sub + ipos + jz L19812 + pushFromFSpVal 64 + pushFromPAi L29416 ; ___ai @ref_count (L29416) + syscall 0, 0 ; trap_puti (2 in, 0 out) + halt + jmp L19794 +L19812: + pushFromFSp 0 + gosub 4, L818 + ret +L19817: + popToSp 0 + pushFromFSp 0 + gosub 4, L396 + pushImm 0 + popToSpVal 64 + pushImmf 0 + popToSpVal 68 + pushImm 1 + popToSpVal 72 + pushImm 1 + popToSpVal 76 + ret +L19844: + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + pushImm 1 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + ret +L19877: + popToSp 0 + popToSp 4 + popToSp 8 + pushFromFSp 8 + pushFromFSp 4 + subf + pushFromFSp 0 + mulf + pushFromFSp 4 + addf + ret +L19895: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + pushImmf -1 + gosub 8, L19927 + popToSp 16 + pushFromFSp 16 + pushFromFSp 0 + gosub 8, L20636 + pushFromFSp 0 + gosub 8, L20645 + ret +L19927: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushFromFSp 12 + gosub 8, L19954 + popToSp 16 + pushFromFSp 16 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L20607 + pushFromFSp 16 + ret +L19954: + popToSp 0 + pushImm 228 + pushImm L19975 + pushFromFSp 0 + gosub 4, L829 + popToSp 4 + pushFromFSp 4 + gosub 4, L20507 + pushFromFSp 4 + ret +L19975: + popToSp 0 + pushFromFSp 0 + gosub 4, L3007 + pushFromFSp 0 + gosub 4, L19990 + pushFromFSp 0 + gosub 4, L20470 + ret +L19990: + popToSp 0 + pushFromFSp 0 + pushFromPSpVal 0 + pushImm 1240 + pushImmf 50 + gosub 16, L20272 + pushFromFSp 0 + gosub 16, L20214 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L5536 + pushFromFSp 0 + pushFromPSpVal 80 + pushImm 16 + add + gosub 16, L20250 + pushFromFSpVal 212 + pushImmf 0 + subf + infzf + dup + jz L20042 + pushFromFSpVal 224 + pushImm 0 + sub + neqz + eqzv +L20042: + jz L20142 + pushFromFSpVal 224 + fetchValue 76 + jz L20079 + pushFromPSpVal 32 + fetchValue 4 + popToSp 48 + pushFromPSpVal 32 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + jmp L20079 +L20079: + pushFromFSpVal 224 + fetchValue 72 + jz L20140 + pushFromFSpVal 224 + fetchValue 76 + dup + jz L20097 + pushFromFSpVal 48 + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + eqzv +L20097: + jz L20137 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSpVal 16, 32 + pushFromPSpVal 32 + pushImm 4 + add + pushFromFSp 48 + memcpy 0 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L5536 + jmp L20137 +L20137: + halt + jmp L20079 +L20140: + jmp L20146 +L20142: + pushFromFSpVal 212 + gosub 16, L1226 +L20146: + pushFromFSp 0 + gosub 16, L20310 + pushFromFSpVal 68 + syscall 2, 39 ; trap_attack_is_reflect (1 in, 1 out) + jz L20213 + pushFromFSpVal 68 + syscall 2, 44 ; trap_attack_reflecter (1 in, 1 out) + memcpyToSp 16, 52 + pushFromPSp 52 + memcpyToSp 16, 4 + pushFromPSpVal 80 + pushFromFSp 0 + gosub 16, L3369 + memcpyToSp 16, 64 + pushFromPSp 64 + gosub 24, L3558 + pushFromFSp 0 + pushFromPSp 4 + pushImm 1240 + pushImmf 50 + gosub 16, L20272 + pushFromPSp 4 + memcpyToSpVal 16, 0 + pushFromPSpVal 80 + pushFromFSpVal 48 + pushImm 1 + gosub 16, L3573 + pushFromFSp 0 + gosub 16, L20310 + jmp L20213 +L20213: + ret +L20214: + popToSp 0 + pushFromPSpVal 0 + pushImm 15 + pushFromPSpVal 32 + pushImm 1 + pushImm 0 + syscall 1, 22 ; trap_obj_effect_start_pos (5 in, 1 out) + drop + pushFromPSpVal 0 + pushImm 16 + pushFromPSpVal 32 + pushImm 0 + pushImm 0 + syscall 1, 22 ; trap_obj_effect_start_pos (5 in, 1 out) + popToSpVal 64 + ret +L20250: + popToSp 4 + popToSp 0 + pushFromFSpVal 64 + pushImm 0 + sub + neqz + jz L20271 + pushFromFSpVal 64 + pushFromFSp 4 + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + jmp L20271 +L20271: + ret +L20272: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + pushFromFSp 8 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSpVal 68 + pushFromFSpVal 68 + pushFromFSp 4 + pushImmf 0 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromFSpVal 68 + pushFromPSpVal 0 + syscall 2, 22 ; trap_attack_set_obj_pax (2 in, 0 out) + ret +L20310: + popToSp 0 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L2563 + pushFromPSpVal 80 + pushImmf 0.017453 + gosub 4, L2554 + pushFromPSpVal 80 + pushImmf 0.017453 + gosub 4, L2572 + pushFromPSpVal 80 + pushImmf 400 + gosub 4, L3140 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L3117 + pushFromPSpVal 192 + pushImmf 50 + pushImmf 0 + pushImmf 50 + pushImmf 0 + gosub 4, L2500 + pushFromPSpVal 208 + pushImmf 18 + gosub 4, L2491 + pushFromFSp 0 + gosub 4, L20375 + ret +L20375: + popToSp 0 +L20377: + pushFromFSpVal 64 + syscall 0, 50 ; trap_effect_is_active (1 in, 1 out) + jz L20426 + pushFromFSp 0 + gosub 4, L20427 + pushFromFSpVal 68 + pushImm 0 + sub + neqz + jz L20408 + pushFromFSpVal 68 + syscall 2, 39 ; trap_attack_is_reflect (1 in, 1 out) + jz L20406 + jmp L20426 +L20404: + jmp L20406 +L20406: + jmp L20408 +L20408: + halt + pushFromPSpVal 208 + gosub 4, L4549 + jz L20424 + pushFromFSpVal 64 + pushImmf -1 + gosub 4, L4583 + jmp L20424 +L20424: + jmp L20377 +L20426: + ret +L20427: + popToSp 0 + pushFromPSpVal 80 + pushFromPSpVal 32 + gosub 4, L3834 + pushFromPSpVal 32 + pushFromPSpVal 80 + pushImm 16 + add + pushFromPSpVal 192 + gosub 4, L4312 + syscall 0, 45 ; trap_vector_addf (3 in, 0 out) + pushFromPSpVal 192 + gosub 4, L4508 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 4, L5536 + pushFromFSpVal 64 + pushFromPSpVal 80 + pushImm 16 + add + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + ret +L20470: + popToSp 0 + pushFromFSp 0 + fetchValue 224 + pushImm 0 + sub + neqz + jz L20491 + pushFromFSp 0 + fetchValue 224 + gosub 4, L20496 + jmp L20491 +L20491: + pushFromFSp 0 + gosub 4, L4635 + ret +L20496: + popToSp 0 + pushFromFSpVal 64 + pushImm 1 + sub + popToSpVal 64 + ret +L20507: + popToSp 0 + pushFromFSp 0 + gosub 4, L20519 + pushImm 0 + popToSpVal 224 + ret +L20519: + popToSp 0 + pushFromPSpVal 32 + pushImmf 1 + gosub 12, L719 + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 1 + pushImmf 1 + gosub 12, L326 + pushFromPSpVal 80 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 200 + pushImmf 0 + gosub 12, L3024 + pushFromPSpVal 80 + pushFromPSp 16 + gosub 12, L3558 + pushFromPSpVal 80 + pushFromFSpVal 48 + pushImm 1 + gosub 12, L3573 + pushFromPSpVal 192 + pushImmf 0 + pushImmf 0 + pushImmf 0 + pushImmf 0 + gosub 12, L2500 + pushFromPSpVal 208 + pushImmf 60 + gosub 12, L2491 + pushImmf 0 + popToSpVal 212 + ret +L20607: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + memcpyToSpVal 16, 32 + pushFromPSpVal 80 + pushFromFSp 8 + gosub 8, L3558 + pushFromFSp 4 + popToSpVal 212 + pushImm 0 + popToSpVal 224 + ret +L20636: + popToSp 4 + popToSp 0 + pushFromFSp 4 + popToSpVal 224 + ret +L20645: + popToSp 0 + pushFromFSpVal 64 + pushImm 1 + add + popToSpVal 64 + ret +L20656: + popToSp 0 + pushFromFSp 0 + gosub 4, L18060 + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + pushImm 1 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + ret +L20693: + pushImm 41 + pushImm 8 + syscall 2, 21 ; trap_teamwork_alloc (2 in, 1 out) + popToSp 0 + pushFromFSp 0 + ret +L20706: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 8 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 148 ; trap_obj_set_pos (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 8 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + fetchValue 12 + pushFromFSp 4 + addf + syscall 1, 1 ; trap_obj_set_rot (2 in, 0 out) + ret +L20744: ;___label for action pushFromPAi L29561 ; ___ai atk_normal_laser1_child + popToSp 0 + pushFromFSp 0 + gosub 12, L18060 + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushImmf 16 + popToSp 4 + gosub 12, L20693 + fetchValue 4 + popToSp 8 +L20770: + pushFromFSp 4 + pushImmf 0 + subf + supzf + jz L20862 + pushFromFSp 0 + gosub 12, L19686 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf -1 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSp 8 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromFSp 0 + pushImmf 0 + gosub 12, L17847 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPSp 16 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + gosub 12, L13763 + halt + pushFromFSp 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 4 + jmp L20770 +L20862: + ret +L20863: ;___label for action pushFromPAi L29202 ; ___ai atk_normal_laser2 + popToSp 0 + pushFromFSp 0 + pushImm 16 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushImm 0 + popToSp 72 + pushFromPSp 32 + pushImmf 30 + gosub 24, L2476 + pushFromPSp 40 + pushImmf 8 + gosub 24, L2476 + pushFromPSp 48 + pushImmf 90 + gosub 24, L2476 + pushFromPSp 56 + pushImmf 22 + gosub 24, L2476 + pushFromPSp 32 + pushImmf 0 + gosub 24, L2491 + pushFromPSp 48 + pushImmf 0 + gosub 24, L2491 +L20922: + pushFromFSp 72 + pushImm 1 + sub + info + jz L21321 + pushFromPSp 32 + gosub 24, L2619 + jz L21191 + pushFromPSp 48 + gosub 24, L2619 + jz L21177 + pushFromFSp 72 + pushImm 1 + add + popToSp 72 + pushFromFSp 72 + pushImm 1 + sub + ipos + jz L20964 + jmp L21321 +L20962: + jmp L20964 +L20964: + pushFromPSp 48 + gosub 24, L2629 + pushFromPSp 40 + gosub 24, L2629 + pushFromPSp 56 + gosub 24, L2629 + pushFromPSp 32 + gosub 24, L2629 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushImmf 300 + pushImmf 300 + gosub 28, L5644 + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -100 + pushImmf 100 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + addf + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushImmf 20 + popToSp 64 + pushFromFSp 0 + gosub 24, L10145 + pushImmf 0.5 + subf + infzf + jz L21067 + pushImmf -0.610865 + popToSp 68 + pushImm 205 + popToSp 76 + jmp L21077 +L21067: + pushImmf 0.610865 + popToSp 68 + pushImm 206 + popToSp 76 +L21077: + pushFromFSp 0 + gosub 24, L19844 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + gosub 24, L17944 + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSp 68 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + fetchValue 4 + pushImmf 0 + subf + infzf + jz L21143 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -0.15 + addf + memcpy 0 + jmp L21157 +L21143: + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 0.15 + addf + memcpy 0 +L21157: + pushFromFSp 0 + fetchValue 4 + pushFromFSp 76 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + jmp L21189 +L21177: + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromPSp 48 + gosub 24, L4549 + drop +L21189: + jmp L21318 +L21191: + pushFromFSp 0 + pushFromPSp 16 + pushFromFSp 64 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + pushFromFSp 64 + pushImmf 1 + mulf + popToSp 64 + pushFromFSp 68 + pushImmf 0 + subf + infzf + jz L21234 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 1.570796 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + jmp L21250 +L21234: + pushFromFSp 0 + pushFromPSp 16 + pushImmf -1.570796 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) +L21250: + pushFromPSp 56 + gosub 24, L4549 + jz L21275 + pushFromFSp 0 + gosub 24, L18060 + pushFromFSp 0 + gosub 24, L20656 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + jmp L21275 +L21275: + pushFromPSp 40 + gosub 24, L4549 + jz L21313 + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSp 0 + gosub 28, L17944 + memcpyToSp 16, 96 + pushFromPSp 96 + pushImmf 65 + gosub 32, L21322 + drop + pushFromPSp 40 + gosub 24, L2629 + jmp L21313 +L21313: + pushFromPSp 32 + gosub 24, L4549 + drop +L21318: + halt + jmp L20922 +L21321: + ret +L21322: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushFromFSp 12 + gosub 8, L21349 + popToSp 16 + pushFromFSp 16 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L21712 + pushFromFSp 16 + ret +L21349: + popToSp 0 + pushImm 228 + pushImm L21370 + pushFromFSp 0 + gosub 4, L829 + popToSp 4 + pushFromFSp 4 + gosub 4, L21700 + pushFromFSp 4 + ret +L21370: + popToSp 0 + pushFromFSp 0 + gosub 4, L3007 + pushFromFSp 0 + gosub 4, L21385 + pushFromFSp 0 + gosub 4, L21674 + ret +L21385: + popToSp 0 + pushFromFSp 0 + pushFromPSpVal 0 + pushImm 1240 + pushImmf 50 + gosub 16, L20272 + pushFromFSp 0 + gosub 16, L20214 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L5536 + pushFromFSp 0 + pushFromPSpVal 80 + pushImm 16 + add + gosub 16, L20250 + pushFromFSpVal 212 + pushImmf 0 + subf + infzf + dup + jz L21437 + pushFromFSpVal 224 + pushImm 0 + sub + neqz + eqzv +L21437: + jz L21537 + pushFromFSpVal 224 + fetchValue 76 + jz L21474 + pushFromPSpVal 32 + fetchValue 4 + popToSp 48 + pushFromPSpVal 32 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + jmp L21474 +L21474: + pushFromFSpVal 224 + fetchValue 72 + jz L21535 + pushFromFSpVal 224 + fetchValue 76 + dup + jz L21492 + pushFromFSpVal 48 + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + eqzv +L21492: + jz L21532 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSpVal 16, 32 + pushFromPSpVal 32 + pushImm 4 + add + pushFromFSp 48 + memcpy 0 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L5536 + jmp L21532 +L21532: + halt + jmp L21474 +L21535: + jmp L21541 +L21537: + pushFromFSpVal 212 + gosub 16, L1226 +L21541: + pushFromFSp 0 + gosub 16, L21609 + pushFromFSpVal 68 + syscall 2, 39 ; trap_attack_is_reflect (1 in, 1 out) + jz L21608 + pushFromFSpVal 68 + syscall 2, 44 ; trap_attack_reflecter (1 in, 1 out) + memcpyToSp 16, 52 + pushFromPSp 52 + memcpyToSp 16, 4 + pushFromPSpVal 80 + pushFromFSp 0 + gosub 16, L3369 + memcpyToSp 16, 64 + pushFromPSp 64 + gosub 24, L3558 + pushFromFSp 0 + pushFromPSp 4 + pushImm 1240 + pushImmf 50 + gosub 16, L20272 + pushFromPSp 4 + memcpyToSpVal 16, 0 + pushFromPSpVal 80 + pushFromFSpVal 48 + pushImm 1 + gosub 16, L3573 + pushFromFSp 0 + gosub 16, L21609 + jmp L21608 +L21608: + ret +L21609: + popToSp 0 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L2563 + pushFromPSpVal 80 + pushImmf 0.349066 + gosub 4, L2554 + pushFromPSpVal 80 + pushImmf 0.349066 + gosub 4, L2572 + pushFromPSpVal 80 + pushImmf 100 + gosub 4, L3140 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L3117 + pushFromPSpVal 192 + pushImmf 60 + pushImmf 0 + pushImmf 60 + pushImmf 0 + gosub 4, L2500 + pushFromPSpVal 208 + pushImmf 18 + gosub 4, L2491 + pushFromFSp 0 + gosub 4, L20375 + ret +L21674: + popToSp 0 + pushFromFSp 0 + fetchValue 224 + pushImm 0 + sub + neqz + jz L21695 + pushFromFSp 0 + fetchValue 224 + gosub 4, L20496 + jmp L21695 +L21695: + pushFromFSp 0 + gosub 4, L4635 + ret +L21700: + popToSp 0 + pushFromFSp 0 + gosub 4, L20519 + pushImm 0 + popToSpVal 224 + ret +L21712: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + memcpyToSpVal 16, 32 + pushFromPSpVal 80 + pushFromFSp 8 + gosub 8, L3558 + pushFromFSp 4 + popToSpVal 212 + pushImm 0 + popToSpVal 224 + ret +L21741: ;___callback for action pushFromPAi L29202 ; ___ai atk_normal_laser2 + popToSp 0 + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + ret +L21751: ;___label for action pushFromPAi L29060 ; ___ai atk_normal_laser3 + popToSp 0 + pushFromFSp 0 + gosub 20, L20656 + pushFromFSp 0 + fetchValue 4 + pushImm 207 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 30 + gosub 20, L1226 + pushFromFSp 0 + pushImm 26 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushImmf 200 + pushImmf 200 + gosub 24, L5644 + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + gosub 20, L19844 + pushImmf 40 + gosub 20, L1226 + gosub 20, L15225 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPAi L29093 ; ___ai atk_normal_laser3_child (L29093) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushImmf 240 + popToSp 56 + pushFromPSp 32 + pushImmf 10 + gosub 20, L2476 + pushFromPSp 32 + pushImmf 0 + gosub 20, L2491 + pushFromPSp 40 + pushImmf 60 + gosub 20, L2476 + pushFromPSp 48 + pushImmf 90 + gosub 20, L2476 + pushFromPSp 48 + pushImmf 0 + gosub 20, L2491 +L21884: + pushFromFSp 56 + pushImmf 0 + subf + supzf + jz L22079 + pushFromFSp 0 + gosub 20, L13763 + pushFromFSp 0 + gosub 20, L17944 + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + pushImmf 300 + syscall 0, 35 ; method_vector_scale (2 in, 0 out) + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 16 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 4 + pushImm 0 + pushImm 0 + gosub 20, L22099 + drop + pushFromPSp 48 + gosub 20, L2619 + jz L22043 + pushFromPSp 32 + gosub 20, L2619 + jz L22020 + pushFromFSp 0 + gosub 20, L22220 + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 16 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushImmf 0 + gosub 28, L22258 + drop + pushFromPSp 32 + gosub 20, L2629 + jmp L22020 +L22020: + pushFromPSp 32 + gosub 20, L4549 + drop + pushFromPSp 40 + gosub 20, L4549 + jz L22041 + pushFromFSp 0 + gosub 20, L20656 + pushFromPSp 48 + gosub 20, L2629 + jmp L22041 +L22041: + jmp L22069 +L22043: + pushFromPSp 48 + gosub 20, L4549 + jz L22069 + pushFromFSp 0 + pushImm 9 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + gosub 20, L19844 + pushFromPSp 40 + gosub 20, L2629 + jmp L22069 +L22069: + halt + pushFromFSp 56 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 56 + jmp L21884 +L22079: + pushFromFSp 0 + gosub 20, L20656 + pushImmf 90 + gosub 20, L1226 + pushFromFSp 0 + pushFromPAi L29121 ; ___ai atk_normal_laser3_finish (L29121) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + ret +L22099: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 0 + pushFromFSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 32 + pushFromFSp 8 + jz L22146 + pushFromPSp 32 + pushImm 4 + add + pushImmf 0 + memcpy 0 + jmp L22146 +L22146: + pushFromPSp 32 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 32 + pushImm 12 + add + dup + fetchValue 0 + pushImmf 1 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + divf + mulf + memcpy 0 + pushFromPSp 32 + fetchValue 12 + pushFromFSp 12 + subf + supzf + jz L22189 + pushFromPSp 32 + pushImm 12 + add + pushFromFSp 12 + memcpy 0 + jmp L22189 +L22189: + pushFromFSp 4 + jz L22205 + pushFromFSp 0 + pushFromPSp 32 + pushFromPSp 32 + fetchValue 12 + syscall 1, 89 ; trap_obj_move_request (3 in, 0 out) + jmp L22215 +L22205: + pushFromFSp 0 + pushFromPSp 32 + pushFromPSp 32 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) +L22215: + pushFromPSp 32 + fetchValue 12 + ret +L22220: + popToSp 0 + pushFromPSp 16 + pushImmf 50 + pushImmf 0 + pushImmf 0 + pushImmf 1 + gosub 12, L326 + pushFromFSp 0 + pushImm 265 + pushFromPSp 16 + syscall 1, 83 ; trap_obj_apply_bone_matrix (3 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + ret +L22258: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushFromFSp 12 + gosub 8, L22285 + popToSp 16 + pushFromFSp 16 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L22648 + pushFromFSp 16 + ret +L22285: + popToSp 0 + pushImm 228 + pushImm L22306 + pushFromFSp 0 + gosub 4, L829 + popToSp 4 + pushFromFSp 4 + gosub 4, L22636 + pushFromFSp 4 + ret +L22306: + popToSp 0 + pushFromFSp 0 + gosub 4, L3007 + pushFromFSp 0 + gosub 4, L22321 + pushFromFSp 0 + gosub 4, L22610 + ret +L22321: + popToSp 0 + pushFromFSp 0 + pushFromPSpVal 0 + pushImm 1240 + pushImmf 50 + gosub 16, L20272 + pushFromFSp 0 + gosub 16, L20214 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L5536 + pushFromFSp 0 + pushFromPSpVal 80 + pushImm 16 + add + gosub 16, L20250 + pushFromFSpVal 212 + pushImmf 0 + subf + infzf + dup + jz L22373 + pushFromFSpVal 224 + pushImm 0 + sub + neqz + eqzv +L22373: + jz L22473 + pushFromFSpVal 224 + fetchValue 76 + jz L22410 + pushFromPSpVal 32 + fetchValue 4 + popToSp 48 + pushFromPSpVal 32 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + jmp L22410 +L22410: + pushFromFSpVal 224 + fetchValue 72 + jz L22471 + pushFromFSpVal 224 + fetchValue 76 + dup + jz L22428 + pushFromFSpVal 48 + syscall 1, 140 ; trap_target_is_exist (1 in, 1 out) + eqzv +L22428: + jz L22468 + pushFromFSpVal 48 + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSpVal 16, 32 + pushFromPSpVal 32 + pushImm 4 + add + pushFromFSp 48 + memcpy 0 + pushFromFSp 0 + pushFromPSpVal 32 + gosub 16, L5536 + jmp L22468 +L22468: + halt + jmp L22410 +L22471: + jmp L22477 +L22473: + pushFromFSpVal 212 + gosub 16, L1226 +L22477: + pushFromFSp 0 + gosub 16, L22545 + pushFromFSpVal 68 + syscall 2, 39 ; trap_attack_is_reflect (1 in, 1 out) + jz L22544 + pushFromFSpVal 68 + syscall 2, 44 ; trap_attack_reflecter (1 in, 1 out) + memcpyToSp 16, 52 + pushFromPSp 52 + memcpyToSp 16, 4 + pushFromPSpVal 80 + pushFromFSp 0 + gosub 16, L3369 + memcpyToSp 16, 64 + pushFromPSp 64 + gosub 24, L3558 + pushFromFSp 0 + pushFromPSp 4 + pushImm 1240 + pushImmf 50 + gosub 16, L20272 + pushFromPSp 4 + memcpyToSpVal 16, 0 + pushFromPSpVal 80 + pushFromFSpVal 48 + pushImm 1 + gosub 16, L3573 + pushFromFSp 0 + gosub 16, L22545 + jmp L22544 +L22544: + ret +L22545: + popToSp 0 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L2563 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L2554 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L2572 + pushFromPSpVal 80 + pushImmf 1000 + gosub 4, L3140 + pushFromPSpVal 80 + pushImmf 0 + gosub 4, L3117 + pushFromPSpVal 192 + pushImmf 40 + pushImmf 0 + pushImmf 40 + pushImmf 0 + gosub 4, L2500 + pushFromPSpVal 208 + pushImmf 30 + gosub 4, L2491 + pushFromFSp 0 + gosub 4, L20375 + ret +L22610: + popToSp 0 + pushFromFSp 0 + fetchValue 224 + pushImm 0 + sub + neqz + jz L22631 + pushFromFSp 0 + fetchValue 224 + gosub 4, L20496 + jmp L22631 +L22631: + pushFromFSp 0 + gosub 4, L4635 + ret +L22636: + popToSp 0 + pushFromFSp 0 + gosub 4, L20519 + pushImm 0 + popToSpVal 224 + ret +L22648: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + memcpyToSpVal 16, 32 + pushFromPSpVal 80 + pushFromFSp 8 + gosub 8, L3558 + pushFromFSp 4 + popToSpVal 212 + pushImm 0 + popToSpVal 224 + ret +L22677: ;___label for action pushFromPAi L29093 ; ___ai atk_normal_laser3_child + popToSp 0 + pushFromFSp 0 + gosub 4, L20656 + pushImmf 60 + gosub 4, L1226 + pushFromFSp 0 + gosub 4, L22712 + pushFromFSp 0 + gosub 4, L20656 + pushImmf 60 + gosub 4, L1226 + pushFromFSp 0 + gosub 4, L23135 + pushFromFSp 0 + gosub 4, L20656 + gosub 4, L1389 + ret +L22712: + popToSp 0 + pushFromFSp 0 + pushImm 16 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushImm 0 + popToSp 72 + pushFromPSp 32 + pushImmf 30 + gosub 24, L2476 + pushFromPSp 40 + pushImmf 8 + gosub 24, L2476 + pushFromPSp 48 + pushImmf 90 + gosub 24, L2476 + pushFromPSp 56 + pushImmf 22 + gosub 24, L2476 + pushFromPSp 32 + pushImmf 0 + gosub 24, L2491 + pushFromPSp 48 + pushImmf 0 + gosub 24, L2491 +L22771: + pushFromFSp 72 + pushImm 1 + sub + info + jz L23134 + pushFromPSp 32 + gosub 24, L2619 + jz L23017 + pushFromPSp 48 + gosub 24, L2619 + jz L23010 + pushFromFSp 72 + pushImm 1 + add + popToSp 72 + pushFromFSp 72 + pushImm 1 + sub + ipos + jz L22813 + jmp L23134 +L22811: + jmp L22813 +L22813: + pushFromPSp 48 + gosub 24, L2629 + pushFromPSp 40 + gosub 24, L2629 + pushFromPSp 56 + gosub 24, L2629 + pushFromPSp 32 + gosub 24, L2629 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushImmf 300 + pushImmf 300 + gosub 28, L5644 + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -100 + pushImmf 100 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + addf + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushImmf 20 + popToSp 64 + pushFromFSp 0 + gosub 24, L10145 + pushImmf 0.5 + subf + infzf + jz L22916 + pushImmf -0.610865 + popToSp 68 + pushImm 205 + popToSp 76 + jmp L22926 +L22916: + pushImmf 0.610865 + popToSp 68 + pushImm 206 + popToSp 76 +L22926: + pushFromFSp 0 + gosub 24, L19844 + pushFromFSp 0 + gosub 24, L17944 + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSp 68 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + fetchValue 4 + pushImmf 0 + subf + infzf + jz L22983 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -0.15 + addf + memcpy 0 + jmp L22997 +L22983: + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 0.15 + addf + memcpy 0 +L22997: + pushFromFSp 0 + fetchValue 4 + pushFromFSp 76 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + jmp L23015 +L23010: + pushFromPSp 48 + gosub 24, L4549 + drop +L23015: + jmp L23131 +L23017: + pushFromFSp 0 + pushFromPSp 16 + pushFromFSp 64 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + pushFromFSp 64 + pushImmf 1 + mulf + popToSp 64 + pushFromFSp 68 + pushImmf 0 + subf + infzf + jz L23060 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 1.570796 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + jmp L23076 +L23060: + pushFromFSp 0 + pushFromPSp 16 + pushImmf -1.570796 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) +L23076: + pushFromPSp 56 + gosub 24, L4549 + jz L23088 + pushFromFSp 0 + gosub 24, L20656 + jmp L23088 +L23088: + pushFromPSp 40 + gosub 24, L4549 + jz L23126 + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSp 0 + gosub 28, L17944 + memcpyToSp 16, 96 + pushFromPSp 96 + pushImmf 65 + gosub 32, L22258 + drop + pushFromPSp 40 + gosub 24, L2629 + jmp L23126 +L23126: + pushFromPSp 32 + gosub 24, L4549 + drop +L23131: + halt + jmp L22771 +L23134: + ret +L23135: + popToSp 0 + pushFromFSp 0 + pushImm 23 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + gosub 20, L19844 + pushFromFSp 0 + gosub 20, L10145 + pushImmf 0.5 + subf + infzf + jz L23178 + pushFromPAi L29543 ; ___ai right (L29543) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushImmf 0.069813 + popToSp 36 + pushImm 205 + popToSp 56 + jmp L23188 +L23178: + pushImmf -0.069813 + popToSp 36 + pushImm 206 + popToSp 56 +L23188: + pushFromPSp 44 + pushImmf 90 + gosub 20, L2491 + pushFromPSp 48 + pushImmf 6 + gosub 20, L2476 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 56 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf 1 + pushImmf 1 + gosub 20, L326 + pushFromPSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 21 ; trap_vector_get_rot_xz (2 in, 1 out) + popToSp 32 + pushFromFSp 0 + gosub 20, L19672 + popToSp 40 + pushFromFSp 0 + pushImmf 150 + gosub 20, L19713 + popToSp 60 + pushFromFSp 0 + gosub 20, L19844 +L23281: + pushFromPSp 44 + gosub 20, L2619 + eqz + jz L23442 + pushFromFSp 40 + pushImmf 300 + pushImmf 0.9 + gosub 20, L19877 + popToSp 40 + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushFromFSp 40 + pushImmf 1 + gosub 20, L326 + pushFromFSp 32 + pushFromFSp 36 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + mulf + addf + syscall 0, 43 ; trap_fixrad (1 in, 1 out) + popToSp 32 + pushFromPSp 16 + pushFromFSp 32 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushImmf 0 + gosub 20, L17847 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 16 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + gosub 20, L13763 + pushFromPSp 48 + gosub 20, L2619 + jz L23429 + pushFromFSp 0 + pushFromFSp 0 + gosub 20, L4836 + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushFromFSp 0 + gosub 28, L4836 + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + pushFromFSp 60 + gosub 36, L19895 + pushFromPSp 48 + gosub 20, L2629 + jmp L23429 +L23429: + halt + pushFromPSp 44 + gosub 20, L4549 + drop + pushFromPSp 48 + gosub 20, L4549 + drop + jmp L23281 +L23442: + pushFromFSp 0 + gosub 20, L20656 + pushImmf 16 + gosub 20, L1226 + ret +L23452: ;___label for action pushFromPAi L29121 ; ___ai atk_normal_laser3_finish + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 207 + pushImmf 0 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) + pushFromFSp 0 + gosub 16, L20656 + pushFromFSp 0 + gosub 16, L10026 + eqz + jz L23489 + pushFromFSp 0 + pushImm 18 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + jmp L23489 +L23489: + pushImmf 60 + gosub 16, L1226 + pushFromFSp 0 + gosub 16, L19844 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushImmf 400 + pushImmf 500 + gosub 20, L5644 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -200 + pushImmf 200 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + addf + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 32 + pushImmf 130 + gosub 16, L2491 + pushFromPSp 36 + pushImmf 10 + gosub 16, L2476 + pushFromPSp 36 + pushImmf 0 + pushImmf 10 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + gosub 16, L2491 + pushFromFSp 0 + gosub 16, L10026 + jz L23600 + pushFromFSp 0 + fetchValue 4 + pushImmf 30 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + jmp L23609 +L23600: + pushFromFSp 0 + fetchValue 4 + pushImmf 10 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) +L23609: + pushFromFSp 0 + pushFromFSp 0 + gosub 16, L17944 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushImmf 20 + gosub 16, L1226 +L23627: + pushFromPSp 32 + gosub 16, L2619 + eqz + jz L23705 + pushFromFSp 0 + gosub 16, L13763 + pushFromPSp 36 + gosub 16, L2619 + jz L23692 + pushFromFSp 0 + gosub 16, L22220 + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromPSp 16 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushImmf 0 + gosub 24, L22258 + drop + pushFromPSp 36 + gosub 16, L2629 + jmp L23692 +L23692: + halt + pushFromPSp 32 + gosub 16, L4549 + drop + pushFromPSp 36 + gosub 16, L4549 + drop + jmp L23627 +L23705: + pushFromFSp 0 + gosub 16, L20656 + pushFromFSp 0 + gosub 16, L10026 + jz L23721 + pushFromFSp 0 + gosub 16, L20656 + jmp L23780 +L23721: + pushFromFSp 0 + gosub 16, L19844 + pushFromFSp 0 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 6 + pushImm 0 + syscall 1, 311 ; trap_sheet_set_element_rate (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushImmf 16 + gosub 16, L1226 + pushFromFSp 0 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 6 + pushImm 100 + syscall 1, 311 ; trap_sheet_set_element_rate (3 in, 0 out) + pushImmf 90 + gosub 16, L1226 +L23780: + ret +L23781: ;___callback for action pushFromPAi L29121 ; ___ai atk_normal_laser3_finish + popToSp 0 + pushFromFSp 0 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 6 + pushImm 100 + syscall 1, 311 ; trap_sheet_set_element_rate (3 in, 0 out) + ret +L23796: ;___callback for action pushFromPAi L29121 ; ___ai atk_normal_laser3_finish + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromPAi L29121 ; ___ai atk_normal_laser3_finish (L29121) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + ret +L23807: ;___label for action pushFromPAi L29032 ; ___ai atk_throw + popToSp 0 + pushFromFSp 0 + gosub 12, L20656 + pushImmf 16 + gosub 12, L1226 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf 200 + pushImmf 300 + gosub 16, L5644 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + gosub 12, L23929 + pushFromFSp 0 + gosub 12, L18060 + pushFromFSp 0 + gosub 12, L19844 + halt + pushFromFSp 0 + gosub 12, L23968 + jz L23928 + pushFromFSp 0 + gosub 12, L24074 + pushFromFSp 0 + pushFromPAi L29292 ; ___ai 11 (L29292) + pushFromFSp 0 + syscall 1, 157 ; trap_obj_camera_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 204 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L23901: + pushFromFSp 0 + pushImm 204 + gosub 12, L13864 + eqz + jz L23926 + halt + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L23924 + jmp L23926 +L23922: + jmp L23924 +L23924: + jmp L23901 +L23926: + jmp L23928 +L23928: + ret +L23929: + popToSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + ret +L23968: + popToSp 0 + pushImm 0 + popToSp 32 + gosub 12, L739 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 225 ; trap_obj_is_star (1 in, 1 out) + eqz + dup + jz L23999 + gosub 20, L739 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + eqz + eqzv +L23999: + jz L24071 + gosub 12, L739 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromFSp 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromPSp 16 + syscall 0, 21 ; trap_vector_get_rot_xz (2 in, 1 out) + syscall 0, 23 ; trap_absf (1 in, 1 out) + pushImmf 3.141593 + subf + infzf + jz L24069 + pushFromPSp 16 + syscall 0, 6 ; trap_vector_len (1 in, 1 out) + pushImmf 400 + subf + infzf + popToSp 32 + jmp L24069 +L24069: + jmp L24071 +L24071: + pushFromFSp 32 + ret +L24074: + popToSp 0 + gosub 12, L739 + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromFSp 0 + pushFromPSp 16 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromPSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf -1 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + gosub 20, L24151 + pushFromFSp 0 + pushFromPSp 16 + pushImm 257 + pushImmf 0 + syscall 1, 29 ; trap_obj_motion_capture (4 in, 1 out) + drop + pushFromPSp 16 + pushImm L24188 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + ret +L24151: + popToSp 4 + popToSp 0 + pushFromFSp 4 + fetchValue 0 + pushImmf 0 + subf + neqzf + dup + jnz L24177 + pushFromFSp 4 + fetchValue 8 + pushImmf 0 + subf + neqzf + neqzv +L24177: + jz L24187 + pushFromFSp 0 + pushFromFSp 4 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + jmp L24187 +L24187: + ret +L24188: + popToSp 0 + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) +L24206: + pushFromFSp 0 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + jz L24227 + halt + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L24225 + jmp L24227 +L24223: + jmp L24225 +L24225: + jmp L24206 +L24227: + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 227 ; trap_obj_jump_direct (2 in, 0 out) + pushFromFSp 0 + pushImm 4 + syscall 1, 179 ; trap_obj_set_fall_motion (2 in, 0 out) + ret +L24248: ;___label for action pushFromPAi L29039 ; ___ai atk_dance1 + popToSp 0 + pushFromFSp 0 + pushImm 211 + gosub 4, L24258 + ret +L24258: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + syscall 1, 67 ; trap_obj_motion_get_length (2 in, 1 out) + pushImmf 2 + subf + popToSp 32 + pushFromFSp 0 + pushImm 1 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 54 ; method_obj_reset_collision (2 in, 0 out) + pushFromFSp 0 + gosub 12, L23929 + pushFromFSp 0 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushImmf 100 + pushImmf 100 + gosub 20, L5644 + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 75 + subf + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 0 + syscall 1, 201 ; trap_obj_dir (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushImmf 100 + pushImmf 260 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + degr + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 0 + gosub 12, L18467 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 4 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L24412: + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L24564 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 100 + addf + memcpy 0 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + pushImm 12 + add + dup + fetchValue 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + divf + memcpy 0 + pushFromPSp 16 + fetchValue 12 + pushImmf 12 + subf + supzf + jz L24505 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + jmp L24515 +L24505: + pushFromFSp 0 + pushFromPSp 16 + pushFromPSp 16 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) +L24515: + halt + pushFromFSp 32 + pushImmf 0 + subf + supzf + jz L24562 + pushFromFSp 32 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 32 + pushFromFSp 32 + pushImmf 0 + subf + infoezf + jz L24560 + pushFromFSp 0 + gosub 12, L17463 + pushFromFSp 0 + gosub 12, L18060 + pushFromFSp 0 + fetchValue 4 + pushImmf 2 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + jmp L24560 +L24560: + jmp L24562 +L24562: + jmp L24412 +L24564: + ret +L24565: ;___label for action pushFromPAi L28986 ; ___ai atk_dance2 + popToSp 0 + pushFromFSp 0 + pushImm 212 + gosub 4, L24258 + ret +L24575: ;___label for action pushFromPAi L29456 ; ___ai atk_dance4 + popToSp 0 + pushFromFSp 0 + pushImm 214 + gosub 4, L24258 + ret +L24585: ;___label for action pushFromPAi L28976 ; ___ai atk_dance5 + popToSp 0 + pushFromFSp 0 + pushImm 215 + gosub 4, L24258 + ret +L24595: ;___label for action pushFromPAi L29105 ; ___ai atk_dance6 + popToSp 0 + pushFromFSp 0 + pushImm 216 + gosub 4, L24258 + ret +L24605: ;___label for action pushFromPAi L29054 ; ___ai atk_dance7 + popToSp 0 + pushFromFSp 0 + pushImm 217 + gosub 4, L24258 + ret +L24615: ;___label for action pushFromPAi L29081 ; ___ai atk_dance8 + popToSp 0 + pushFromFSp 0 + pushImm 218 + gosub 4, L24258 + ret +L24625: ;___label for action pushFromPAi L29026 ; ___ai atk_dance9 + popToSp 0 + pushFromFSp 0 + pushImm 219 + gosub 4, L24258 + ret +L24635: ;___label for action pushFromPAi L28965 ; ___ai atk_dance_start + popToSp 0 + pushFromFSp 0 + gosub 4, L18060 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 8 + gosub 4, L1226 + ret +L24668: ;___callback for action pushFromPAi L28965 ; ___ai atk_dance_start + popToSp 0 + pushFromFSp 0 + pushImm 8 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + ret +L24678: ;___callback for action pushFromPAi L28965 ; ___ai atk_dance_start + popToSp 0 + pushFromFSp 0 + pushImm 8 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + ret +L24688: ;___label for action pushFromPAi L29164 ; ___ai atk_dance_finish + popToSp 0 + pushFromFSp 0 + gosub 4, L17392 + pushFromFSp 0 + fetchValue 4 + pushImmf 8 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + gosub 4, L23929 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + ret +L24720: ;___label for action pushFromPAi L28997 ; ___ai atk_dance_wait + popToSp 0 + halt + pushFromFSp 0 + gosub 4, L15225 + memcpyToSp 16, 16 + pushFromPSp 16 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + syscall 1, 67 ; trap_obj_motion_get_length (2 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushImmf -8 + subf + popToSp 4 +L24748: + pushFromFSp 4 + pushImmf 0 + subf + supzf + jz L24767 + halt + pushFromFSp 4 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 4 + jmp L24748 +L24767: + ret +L24768: ;___label for action pushFromPAi L29045 ; ___ai atk_dance_l + popToSp 0 + pushFromFSp 0 + gosub 4, L10026 + eqz + jz L24869 + pushFromFSp 0 + pushFromPAi L28965 ; ___ai atk_dance_start (L28965) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28976 ; ___ai atk_dance5 (L28976) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28986 ; ___ai atk_dance2 (L28986) + syscall 6, 58 ; trap_obj_act_child_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28997 ; ___ai atk_dance_wait (L28997) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29026 ; ___ai atk_dance9 (L29026) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29039 ; ___ai atk_dance1 (L29039) + syscall 6, 58 ; trap_obj_act_child_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28997 ; ___ai atk_dance_wait (L28997) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29054 ; ___ai atk_dance7 (L29054) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29081 ; ___ai atk_dance8 (L29081) + syscall 6, 58 ; trap_obj_act_child_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28997 ; ___ai atk_dance_wait (L28997) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29105 ; ___ai atk_dance6 (L29105) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29105 ; ___ai atk_dance6 (L29105) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + pushFromFSpVal 180 + jz L24861 + pushFromFSp 0 + pushFromPAi L29134 ; ___ai atk_air_fight (L29134) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L24867 +L24861: + pushFromFSp 0 + pushFromPAi L29164 ; ___ai atk_dance_finish (L29164) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) +L24867: + jmp L24869 +L24869: + ret +L24870: ;___label for action pushFromPAi L29306 ; ___ai atk_dance_s + popToSp 0 + pushImm 214 + popToSp 36 + pushFromFSp 0 + pushFromPAi L29178 ; ___ai atk_dance_s2 (L29178) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + pushFromFSp 0 + gosub 12, L10145 + popToSp 32 + pushFromFSp 32 + pushImmf 0.3 + subf + infzf + jz L24909 + pushImm 217 + popToSp 36 + jmp L24925 +L24909: + pushFromFSp 32 + pushImmf 0.6 + subf + infzf + jz L24925 + pushImm 218 + popToSp 36 + jmp L24925 +L24925: + pushFromFSp 0 + fetchValue 4 + pushFromFSp 36 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L24936: + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L25029 + pushFromFSp 0 + pushImmf 0 + gosub 12, L17847 + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + pushImm 12 + add + dup + fetchValue 0 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + divf + memcpy 0 + pushFromPSp 16 + fetchValue 12 + pushImmf 8 + subf + supzf + jz L25016 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 8 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + jmp L25026 +L25016: + pushFromFSp 0 + pushFromPSp 16 + pushFromPSp 16 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) +L25026: + halt + jmp L24936 +L25029: + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushFromFSp 0 + fetchValue 36 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + ret +L25043: ;___label for action pushFromPAi L29178 ; ___ai atk_dance_s2 + popToSp 0 + pushFromFSp 0 + pushFromPSpVal 128 + pushImmf 0 + gosub 4, L20706 + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 16 + gosub 4, L1226 + pushFromFSp 0 + gosub 4, L18060 + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + ret +L25094: ;___callback for action pushFromPAi L29178 ; ___ai atk_dance_s2 + popToSp 4 + popToSp 0 + pushFromFSp 4 + pushFromFSp 0 + syscall 1, 130 ; trap_obj_cmp (2 in, 1 out) + neqz + jz L25138 + pushFromFSp 4 + memcpyToSpVal 16, 128 + pushFromFSp 0 + pushFromPAi L29178 ; ___ai atk_dance_s2 (L29178) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 4 + pushImm 16386 + pushImm 5 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + jmp L25138 +L25138: + ret +L25139: ;___label for action pushFromPAi L28992 ; ___ai atk_bomb + popToSp 0 + pushFromFSp 0 + pushImm 203 + pushImm 0 + gosub 4, L25174 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 25 + pushImmf 30 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + gosub 4, L1226 + ret +L25174: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + gosub 8, L13734 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 8 + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L13802 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) +L25198: + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L25235 + pushFromFSp 0 + gosub 8, L13763 + halt + pushFromFSp 0 + pushFromFSp 8 + gosub 8, L13864 + jz L25224 + jmp L25235 +L25222: + jmp L25224 +L25224: + pushFromFSp 0 + syscall 2, 5 ; trap_enemy_is_no_control (1 in, 1 out) + jz L25233 + halt + jmp L25224 +L25233: + jmp L25198 +L25235: + pushFromFSp 4 + pushImm 0 + sub + msbi + jz L25257 + pushFromFSp 0 + fetchValue 4 + pushFromFSp 4 + pushImmf 0 + syscall 1, 12 ; trap_sysobj_motion_change (3 in, 0 out) + jmp L25257 +L25257: + ret +L25258: ;___label for action pushFromPAi L29476 ; ___ai idle_wait + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushFromFSp 0 + fetchValue 36 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 25 + pushImmf 30 + syscall 0, 18 ; trap_random_range (2 in, 1 out) + gosub 4, L1226 + ret +L25284: ;___label for action pushFromPAi L29448 ; ___ai atk_bomb_combo + popToSp 0 + pushFromFSp 0 + fetchValue 24 + pushImm 1 + sub + eqz + jz L25304 + pushImm 5 + popToSp 4 + jmp L25309 +L25304: + pushImm 3 + popToSp 4 +L25309: + pushImm 1 + popToSp 8 + pushFromFSp 4 + pushFromFSp 4 + syscall 0, 16 ; trap_random_get (1 in, 1 out) + add +L25321: + dup + pushFromFSp 8 + sub + msb + jnz L25386 + pushFromFSp 0 + pushImm 203 + pushImm 0 + gosub 8, L25174 + pushFromFSp 0 + gosub 8, L14164 + pushImmf 2000 + subf + supzf + jz L25376 + pushFromFSp 0 + gosub 8, L10145 + pushImmf 0.85 + subf + infzf + jz L25368 + pushFromFSp 0 + pushFromPAi L29294 ; ___ai mode_bomb (L29294) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L25374 +L25368: + pushFromFSp 0 + pushFromPAi L29312 ; ___ai mode_battle_boss (L29312) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L25374: + jmp L25376 +L25376: + pushFromFSp 8 + pushImm 1 + add + popToSp 8 + jmp L25321 +L25386: + drop + pushFromFSp 0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + gosub 8, L14164 + pushFromFSp 0 + fetchValue 48 + subf + infzf + dup + jz L25422 + pushFromFSp 0 + fetchValue 24 + pushImm 1 + sub + eqz + eqzv +L25422: + jz L25451 + pushFromFSp 0 + pushFromPAi L29343 ; ___ai run3_start (L29343) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + gosub 8, L10145 + pushImmf 0.7 + subf + infzf + jz L25449 + pushFromFSp 0 + pushFromPAi L29383 ; ___ai atk_thorn1 (L29383) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L25449 +L25449: + jmp L25477 +L25451: + pushFromFSp 0 + gosub 8, L14164 + pushFromFSp 0 + fetchValue 52 + subf + infzf + jz L25471 + pushFromFSp 0 + pushFromPAi L29383 ; ___ai atk_thorn1 (L29383) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L25477 +L25471: + pushFromFSp 0 + pushFromPAi L29343 ; ___ai run3_start (L29343) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L25477: + ret +L25478: ;___label for action pushFromPAi L29294 ; ___ai mode_bomb + popToSp 0 + pushFromFSp 0 + pushFromPAi L29175 ; ___ai run3 (L29175) + pushImmf 0 + syscall 1, 90 ; trap_obj_act_shout (3 in, 0 out) + halt + pushFromFSp 0 + gosub 12, L17699 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 152 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 12, L9736 + pushFromFSp 0 + pushImmf 0 + gosub 12, L17847 + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + pushImmf 2.748894 + pushImmf 0.785398 + syscall 0, 17 ; trap_random_getf (1 in, 1 out) + addf + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImmf 1800 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 32 + pushFromPSp 32 + memcpyToSp 16, 16 + pushFromFSp 0 + fetchValue 24 + pushImm 1 + sub + eqz + jz L25614 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 100 + subf + memcpy 0 + jmp L25628 +L25614: + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 20 + subf + memcpy 0 +L25628: + pushFromFSp 0 + pushFromFSp 0 + pushImmf 0 + gosub 12, L17847 + memcpyToSp 16, 32 + pushFromPSp 32 + pushFromPSp 16 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 0 + gosub 12, L17944 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImmf 10 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29448 ; ___ai atk_bomb_combo (L29448) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + ret +L25682: ;___callback for action pushFromPAi L29294 ; ___ai mode_bomb + popToSp 0 + pushFromFSp 0 + gosub 4, L17392 + ret +L25689: ;___label for action pushFromPAi L29383 ; ___ai atk_thorn1 + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 202 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushImmf 30 + popToSp 32 +L25708: + pushFromFSp 0 + pushImm 202 + gosub 12, L13864 + eqz + jz L25852 + pushFromFSp 32 + pushImmf 0 + subf + supzf + jz L25837 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 100 + addf + memcpy 0 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromPSp 16 + pushImmf 3.141593 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 48 + pushFromPSp 48 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 12 + add + pushImmf 500 + pushFromPSp 16 + fetchValue 12 + subf + pushImmf 5 + divf + pushImmf 0 + pushImmf 16 + gosub 12, L5499 + memcpy 0 + pushFromFSp 0 + pushFromPSp 16 + pushFromPSp 16 + fetchValue 12 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + pushFromFSp 32 + syscall 0, 3 ; trap_frametime (0 in, 1 out) + subf + popToSp 32 + jmp L25837 +L25837: + halt + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + jz L25850 + jmp L25852 +L25848: + jmp L25850 +L25850: + jmp L25708 +L25852: + ret +L25853: ;___label for action pushFromPAi L29134 ; ___ai atk_air_fight + popToSp 0 + gosub 4, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + pushFromFSp 0 + gosub 12, L25880 + popToSp 4 + pushFromFSp 4 + jz L25879 + pushImm 0 + popToSpVal 180 + jmp L25879 +L25879: + ret +L25880: + popToSp 0 + popToSp 4 + pushFromPSp 16 + pushImm 13 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + pushFromFSp 4 + syscall 1, 225 ; trap_obj_is_star (1 in, 1 out) + eqz + dup + jz L25905 + pushFromFSp 4 + syscall 1, 101 ; trap_obj_motion_is_capture (1 in, 1 out) + eqz + eqzv +L25905: + dup + jz L25915 + pushFromPSp 16 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + eqzv +L25915: + popToSp 8 + pushFromFSp 8 + jz L25931 + pushFromPWp W0 + pushFromFSp 4 + pushFromFSp 0 + gosub 12, L25934 + jmp L25931 +L25931: + pushFromFSp 8 + ret +L25934: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 12, L26079 + pushImm 0 + popToSpVal 160 + pushFromPSp 16 + pushImmf 1 + gosub 12, L719 + pushFromFSp 8 + pushFromPSp 16 + pushImmf 0 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + pushFromFSp 8 + pushFromPSp 16 + syscall 1, 217 ; trap_obj_set_pos_trans (2 in, 0 out) + pushFromPSp 16 + pushImmf 0 + pushImmf 0 + pushImmf -1 + pushImmf 1 + gosub 12, L326 + pushFromFSp 8 + pushFromPSp 16 + syscall 1, 79 ; trap_obj_set_dir (2 in, 0 out) + pushFromFSp 0 + pushFromFSp 8 + pushImm 258 + pushImmf 0 + gosub 12, L1036 + drop + pushFromFSp 8 + pushImm L26097 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + pushFromPSpVal 144 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L26055 + pushFromPWp W0 + pushFromPSpVal 144 + pushImm 258 + pushImmf 0 + syscall 1, 29 ; trap_obj_motion_capture (4 in, 1 out) + drop + pushFromPAi L29462 ; ___ai riku hook start (L29462) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushFromPSpVal 144 + pushImm L26305 + pushImm 0 + syscall 1, 112 ; trap_obj_hook (3 in, 0 out) + jmp L26055 +L26055: + pushFromPSpVal 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 4 + pushFromPAi L29481 ; ___ai rc_air_fight (L29481) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29502 ; ___ai 40 (L29502) + pushFromFSp 8 + syscall 1, 157 ; trap_obj_camera_start (3 in, 0 out) + ret +L26079: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1021 + pushFromPSpVal 144 + pushImm 13 + syscall 1, 210 ; trap_obj_search_by_part (2 in, 0 out) + ret +L26097: + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 4 + pushImmf 0 + syscall 1, 13 ; trap_sysobj_motion_push (3 in, 0 out) +L26111: + pushFromFSp 0 + pushFromPWp W0 + fetchValue 132 + gosub 4, L1393 + eqz + jz L26271 + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L26268 + pushFromPWp W0 + fetchValue 160 + eqz + jz L26266 + pushImm 1 + syscall 1, 223 ; trap_camera_cancel (1 in, 0 out) + halt + pushFromFSp 0 + syscall 1, 59 ; trap_obj_is_fly (1 in, 1 out) + jz L26170 + pushFromFSp 0 + syscall 1, 95 ; trap_obj_fly_to_jump (1 in, 0 out) + pushFromFSp 0 + pushImm -1 + syscall 1, 179 ; trap_obj_set_fall_motion (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 180 ; trap_obj_set_land_motion (2 in, 0 out) + jmp L26170 +L26170: + pushFromPWp W0 + pushImm 144 + add + fetchValue 4 + pushImm 4 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromPWp W0 + pushImm 1706 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + popToSp 4 + pushFromFSp 4 + pushFromPWp W0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromFSp 4 + pushFromFSp 0 + pushImm 0 + pushImm 0 + syscall 2, 17 ; trap_attack_strike (4 in, 0 out) + pushFromFSp 4 + pushFromPWp W0 + pushImm 144 + add + pushImm 0 + pushImm 0 + syscall 2, 17 ; trap_attack_strike (4 in, 0 out) + pushFromFSp 4 + syscall 2, 13 ; trap_attack_free (1 in, 0 out) + pushFromPWp W0 + syscall 1, 127 ; trap_obj_act_clear (1 in, 0 out) + pushFromPWp W0 + fetchValue 4 + pushImm 0 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + jmp L26271 +L26264: + jmp L26266 +L26266: + jmp L26268 +L26268: + halt + jmp L26111 +L26271: + pushFromFSp 0 + pushImm 6 + syscall 1, 71 ; trap_obj_reset_flag (2 in, 0 out) + pushFromFSp 0 + syscall 1, 59 ; trap_obj_is_fly (1 in, 1 out) + jz L26304 + pushFromFSp 0 + syscall 1, 95 ; trap_obj_fly_to_jump (1 in, 0 out) + pushFromFSp 0 + pushImm -1 + syscall 1, 179 ; trap_obj_set_fall_motion (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 180 ; trap_obj_set_land_motion (2 in, 0 out) + jmp L26304 +L26304: + ret +L26305: + popToSp 0 + pushFromFSp 0 + syscall 1, 238 ; trap_obj_motion_capture_id (1 in, 1 out) + popToSp 4 + pushFromFSp 0 + gosub 4, L739 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 16386 + pushImm 1 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) +L26336: + pushFromFSp 0 + pushFromFSp 4 + gosub 4, L1393 + eqz + jz L26348 + halt + jmp L26336 +L26348: + pushFromFSp 0 + fetchValue 4 + syscall 1, 15 ; trap_sysobj_motion_id (1 in, 1 out) + pushFromPAi L29398 ; ___ai riku end motion_id (L29398) + syscall 0, 0 ; trap_puti (2 in, 0 out) + pushFromFSp 0 + syscall 1, 161 ; trap_obj_is_attach (1 in, 1 out) + jz L26370 + pushFromFSp 0 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + jmp L26370 +L26370: + pushFromFSp 0 + syscall 1, 59 ; trap_obj_is_fly (1 in, 1 out) + jz L26400 + pushFromFSp 0 + syscall 1, 95 ; trap_obj_fly_to_jump (1 in, 0 out) + pushFromPAi L29434 ; ___ai riku fly_to_jump (L29434) + syscall 0, 2 ; trap_puts (1 in, 0 out) + pushFromFSp 0 + pushImm 4 + syscall 1, 179 ; trap_obj_set_fall_motion (2 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 180 ; trap_obj_set_land_motion (2 in, 0 out) + jmp L26400 +L26400: + ret +L26401: ;___label for action pushFromPAi L29005 ; ___ai atk_shield + popToSp 0 + pushFromFSp 0 + pushImmf 0.6 + gosub 20, L26582 + pushFromFSp 0 + fetchValue 4 + pushImm 209 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) +L26422: + pushFromFSp 0 + fetchValue 4 + syscall 1, 14 ; trap_sysobj_motion_is_end (1 in, 1 out) + eqz + jz L26575 + pushFromFSp 0 + gosub 20, L13763 + pushFromFSp 0 + syscall 2, 23 ; trap_btlobj_target (1 in, 1 out) + syscall 1, 120 ; trap_target_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 4 + add + dup + fetchValue 0 + pushImmf 100 + addf + memcpy 0 + pushFromPSp 16 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromFSp 0 + gosub 20, L14164 + pushImmf 250 + subf + supzf + jz L26511 + pushFromFSp 0 + pushFromPSp 16 + pushImmf 40 + syscall 1, 111 ; trap_obj_set_movement (3 in, 0 out) + jmp L26511 +L26511: + pushFromFSp 0 + pushImm 1 + syscall 1, 151 ; trap_obj_motion_check_trigger (2 in, 1 out) + jz L26572 + pushFromFSp 0 + gosub 20, L17944 + memcpyToSp 16, 64 + pushFromPSp 64 + memcpyToSp 16, 32 + pushFromPSp 32 + pushImmf 0.8 + syscall 0, 35 ; method_vector_scale (2 in, 0 out) + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromPSp 32 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 48 + pushFromFSp 0 + pushFromPSp 48 + pushFromPSp 32 + gosub 20, L26611 + jmp L26575 +L26570: + jmp L26572 +L26572: + halt + jmp L26422 +L26575: + pushFromFSp 0 + fetchValue 4 + gosub 20, L9736 + ret +L26582: + popToSp 4 + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 32 + add + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + pushFromFSp 0 + pushFromPSp 16 + pushFromFSp 4 + syscall 1, 58 ; trap_obj_fly (3 in, 0 out) + ret +L26611: + popToSp 0 + popToSp 4 + popToSp 8 + pushImm 80 + pushImm L26638 + pushFromFSp 8 + gosub 8, L829 + popToSp 12 + pushFromFSp 12 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L26927 + ret +L26638: + popToSp 0 + pushFromFSp 0 + gosub 4, L396 + pushFromFSp 0 + gosub 4, L26653 + pushFromFSp 0 + gosub 4, L818 + ret +L26653: + popToSp 0 + pushFromPSpVal 64 + pushImmf 1.570796 + syscall 0, 13 ; trap_vector_roty (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImmf 60 + syscall 0, 35 ; method_vector_scale (2 in, 0 out) + pushFromPSpVal 32 + pushImm 4 + add + dup + fetchValue 0 + pushImmf -100 + addf + memcpy 0 + pushFromPSpVal 32 + pushFromPSp 16 + pushImmf 4 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + pushImmf -0.5 + syscall 0, 36 ; trap_vector_mul (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 112 + pushFromPSp 112 + memcpyToSp 16, 32 + pushFromPSpVal 0 + pushImm 18 + pushImm 0 + pushImm 0 + syscall 1, 21 ; trap_obj_effect_start (4 in, 1 out) + popToSp 52 + pushFromFSp 52 + pushFromPSpVal 32 + syscall 0, 38 ; trap_effect_set_pos (2 in, 0 out) + pushFromFSp 52 + pushFromPSpVal 64 + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + pushImm 0 + popToSp 76 + pushImm 5 +L26760: + dup + pushFromFSp 76 + sub + info + jnz L26870 + pushFromPSp 56 + pushFromFSp 76 + pushImm 4 + mul + add + pushFromPSpVal 0 + pushImm 1610 + pushImm -1 + pushImm 0 + syscall 2, 10 ; trap_attack_new (4 in, 1 out) + memcpy 0 + pushFromPSp 56 + pushFromFSp 76 + pushImm 4 + mul + add + fetchValue 0 + pushImmf 30 + pushImmf 200 + syscall 2, 11 ; trap_attack_set_radius (3 in, 0 out) + pushFromPSp 56 + pushFromFSp 76 + pushImm 4 + mul + add + fetchValue 0 + pushImmf 60 + pushImmf 0 + pushImmf 0 + syscall 2, 62 ; trap_attack_set_time (4 in, 0 out) + pushFromPSp 56 + pushFromFSp 76 + pushImm 4 + mul + add + fetchValue 0 + pushFromPSp 32 + syscall 2, 12 ; trap_attack_set_pos (2 in, 0 out) + pushFromPSp 32 + pushFromPSp 16 + syscall 0, 4 ; trap_vector_add (2 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + memcpyToSp 16, 32 + pushFromFSp 76 + pushImm 1 + add + popToSp 76 + jmp L26760 +L26870: + drop + pushFromPSpVal 0 + pushImm 19 + pushFromPSpVal 32 + pushImm 1 + pushImm 0 + syscall 1, 22 ; trap_obj_effect_start_pos (5 in, 1 out) + popToSp 48 + pushFromFSp 48 + pushFromPSpVal 64 + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + pushImmf 8 + gosub 24, L1226 + pushFromPSpVal 0 + pushImm 20 + pushFromPSpVal 32 + pushImm 1 + pushImm 0 + syscall 1, 22 ; trap_obj_effect_start_pos (5 in, 1 out) + popToSp 48 + pushFromFSp 52 + syscall 0, 51 ; trap_effect_kill (1 in, 0 out) + pushFromFSp 48 + pushFromPSpVal 64 + syscall 0, 41 ; trap_effect_set_dir (2 in, 0 out) + ret +L26927: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 8 + memcpyToSpVal 16, 32 + pushFromFSp 4 + memcpyToSpVal 16, 64 + pushFromPSpVal 64 + pushImm 4 + add + pushImmf 0 + memcpy 0 + pushFromPSpVal 64 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + drop + ret +L26959: ;___callback for action pushFromPAi L29005 ; ___ai atk_shield + popToSp 0 + pushFromFSp 0 + pushImmf 0 + gosub 4, L26582 + ret +L26969: ;___label for action pushFromPAi L29517 ; ___ai mode_dark_start + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImmf 0 + syscall 1, 20 ; trap_sysobj_fadein (2 in, 0 out) + pushFromFSp 0 + gosub 4, L17131 + pushFromFSp 0 + gosub 4, L23929 + pushFromFSp 0 + pushImm 23 + pushImm 0 + syscall 1, 262 ; trap_obj_voice (3 in, 0 out) + pushFromFSp 0 + fetchValue 4 + pushImm 154 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + gosub 4, L15237 + memcpyToSp 16, 16 + pushFromPSp 16 + pushImm 16386 + pushImm 0 + pushImm 0 + pushImm 0 + syscall 1, 18 ; trap_obj_attach (6 in, 0 out) + pushFromFSp 0 + fetchValue 4 + gosub 4, L9736 + pushFromFSp 0 + syscall 1, 161 ; trap_obj_is_attach (1 in, 1 out) + jz L27051 + pushFromFSp 0 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + jmp L27051 +L27051: + ret +L27052: ;___callback for action pushFromPAi L29517 ; ___ai mode_dark_start + popToSp 0 + pushFromFSp 0 + syscall 1, 161 ; trap_obj_is_attach (1 in, 1 out) + jz L27066 + pushFromFSp 0 + syscall 1, 102 ; trap_obj_detach (1 in, 0 out) + jmp L27066 +L27066: + ret +L27067: ;___label for action pushFromPAi L28982 ; ___ai reborn + popToSp 0 + pushFromFSp 0 + fetchValue 4 + pushImm 14 + pushImmf 0 + syscall 1, 11 ; trap_sysobj_motion_start (3 in, 0 out) + pushFromFSp 0 + pushImm 5 + syscall 1, 70 ; trap_obj_set_flag (2 in, 0 out) + pushFromFSp 0 + pushImm 8 + syscall 1, 53 ; method_obj_disable_collision (2 in, 0 out) + pushImmf 14 + gosub 4, L1226 + pushFromFSp 0 + gosub 4, L18060 + pushFromFSp 0 + fetchValue 4 + pushImmf 16 + syscall 1, 19 ; trap_sysobj_fadeout (2 in, 0 out) + pushImmf 16 + gosub 4, L1226 + pushFromFSp 0 + pushFromPAi L29517 ; ___ai mode_dark_start (L29517) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + ret +L27125: ;___label for action pushFromPAi L29493 ; ___ai mode_battle_dark + popToSp 0 + gosub 12, L15237 + memcpyToSp 16, 48 + pushFromPSp 48 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 64 + pushFromPSp 64 + pushFromFSp 0 + syscall 1, 147 ; trap_obj_pos (1 in, 1 out) + memcpyToSp 16, 80 + pushFromPSp 80 + syscall 0, 5 ; trap_vector_sub (2 in, 1 out) + memcpyToSp 16, 96 + pushFromPSp 96 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 0, 7 ; trap_vector_normalize (1 in, 1 out) + popToSp 32 + pushFromFSp 32 + pushImmf 1500 + subf + supzf + jz L27183 + pushFromFSp 0 + pushFromPAi L28982 ; ___ai reborn (L28982) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27220 +L27183: + pushFromFSp 0 + gosub 12, L10145 + pushImmf 0.5 + subf + infzf + jz L27208 + pushFromFSp 0 + pushFromPAi L28992 ; ___ai atk_bomb (L28992) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29005 ; ___ai atk_shield (L29005) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L27220 +L27208: + pushFromFSp 0 + pushFromPAi L29005 ; ___ai atk_shield (L29005) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L28992 ; ___ai atk_bomb (L28992) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) +L27220: + ret +L27221: ;___label for action pushFromPAi L29525 ; ___ai revenge + popToSp 0 + pushFromFSp 0 + fetchValue 24 + dup + pushImm 0 + sub + jz L27236 + jmp L27294 +L27236: + pushImm 3 + pushFromFSp 0 + fetchValue 16 + sub + pushImm 1 + sub + ipos + jz L27267 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + jmp L27267 +L27267: + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.5 + subf + infzf + jz L27286 + pushFromFSp 0 + pushFromPAi L29383 ; ___ai atk_thorn1 (L29383) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27292 +L27286: + pushFromFSp 0 + pushFromPAi L28992 ; ___ai atk_bomb (L28992) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L27292: + jmp L27369 +L27294: + dup + pushImm 1 + sub + jz L27303 + jmp L27369 +L27303: + pushFromFSp 0 + gosub 4, L14164 + pushFromFSp 0 + fetchValue 48 + subf + infzf + dup + jz L27326 + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.7 + subf + infzf + eqzv +L27326: + jz L27342 + pushFromFSp 0 + pushFromPAi L29032 ; ___ai atk_throw (L29032) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29045 ; ___ai atk_dance_l (L29045) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L27367 +L27342: + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.3 + subf + infzf + jz L27361 + pushFromFSp 0 + pushFromPAi L29060 ; ___ai atk_normal_laser3 (L29060) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27367 +L27361: + pushFromFSp 0 + pushFromPAi L28992 ; ___ai atk_bomb (L28992) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L27367: + jmp L27369 +L27369: + drop + ret +L27371: ;___label for action pushFromPAi L29333 ; ___ai btl_normal + popToSp 0 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + fetchValue 16 + pushImm 3 + sub + msb + jz L27406 + pushFromFSp 0 + pushFromPAi L29294 ; ___ai mode_bomb (L29294) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27682 +L27406: + pushFromFSp 0 + fetchValue 16 + pushImm 3 + sub + eqz + jz L27431 + pushFromFSp 0 + pushFromPAi L29032 ; ___ai atk_throw (L29032) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29045 ; ___ai atk_dance_l (L29045) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L27682 +L27431: + pushFromFSp 0 + fetchValue 16 + pushImm 20 + sub + eqz + jz L27455 + pushImm 1 + popToSpVal 176 + pushFromFSp 0 + pushFromPAi L29294 ; ___ai mode_bomb (L29294) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27682 +L27455: + pushFromFSp 0 + fetchValue 16 + pushImm 35 + sub + ipos + jz L27484 + pushFromFSp 0 + pushImm 16 + add + pushImm 25 + memcpy 0 + pushFromFSp 0 + pushFromPAi L29294 ; ___ai mode_bomb (L29294) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27682 +L27484: + pushFromFSp 0 + gosub 4, L27683 + jz L27503 + pushImm 0 + popToSpVal 176 + pushFromFSp 0 + pushFromPAi L29111 ; ___ai atk_dark (L29111) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27682 +L27503: + pushFromFSp 0 + gosub 4, L14164 + pushFromFSp 0 + fetchValue 48 + subf + infzf + jz L27561 + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.7 + subf + infzf + jz L27534 + pushFromFSp 0 + pushFromPAi L29383 ; ___ai atk_thorn1 (L29383) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27540 +L27534: + pushFromFSp 0 + pushFromPAi L28992 ; ___ai atk_bomb (L28992) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L27540: + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.4 + subf + infzf + jz L27559 + pushFromFSp 0 + pushFromPAi L29141 ; ___ai run_near (L29141) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L27559 +L27559: + jmp L27682 +L27561: + pushFromFSp 0 + gosub 4, L14164 + pushFromFSp 0 + fetchValue 52 + subf + infzf + jz L27619 + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.9 + subf + infzf + jz L27592 + pushFromFSp 0 + pushFromPAi L29141 ; ___ai run_near (L29141) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27598 +L27592: + pushFromFSp 0 + pushFromPAi L29383 ; ___ai atk_thorn1 (L29383) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L27598: + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.3 + subf + infzf + jz L27617 + pushFromFSp 0 + pushFromPAi L29343 ; ___ai run3_start (L29343) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L27617 +L27617: + jmp L27682 +L27619: + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.8 + subf + infzf + jz L27638 + pushFromFSp 0 + pushFromPAi L28992 ; ___ai atk_bomb (L28992) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27663 +L27638: + pushFromFSp 0 + pushFromPAi L29383 ; ___ai atk_thorn1 (L29383) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.5 + subf + infzf + jz L27663 + pushFromFSp 0 + pushFromPAi L28992 ; ___ai atk_bomb (L28992) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L27663 +L27663: + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.3 + subf + infzf + jz L27682 + pushFromFSp 0 + pushFromPAi L29343 ; ___ai run3_start (L29343) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L27682 +L27682: + ret +L27683: + popToSp 0 + pushFromFSp 0 + gosub 4, L27754 + dup + jz L27737 + pushFromFSp 0 + gosub 4, L10318 + memcpyToSp 16, 16 + pushFromPSp 16 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 0 + syscall 1, 230 ; trap_sheet_hp_rate (2 in, 1 out) + pushImmf 0.5 + subf + infzf + dup + jnz L27736 + gosub 12, L739 + memcpyToSp 16, 32 + pushFromPSp 32 + syscall 1, 84 ; trap_obj_sheet (1 in, 1 out) + pushImm 0 + syscall 1, 230 ; trap_sheet_hp_rate (2 in, 1 out) + pushImmf 0.5 + subf + infzf + neqzv +L27736: + eqzv +L27737: + jz L27746 + pushImm 1 + popToSp 4 + jmp L27751 +L27746: + pushImm 0 + popToSp 4 +L27751: + pushFromFSp 4 + ret +L27754: + popToSp 0 + pushFromFSpVal 176 + dup + jz L27769 + syscall 6, 2 ; trap_player_get_form (0 in, 1 out) + pushImm 3 + sub + neqz + eqzv +L27769: + jz L27778 + pushImm 1 + popToSp 4 + jmp L27783 +L27778: + pushImm 0 + popToSp 4 +L27783: + pushFromFSp 4 + ret +L27786: ;___label for action pushFromPAi L29470 ; ___ai rvg_normal + popToSp 0 + pushFromFSp 0 + gosub 4, L14164 + pushFromFSp 0 + fetchValue 48 + subf + infzf + jz L27833 + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.7 + subf + infzf + jz L27819 + pushFromFSp 0 + pushFromPAi L29306 ; ___ai atk_dance_s (L29306) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27831 +L27819: + pushFromFSp 0 + pushFromPAi L29032 ; ___ai atk_throw (L29032) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29383 ; ___ai atk_thorn1 (L29383) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) +L27831: + jmp L27864 +L27833: + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.7 + subf + infzf + jz L27858 + pushFromFSp 0 + pushFromPAi L29032 ; ___ai atk_throw (L29032) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29383 ; ___ai atk_thorn1 (L29383) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L27864 +L27858: + pushFromFSp 0 + pushFromPAi L29383 ; ___ai atk_thorn1 (L29383) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L27864: + ret +L27865: ;___label for action pushFromPAi L29356 ; ___ai btl_hard + popToSp 0 + pushFromFSp 0 + fetchValue 16 + pushImm -1 + sub + eqz + jz L27908 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + gosub 4, L27754 + jz L27906 + pushFromFSp 0 + pushFromPAi L29111 ; ___ai atk_dark (L29111) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L27906 +L27906: + jmp L28465 +L27908: + pushFromFSp 0 + fetchValue 16 + pushImm 1 + sub + msb + jz L27941 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L29060 ; ___ai atk_normal_laser3 (L29060) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28465 +L27941: + pushFromFSp 0 + fetchValue 16 + pushImm 3 + sub + msb + jz L27974 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L29185 ; ___ai atk_normal_laser1 (L29185) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28465 +L27974: + pushFromFSp 0 + fetchValue 16 + pushImm 4 + sub + msb + jz L28007 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L29060 ; ___ai atk_normal_laser3 (L29060) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28465 +L28007: + pushFromFSp 0 + fetchValue 16 + pushImm 5 + sub + msb + jz L28040 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L29383 ; ___ai atk_thorn1 (L29383) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28465 +L28040: + pushFromFSp 0 + fetchValue 16 + pushImm 6 + sub + msb + jz L28073 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L29294 ; ___ai mode_bomb (L29294) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28465 +L28073: + pushFromFSp 0 + fetchValue 16 + pushImm 7 + sub + msb + jz L28106 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L29060 ; ___ai atk_normal_laser3 (L29060) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28465 +L28106: + pushFromFSp 0 + fetchValue 16 + pushImm 10 + sub + msb + jz L28139 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L29202 ; ___ai atk_normal_laser2 (L29202) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28465 +L28139: + pushFromFSp 0 + fetchValue 16 + pushImm 11 + sub + msb + jz L28172 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L29185 ; ___ai atk_normal_laser1 (L29185) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28465 +L28172: + pushFromFSp 0 + fetchValue 16 + pushImm 12 + sub + msb + jz L28205 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + pushFromPAi L29060 ; ___ai atk_normal_laser3 (L29060) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28465 +L28205: + pushFromFSp 0 + fetchValue 16 + pushImm 13 + sub + msb + jz L28251 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + gosub 4, L27754 + jz L28244 + pushFromFSp 0 + pushFromPAi L29111 ; ___ai atk_dark (L29111) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28249 +L28244: + pushImm 1 + popToSpVal 176 +L28249: + jmp L28465 +L28251: + pushFromFSp 0 + fetchValue 16 + pushImm 14 + sub + msb + jz L28295 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushImm 1 + popToSpVal 180 + pushFromFSp 0 + pushFromPAi L29032 ; ___ai atk_throw (L29032) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29045 ; ___ai atk_dance_l (L29045) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L28465 +L28295: + pushFromFSp 0 + gosub 4, L27683 + jz L28314 + pushImm 0 + popToSpVal 176 + pushFromFSp 0 + pushFromPAi L29111 ; ___ai atk_dark (L29111) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28465 +L28314: + pushFromFSpVal 176 + eqz + jz L28367 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 1 + add + memcpy 0 + pushFromFSp 0 + fetchValue 16 + pushImm 34 + sub + ipos + jz L28365 + pushImm 1 + popToSpVal 176 + pushFromFSp 0 + pushImm 16 + add + dup + fetchValue 0 + pushImm 15 + sub + memcpy 0 + jmp L28365 +L28365: + jmp L28367 +L28367: + pushFromFSp 0 + gosub 4, L10145 + popToSp 4 + pushFromFSp 4 + pushImmf 0.3 + subf + infzf + jz L28396 + pushFromFSp 0 + pushFromPAi L29343 ; ___ai run3_start (L29343) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29383 ; ___ai atk_thorn1 (L29383) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L28465 +L28396: + pushFromFSp 4 + pushImmf 0.5 + subf + infzf + jz L28419 + pushFromFSp 0 + pushFromPAi L29343 ; ___ai run3_start (L29343) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29141 ; ___ai run_near (L29141) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + jmp L28465 +L28419: + pushFromFSp 4 + pushImmf 0.75 + subf + infzf + jz L28436 + pushFromFSp 0 + pushFromPAi L29294 ; ___ai mode_bomb (L29294) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28465 +L28436: + pushFromFSp 4 + pushImmf 0.9 + subf + infzf + jz L28453 + pushFromFSp 0 + pushFromPAi L29060 ; ___ai atk_normal_laser3 (L29060) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28465 +L28453: + pushFromFSp 0 + pushFromPAi L29032 ; ___ai atk_throw (L29032) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29045 ; ___ai atk_dance_l (L29045) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) +L28465: + ret +L28466: ;___label for action pushFromPAi L29488 ; ___ai rvg_hard + popToSp 0 + pushFromFSp 0 + gosub 4, L10145 + pushImmf 0.7 + subf + infzf + jz L28487 + pushFromFSp 0 + pushFromPAi L29185 ; ___ai atk_normal_laser1 (L29185) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + jmp L28493 +L28487: + pushFromFSp 0 + pushFromPAi L29202 ; ___ai atk_normal_laser2 (L29202) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) +L28493: + ret +L28494: ;___label for action pushFromPAi L29408 ; ___ai btl_super_hard + popToSp 0 + pushFromFSp 0 + pushFromPAi L29226 ; ___ai atk_crowd_laser (L29226) + syscall 1, 8 ; trap_obj_act_start (2 in, 0 out) + pushFromFSp 0 + pushFromPAi L29146 ; ___ai idle (L29146) + syscall 1, 9 ; trap_obj_act_push (2 in, 0 out) + ret +L28509: ;___label for action pushFromPAi L29509 ; ___ai rvg_super_hard + popToSp 0 + ret +L28512: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 20 + popToSp 24 + popToSp 28 + popToSp 32 + popToSp 0 + pushFromFSp 0 + pushFromFSp 32 + pushImm 0 + syscall 2, 9 ; trap_btlobj_set_sheet (3 in, 0 out) + pushFromFSp 0 + pushFromFSp 28 + pushFromFSp 24 + pushFromFSp 20 + pushFromFSp 16 + pushFromFSp 12 + pushFromFSp 8 + pushFromFSp 4 + gosub 12, L28558 + ret +L28558: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 16 + popToSp 20 + popToSp 24 + popToSp 28 + popToSp 0 + pushFromFSp 0 + pushFromFSp 16 + gosub 12, L28642 + pushFromFSp 0 + pushFromFSp 24 + pushFromFSp 20 + gosub 12, L28656 + pushFromFSp 0 + pushImm 28 + add + pushFromFSp 28 + memcpy 0 + pushFromFSp 0 + pushFromFSp 12 + gosub 12, L28681 + pushFromFSp 0 + pushFromFSp 8 + pushFromFSp 4 + gosub 12, L28802 + pushFromFSp 0 + pushImm 24 + add + pushImm 0 + memcpy 0 + pushFromFSp 0 + pushImm 16 + add + pushImm -1 + memcpy 0 + pushFromFSp 0 + pushImm 20 + add + pushImm -1 + memcpy 0 + ret +L28642: + popToSp 4 + popToSp 0 + pushFromFSp 0 + pushImm 36 + add + pushFromFSp 4 + memcpy 0 + ret +L28656: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushImm 48 + add + pushFromFSp 8 + memcpy 0 + pushFromFSp 0 + pushImm 52 + add + pushFromFSp 4 + memcpy 0 + ret +L28681: + popToSp 4 + popToSp 0 + pushFromFSp 4 + dup + pushImm 5 + sub + jz L28696 + jmp L28718 +L28696: + pushFromFSp 0 + pushImm 56 + add + pushImmf 2500 + memcpy 0 + pushFromFSp 0 + pushImm 60 + add + pushImmf 1800 + memcpy 0 + jmp L28800 +L28718: + dup + pushImm 6 + sub + jz L28727 + jmp L28749 +L28727: + pushFromFSp 0 + pushImm 56 + add + pushImmf 2500 + memcpy 0 + pushFromFSp 0 + pushImm 60 + add + pushImmf 1200 + memcpy 0 + jmp L28800 +L28749: + syscall 1, 23 ; trap_area_world (0 in, 1 out) + pushImm 10 + sub + eqz + jz L28780 + pushFromFSp 0 + pushImm 56 + add + pushImmf 2500 + memcpy 0 + pushFromFSp 0 + pushImm 60 + add + pushImmf 1200 + memcpy 0 + jmp L28800 +L28780: + pushFromFSp 0 + pushImm 56 + add + pushImmf 2000 + memcpy 0 + pushFromFSp 0 + pushImm 60 + add + pushImmf 1200 + memcpy 0 +L28800: + drop + ret +L28802: + popToSp 4 + popToSp 8 + popToSp 0 + pushFromFSp 0 + pushImm 64 + add + pushFromFSp 8 + memcpy 0 + pushFromFSp 0 + pushImm 68 + add + pushFromFSp 4 + memcpy 0 + ret +L28827: + popToSp 0 + popToSp 4 + popToSp 8 + popToSp 12 + pushImm 84 + pushImm L28860 + pushFromFSp 12 + gosub 8, L829 + popToSp 16 + pushFromFSp 16 + pushFromFSp 8 + pushFromFSp 4 + pushFromFSp 0 + gosub 8, L28944 + pushFromFSp 16 + ret +D28860: +L28860: + popToSp 0 + pushFromFSp 0 + gosub 4, L28875 + pushFromFSp 0 + gosub 4, L28890 + pushFromFSp 0 + gosub 4, L818 + ret +L28875: + popToSp 0 + pushFromFSp 0 + gosub 4, L396 + pushFromPSpVal 64 + gosub 4, L475 + pushFromPSpVal 68 + gosub 4, L475 + ret +L28890: + popToSp 0 +L28892: + pushFromPSpVal 0 + fetchValue 4 + syscall 1, 94 ; trap_sysobj_is_exist (1 in, 1 out) + jz L28943 + pushFromPSpVal 0 + pushFromFSpVal 80 + syscall 1, 150 ; trap_obj_motion_check_range (2 in, 1 out) + jz L28932 + pushFromPSpVal 64 + pushFromPSpVal 0 + pushFromFSpVal 72 + pushImm 0 + gosub 4, L483 + pushFromPSpVal 68 + pushFromPSpVal 0 + pushFromFSpVal 76 + pushImm 0 + gosub 4, L483 + jmp L28940 +L28932: + pushFromPSpVal 64 + gosub 4, L6925 + pushFromPSpVal 68 + gosub 4, L6925 +L28940: + halt + jmp L28892 +L28943: + ret +L28944: + popToSp 4 + popToSp 8 + popToSp 12 + popToSp 0 + pushFromFSp 12 + popToSpVal 80 + pushFromFSp 8 + popToSpVal 72 + pushFromFSp 4 + popToSpVal 76 + ret +L28965: +D28965: +TXT28965: + db 'atk_dance_start',0 +L28973: +TXT28973: + db 'leave',0 +L28976: +TXT28976: + db 'atk_dance5',0,0 +L28982: +TXT28982: + db 'reborn',0,0 +L28986: +TXT28986: + db 'atk_dance2',0,0 +L28992: +TXT28992: + db 'atk_bomb',0,0 +L28997: +TXT28997: + db 'atk_dance_wait',0,0 +L29005: +TXT29005: + db 'atk_shield',0,0 +L29011: +TXT29011: + db 'dead',0,0 +L29014: +TXT29014: + db 'rc_invitation_to_dark2',0,0 +L29026: +TXT29026: + db 'atk_dance9',0,0 +L29032: +TXT29032: + db 'atk_throw',0 +TXT29037: +L29037: + db '50',0,0 +L29039: +TXT29039: + db 'atk_dance1',0,0 +L29045: +TXT29045: + db 'atk_dance_l',0 +L29051: +TXT29051: + db 'run2',0,0 +L29054: +TXT29054: + db 'atk_dance7',0,0 +L29060: +TXT29060: + db 'atk_normal_laser3',0 +L29069: +TXT29069: + db 'init',0,0 +TXT29072: +L29072: + db 'riku detach',0 +L29078: +TXT29078: + db 'stop',0,0 +L29081: +TXT29081: + db 'atk_dance8',0,0 +TXT29087: + db 'jump start',0,0 +L29093: +TXT29093: + db 'atk_normal_laser3_child',0 +L29105: +TXT29105: + db 'atk_dance6',0,0 +L29111: +TXT29111: + db 'atk_dark',0,0 +TXT29116: + db 'jump end',0,0 +L29121: +TXT29121: + db 'atk_normal_laser3_finish',0,0 +L29134: +TXT29134: + db 'atk_air_fight',0 +L29141: +TXT29141: + db 'run_near',0,0 +L29146: +TXT29146: + db 'idle',0,0 +L29149: +TXT29149: + db 'rc_invitation_to_dark2_finish',0 +L29164: +TXT29164: + db 'atk_dance_finish',0,0 +L29173: +TXT29173: + db '51',0,0 +L29175: +TXT29175: + db 'run3',0,0 +L29178: +TXT29178: + db 'atk_dance_s2',0,0 +L29185: +TXT29185: + db 'atk_normal_laser1',0 +TXT29194: +L29194: + db '71',0,0 +TXT29196: +L29196: + db 'btl_attack',0,0 +L29202: +TXT29202: + db 'atk_normal_laser2',0 +TXT29211: +L29211: + db '72',0,0 +TXT29213: +L29213: + db 'btl_short',0 +TXT29218: +L29218: + db 'btl_long',0,0 +TXT29223: +L29223: + db 'dark',0,0 +L29226: +TXT29226: + db 'atk_crowd_laser',0 +TXT29234: +L29234: + db 'rvg_short',0 +L29239: +TXT29239: + db 'rc_crowd_laser_finish',0 +TXT29250: +L29250: + db 'rvg_long',0,0 +L29255: +TXT29255: + db 'run_start',0 +L29260: +TXT29260: + db 'event',0 +TXT29263: +L29263: + db 'camera start 70',0 +L29271: +TXT29271: + db 'mode_battle',0 +L29277: +TXT29277: + db 'laser_faint',0 +L29283: +TXT29283: + db 'walk',0,0 +L29286: +TXT29286: + db 'run2_start',0,0 +TXT29292: +L29292: + db '11',0,0 +L29294: +TXT29294: + db 'mode_bomb',0 +L29299: +TXT29299: + db 'idle_time',0 +TXT29304: +L29304: + db '70',0,0 +L29306: +TXT29306: + db 'atk_dance_s',0 +L29312: +TXT29312: + db 'mode_battle_boss',0,0 +L29321: +TXT29321: + db 'freeze',0,0 +L29325: +TXT29325: + db 'footwork',0,0 +L29330: +TXT29330: + db 'talk',0,0 +L29333: +TXT29333: + db 'btl_normal',0,0 +TXT29339: +L29339: + db 'range 1',0 +L29343: +TXT29343: + db 'run3_start',0,0 +L29349: +TXT29349: + db 'mode_revenge',0,0 +L29356: +TXT29356: + db 'btl_hard',0,0 +TXT29361: +L29361: + db 'crowd_laser_finish',0,0 +TXT29371: +L29371: + db 'range 2',0 +TXT29375: + db 'laser start',0 +L29381: +TXT29381: + db 'run',0 +L29383: +TXT29383: + db 'atk_thorn1',0,0 +L29389: +TXT29389: + db 'mode_revenge_boss',0 +TXT29398: +L29398: + db 'riku end motion_id',0,0 +L29408: +TXT29408: + db 'btl_super_hard',0,0 +TXT29416: +L29416: + db '@ref_count',0,0 +L29422: +TXT29422: + db 'appear',0,0 +L29426: +TXT29426: + db 'walk_start',0,0 +L29432: +TXT29432: + db 'INT',0 +TXT29434: +L29434: + db 'riku fly_to_jump',0,0 +L29443: +TXT29443: + db 'near_wait',0 +L29448: +TXT29448: + db 'atk_bomb_combo',0,0 +L29456: +TXT29456: + db 'atk_dance4',0,0 +TXT29462: +L29462: + db 'riku hook start',0 +L29470: +TXT29470: + db 'rvg_normal',0,0 +L29476: +TXT29476: + db 'idle_wait',0 +L29481: +TXT29481: + db 'rc_air_fight',0,0 +L29488: +TXT29488: + db 'rvg_hard',0,0 +L29493: +TXT29493: + db 'mode_battle_dark',0,0 +TXT29502: +L29502: + db '40',0,0 +TXT29504: +L29504: + db '61',0,0 +L29506: +TXT29506: + db 'near',0,0 +L29509: +TXT29509: + db 'rvg_super_hard',0,0 +L29517: +TXT29517: + db 'mode_dark_start',0 +L29525: +TXT29525: + db 'revenge',0 +L29529: +TXT29529: + db 'rc_crowd_laser',0,0 +TXT29537: + db 'rst_normal',0,0 +TXT29543: +L29543: + db 'right',0 +TXT29546: + db 'rst_hard',0,0 +TXT29551: +L29551: + db '60',0,0 +TXT29553: + db 'rst_super_hard',0,0 +L29561: +TXT29561: + db 'atk_normal_laser1_child',0 + + section .bss +W0: + resb 176 +W176: + resb 272 +W448: + resb 240 +W688: + resb 176 +W864: + resb 208 +W1072: + resb 192 +W1264: + resb 4112 diff --git a/obj/B_NM000.bdscript b/obj/B_NM000.bdscript index eea3be5..08e1a2b 100644 --- a/obj/B_NM000.bdscript +++ b/obj/B_NM000.bdscript @@ -4,24 +4,24 @@ StackSize: 512 TempSize: 512 Triggers: - Key: 10 - Addr: TR10 + Addr: SIGNAL_CALLBACK - Key: 17 - Addr: TR17 + Addr: OBJ_ANMATR_CALLBACK - Key: 6 - Addr: TR6 + Addr: OBJ_DAMAGE - Key: 13 - Addr: TR13 + Addr: OBJ_FALL - Key: 1 - Addr: TR1 + Addr: OBJ_MAIN - Key: 0 - Addr: TR0 + Addr: OBJ_INIT Name: b_nm000 --- ; codeLabels: ; codeRevealer: -l 262 -l 537 -l 2052 -l 3784 -l 4024 -l 4083 -l 4084 -l 4101 -l 4106 -l 4121 -l 4307 -l 4384 -l 4451 -l 4556 -l 4569 -l 4714 -l 4756 -l 4822 -l 4888 -l 4947 -l 4956 -l 4965 -l 5132 -l 5145 -l 5170 -l 5310 -l 5434 -l 5462 -l 6032 -l 6053 -l 6196 -l 6217 -l 6275 -l 6374 -l 6426 -l 6459 -l 6492 -l 6525 -l 6580 -l 6721 -l 6728 -l 6739 -l 6935 -l 7120 -l 7182 -l 7333 -l 7439 -l 7551 -l 7663 section .text -TR10: +SIGNAL_CALLBACK: popToSp 0 popToSp 4 pushFromFSp 4 @@ -39,7 +39,7 @@ L49: L59: drop ret -TR17: +OBJ_ANMATR_CALLBACK: popToSp 0 popToSp 4 popToSp 8 @@ -694,7 +694,7 @@ L1216: jmp L1232 L1232: ret -TR6: +OBJ_DAMAGE: popToSp 0 pushFromPWp W192 pushFromFSp 0 @@ -868,7 +868,7 @@ L1520: L1532: pushFromFWp W0 ret -TR13: +OBJ_FALL: pushFromPWp W192 pushImmf 0 syscall 1, 128 ; trap_obj_sysjump (2 in, 0 out) @@ -880,7 +880,7 @@ TR13: pushFromPWp W192 syscall 1, 65 ; trap_obj_exec_fall (1 in, 0 out) ret -TR1: +OBJ_MAIN: pushFromPWp W192 gosub 4, L1564 ret @@ -1217,7 +1217,7 @@ L2097: popToSp 4 pushFromFSp 4 ret -TR0: +OBJ_INIT: popToSp 0 pushFromPWp W192 pushFromFSp 0 @@ -1798,7 +1798,7 @@ L3590: syscall 1, 311 ; trap_sheet_set_element_rate (3 in, 0 out) pushImm 0 popToWp W4 - ;set AI to phase 3 + ;Fast Oogie Boogie (set AI to phase 3) pushFromFSp 0 pushImm 24 add diff --git a/obj/F_AL050.bdscript b/obj/F_AL050.bdscript index 7b5a8c7..1f64e71 100644 --- a/obj/F_AL050.bdscript +++ b/obj/F_AL050.bdscript @@ -4,18 +4,18 @@ StackSize: 512 TempSize: 512 Triggers: - Key: 6 - Addr: TR6 + Addr: OBJ_DAMAGE - Key: 1 - Addr: TR1 + Addr: OBJ_MAIN - Key: 0 - Addr: TR0 + Addr: OBJ_INIT Name: f_al050 --- ; codeLabels: ; codeRevealer: -l 186 -l 207 -l 1080 -l 1354 -l 1410 -l 1504 -l 1521 -l 1598 -l 1795 -l 1851 -l 1867 -l 1972 -l 1985 -l 2130 -l 2172 -l 2238 -l 2304 -l 2363 -l 2368 -l 2562 -l 2590 -l 2787 section .text -TR6: +OBJ_DAMAGE: popToSp 0 pushFromPWp W144 pushFromFSp 0 @@ -105,7 +105,7 @@ L146: jmp L167 L167: ret -TR1: +OBJ_MAIN: pushFromPWp W144 gosub 4, L173 ret @@ -152,7 +152,7 @@ L208: jmp L232 L232: ret -TR0: +OBJ_INIT: popToSp 0 pushFromPWp W144 pushFromFSp 0 diff --git a/obj/F_BB040.bdscript b/obj/F_BB040.bdscript index fe794c0..76860ba 100644 --- a/obj/F_BB040.bdscript +++ b/obj/F_BB040.bdscript @@ -4,18 +4,18 @@ StackSize: 512 TempSize: 512 Triggers: - Key: 6 - Addr: TR6 + Addr: OBJ_DAMAGE - Key: 1 - Addr: TR1 + Addr: OBJ_MAIN - Key: 0 - Addr: TR0 + Addr: OBJ_INIT Name: f_bb040 --- ; codeLabels: ; codeRevealer: -l 147 -l 168 -l 905 -l 1179 -l 1235 -l 1329 -l 1346 -l 1423 -l 1620 -l 1676 -l 1692 -l 1797 -l 1810 -l 1955 -l 1997 -l 2063 -l 2129 -l 2188 -l 2193 -l 2387 -l 2415 -l 2502 section .text -TR6: +OBJ_DAMAGE: popToSp 0 pushFromPWp W144 pushFromFSp 0 @@ -80,7 +80,7 @@ L107: jmp L128 L128: ret -TR1: +OBJ_MAIN: pushFromPWp W144 gosub 4, L134 ret @@ -133,7 +133,7 @@ L191: jmp L200 L200: ret -TR0: +OBJ_INIT: popToSp 0 pushFromPWp W144 pushFromFSp 0 diff --git a/obj/F_HB130.bdscript b/obj/F_HB130.bdscript index d2024b4..ab86fcf 100644 --- a/obj/F_HB130.bdscript +++ b/obj/F_HB130.bdscript @@ -4,23 +4,23 @@ StackSize: 512 TempSize: 512 Triggers: - Key: 11 - Addr: TR11 + Addr: REACTION_CALLBACK - Key: 1 - Addr: TR1 + Addr: OBJ_MAIN - Key: 0 - Addr: TR0 + Addr: OBJ_INIT Name: f_hb130 --- ; codeLabels: ; codeRevealer: -l 39 -l 701 -l 975 -l 1034 -l 1035 -l 1129 -l 1146 -l 1151 -l 1166 -l 1243 -l 1440 -l 1496 -l 1512 -l 1617 -l 1630 -l 1775 -l 1817 -l 1883 -l 1949 -l 2008 -l 2020 -l 2459 section .text -TR11: +REACTION_CALLBACK: popToSp 0 popToSp 4 popToSp 8 ret -TR1: +OBJ_MAIN: pushFromPWp W0 gosub 4, L34 ret @@ -32,7 +32,7 @@ L36: D39: L39: ret -TR0: +OBJ_INIT: popToSp 0 pushFromPWp W0 pushFromFSp 0 diff --git a/obj/F_HE000.bdscript b/obj/F_HE000.bdscript index efe61e8..6e9194d 100644 --- a/obj/F_HE000.bdscript +++ b/obj/F_HE000.bdscript @@ -4,18 +4,18 @@ StackSize: 512 TempSize: 512 Triggers: - Key: 6 - Addr: TR6 + Addr: OBJ_DAMAGE - Key: 1 - Addr: TR1 + Addr: OBJ_MAIN - Key: 0 - Addr: TR0 + Addr: OBJ_INIT Name: f_he000 --- ; codeLabels: ; codeRevealer: -l 181 -l 883 -l 1157 -l 1216 -l 1217 -l 1311 -l 1328 -l 1405 -l 1602 -l 1658 -l 1674 -l 1779 -l 1792 -l 1937 -l 1979 -l 2045 -l 2111 -l 2170 -l 2175 -l 2328 -l 2356 -l 2454 section .text -TR6: +OBJ_DAMAGE: popToSp 0 pushFromPWp W120 pushFromFSp 0 @@ -101,7 +101,7 @@ L145: jmp L166 L166: ret -TR1: +OBJ_MAIN: pushFromPWp W120 gosub 4, L172 ret @@ -135,7 +135,7 @@ L204: jmp L213 L213: ret -TR0: +OBJ_INIT: popToSp 0 pushFromPWp W120 pushFromFSp 0 diff --git a/obj/F_MU040.bdscript b/obj/F_MU040.bdscript index e6e2970..2c28ba7 100644 --- a/obj/F_MU040.bdscript +++ b/obj/F_MU040.bdscript @@ -4,18 +4,18 @@ StackSize: 512 TempSize: 512 Triggers: - Key: 6 - Addr: TR6 + Addr: OBJ_DAMAGE - Key: 1 - Addr: TR1 + Addr: OBJ_MAIN - Key: 0 - Addr: TR0 + Addr: OBJ_INIT Name: f_mu040 --- ; codeLabels: ; codeRevealer: -l 210 -l 214 -l 895 -l 1169 -l 1225 -l 1319 -l 1336 -l 1341 -l 1356 -l 1433 -l 1630 -l 1686 -l 1702 -l 1807 -l 1820 -l 1965 -l 2007 -l 2073 -l 2139 -l 2198 -l 2403 -l 2687 -l 2851 -l 2958 -l 2986 -l 3084 section .text -TR6: +OBJ_DAMAGE: popToSp 0 pushFromPWp W0 pushFromFSp 0 @@ -110,7 +110,7 @@ L160: jmp L181 L181: ret -TR1: +OBJ_MAIN: pushFromPWp W0 gosub 4, L187 ret @@ -151,7 +151,7 @@ L215: jmp L239 L239: ret -TR0: +OBJ_INIT: popToSp 0 pushFromPWp W0 pushFromFSp 0 diff --git a/obj/F_NM070.bdscript b/obj/F_NM070.bdscript index 447758e..213b26a 100644 --- a/obj/F_NM070.bdscript +++ b/obj/F_NM070.bdscript @@ -4,24 +4,24 @@ StackSize: 512 TempSize: 512 Triggers: - Key: 15 - Addr: TR15 + Addr: OBJ_ATTACK - Key: 10 - Addr: TR10 + Addr: SIGNAL_CALLBACK - Key: 11 - Addr: TR11 + Addr: REACTION_CALLBACK - Key: 6 - Addr: TR6 + Addr: OBJ_DAMAGE - Key: 1 - Addr: TR1 + Addr: OBJ_MAIN - Key: 0 - Addr: TR0 + Addr: OBJ_INIT Name: f_nm070 --- ; codeLabels: ; codeRevealer: -l 368 -l 1116 -l 1378 -l 1437 -l 1438 -l 1532 -l 1549 -l 1554 -l 1569 -l 1755 -l 1832 -l 1899 -l 2004 -l 2017 -l 2162 -l 2204 -l 2270 -l 2336 -l 2395 -l 2412 -l 2696 -l 2712 -l 2763 section .text -TR15: +OBJ_ATTACK: popToSp 0 popToSp 4 pushFromFSp 4 @@ -56,7 +56,7 @@ L78: memcpy 0 pushFromPSp 0 ret -TR10: +SIGNAL_CALLBACK: popToSp 0 popToSp 4 pushFromFSp 4 @@ -72,7 +72,7 @@ L105: L111: drop ret -TR11: +REACTION_CALLBACK: popToSp 0 popToSp 4 popToSp 8 @@ -144,7 +144,7 @@ L233: pushFromFSp 4 popToSpVal 4 ret -TR6: +OBJ_DAMAGE: popToSp 0 pushFromPWp W0 pushFromFSp 0 @@ -200,7 +200,7 @@ L330: jmp L332 L332: ret -TR1: +OBJ_MAIN: pushFromPWp W0 gosub 4, L338 ret @@ -240,7 +240,7 @@ L369: jmp L393 L393: ret -TR0: +OBJ_INIT: popToSp 0 pushFromPWp W0 pushFromFSp 0 diff --git a/obj/N_CM000_BTL.bdscript b/obj/N_CM000_BTL.bdscript index 8191eca..2a2e551 100644 --- a/obj/N_CM000_BTL.bdscript +++ b/obj/N_CM000_BTL.bdscript @@ -4,24 +4,24 @@ StackSize: 512 TempSize: 512 Triggers: - Key: 15 - Addr: TR15 + Addr: OBJ_ATTACK - Key: 11 - Addr: TR11 + Addr: REACTION_CALLBACK - Key: 6 - Addr: TR6 + Addr: OBJ_DAMAGE - Key: 13 - Addr: TR13 + Addr: OBJ_FALL - Key: 1 - Addr: TR1 + Addr: OBJ_MAIN - Key: 0 - Addr: TR0 + Addr: OBJ_INIT Name: n_cm000_btl --- ; codeLabels: ; codeRevealer: -l 695 -l 1124 -l 1508 -l 3744 -l 3984 -l 4043 -l 4044 -l 4061 -l 4066 -l 4081 -l 4267 -l 4344 -l 4411 -l 4516 -l 4529 -l 4674 -l 4918 -l 5011 -l 5070 -l 5089 -l 5188 -l 5189 -l 5210 -l 5799 -l 5846 -l 6066 -l 6107 -l 6303 -l 7014 -l 7228 -l 7588 -l 7625 -l 7788 -l 8410 -l 8546 -l 8553 -l 8564 -l 8701 -l 8790 -l 8797 -l 8808 -l 8974 -l 9109 -l 9116 -l 9374 -l 9450 -l 9464 -l 10306 -l 10332 -l 10376 -l 10922 -l 10948 -l 10992 -l 11115 -l 11329 -l 11339 -l 11541 -l 11644 -l 11663 -l 11845 -l 11870 -l 11889 -l 11928 -l 12036 -l 12358 -l 12692 -l 13100 -l 13122 -l 13260 -l 13338 -l 13394 -l 13525 -l 13563 -l 13600 -l 13691 -l 13740 -l 14370 -l 14437 -l 14450 -l 14617 -l 14712 -l 14814 -l 14928 -l 14936 -l 14948 -l 14958 -l 15048 -l 15060 -l 15070 -l 15078 -l 15398 -l 15456 -l 16099 -l 16192 -l 16578 -l 16648 -l 16683 -l 16905 -l 17335 -l 18689 -l 18783 -l 18877 -l 18886 section .text -TR15: +OBJ_ATTACK: popToSp 0 popToSp 4 pushFromFSp 4 @@ -248,7 +248,7 @@ L398: memcpy 0 pushFromPSp 0 ret -TR11: +REACTION_CALLBACK: popToSp 0 popToSp 4 popToSp 8 @@ -662,7 +662,7 @@ L1124: gosub 4, L735 drop ret -TR6: +OBJ_DAMAGE: popToSp 0 pushFromPWp W152 pushFromFSp 0 @@ -844,7 +844,7 @@ L1418: neqzv L1446: ret -TR13: +OBJ_FALL: pushFromPWp W152 pushImmf 0 syscall 1, 128 ; trap_obj_sysjump (2 in, 0 out) @@ -856,7 +856,7 @@ TR13: pushFromPWp W152 syscall 1, 65 ; trap_obj_exec_fall (1 in, 0 out) ret -TR1: +OBJ_MAIN: pushFromPWp W152 gosub 4, L1476 ret @@ -883,7 +883,7 @@ L1505: D1508: L1508: ret -TR0: +OBJ_INIT: popToSp 0 pushFromPWp W152 pushFromFSp 0