{"type": "func", "start": 4299634928, "end": 4299635019, "name": "CreateParticlePopup::onTogglePerfLog", "pseudocode": "// \n// CreateParticlePopup::onTogglePerfLog from 0x1004738f0 to 0x10047394b (91 bytes)\n// \n// 1 xrefs:\n// > CreateParticlePopup::init @ 0x100470331\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 CreateParticlePopup::onTogglePerfLog(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v2; // rax\n  GameManager *v3; // rax\n  bool GameVariable; // al\n\n  v2 = GameManager::sharedState();\n  GameManager::toggleGameVariable(v2, \"0178\");\n  v3 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v3, \"0178\");\n  a1->m_perfLogEnabled = GameVariable;\n  a1->m_perfLogElapsed = 1.0;\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, bool))a1->m_perfLogLabel->setVisible)(\n    a1->m_perfLogLabel,\n    GameVariable);\n}", "assembly": "; \n; CreateParticlePopup::onTogglePerfLog from 0x1004738f0 to 0x10047394b (91 bytes)\n; \n; 1 xrefs:\n; > CreateParticlePopup::init @ 0x100470331\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, 0x1004738f0\nmov     rbp, rsp                                                       ; +0x1, 0x1004738f1\npush    r14                                                            ; +0x4, 0x1004738f4\npush    rbx                                                            ; +0x6, 0x1004738f6\nmov     rbx, rdi                                                       ; +0x7, 0x1004738f7\ncall    GameManager__sharedState                                       ; +0xa, 0x1004738fa\nlea     r14, a0178; \"0178\"                                             ; +0xf, 0x1004738ff\nmov     rdi, rax                                                       ; +0x16, 0x100473906\nmov     rsi, r14                                                       ; +0x19, 0x100473909\ncall    GameManager__toggleGameVariable                                ; +0x1c, 0x10047390c\ncall    GameManager__sharedState                                       ; +0x21, 0x100473911\nmov     rdi, rax                                                       ; +0x26, 0x100473916\nmov     rsi, r14                                                       ; +0x29, 0x100473919\ncall    GameManager__getGameVariable                                   ; +0x2c, 0x10047391c\nmov     [rbx+390h], al                                                 ; +0x31, 0x100473921\nmov     dword ptr [rbx+394h], 3F800000h                                ; +0x37, 0x100473927\nmov     rdi, [rbx+398h]                                                ; +0x41, 0x100473931\nmov     rcx, [rdi]                                                     ; +0x48, 0x100473938\nmov     rcx, [rcx+148h]                                                ; +0x4b, 0x10047393b\nmovzx   esi, al                                                        ; +0x52, 0x100473942\npop     rbx                                                            ; +0x55, 0x100473945\npop     r14                                                            ; +0x56, 0x100473946\npop     rbp                                                            ; +0x58, 0x100473948\njmp     rcx                                                            ; +0x59, 0x100473949", "xrefs": ["CreateParticlePopup::init @ 0x100470331"], "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"}