{"type": "func", "start": 4295171136, "end": 4295171307, "name": "EditorUI::recreateButtonTabs", "pseudocode": "// \n// EditorUI::recreateButtonTabs from 0x100031c40 to 0x100031ceb (171 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::onResume @ 0x1002937f0\n// > EditorPauseLayer::keyBackClicked @ 0x100294f90\n// > sub_100294FA0 @ 0x10029500c\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 EditorUI::recreateButtonTabs(EditorUI *a1)\n{\n  GameManager *v1; // rax\n  int IntGameVariable; // r14d\n  GameManager *v3; // rax\n  int v4; // r15d\n  unsigned int v5; // r12d\n  EditButtonBar *v6; // rax\n\n  a1->m_reloadItems = 0;\n  v1 = GameManager::sharedState();\n  IntGameVariable = GameManager::getIntGameVariable(v1, \"0049\");\n  v3 = GameManager::sharedState();\n  v4 = GameManager::getIntGameVariable(v3, \"0050\");\n  if ( (unsigned int)sub_100720070(a1->m_createButtonBars) )\n  {\n    v5 = 0;\n    do\n    {\n      v6 = (EditButtonBar *)sub_1007200C0(a1->m_createButtonBars, v5);\n      EditButtonBar::reloadItems(v6, IntGameVariable, v4);\n      ++v5;\n    }\n    while ( v5 < (unsigned int)sub_100720070(a1->m_createButtonBars) );\n  }\n  EditButtonBar::reloadItems(a1->m_editButtonBar, IntGameVariable, v4);\n}", "assembly": "; \n; EditorUI::recreateButtonTabs from 0x100031c40 to 0x100031ceb (171 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::onResume @ 0x1002937f0\n; > EditorPauseLayer::keyBackClicked @ 0x100294f90\n; > sub_100294FA0 @ 0x10029500c\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\npush    rbp                                                            ; +0x0, 0x100031c40\nmov     rbp, rsp                                                       ; +0x1, 0x100031c41\npush    r15                                                            ; +0x4, 0x100031c44\npush    r14                                                            ; +0x6, 0x100031c46\npush    r12                                                            ; +0x8, 0x100031c48\npush    rbx                                                            ; +0xa, 0x100031c4a\nmov     rbx, rdi                                                       ; +0xb, 0x100031c4b\nmov     byte ptr [rdi+589h], 0                                         ; +0xe, 0x100031c4e\ncall    GameManager__sharedState                                       ; +0x15, 0x100031c55\nlea     rsi, a0049; \"0049\"                                             ; +0x1a, 0x100031c5a\nmov     rdi, rax                                                       ; +0x21, 0x100031c61\ncall    GameManager__getIntGameVariable                                ; +0x24, 0x100031c64\nmov     r14d, eax                                                      ; +0x29, 0x100031c69\ncall    GameManager__sharedState                                       ; +0x2c, 0x100031c6c\nlea     rsi, a0050; \"0050\"                                             ; +0x31, 0x100031c71\nmov     rdi, rax                                                       ; +0x38, 0x100031c78\ncall    GameManager__getIntGameVariable                                ; +0x3b, 0x100031c7b\nmov     r15d, eax                                                      ; +0x40, 0x100031c80\nmov     rdi, [rbx+428h]                                                ; +0x43, 0x100031c83\ncall    sub_100720070                                                  ; +0x4a, 0x100031c8a\ntest    eax, eax                                                       ; +0x4f, 0x100031c8f\njz      short loc_100031CD1                                            ; +0x51, 0x100031c91\nxor     r12d, r12d                                                     ; +0x53, 0x100031c93\nnop     word ptr [rax+rax+00000000h]                                   ; +0x56, 0x100031c96\nmov     rdi, [rbx+428h]                                                ; +0x60, 0x100031ca0\nmov     esi, r12d                                                      ; +0x67, 0x100031ca7\ncall    sub_1007200C0                                                  ; +0x6a, 0x100031caa\nmov     rdi, rax                                                       ; +0x6f, 0x100031caf\nmov     esi, r14d                                                      ; +0x72, 0x100031cb2\nmov     edx, r15d                                                      ; +0x75, 0x100031cb5\ncall    EditButtonBar__reloadItems                                     ; +0x78, 0x100031cb8\ninc     r12d                                                           ; +0x7d, 0x100031cbd\nmov     rdi, [rbx+428h]                                                ; +0x80, 0x100031cc0\ncall    sub_100720070                                                  ; +0x87, 0x100031cc7\ncmp     r12d, eax                                                      ; +0x8c, 0x100031ccc\njb      short loc_100031CA0                                            ; +0x8f, 0x100031ccf\nmov     rdi, [rbx+2E8h]                                                ; +0x91, 0x100031cd1\nmov     esi, r14d                                                      ; +0x98, 0x100031cd8\nmov     edx, r15d                                                      ; +0x9b, 0x100031cdb\npop     rbx                                                            ; +0x9e, 0x100031cde\npop     r12                                                            ; +0x9f, 0x100031cdf\npop     r14                                                            ; +0xa1, 0x100031ce1\npop     r15                                                            ; +0xa3, 0x100031ce3\npop     rbp                                                            ; +0xa5, 0x100031ce5\njmp     EditButtonBar__reloadItems                                     ; +0xa6, 0x100031ce6", "xrefs": ["EditorPauseLayer::onResume @ 0x1002937f0", "EditorPauseLayer::keyBackClicked @ 0x100294f90", "sub_100294FA0 @ 0x10029500c"], "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"}