{"type": "func", "start": 5370300464, "end": 5370300598, "name": "EditorSFXActionConfigLayer::refreshModeButtons", "pseudocode": "// \n// EditorSFXActionConfigLayer::refreshModeButtons from 0x140184830 to 0x1401848b6 (134 bytes)\n// \n// 2 xrefs:\n// > EditorSFXActionConfigLayer::onToggleMode @ 0x140184947\n// > <???> @ 0x140918d04\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:27:38 +0000\n// \n\n__int64 __fastcall EditorSFXActionConfigLayer::refreshModeButtons(__int64 a1)\n{\n  unsigned int v1; // ebx\n  __int64 v3; // rax\n  __int64 Binding; // rax\n  int v5; // ecx\n  __int64 result; // rax\n  const char *v7; // rdx\n\n  v1 = *(_DWORD *)(a1 + 1008);\n  v3 = EditorSFXManager::sharedState();\n  Binding = EditorSFXManager::findBinding(v3, v1);\n  if ( Binding )\n    v5 = *(_DWORD *)(Binding + 8);\n  else\n    v5 = 1;\n  result = *(_QWORD *)(a1 + 1016);\n  if ( result )\n  {\n    v7 = \"GJ_button_04.png\";\n    if ( !v5 )\n      v7 = \"GJ_button_02.png\";\n    ButtonSprite::updateBGImage(*(_QWORD *)(a1 + 1016), v7);\n    return (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1016) + 640LL) + 240LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1016) + 640LL));\n  }\n  return result;\n}", "assembly": "; \n; EditorSFXActionConfigLayer::refreshModeButtons from 0x140184830 to 0x1401848b6 (134 bytes)\n; \n; 2 xrefs:\n; > EditorSFXActionConfigLayer::onToggleMode @ 0x140184947\n; > <???> @ 0x140918d04\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:27:38 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140184830\npush    rdi                                                            ; +0x5, 0x140184835\nsub     rsp, 20h                                                       ; +0x6, 0x140184836\nmov     ebx, [rcx+3F0h]                                                ; +0xa, 0x14018483a\nmov     rdi, rcx                                                       ; +0x10, 0x140184840\ncall    EditorSFXManager__sharedState                                  ; +0x13, 0x140184843\nmov     edx, ebx                                                       ; +0x18, 0x140184848\nmov     rcx, rax                                                       ; +0x1a, 0x14018484a\ncall    EditorSFXManager__findBinding                                  ; +0x1d, 0x14018484d\ntest    rax, rax                                                       ; +0x22, 0x140184852\njz      short loc_14018485C                                            ; +0x25, 0x140184855\nmov     ecx, [rax+8]                                                   ; +0x27, 0x140184857\njmp     short loc_140184861                                            ; +0x2a, 0x14018485a\nmov     ecx, 1                                                         ; +0x2c, 0x14018485c\nmov     rax, [rdi+3F8h]                                                ; +0x31, 0x140184861\ntest    rax, rax                                                       ; +0x38, 0x140184868\njz      short loc_1401848AB                                            ; +0x3b, 0x14018486b\ntest    ecx, ecx                                                       ; +0x3d, 0x14018486d\nlea     r8, aGjButton02Png; \"GJ_button_02.png\"                         ; +0x3f, 0x14018486f\nlea     rdx, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x46, 0x140184876\nmov     rcx, rax                                                       ; +0x4d, 0x14018487d\ncmovz   rdx, r8                                                        ; +0x50, 0x140184880\ncall    ButtonSprite__updateBGImage                                    ; +0x54, 0x140184884\nmov     rax, [rdi+3F8h]                                                ; +0x59, 0x140184889\nxorps   xmm1, xmm1                                                     ; +0x60, 0x140184890\nmovss   xmm2, cs:dword_140835CA0                                       ; +0x63, 0x140184893\nmov     rcx, [rax+280h]                                                ; +0x6b, 0x14018489b\nmov     rax, [rcx]                                                     ; +0x72, 0x1401848a2\ncall    qword ptr [rax+0F0h]                                           ; +0x75, 0x1401848a5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7b, 0x1401848ab\nadd     rsp, 20h                                                       ; +0x80, 0x1401848b0\npop     rdi                                                            ; +0x84, 0x1401848b4\nretn                                                                   ; +0x85, 0x1401848b5", "xrefs": ["EditorSFXActionConfigLayer::onToggleMode @ 0x140184947", "<???> @ 0x140918d04"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}