{"type": "func", "start": 7847284, "end": 7847348, "name": "EditorSFXActionConfigLayer::refreshModeButtons", "pseudocode": "// \n// EditorSFXActionConfigLayer::refreshModeButtons from 0x77bd74 to 0x77bdb4 (64 bytes)\n// \n// 2 xrefs:\n// > EditorSFXActionConfigLayer::onToggleMode @ 0x77bdea\n// > EditorSFXActionConfigLayer::init @ 0x77ca02\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:59:23 +0000\n// \n\nint __fastcall EditorSFXActionConfigLayer::refreshModeButtons(EditorSFXActionConfigLayer *this)\n{\n  EditorSFXManager *v2; // r0\n  int result; // r0\n  const char *v4; // r1\n\n  v2 = (EditorSFXManager *)EditorSFXManager::sharedState(this);\n  result = EditorSFXManager::getPlayMode(v2, *((_DWORD *)this + 179));\n  if ( *((_DWORD *)this + 180) )\n  {\n    if ( result )\n      v4 = \"GJ_button_04.png\";\n    else\n      v4 = \"GJ_button_02.png\";\n    ButtonSprite::updateBGImage(*((char **)this + 180), v4);\n    return (*(int (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(*((_DWORD *)this + 180) + 540) + 124))(\n             *(_DWORD *)(*((_DWORD *)this + 180) + 540),\n             0,\n             -1077936128);\n  }\n  return result;\n}", "assembly": "; \n; EditorSFXActionConfigLayer::refreshModeButtons from 0x77bd74 to 0x77bdb4 (64 bytes)\n; \n; 2 xrefs:\n; > EditorSFXActionConfigLayer::onToggleMode @ 0x77bdea\n; > EditorSFXActionConfigLayer::init @ 0x77ca02\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:59:23 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x77bd74\nMOV             R4, R0                                                 ; +0x2, 0x77bd76\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x4, 0x77bd78\nLDR.W           R1, [R4,#0x2CC]; int                                   ; +0x8, 0x77bd7c\nBL              _ZN16EditorSFXManager11getPlayModeEi; EditorSFXManager::getPlayMode(int) ; +0xc, 0x77bd80\nLDR.W           R3, [R4,#0x2D0]                                        ; +0x10, 0x77bd84\nCBZ             R3, locret_77BDB2                                      ; +0x14, 0x77bd88\nCBZ             R0, loc_77BD92                                         ; +0x16, 0x77bd8a\nLDR             R1, =(aGjButton04Png - 0x77BD92); \"GJ_button_04.png\"   ; +0x18, 0x77bd8c\nADD             R1, PC; \"GJ_button_04.png\"                             ; +0x1a, 0x77bd8e\nB               loc_77BD96                                             ; +0x1c, 0x77bd90\nLDR             R1, =(aGjButton02Png - 0x77BD98); \"GJ_button_02.png\"   ; +0x1e, 0x77bd92\nADD             R1, PC; \"GJ_button_02.png\"                             ; +0x20, 0x77bd94\nMOV             R0, R3; this                                           ; +0x22, 0x77bd96\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x24, 0x77bd98\nLDR.W           R3, [R4,#0x2D0]                                        ; +0x28, 0x77bd9c\nMOVS            R1, #0                                                 ; +0x2c, 0x77bda0\nLDR             R2, =0xBFC00000                                        ; +0x2e, 0x77bda2\nPOP.W           {R4,LR}                                                ; +0x30, 0x77bda4\nLDR.W           R0, [R3,#0x21C]                                        ; +0x34, 0x77bda8\nLDR             R3, [R0]                                               ; +0x38, 0x77bdac\nLDR             R3, [R3,#0x7C]                                         ; +0x3a, 0x77bdae\nBX              R3                                                     ; +0x3c, 0x77bdb0\nPOP             {R4,PC}                                                ; +0x3e, 0x77bdb2", "xrefs": ["EditorSFXActionConfigLayer::onToggleMode @ 0x77bdea", "EditorSFXActionConfigLayer::init @ 0x77ca02"], "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"}