{"type": "func", "start": 5145416, "end": 5145520, "name": "EffectGameObject::updateSpecialColor", "pseudocode": "// \n// EffectGameObject::updateSpecialColor from 0x4e8348 to 0x4e83b0 (104 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x46e4ca\n// > SetupObjectTogglePopup::valueDidChange @ 0x5ea198\n// > EditorUI::getCreateBtn @ 0x6f81ce\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\n_DWORD *__fastcall EffectGameObject::updateSpecialColor(_DWORD *this, int a2, int a3)\n{\n  _DWORD *v3; // r5\n  int (__fastcall *v4)(_DWORD *, _DWORD *, _DWORD); // r2\n  char v5; // r3\n  _DWORD v6[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v6[0] = this;\n  v6[1] = a2;\n  v6[2] = a3;\n  v3 = this;\n  if ( *(this + 223) == 1049 )\n  {\n    this = (_DWORD *)(*(int (__fastcall **)(_DWORD *, int))(*this + 240))(this, 998);\n    if ( this )\n    {\n      v4 = *(int (__fastcall **)(_DWORD *, _DWORD *, _DWORD))(*this + 480);\n      if ( *((_BYTE *)v3 + 1457) )\n      {\n        LOWORD(v6[0]) = -256;\n        v5 = 127;\n      }\n      else\n      {\n        LOWORD(v6[0]) = 0x3FFF;\n        v5 = 63;\n      }\n      BYTE2(v6[0]) = v5;\n      return (_DWORD *)v4(this, v6, v4);\n    }\n  }\n  return this;\n}", "assembly": "; \n; EffectGameObject::updateSpecialColor from 0x4e8348 to 0x4e83b0 (104 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x46e4ca\n; > SetupObjectTogglePopup::valueDidChange @ 0x5ea198\n; > EditorUI::getCreateBtn @ 0x6f81ce\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; \nLDR             R3, =(__stack_chk_guard_ptr - 0x4E8350)                ; +0x0, 0x4e8348\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x2, 0x4e834a\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x4e834c\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x4e834e\nLDR.W           R1, [R0,#0x37C]                                        ; +0x8, 0x4e8350\nMOV             R5, R0                                                 ; +0xc, 0x4e8354\nLDR             R2, [R3]                                               ; +0xe, 0x4e8356\nMOV             R4, R3                                                 ; +0x10, 0x4e8358\nSTR             R2, [SP,#0xC+var_8]                                    ; +0x12, 0x4e835a\nMOVW            R2, #0x419                                             ; +0x14, 0x4e835c\nCMP             R1, R2                                                 ; +0x18, 0x4e8360\nBNE             loc_4E83A0                                             ; +0x1a, 0x4e8362\nLDR             R3, [R0]                                               ; +0x1c, 0x4e8364\nMOVW            R1, #0x3E6                                             ; +0x1e, 0x4e8366\nLDR.W           R3, [R3,#0xF0]                                         ; +0x22, 0x4e836a\nBLX             R3                                                     ; +0x26, 0x4e836e\nCBZ             R0, loc_4E83A0                                         ; +0x28, 0x4e8370\nLDR             R3, [R0]                                               ; +0x2a, 0x4e8372\nLDRB.W          R1, [R5,#0x5B1]                                        ; +0x2c, 0x4e8374\nLDR.W           R2, [R3,#0x1E0]                                        ; +0x30, 0x4e8378\nMOVS            R3, #0xFF                                              ; +0x34, 0x4e837c\nCBZ             R1, loc_4E838E                                         ; +0x36, 0x4e837e\nMOVS            R1, #0                                                 ; +0x38, 0x4e8380\nSTRB.W          R3, [SP,#0xC+var_B]                                    ; +0x3a, 0x4e8382\nSTRB.W          R1, [SP,#0xC+var_C]                                    ; +0x3e, 0x4e8386\nMOVS            R3, #0x7F                                              ; +0x42, 0x4e838a\nB               loc_4E8398                                             ; +0x44, 0x4e838c\nSTRB.W          R3, [SP,#0xC+var_C]                                    ; +0x46, 0x4e838e\nMOVS            R3, #0x3F ; '?'                                        ; +0x4a, 0x4e8392\nSTRB.W          R3, [SP,#0xC+var_B]                                    ; +0x4c, 0x4e8394\nSTRB.W          R3, [SP,#0xC+var_A]                                    ; +0x50, 0x4e8398\nMOV             R1, SP                                                 ; +0x54, 0x4e839c\nBLX             R2                                                     ; +0x56, 0x4e839e\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x58, 0x4e83a0\nLDR             R3, [R4]                                               ; +0x5a, 0x4e83a2\nCMP             R2, R3                                                 ; +0x5c, 0x4e83a4\nBEQ             loc_4E83AC                                             ; +0x5e, 0x4e83a6\nBLX             __stack_chk_fail                                       ; +0x60, 0x4e83a8\nADD             SP, SP, #0xC                                           ; +0x64, 0x4e83ac\nPOP             {R4,R5,PC}                                             ; +0x66, 0x4e83ae", "xrefs": ["LevelEditorLayer::addSpecial @ 0x46e4ca", "SetupObjectTogglePopup::valueDidChange @ 0x5ea198", "EditorUI::getCreateBtn @ 0x6f81ce"], "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"}