{"type": "func", "start": 6120364, "end": 6120844, "name": "EditTriggersPopup::init", "pseudocode": "// \n// EditTriggersPopup::init from 0x5d63ac to 0x5d658c (480 bytes)\n// \n// 1 xrefs:\n// > EditTriggersPopup::create @ 0x5d6636\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:54:09 +0000\n// \n\nint __fastcall EditTriggersPopup::init(EditTriggersPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3)\n{\n  int v4; // r8\n  cocos2d::CCDirector *v5; // r0\n  const char *v6; // r2\n  int v7; // r7\n  void (__fastcall *v8)(int, _DWORD *); // r11\n  ButtonSprite *v9; // r0\n  int v10; // r0\n  int v11; // r9\n  const cocos2d::CCPoint *v12; // r11\n  void (__fastcall *v13)(int, _BYTE *); // r10\n  float v15; // [sp+10h] [bp-44h]\n  float v16; // [sp+14h] [bp-40h] BYREF\n  float v17; // [sp+18h] [bp-3Ch]\n  _BYTE v18[8]; // [sp+1Ch] [bp-38h] BYREF\n  _BYTE v19[8]; // [sp+24h] [bp-30h] BYREF\n  _DWORD v20[2]; // [sp+2Ch] [bp-28h] BYREF\n  int v21[3]; // [sp+34h] [bp-20h] BYREF\n  int v22[3]; // [sp+40h] [bp-14h] BYREF\n\n  v4 = SetupTriggerPopup::init(this, a2, a3, 330.0, 120.0, 1, 0.0);\n  if ( v4 )\n  {\n    v5 = (cocos2d::CCDirector *)(*(int (__fastcall **)(EditTriggersPopup *))(*(_DWORD *)this + 680))(this);\n    cocos2d::CCDirector::sharedDirector(v5);\n    cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v16);\n    v7 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)\"Edit Triggers\", \"goldFont.fnt\", v6);\n    (*(void (__fastcall **)(EditTriggersPopup *, int))(*(_DWORD *)this + 228))(this, v7);\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 80))(v7, 1060320051);\n    v8 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v7 + 92);\n    cocos2d::CCPoint::CCPoint(\n      (cocos2d::CCPoint *)v20,\n      v16 * 0.5,\n      (float)((float)(*((float *)this + 140) * 0.5) + (float)(v17 * 0.5)) - 18.0);\n    v8(v7, v20);\n    v9 = ButtonSprite::create(\n           (ButtonSprite *)\"OK\",\n           (const char *)&word_28,\n           0,\n           0.8,\n           1,\n           \"goldFont.fnt\",\n           \"GJ_button_01.png\",\n           (const char *)0x41F00000,\n           v15);\n    v20[0] = 684;\n    v20[1] = 1;\n    v10 = CCMenuItemSpriteExtra::create((int)v9, 0, (int)this, 684, 1);\n    (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v10);\n    memset(v21, 0, sizeof(v21));\n    std::string::__init(v21, \"Help\", 4u);\n    memset(v22, 0, sizeof(v22));\n    std::string::__init(\n      v22,\n      \"<cg>Edit attributes of the selected triggers.</c>\\n\"\n      \"<cy>Touch Triggers makes the object activate on player touch.</c>\\n\"\n      \"<cl>Spawn Triggered makes the triggers activate from a spawn trigger.</c>\",\n      0xBDu);\n    v11 = InfoAlertButton::create(v21, v22, 1065353216);\n    std::string::~string((int)v22);\n    std::string::~string((int)v21);\n    (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v11);\n    v12 = *((const cocos2d::CCPoint **)this + 111);\n    v13 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92);\n    cocos2d::CCPoint::CCPoint(\n      (cocos2d::CCPoint *)v18,\n      (float)((float)(v16 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 18.0,\n      (float)((float)(*((float *)this + 140) * 0.5) + (float)(v17 * 0.5)) - 18.0);\n    cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v19, v12);\n    v13(v11, v19);\n    *((_DWORD *)this + 125) = -1;\n    SetupTriggerPopup::createMultiTriggerItemsDefault(this);\n  }\n  return v4;\n}", "assembly": "; \n; EditTriggersPopup::init from 0x5d63ac to 0x5d658c (480 bytes)\n; \n; 1 xrefs:\n; > EditTriggersPopup::create @ 0x5d6636\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:54:09 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x5d63ac\nMOV.W           R10, #1                                                ; +0x4, 0x5d63b0\nVPUSH           {D8}                                                   ; +0x8, 0x5d63b4\nMOV             R4, R0                                                 ; +0xc, 0x5d63b8\nLDR             R5, =(__stack_chk_guard_ptr - 0x5D63C0)                ; +0xe, 0x5d63ba\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x5d63bc\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x5d63be\nSUB             SP, SP, #0x54                                          ; +0x14, 0x5d63c0\nLDR             R3, [R5]                                               ; +0x16, 0x5d63c2\nSTR.W           R10, [SP,#0x54+var_50]; int                            ; +0x18, 0x5d63c4\nSTR             R3, [SP,#0x54+var_8]                                   ; +0x1c, 0x5d63c8\nLDR             R3, flt_5D658C                                         ; +0x1e, 0x5d63ca\nSTR             R3, [SP,#0x54+var_54]; float                           ; +0x20, 0x5d63cc\nMOVS            R3, #0                                                 ; +0x22, 0x5d63ce\nSTR             R3, [SP,#0x54+var_4C]; float                           ; +0x24, 0x5d63d0\nLDR             R3, flt_5D6590; float                                  ; +0x26, 0x5d63d2\nBL              _ZN17SetupTriggerPopup4initEP16EffectGameObjectPN7cocos2d7CCArrayEffif; SetupTriggerPopup::init(EffectGameObject *,cocos2d::CCArray *,float,float,int,float) ; +0x28, 0x5d63d4\nMOV             R8, R0                                                 ; +0x2c, 0x5d63d8\nCMP             R0, #0                                                 ; +0x2e, 0x5d63da\nBEQ.W           loc_5D6562                                             ; +0x30, 0x5d63dc\nLDR             R3, [R4]                                               ; +0x34, 0x5d63e0\nMOV             R0, R4                                                 ; +0x36, 0x5d63e2\nLDR.W           R9, =(aGoldfontFnt - 0x5D63F6); \"goldFont.fnt\"         ; +0x38, 0x5d63e4\nVMOV.F32        S16, #0.5                                              ; +0x3c, 0x5d63e8\nADD             R6, SP, #0x54+var_28                                   ; +0x40, 0x5d63ec\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x42, 0x5d63ee\nADD             R9, PC; \"goldFont.fnt\"                                 ; +0x46, 0x5d63f2\nBLX             R3                                                     ; +0x48, 0x5d63f4\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x4a, 0x5d63f6\nVMOV.F32        S17, #18.0                                             ; +0x4e, 0x5d63fa\nMOV             R1, R0                                                 ; +0x52, 0x5d63fe\nADD             R0, SP, #0x54+var_40; this                             ; +0x54, 0x5d6400\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x56, 0x5d6402\nLDR             R0, =(aEditTriggers - 0x5D640E); \"Edit Triggers\"       ; +0x5a, 0x5d6406\nMOV             R1, R9; char *                                         ; +0x5c, 0x5d6408\nADD             R0, PC; \"Edit Triggers\"                                ; +0x5e, 0x5d640a\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x60, 0x5d640c\nLDR             R3, [R4]                                               ; +0x64, 0x5d6410\nLDR.W           R3, [R3,#0xE4]                                         ; +0x66, 0x5d6412\nMOV             R7, R0                                                 ; +0x6a, 0x5d6416\nMOV             R0, R4                                                 ; +0x6c, 0x5d6418\nMOV             R1, R7                                                 ; +0x6e, 0x5d641a\nBLX             R3                                                     ; +0x70, 0x5d641c\nLDR             R3, [R7]                                               ; +0x72, 0x5d641e\nMOV             R0, R7                                                 ; +0x74, 0x5d6420\nLDR             R1, =0x3F333333                                        ; +0x76, 0x5d6422\nLDR             R3, [R3,#0x50]                                         ; +0x78, 0x5d6424\nBLX             R3                                                     ; +0x7a, 0x5d6426\nVLDR            S15, [R4,#0x230]                                       ; +0x7c, 0x5d6428\nLDR             R3, [R7]                                               ; +0x80, 0x5d642c\nMOV             R0, R6; this                                           ; +0x82, 0x5d642e\nVLDR            S14, [SP,#0x54+var_3C]                                 ; +0x84, 0x5d6430\nLDR.W           R11, [R3,#0x5C]                                        ; +0x88, 0x5d6434\nVMUL.F32        S15, S15, S16                                          ; +0x8c, 0x5d6438\nVMLA.F32        S15, S14, S16                                          ; +0x90, 0x5d643c\nVLDR            S14, [SP,#0x54+var_40]                                 ; +0x94, 0x5d6440\nVMUL.F32        S14, S14, S16                                          ; +0x98, 0x5d6444\nVSUB.F32        S15, S15, S17                                          ; +0x9c, 0x5d6448\nVMOV            R1, S14; float                                         ; +0xa0, 0x5d644c\nVMOV            R2, S15; float                                         ; +0xa4, 0x5d6450\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa8, 0x5d6454\nMOV             R0, R7                                                 ; +0xac, 0x5d6458\nMOV             R1, R6                                                 ; +0xae, 0x5d645a\nADD             R7, SP, #0x54+var_20                                   ; +0xb0, 0x5d645c\nBLX             R11                                                    ; +0xb2, 0x5d645e\nLDR             R3, =(aGjButton01Png - 0x5D646A); \"GJ_button_01.png\"   ; +0xb4, 0x5d6460\nLDR             R0, =(aOk - 0x5D6476); \"OK\"                            ; +0xb6, 0x5d6462\nMOVS            R1, #word_28; char *                                   ; +0xb8, 0x5d6464\nADD             R3, PC; \"GJ_button_01.png\"                             ; +0xba, 0x5d6466\nSTR             R3, [SP,#0x54+var_4C]; char *                          ; +0xbc, 0x5d6468\nLDR             R3, =0x41F00000                                        ; +0xbe, 0x5d646a\nMOVS            R2, #0; int                                            ; +0xc0, 0x5d646c\nSTR.W           R10, [SP,#0x54+var_54]; float                          ; +0xc2, 0x5d646e\nADD             R0, PC; \"OK\"                                           ; +0xc6, 0x5d6472\nSTR.W           R9, [SP,#0x54+var_50]; char *                          ; +0xc8, 0x5d6474\nSTR             R3, [SP,#0x54+var_48]; char *                          ; +0xcc, 0x5d6478\nLDR             R3, =0x3F4CCCCD; int                                   ; +0xce, 0x5d647a\nBL              _ZN12ButtonSprite6createEPKciifbS1_S1_f; ButtonSprite::create(char const*,int,int,float,bool,char const*,char const*,float) ; +0xd0, 0x5d647c\nLDR             R3, =(word_BEE208 - 0x5D6486)                          ; +0xd4, 0x5d6480\nADD             R3, PC; word_BEE208                                    ; +0xd6, 0x5d6482\nADDS            R3, #(unk_BEE218 - 0xBEE208)                           ; +0xd8, 0x5d6484\nMOV             R2, R0                                                 ; +0xda, 0x5d6486\nLDM.W           R3, {R0,R1}                                            ; +0xdc, 0x5d6488\nSTM.W           R6, {R0,R1}                                            ; +0xe0, 0x5d648c\nMOV             R0, R2                                                 ; +0xe4, 0x5d6490\nLDR             R3, [SP,#0x54+var_24]                                  ; +0xe6, 0x5d6492\nMOV             R2, R4                                                 ; +0xe8, 0x5d6494\nMOVS            R1, #0                                                 ; +0xea, 0x5d6496\nMOVS            R6, #0                                                 ; +0xec, 0x5d6498\nSTR             R3, [SP,#0x54+var_54]                                  ; +0xee, 0x5d649a\nLDR             R3, [SP,#0x54+var_28]                                  ; +0xf0, 0x5d649c\nBL              _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0xf2, 0x5d649e\nMOV             R1, R0                                                 ; +0xf6, 0x5d64a2\nLDR.W           R0, [R4,#0x1BC]                                        ; +0xf8, 0x5d64a4\nLDR             R3, [R0]                                               ; +0xfc, 0x5d64a8\nLDR.W           R3, [R3,#0xE4]                                         ; +0xfe, 0x5d64aa\nBLX             R3                                                     ; +0x102, 0x5d64ae\nLDR             R1, =(aHelp - 0x5D64BA); \"Help\"                        ; +0x104, 0x5d64b0\nMOV             R0, R7                                                 ; +0x106, 0x5d64b2\nMOVS            R2, #4                                                 ; +0x108, 0x5d64b4\nADD             R1, PC; \"Help\"                                         ; +0x10a, 0x5d64b6\nSTR             R6, [SP,#0x54+var_20]                                  ; +0x10c, 0x5d64b8\nSTR             R6, [SP,#0x54+var_1C]                                  ; +0x10e, 0x5d64ba\nSTR             R6, [SP,#0x54+var_18]                                  ; +0x110, 0x5d64bc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x112, 0x5d64be\nSTR             R6, [SP,#0x54+var_14]                                  ; +0x116, 0x5d64c2\nMOVS            R2, #0xBD                                              ; +0x118, 0x5d64c4\nSTR             R6, [SP,#0x54+var_10]                                  ; +0x11a, 0x5d64c6\nSTR             R6, [SP,#0x54+var_C]                                   ; +0x11c, 0x5d64c8\nADD             R6, SP, #0x54+var_14                                   ; +0x11e, 0x5d64ca\nLDR             R1, =(aCgEditAttribut - 0x5D64D4); \"<cg>Edit attributes of the selected tri\"... ; +0x120, 0x5d64cc\nMOV             R0, R6                                                 ; +0x122, 0x5d64ce\nADD             R1, PC; \"<cg>Edit attributes of the selected tri\"...   ; +0x124, 0x5d64d0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x126, 0x5d64d2\nMOV             R0, R7                                                 ; +0x12a, 0x5d64d6\nMOV             R1, R6                                                 ; +0x12c, 0x5d64d8\nMOV.W           R2, #0x3F800000                                        ; +0x12e, 0x5d64da\nBL              _ZN15InfoAlertButton6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES6_f; InfoAlertButton::create(std::string,std::string,float) ; +0x132, 0x5d64de\nMOV             R9, R0                                                 ; +0x136, 0x5d64e2\nMOV             R0, R6                                                 ; +0x138, 0x5d64e4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x13a, 0x5d64e6\nMOV             R0, R7                                                 ; +0x13e, 0x5d64ea\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x140, 0x5d64ec\nLDR.W           R0, [R4,#0x1BC]                                        ; +0x144, 0x5d64f0\nMOV             R1, R9                                                 ; +0x148, 0x5d64f4\nADD             R6, SP, #0x54+var_38                                   ; +0x14a, 0x5d64f6\nADD             R7, SP, #0x54+var_30                                   ; +0x14c, 0x5d64f8\nLDR             R3, [R0]                                               ; +0x14e, 0x5d64fa\nLDR.W           R3, [R3,#0xE4]                                         ; +0x150, 0x5d64fc\nBLX             R3                                                     ; +0x154, 0x5d6500\nVLDR            S14, [R4,#0x22C]                                       ; +0x156, 0x5d6502\nLDR.W           R3, [R9]                                               ; +0x15a, 0x5d6506\nMOV             R0, R6; this                                           ; +0x15e, 0x5d650a\nLDR.W           R11, [R4,#0x1BC]                                       ; +0x160, 0x5d650c\nVLDR            S15, [SP,#0x54+var_40]                                 ; +0x164, 0x5d6510\nLDR.W           R10, [R3,#0x5C]                                        ; +0x168, 0x5d6514\nVMUL.F32        S14, S14, S16                                          ; +0x16c, 0x5d6518\nVLDR            S13, [SP,#0x54+var_3C]                                 ; +0x170, 0x5d651c\nVNMLS.F32       S14, S15, S16                                          ; +0x174, 0x5d6520\nVLDR            S15, [R4,#0x230]                                       ; +0x178, 0x5d6524\nVMUL.F32        S15, S15, S16                                          ; +0x17c, 0x5d6528\nVMLA.F32        S15, S13, S16                                          ; +0x180, 0x5d652c\nVADD.F32        S14, S14, S17                                          ; +0x184, 0x5d6530\nVSUB.F32        S15, S15, S17                                          ; +0x188, 0x5d6534\nVMOV            R1, S14; float                                         ; +0x18c, 0x5d6538\nVMOV            R2, S15; float                                         ; +0x190, 0x5d653c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x194, 0x5d6540\nMOV             R0, R7; this                                           ; +0x198, 0x5d6544\nMOV             R1, R11; cocos2d::CCPoint *                            ; +0x19a, 0x5d6546\nMOV             R2, R6                                                 ; +0x19c, 0x5d6548\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x19e, 0x5d654a\nMOV             R0, R9                                                 ; +0x1a2, 0x5d654e\nMOV             R1, R7                                                 ; +0x1a4, 0x5d6550\nBLX             R10                                                    ; +0x1a6, 0x5d6552\nMOV.W           R3, #0xFFFFFFFF                                        ; +0x1a8, 0x5d6554\nMOV             R0, R4; this                                           ; +0x1ac, 0x5d6558\nSTR.W           R3, [R4,#0x1F4]                                        ; +0x1ae, 0x5d655a\nBL              _ZN17SetupTriggerPopup30createMultiTriggerItemsDefaultEv; SetupTriggerPopup::createMultiTriggerItemsDefault(void) ; +0x1b2, 0x5d655e\nLDR             R2, [SP,#0x54+var_8]                                   ; +0x1b6, 0x5d6562\nMOV             R0, R8                                                 ; +0x1b8, 0x5d6564\nLDR             R3, [R5]                                               ; +0x1ba, 0x5d6566\nCMP             R2, R3                                                 ; +0x1bc, 0x5d6568\nBEQ             loc_5D6582                                             ; +0x1be, 0x5d656a\nBLX             __stack_chk_fail                                       ; +0x1c0, 0x5d656c\nMOV             R0, R6                                                 ; +0x1c4, 0x5d6570\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1c6, 0x5d6572\nB               loc_5D6578                                             ; +0x1ca, 0x5d6576\nMOV             R0, R7                                                 ; +0x1cc, 0x5d6578\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1ce, 0x5d657a\nBL              __cxa_end_cleanup                                      ; +0x1d2, 0x5d657e\nADD             SP, SP, #0x54 ; 'T'                                    ; +0x1d6, 0x5d6582\nVPOP            {D8}                                                   ; +0x1d8, 0x5d6584\nPOP.W           {R4-R11,PC}                                            ; +0x1dc, 0x5d6588", "xrefs": ["EditTriggersPopup::create @ 0x5d6636"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}