{"type": "func", "start": 4298663356, "end": 4298663476, "name": "EffectGameObject::updateSpecialColor", "pseudocode": "// \n// EffectGameObject::updateSpecialColor from 0x1003865bc to 0x100386634 (120 bytes)\n// \n// 3 xrefs:\n// > SetupObjectTogglePopup::valueDidChange @ 0x1001a3470\n// > LevelEditorLayer::addSpecial @ 0x100359e3c\n// > EditorUI::getCreateBtn @ 0x1003ea388\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 __fastcall EffectGameObject::updateSpecialColor(EffectGameObject *a1)\n{\n  __int64 v1; // x29\n  __int64 v2; // x30\n  __int64 v4; // x0\n  int v5; // w8\n  __int16 v6; // [xsp+Ch] [xbp-24h] BYREF\n  char v7; // [xsp+Eh] [xbp-22h]\n  __int64 v8; // [xsp+20h] [xbp-10h]\n  __int64 v9; // [xsp+28h] [xbp-8h]\n\n  if ( a1->m_objectID == 1049 )\n  {\n    v8 = v1;\n    v9 = v2;\n    v4 = ((__int64 (__fastcall *)(EffectGameObject *, __int64))a1->getChildByTag)(a1, 998);\n    if ( v4 )\n    {\n      if ( a1->m_activateGroup )\n        v5 = 8388352;\n      else\n        v5 = 4145151;\n      v6 = v5;\n      v7 = BYTE2(v5);\n      (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 944LL))(v4, &v6);\n    }\n  }\n}", "assembly": "; \n; EffectGameObject::updateSpecialColor from 0x1003865bc to 0x100386634 (120 bytes)\n; \n; 3 xrefs:\n; > SetupObjectTogglePopup::valueDidChange @ 0x1001a3470\n; > LevelEditorLayer::addSpecial @ 0x100359e3c\n; > EditorUI::getCreateBtn @ 0x1003ea388\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             W8, [X0,#0x404]                                        ; +0x0, 0x1003865bc\nCMP             W8, #0x419                                             ; +0x4, 0x1003865c0\nB.NE            locret_100386630                                       ; +0x8, 0x1003865c4\nSUB             SP, SP, #0x30 ; '0'                                    ; +0xc, 0x1003865c8\nSTP             X20, X19, [SP,#0x30+var_20]                            ; +0x10, 0x1003865cc\nSTP             X29, X30, [SP,#0x30+var_10]                            ; +0x14, 0x1003865d0\nADD             X29, SP, #0x30+var_10                                  ; +0x18, 0x1003865d4\nMOV             X19, X0                                                ; +0x1c, 0x1003865d8\nLDR             X8, [X0]                                               ; +0x20, 0x1003865dc\nLDR             X8, [X8,#0x1D0]                                        ; +0x24, 0x1003865e0\nMOV             W1, #0x3E6                                             ; +0x28, 0x1003865e4\nBLR             X8                                                     ; +0x2c, 0x1003865e8\nCBZ             X0, loc_100386624                                      ; +0x30, 0x1003865ec\nLDRB            W8, [X19,#0x665]                                       ; +0x34, 0x1003865f0\nCMP             W8, #0                                                 ; +0x38, 0x1003865f4\nMOV             W8, #0x3F3FFF                                          ; +0x3c, 0x1003865f8\nMOV             W9, #0x7FFF00                                          ; +0x44, 0x100386600\nCSEL            W8, W9, W8, NE                                         ; +0x48, 0x100386604\nSTRH            W8, [SP,#0x30+var_24]                                  ; +0x4c, 0x100386608\nLSR             W8, W8, #0x10                                          ; +0x50, 0x10038660c\nSTRB            W8, [SP,#0x30+var_22]                                  ; +0x54, 0x100386610\nLDR             X8, [X0]                                               ; +0x58, 0x100386614\nLDR             X8, [X8,#0x3B0]                                        ; +0x5c, 0x100386618\nADD             X1, SP, #0x30+var_24                                   ; +0x60, 0x10038661c\nBLR             X8                                                     ; +0x64, 0x100386620\nLDP             X29, X30, [SP,#0x30+var_10]                            ; +0x68, 0x100386624\nLDP             X20, X19, [SP,#0x30+var_20]                            ; +0x6c, 0x100386628\nADD             SP, SP, #0x30 ; '0'                                    ; +0x70, 0x10038662c\nRET                                                                    ; +0x74, 0x100386630", "xrefs": ["SetupObjectTogglePopup::valueDidChange @ 0x1001a3470", "LevelEditorLayer::addSpecial @ 0x100359e3c", "EditorUI::getCreateBtn @ 0x1003ea388"], "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"}