{"type": "func", "start": 5146084, "end": 5146510, "name": "EffectGameObject::customSetup", "pseudocode": "// \n// EffectGameObject::customSetup from 0x4e85e4 to 0x4e878e (426 bytes)\n// \n// 3 xrefs:\n// > EnterEffectObject::customSetup @ 0x4e879c\n// > ShaderGameObject::customSetup @ 0x4e87bc\n// > ItemTriggerGameObject::customSetup @ 0x4e8806\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:51:06 +0000\n// \n\nbool __fastcall EffectGameObject::customSetup(EffectGameObject *this, int a2)\n{\n  GameManager *v3; // r0\n  int v4; // r3\n  int v5; // r3\n  char *v6; // r3\n  int v7; // r2\n  GameManager *v8; // r0\n  _BOOL4 result; // r0\n  int v10; // r3\n  void (__fastcall *v11)(EffectGameObject *, _DWORD *); // r3\n  _DWORD v12[2]; // [sp+0h] [bp-8h] BYREF\n\n  v12[0] = this;\n  v12[1] = a2;\n  v3 = (GameManager *)EnhancedGameObject::customSetup(this);\n  v4 = *((_DWORD *)this + 223);\n  if ( v4 == 900 )\n  {\n    v5 = 1009;\n    goto LABEL_27;\n  }\n  if ( v4 <= 900 )\n  {\n    if ( v4 == 142 )\n    {\n      *((_DWORD *)this + 196) = 22;\n      *((_DWORD *)this + 228) = 9;\n      GameObject::setDefaultMainColorMode(this, 0);\n      *((_BYTE *)this + 1206) = 1;\n      goto LABEL_43;\n    }\n    if ( v4 <= 142 )\n    {\n      switch ( v4 )\n      {\n        case 30:\n          v5 = 1001;\n          goto LABEL_27;\n        case 105:\n          v5 = 1004;\n          goto LABEL_27;\n        case 29:\n          v5 = 1000;\nLABEL_27:\n          *((_DWORD *)this + 222) = v5;\n          *((_BYTE *)this + 1307) = 0;\n          v6 = (char *)this + 1276;\n          goto LABEL_28;\n      }\n      goto LABEL_43;\n    }\n    if ( v4 < 200 )\n      goto LABEL_43;\n    if ( v4 > 203 )\n    {\n      if ( v4 == 744 )\n        *((_DWORD *)this + 222) = 1003;\n      goto LABEL_43;\n    }\nLABEL_33:\n    *((_BYTE *)this + 1292) = 1;\n    goto LABEL_43;\n  }\n  if ( v4 == 1912 )\n  {\n    v6 = (char *)this + 1272;\n    v7 = 1112014848;\n    goto LABEL_29;\n  }\n  if ( v4 <= 1912 )\n  {\n    if ( v4 == 1329 )\n    {\n      *((_DWORD *)this + 196) = 31;\n      *((_DWORD *)this + 228) = 9;\n      if ( !*((_BYTE *)this + 549) )\n      {\n        v8 = (GameManager *)GameManager::sharedState(v3);\n        if ( *(_DWORD *)(*(_DWORD *)(*((_DWORD *)v8 + 101) + 1408) + 792) == *(_DWORD *)(*(_DWORD *)(*((_DWORD *)v8 + 101) + 1408)\n                                                                                       + 796)\n          && *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(GameManager::sharedState(v8) + 404) + 1408) + 952) != 2 )\n        {\n          v10 = *(_DWORD *)this;\n          LOWORD(v12[0]) = -20481;\n          v11 = *(void (__fastcall **)(EffectGameObject *, _DWORD *))(v10 + 748);\n          BYTE2(v12[0]) = 75;\n          v11(this, v12);\n        }\n      }\n      *((_BYTE *)this + 541) = 1;\n      GameObject::setDefaultMainColorMode(this, 0);\n      *((_BYTE *)this + 1206) = 1;\n      goto LABEL_43;\n    }\n    if ( v4 != 1334 )\n    {\n      if ( v4 == 915 )\n      {\n        *((_DWORD *)this + 222) = 1002;\n        *((_BYTE *)this + 1307) = 1;\n      }\n      goto LABEL_43;\n    }\n    goto LABEL_33;\n  }\n  if ( v4 == 3607 )\n  {\n    *((_BYTE *)this + 1484) = 1;\n    goto LABEL_43;\n  }\n  if ( v4 > 3607 )\n  {\n    if ( v4 == 3640 )\n    {\n      *((_BYTE *)this + 1292) = 1;\n      *((_BYTE *)this + 1484) = 1;\n    }\n    else\n    {\n      if ( v4 != 3643 )\n        goto LABEL_43;\n      *((_BYTE *)this + 1292) = 1;\n    }\n    *((_BYTE *)this + 1293) = 0;\n    goto LABEL_43;\n  }\n  if ( v4 == 2066 )\n  {\n    v6 = (char *)this + 1552;\nLABEL_28:\n    v7 = 1065353216;\nLABEL_29:\n    *(_DWORD *)v6 = v7;\n  }\nLABEL_43:\n  result = EffectGameObject::canSpawnTriggers(this);\n  *((_BYTE *)this + 1643) = result;\n  return result;\n}", "assembly": "; \n; EffectGameObject::customSetup from 0x4e85e4 to 0x4e878e (426 bytes)\n; \n; 3 xrefs:\n; > EnterEffectObject::customSetup @ 0x4e879c\n; > ShaderGameObject::customSetup @ 0x4e87bc\n; > ItemTriggerGameObject::customSetup @ 0x4e8806\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:51:06 +0000\n; \nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x4e85e4\nMOV             R4, R0                                                 ; +0x2, 0x4e85e6\nLDR             R5, =(__stack_chk_guard_ptr - 0x4E85EE)                ; +0x4, 0x4e85e8\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x6, 0x4e85ea\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x8, 0x4e85ec\nLDR             R3, [R5]                                               ; +0xa, 0x4e85ee\nSTR             R3, [SP,#8+var_4]                                      ; +0xc, 0x4e85f0\nBL              _ZN18EnhancedGameObject11customSetupEv; EnhancedGameObject::customSetup(void) ; +0xe, 0x4e85f2\nLDR.W           R3, [R4,#0x37C]                                        ; +0x12, 0x4e85f6\nCMP.W           R3, #0x384                                             ; +0x16, 0x4e85fa\nBEQ             loc_4E86B2                                             ; +0x1a, 0x4e85fe\nBGT             loc_4E8638                                             ; +0x1c, 0x4e8600\nCMP             R3, #0x8E                                              ; +0x1e, 0x4e8602\nBEQ             loc_4E86E8                                             ; +0x20, 0x4e8604\nBGT             loc_4E861C                                             ; +0x22, 0x4e8606\nCMP             R3, #0x1E                                              ; +0x24, 0x4e8608\nBEQ             loc_4E8698                                             ; +0x26, 0x4e860a\nCMP             R3, #0x69 ; 'i'                                        ; +0x28, 0x4e860c\nBEQ             loc_4E86B8                                             ; +0x2a, 0x4e860e\nCMP             R3, #0x1D                                              ; +0x2c, 0x4e8610\nBNE.W           loc_4E8754                                             ; +0x2e, 0x4e8612\nMOV.W           R3, #0x3E8                                             ; +0x32, 0x4e8616\nB               loc_4E869C                                             ; +0x36, 0x4e861a\nCMP             R3, #0xC8                                              ; +0x38, 0x4e861c\nBLT.W           loc_4E8754                                             ; +0x3a, 0x4e861e\nCMP             R3, #0xCB                                              ; +0x3e, 0x4e8622\nBLE             loc_4E86C6                                             ; +0x40, 0x4e8624\nCMP.W           R3, #0x2E8                                             ; +0x42, 0x4e8626\nBNE.W           loc_4E8754                                             ; +0x46, 0x4e862a\nMOVW            R3, #0x3EB                                             ; +0x4a, 0x4e862e\nSTR.W           R3, [R4,#0x378]                                        ; +0x4e, 0x4e8632\nB               loc_4E8754                                             ; +0x52, 0x4e8636\nCMP.W           R3, #0x778                                             ; +0x54, 0x4e8638\nBEQ             loc_4E86BE                                             ; +0x58, 0x4e863c\nBGT             loc_4E8668                                             ; +0x5a, 0x4e863e\nMOVW            R2, #0x531                                             ; +0x5c, 0x4e8640\nCMP             R3, R2                                                 ; +0x60, 0x4e8644\nBEQ             loc_4E8704                                             ; +0x62, 0x4e8646\nMOVW            R2, #0x536                                             ; +0x64, 0x4e8648\nCMP             R3, R2                                                 ; +0x68, 0x4e864c\nBEQ             loc_4E86C6                                             ; +0x6a, 0x4e864e\nMOVW            R2, #0x393                                             ; +0x6c, 0x4e8650\nCMP             R3, R2                                                 ; +0x70, 0x4e8654\nBNE             loc_4E8754                                             ; +0x72, 0x4e8656\nMOVW            R3, #0x3EA                                             ; +0x74, 0x4e8658\nSTR.W           R3, [R4,#0x378]                                        ; +0x78, 0x4e865c\nMOVS            R3, #1                                                 ; +0x7c, 0x4e8660\nSTRB.W          R3, [R4,#0x51B]                                        ; +0x7e, 0x4e8662\nB               loc_4E8754                                             ; +0x82, 0x4e8666\nMOVW            R2, #0xE17                                             ; +0x84, 0x4e8668\nCMP             R3, R2                                                 ; +0x88, 0x4e866c\nBEQ             loc_4E86E0                                             ; +0x8a, 0x4e866e\nBGT             loc_4E8680                                             ; +0x8c, 0x4e8670\nMOVW            R2, #0x812                                             ; +0x8e, 0x4e8672\nCMP             R3, R2                                                 ; +0x92, 0x4e8676\nBNE             loc_4E8754                                             ; +0x94, 0x4e8678\nADD.W           R3, R4, #0x610                                         ; +0x96, 0x4e867a\nB               loc_4E86AA                                             ; +0x9a, 0x4e867e\nMOVW            R2, #0xE38                                             ; +0x9c, 0x4e8680\nCMP             R3, R2                                                 ; +0xa0, 0x4e8684\nBEQ             loc_4E86CE                                             ; +0xa2, 0x4e8686\nMOVW            R2, #0xE3B                                             ; +0xa4, 0x4e8688\nCMP             R3, R2                                                 ; +0xa8, 0x4e868c\nBNE             loc_4E8754                                             ; +0xaa, 0x4e868e\nMOVS            R3, #1                                                 ; +0xac, 0x4e8690\nSTRB.W          R3, [R4,#0x50C]                                        ; +0xae, 0x4e8692\nB               loc_4E86D8                                             ; +0xb2, 0x4e8696\nMOVW            R3, #0x3E9                                             ; +0xb4, 0x4e8698\nSTR.W           R3, [R4,#0x378]                                        ; +0xb8, 0x4e869c\nMOVS            R3, #0                                                 ; +0xbc, 0x4e86a0\nSTRB.W          R3, [R4,#0x51B]                                        ; +0xbe, 0x4e86a2\nADDW            R3, R4, #0x4FC                                         ; +0xc2, 0x4e86a6\nMOV.W           R2, #0x3F800000                                        ; +0xc6, 0x4e86aa\nSTR             R2, [R3]                                               ; +0xca, 0x4e86ae\nB               loc_4E8754                                             ; +0xcc, 0x4e86b0\nMOVW            R3, #0x3F1                                             ; +0xce, 0x4e86b2\nB               loc_4E869C                                             ; +0xd2, 0x4e86b6\nMOV.W           R3, #0x3EC                                             ; +0xd4, 0x4e86b8\nB               loc_4E869C                                             ; +0xd8, 0x4e86bc\nADD.W           R3, R4, #0x4F8                                         ; +0xda, 0x4e86be\nLDR             R2, =0x42480000                                        ; +0xde, 0x4e86c2\nB               loc_4E86AE                                             ; +0xe0, 0x4e86c4\nMOVS            R3, #1                                                 ; +0xe2, 0x4e86c6\nSTRB.W          R3, [R4,#0x50C]                                        ; +0xe4, 0x4e86c8\nB               loc_4E8754                                             ; +0xe8, 0x4e86cc\nMOVS            R3, #1                                                 ; +0xea, 0x4e86ce\nSTRB.W          R3, [R4,#0x50C]                                        ; +0xec, 0x4e86d0\nSTRB.W          R3, [R4,#0x5CC]                                        ; +0xf0, 0x4e86d4\nMOVS            R3, #0                                                 ; +0xf4, 0x4e86d8\nSTRB.W          R3, [R4,#0x50D]                                        ; +0xf6, 0x4e86da\nB               loc_4E8754                                             ; +0xfa, 0x4e86de\nMOVS            R3, #1                                                 ; +0xfc, 0x4e86e0\nSTRB.W          R3, [R4,#0x5CC]                                        ; +0xfe, 0x4e86e2\nB               loc_4E8754                                             ; +0x102, 0x4e86e6\nMOVS            R3, #0x16                                              ; +0x104, 0x4e86e8\nMOV             R0, R4; this                                           ; +0x106, 0x4e86ea\nSTR.W           R3, [R4,#0x310]                                        ; +0x108, 0x4e86ec\nMOVS            R1, #0; int                                            ; +0x10c, 0x4e86f0\nMOVS            R3, #9                                                 ; +0x10e, 0x4e86f2\nSTR.W           R3, [R4,#0x390]                                        ; +0x110, 0x4e86f4\nBL              _ZN10GameObject23setDefaultMainColorModeEi; GameObject::setDefaultMainColorMode(int) ; +0x114, 0x4e86f8\nMOVS            R3, #1                                                 ; +0x118, 0x4e86fc\nSTRB.W          R3, [R4,#0x4B6]                                        ; +0x11a, 0x4e86fe\nB               loc_4E8754                                             ; +0x11e, 0x4e8702\nMOVS            R3, #0x1F                                              ; +0x120, 0x4e8704\nSTR.W           R3, [R4,#0x310]                                        ; +0x122, 0x4e8706\nMOVS            R3, #9                                                 ; +0x126, 0x4e870a\nSTR.W           R3, [R4,#0x390]                                        ; +0x128, 0x4e870c\nLDRB.W          R3, [R4,#0x225]                                        ; +0x12c, 0x4e8710\nCBNZ            R3, loc_4E8742                                         ; +0x130, 0x4e8714\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x132, 0x4e8716\nLDR.W           R3, [R0,#0x194]                                        ; +0x136, 0x4e871a\nLDR.W           R3, [R3,#0x580]                                        ; +0x13a, 0x4e871e\nLDR.W           R2, [R3,#0x318]                                        ; +0x13e, 0x4e8722\nLDR.W           R3, [R3,#0x31C]                                        ; +0x142, 0x4e8726\nCMP             R2, R3                                                 ; +0x146, 0x4e872a\nBNE             loc_4E8742                                             ; +0x148, 0x4e872c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x14a, 0x4e872e\nLDR.W           R3, [R0,#0x194]                                        ; +0x14e, 0x4e8732\nLDR.W           R3, [R3,#0x580]                                        ; +0x152, 0x4e8736\nLDR.W           R3, [R3,#0x3B8]                                        ; +0x156, 0x4e873a\nCMP             R3, #2                                                 ; +0x15a, 0x4e873e\nBNE             loc_4E876A                                             ; +0x15c, 0x4e8740\nMOVS            R6, #1                                                 ; +0x15e, 0x4e8742\nMOV             R0, R4; this                                           ; +0x160, 0x4e8744\nSTRB.W          R6, [R4,#0x21D]                                        ; +0x162, 0x4e8746\nMOVS            R1, #0; int                                            ; +0x166, 0x4e874a\nBL              _ZN10GameObject23setDefaultMainColorModeEi; GameObject::setDefaultMainColorMode(int) ; +0x168, 0x4e874c\nSTRB.W          R6, [R4,#0x4B6]                                        ; +0x16c, 0x4e8750\nMOV             R0, R4; this                                           ; +0x170, 0x4e8754\nBL              _ZN16EffectGameObject16canSpawnTriggersEv; EffectGameObject::canSpawnTriggers(void) ; +0x172, 0x4e8756\nLDR             R2, [SP,#8+var_4]                                      ; +0x176, 0x4e875a\nLDR             R3, [R5]                                               ; +0x178, 0x4e875c\nCMP             R2, R3                                                 ; +0x17a, 0x4e875e\nSTRB.W          R0, [R4,#0x66B]                                        ; +0x17c, 0x4e8760\nBEQ             loc_4E878A                                             ; +0x180, 0x4e8764\nBLX             __stack_chk_fail                                       ; +0x182, 0x4e8766\nLDR             R3, [R4]                                               ; +0x186, 0x4e876a\nMOVS            R2, #0xFF                                              ; +0x188, 0x4e876c\nMOV             R0, R4                                                 ; +0x18a, 0x4e876e\nSTRB.W          R2, [SP,#8+var_8]                                      ; +0x18c, 0x4e8770\nMOV             R1, SP                                                 ; +0x190, 0x4e8774\nMOVS            R2, #0xAF                                              ; +0x192, 0x4e8776\nLDR.W           R3, [R3,#0x2EC]                                        ; +0x194, 0x4e8778\nSTRB.W          R2, [SP,#8+var_7]                                      ; +0x198, 0x4e877c\nMOVS            R2, #0x4B ; 'K'                                        ; +0x19c, 0x4e8780\nSTRB.W          R2, [SP,#8+var_6]                                      ; +0x19e, 0x4e8782\nBLX             R3                                                     ; +0x1a2, 0x4e8786\nB               loc_4E8742                                             ; +0x1a4, 0x4e8788\nADD             SP, SP, #8                                             ; +0x1a6, 0x4e878a\nPOP             {R4-R6,PC}                                             ; +0x1a8, 0x4e878c", "xrefs": ["EnterEffectObject::customSetup @ 0x4e879c", "ShaderGameObject::customSetup @ 0x4e87bc", "ItemTriggerGameObject::customSetup @ 0x4e8806"], "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"}