{"type": "func", "start": 7307036, "end": 7307296, "name": "EditorUI::recreateButtonTabs", "pseudocode": "// \n// EditorUI::recreateButtonTabs from 0x6f7f1c to 0x6f8020 (260 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::onResume @ 0x508e98\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:57:40 +0000\n// \n\ncocos2d::CCArray **__fastcall EditorUI::recreateButtonTabs(EditorUI *this)\n{\n  unsigned int v1; // r5\n  GameManager *v3; // r0\n  GameManager *IntGameVariable; // r6\n  GameManager *v5; // r0\n  int i; // r7\n  GameManager *v7; // r0\n  cocos2d::CCArray **v8; // r0\n  GameManager *v9; // r0\n  GameManager *v10; // r0\n  int v11; // r5\n  GameManager *v12; // r0\n  int v13; // r0\n  cocos2d::CCObject *v14; // r0\n  cocos2d::CCObject *v15; // r0\n  int v16; // r0\n  cocos2d::CCObject *v17; // r0\n  cocos2d::CCArray **result; // r0\n\n  v1 = 0;\n  *((_BYTE *)this + 1055) = 0;\n  v3 = (GameManager *)GameManager::sharedState(this);\n  IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v3, \"0049\");\n  v5 = (GameManager *)GameManager::sharedState(IntGameVariable);\n  for ( i = GameManager::getIntGameVariable(v5, \"0050\"); ; EditButtonBar::reloadItems(v8, (int)IntGameVariable, i) )\n  {\n    v7 = (GameManager *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 204));\n    if ( v1 >= (unsigned int)v7 )\n      break;\n    v8 = (cocos2d::CCArray **)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 204), v1++);\n  }\n  v9 = (GameManager *)GameManager::sharedState(v7);\n  v10 = (GameManager *)(GameManager::getGameVariable(v9, \"0191\") ^ 1);\n  v11 = (unsigned __int8)v10;\n  if ( *((_DWORD *)this + 264) )\n  {\n    v12 = (GameManager *)GameManager::sharedState(v10);\n    if ( *((unsigned __int8 *)this + 1064) == GameManager::getGameVariable(v12, \"0247\") && v11 )\n    {\nLABEL_18:\n      result = *((cocos2d::CCArray ***)this + 154);\n      if ( result )\n        return EditButtonBar::reloadItems(result, (int)IntGameVariable, i);\n      return result;\n    }\n    v13 = *((_DWORD *)this + 264);\n    if ( v13 )\n    {\n      (*(void (__fastcall **)(int))(*(_DWORD *)v13 + 260))(v13);\n      *((_DWORD *)this + 264) = 0;\n    }\n  }\n  else if ( !(_BYTE)v10 )\n  {\n    goto LABEL_18;\n  }\n  v14 = *((cocos2d::CCObject **)this + 267);\n  if ( v14 )\n    cocos2d::CCObject::release(v14);\n  v15 = *((cocos2d::CCObject **)this + 268);\n  *((_DWORD *)this + 267) = 0;\n  if ( v15 )\n    cocos2d::CCObject::release(v15);\n  v16 = *((_DWORD *)this + 154);\n  *((_DWORD *)this + 268) = 0;\n  *((_DWORD *)this + 269) = 0;\n  if ( v16 )\n  {\n    (*(void (__fastcall **)(int))(*(_DWORD *)v16 + 260))(v16);\n    *((_DWORD *)this + 154) = 0;\n  }\n  v17 = *((cocos2d::CCObject **)this + 152);\n  if ( v17 )\n    cocos2d::CCObject::release(v17);\n  *((_DWORD *)this + 152) = 0;\n  EditorUI::createMoveMenu(this);\n  EditorUI::updateEditMenu(this);\n  return (cocos2d::CCArray **)EditorUI::updateButtons((cocos2d::CCArray **)this);\n}", "assembly": "; \n; EditorUI::recreateButtonTabs from 0x6f7f1c to 0x6f8020 (260 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::onResume @ 0x508e98\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:57:40 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x6f7f1c\nMOVS            R5, #0                                                 ; +0x2, 0x6f7f1e\nSTRB.W          R5, [R0,#0x41F]                                        ; +0x4, 0x6f7f20\nMOV             R4, R0                                                 ; +0x8, 0x6f7f24\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xa, 0x6f7f26\nLDR             R1, =(a0049 - 0x6F7F30); \"0049\"                        ; +0xe, 0x6f7f2a\nADD             R1, PC; \"0049\"                                         ; +0x10, 0x6f7f2c\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x12, 0x6f7f2e\nMOV             R6, R0                                                 ; +0x16, 0x6f7f32\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x18, 0x6f7f34\nLDR             R1, =(a0050 - 0x6F7F3E); \"0050\"                        ; +0x1c, 0x6f7f38\nADD             R1, PC; \"0050\"                                         ; +0x1e, 0x6f7f3a\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x20, 0x6f7f3c\nMOV             R7, R0                                                 ; +0x24, 0x6f7f40\nLDR.W           R0, [R4,#0x330]; this                                  ; +0x26, 0x6f7f42\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2a, 0x6f7f46\nCMP             R5, R0                                                 ; +0x2e, 0x6f7f4a\nBCS             loc_6F7F64                                             ; +0x30, 0x6f7f4c\nMOV             R1, R5; unsigned int                                   ; +0x32, 0x6f7f4e\nLDR.W           R0, [R4,#0x330]; this                                  ; +0x34, 0x6f7f50\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x6f7f54\nMOV             R1, R6; int                                            ; +0x3c, 0x6f7f58\nMOV             R2, R7; int                                            ; +0x3e, 0x6f7f5a\nADDS            R5, #1                                                 ; +0x40, 0x6f7f5c\nBL              _ZN13EditButtonBar11reloadItemsEii; EditButtonBar::reloadItems(int,int) ; +0x42, 0x6f7f5e\nB               loc_6F7F42                                             ; +0x46, 0x6f7f62\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x48, 0x6f7f64\nLDR             R1, =(a0191 - 0x6F7F6E); \"0191\"                        ; +0x4c, 0x6f7f68\nADD             R1, PC; \"0191\"                                         ; +0x4e, 0x6f7f6a\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x50, 0x6f7f6c\nLDR.W           R3, [R4,#0x420]                                        ; +0x54, 0x6f7f70\nEOR.W           R0, R0, #1; this                                       ; +0x58, 0x6f7f74\nUXTB            R5, R0                                                 ; +0x5c, 0x6f7f78\nCMP             R3, #0                                                 ; +0x5e, 0x6f7f7a\nBEQ             loc_6F8018                                             ; +0x60, 0x6f7f7c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x62, 0x6f7f7e\nLDR             R1, =(a0247 - 0x6F7F88); \"0247\"                        ; +0x66, 0x6f7f82\nADD             R1, PC; \"0247\"                                         ; +0x68, 0x6f7f84\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x6a, 0x6f7f86\nLDRB.W          R3, [R4,#0x428]                                        ; +0x6e, 0x6f7f8a\nCMP             R3, R0                                                 ; +0x72, 0x6f7f8e\nBEQ             loc_6F8002                                             ; +0x74, 0x6f7f90\nLDR.W           R0, [R4,#0x420]                                        ; +0x76, 0x6f7f92\nCBZ             R0, loc_6F7FA6                                         ; +0x7a, 0x6f7f96\nLDR             R3, [R0]                                               ; +0x7c, 0x6f7f98\nLDR.W           R3, [R3,#0x104]                                        ; +0x7e, 0x6f7f9a\nBLX             R3                                                     ; +0x82, 0x6f7f9e\nMOVS            R3, #0                                                 ; +0x84, 0x6f7fa0\nSTR.W           R3, [R4,#0x420]                                        ; +0x86, 0x6f7fa2\nLDR.W           R0, [R4,#0x42C]; this                                  ; +0x8a, 0x6f7fa6\nCBZ             R0, loc_6F7FB0                                         ; +0x8e, 0x6f7faa\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x90, 0x6f7fac\nLDR.W           R0, [R4,#0x430]; this                                  ; +0x94, 0x6f7fb0\nMOVS            R5, #0                                                 ; +0x98, 0x6f7fb4\nSTR.W           R5, [R4,#0x42C]                                        ; +0x9a, 0x6f7fb6\nCBZ             R0, loc_6F7FC0                                         ; +0x9e, 0x6f7fba\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0xa0, 0x6f7fbc\nLDR.W           R0, [R4,#0x268]                                        ; +0xa4, 0x6f7fc0\nSTR.W           R5, [R4,#0x430]                                        ; +0xa8, 0x6f7fc4\nSTR.W           R5, [R4,#0x434]                                        ; +0xac, 0x6f7fc8\nCBZ             R0, loc_6F7FDC                                         ; +0xb0, 0x6f7fcc\nLDR             R3, [R0]                                               ; +0xb2, 0x6f7fce\nLDR.W           R3, [R3,#0x104]                                        ; +0xb4, 0x6f7fd0\nBLX             R3                                                     ; +0xb8, 0x6f7fd4\nMOVS            R3, #0                                                 ; +0xba, 0x6f7fd6\nSTR.W           R3, [R4,#0x268]                                        ; +0xbc, 0x6f7fd8\nLDR.W           R0, [R4,#0x260]; this                                  ; +0xc0, 0x6f7fdc\nCBZ             R0, loc_6F7FE6                                         ; +0xc4, 0x6f7fe0\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0xc6, 0x6f7fe2\nMOVS            R3, #0                                                 ; +0xca, 0x6f7fe6\nMOV             R0, R4; this                                           ; +0xcc, 0x6f7fe8\nSTR.W           R3, [R4,#0x260]                                        ; +0xce, 0x6f7fea\nBL              _ZN8EditorUI14createMoveMenuEv; EditorUI::createMoveMenu(void) ; +0xd2, 0x6f7fee\nMOV             R0, R4; this                                           ; +0xd6, 0x6f7ff2\nBL              _ZN8EditorUI14updateEditMenuEv; EditorUI::updateEditMenu(void) ; +0xd8, 0x6f7ff4\nMOV             R0, R4; this                                           ; +0xdc, 0x6f7ff8\nPOP.W           {R3-R7,LR}                                             ; +0xde, 0x6f7ffa\nB.W             _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0xe2, 0x6f7ffe\nCMP             R5, #0                                                 ; +0xe6, 0x6f8002\nBEQ             loc_6F7F92                                             ; +0xe8, 0x6f8004\nLDR.W           R0, [R4,#0x268]; this                                  ; +0xea, 0x6f8006\nCBZ             R0, locret_6F801E                                      ; +0xee, 0x6f800a\nMOV             R1, R6; int                                            ; +0xf0, 0x6f800c\nMOV             R2, R7; int                                            ; +0xf2, 0x6f800e\nPOP.W           {R3-R7,LR}                                             ; +0xf4, 0x6f8010\nB.W             _ZN13EditButtonBar11reloadItemsEii; EditButtonBar::reloadItems(int,int) ; +0xf8, 0x6f8014\nCMP             R5, #0                                                 ; +0xfc, 0x6f8018\nBNE             loc_6F7FA6                                             ; +0xfe, 0x6f801a\nB               loc_6F8006                                             ; +0x100, 0x6f801c\nPOP             {R3-R7,PC}                                             ; +0x102, 0x6f801e", "xrefs": ["EditorPauseLayer::onResume @ 0x508e98"], "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"}