{"type": "func", "start": 4105824, "end": 4105928, "name": "EffectGameObject::updateSpecialColor", "pseudocode": "// \n// EffectGameObject::updateSpecialColor from 0x3ea660 to 0x3ea6c8 (104 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x370bca\n// > EditorUI::getCreateBtn @ 0x386446\n// > SetupObjectTogglePopup::valueDidChange @ 0x4bb770\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EffectGameObject::updateSpecialColor(EffectGameObject *a1)\n{\n  cocos2d::CCNode *v2; // r0\n  int (__fastcall *getTag)(const cocos2d::CCObject *__hidden); // r2\n  char v4; // r3\n  EffectGameObject *v5; // [sp+0h] [bp-Ch] BYREF\n\n  v5 = a1;\n  if ( a1->m_objectID == 1049 )\n  {\n    v2 = a1->getChildByTag(a1, 998);\n    if ( v2 )\n    {\n      getTag = v2->__vftable[1].getTag;\n      if ( a1->m_activateGroup )\n      {\n        LOWORD(v5) = -256;\n        v4 = 127;\n      }\n      else\n      {\n        LOWORD(v5) = 0x3FFF;\n        v4 = 63;\n      }\n      BYTE2(v5) = v4;\n      ((void (__fastcall *)(cocos2d::CCNode *, EffectGameObject **, int (__fastcall *)(const cocos2d::CCObject *__hidden)))getTag)(\n        v2,\n        &v5,\n        getTag);\n    }\n  }\n}", "assembly": "; \n; EffectGameObject::updateSpecialColor from 0x3ea660 to 0x3ea6c8 (104 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x370bca\n; > EditorUI::getCreateBtn @ 0x386446\n; > SetupObjectTogglePopup::valueDidChange @ 0x4bb770\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDR             R3, =(__stack_chk_guard_ptr - 0x3EA668)                ; +0x0, 0x3ea660\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x2, 0x3ea662\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3ea664\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3ea666\nLDR.W           R1, [R0,#0x374]                                        ; +0x8, 0x3ea668\nMOV             R5, R0                                                 ; +0xc, 0x3ea66c\nLDR             R2, [R3]                                               ; +0xe, 0x3ea66e\nMOV             R4, R3                                                 ; +0x10, 0x3ea670\nSTR             R2, [SP,#0xC+var_8]                                    ; +0x12, 0x3ea672\nMOVW            R2, #0x419                                             ; +0x14, 0x3ea674\nCMP             R1, R2                                                 ; +0x18, 0x3ea678\nBNE             loc_3EA6B8                                             ; +0x1a, 0x3ea67a\nLDR             R3, [R0]                                               ; +0x1c, 0x3ea67c\nMOVW            R1, #0x3E6                                             ; +0x1e, 0x3ea67e\nLDR.W           R3, [R3,#0xE8]                                         ; +0x22, 0x3ea682\nBLX             R3                                                     ; +0x26, 0x3ea686\nCBZ             R0, loc_3EA6B8                                         ; +0x28, 0x3ea688\nLDR             R3, [R0]                                               ; +0x2a, 0x3ea68a\nLDRB.W          R1, [R5,#0x5A9]                                        ; +0x2c, 0x3ea68c\nLDR.W           R2, [R3,#0x1D8]                                        ; +0x30, 0x3ea690\nMOVS            R3, #0xFF                                              ; +0x34, 0x3ea694\nCBZ             R1, loc_3EA6A6                                         ; +0x36, 0x3ea696\nMOVS            R1, #0                                                 ; +0x38, 0x3ea698\nSTRB.W          R3, [SP,#0xC+var_B]                                    ; +0x3a, 0x3ea69a\nSTRB.W          R1, [SP,#0xC+var_C]                                    ; +0x3e, 0x3ea69e\nMOVS            R3, #0x7F                                              ; +0x42, 0x3ea6a2\nB               loc_3EA6B0                                             ; +0x44, 0x3ea6a4\nSTRB.W          R3, [SP,#0xC+var_C]                                    ; +0x46, 0x3ea6a6\nMOVS            R3, #0x3F ; '?'                                        ; +0x4a, 0x3ea6aa\nSTRB.W          R3, [SP,#0xC+var_B]                                    ; +0x4c, 0x3ea6ac\nSTRB.W          R3, [SP,#0xC+var_A]                                    ; +0x50, 0x3ea6b0\nMOV             R1, SP                                                 ; +0x54, 0x3ea6b4\nBLX             R2                                                     ; +0x56, 0x3ea6b6\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x58, 0x3ea6b8\nLDR             R3, [R4]                                               ; +0x5a, 0x3ea6ba\nCMP             R2, R3                                                 ; +0x5c, 0x3ea6bc\nBEQ             loc_3EA6C4                                             ; +0x5e, 0x3ea6be\nBLX             __stack_chk_fail                                       ; +0x60, 0x3ea6c0\nADD             SP, SP, #0xC                                           ; +0x64, 0x3ea6c4\nPOP             {R4,R5,PC}                                             ; +0x66, 0x3ea6c6", "xrefs": ["LevelEditorLayer::addSpecial @ 0x370bca", "EditorUI::getCreateBtn @ 0x386446", "SetupObjectTogglePopup::valueDidChange @ 0x4bb770"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}