{"type": "func", "start": 7789644, "end": 7789748, "name": "DeathMarkerSettingsPopup::onToggleLabels", "pseudocode": "// \n// DeathMarkerSettingsPopup::onToggleLabels from 0x76dc4c to 0x76dcb4 (104 bytes)\n// \n// 0 xrefs:\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:13 +0000\n// \n\nGameManager *__fastcall DeathMarkerSettingsPopup::onToggleLabels(DeathMarkerSettingsPopup *this, cocos2d::CCObject *a2)\n{\n  GameManager *v2; // r0\n  GameManager *v3; // r0\n  char v4; // r4\n  GameManager *result; // r0\n  GameManager *v6; // r0\n  int v7; // r0\n  int v8; // r0\n\n  v2 = (GameManager *)GameManager::sharedState(this);\n  v3 = (GameManager *)GameManager::toggleGameVariable(v2, \"0208\");\n  v4 = (char)v3;\n  result = (GameManager *)GameManager::sharedState(v3);\n  if ( *((_DWORD *)result + 101) )\n  {\n    v6 = (GameManager *)GameManager::sharedState(result);\n    if ( *(_DWORD *)(*((_DWORD *)v6 + 101) + 1412) )\n    {\n      v7 = GameManager::sharedState(v6);\n      v6 = (GameManager *)DeathMarkerLayer::setLabelsVisible(\n                            *(DeathMarkerLayer **)(*(_DWORD *)(v7 + 404) + 1412),\n                            v4 != 1);\n    }\n    result = (GameManager *)GameManager::sharedState(v6);\n    if ( *(_DWORD *)(*((_DWORD *)result + 101) + 1416) )\n    {\n      v8 = GameManager::sharedState(result);\n      return (GameManager *)DeathMarkerLayer::setLabelsVisible(\n                              *(DeathMarkerLayer **)(*(_DWORD *)(v8 + 404) + 1416),\n                              v4 != 1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; DeathMarkerSettingsPopup::onToggleLabels from 0x76dc4c to 0x76dcb4 (104 bytes)\n; \n; 0 xrefs:\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:13 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x76dc4c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2, 0x76dc4e\nLDR             R1, =(a0208 - 0x76DC58); \"0208\"                        ; +0x6, 0x76dc52\nADD             R1, PC; \"0208\"                                         ; +0x8, 0x76dc54\nBL              _ZN11GameManager18toggleGameVariableEPKc; GameManager::toggleGameVariable(char const*) ; +0xa, 0x76dc56\nMOV             R4, R0                                                 ; +0xe, 0x76dc5a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x76dc5c\nLDR.W           R3, [R0,#0x194]                                        ; +0x14, 0x76dc60\nCBZ             R3, locret_76DCB2                                      ; +0x18, 0x76dc64\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1a, 0x76dc66\nLDR.W           R3, [R0,#0x194]                                        ; +0x1e, 0x76dc6a\nLDR.W           R3, [R3,#0x584]                                        ; +0x22, 0x76dc6e\nCBZ             R3, loc_76DC8A                                         ; +0x26, 0x76dc72\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x28, 0x76dc74\nEOR.W           R1, R4, #1                                             ; +0x2c, 0x76dc78\nUXTB            R1, R1; bool                                           ; +0x30, 0x76dc7c\nLDR.W           R3, [R0,#0x194]                                        ; +0x32, 0x76dc7e\nLDR.W           R0, [R3,#0x584]; this                                  ; +0x36, 0x76dc82\nBL              _ZN16DeathMarkerLayer16setLabelsVisibleEb; DeathMarkerLayer::setLabelsVisible(bool) ; +0x3a, 0x76dc86\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x3e, 0x76dc8a\nLDR.W           R3, [R0,#0x194]                                        ; +0x42, 0x76dc8e\nLDR.W           R3, [R3,#0x588]                                        ; +0x46, 0x76dc92\nCBZ             R3, locret_76DCB2                                      ; +0x4a, 0x76dc96\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4c, 0x76dc98\nEOR.W           R1, R4, #1                                             ; +0x50, 0x76dc9c\nPOP.W           {R4,LR}                                                ; +0x54, 0x76dca0\nUXTB            R1, R1; bool                                           ; +0x58, 0x76dca4\nLDR.W           R3, [R0,#0x194]                                        ; +0x5a, 0x76dca6\nLDR.W           R0, [R3,#0x588]; this                                  ; +0x5e, 0x76dcaa\nB.W             _ZN16DeathMarkerLayer16setLabelsVisibleEb; DeathMarkerLayer::setLabelsVisible(bool) ; +0x62, 0x76dcae\nPOP             {R4,PC}                                                ; +0x66, 0x76dcb2", "xrefs": [], "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"}