{"type": "func", "start": 5373110288, "end": 5373110472, "name": "CreateParticlePopup::onTogglePerfLog", "pseudocode": "// \n// CreateParticlePopup::onTogglePerfLog from 0x140432810 to 0x1404328c8 (184 bytes)\n// \n// 2 xrefs:\n// > CreateParticlePopup::init @ 0x14042dd8f\n// > <???> @ 0x1406d9bcc\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 CreateParticlePopup::onTogglePerfLog(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  bool GameVariable; // al\n  void *v5; // [rsp+30h] [rbp+8h]\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  if ( !qword_1406C2ED8 )\n  {\n    v5 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n  }\n  GameManager::toggleGameVariable((GameManager *)a1, \"0178\");\n  v3 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v6 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = (GameManager *)qword_1406C2ED8;\n  }\n  GameVariable = GameManager::getGameVariable(v3, \"0178\");\n  a1->m_perfLogEnabled = GameVariable;\n  a1->m_perfLogElapsed = 1.0;\n  a1->m_perfLogLabel->setVisible(a1->m_perfLogLabel, GameVariable);\n}", "assembly": "; \n; CreateParticlePopup::onTogglePerfLog from 0x140432810 to 0x1404328c8 (184 bytes)\n; \n; 2 xrefs:\n; > CreateParticlePopup::init @ 0x14042dd8f\n; > <???> @ 0x1406d9bcc\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    rbx                                                            ; +0x0, 0x140432810\nsub     rsp, 20h                                                       ; +0x2, 0x140432812\nmov     rbx, rcx                                                       ; +0x6, 0x140432816\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x9, 0x140432819\njnz     short loc_14043284B                                            ; +0x11, 0x140432821\nmov     ecx, 668h; Size                                                ; +0x13, 0x140432823\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18, 0x140432828\nmov     [rsp+28h+arg_0], rax                                           ; +0x1d, 0x14043282d\nmov     rcx, rax                                                       ; +0x22, 0x140432832\ncall    sub_14017AB00                                                  ; +0x25, 0x140432835\nnop                                                                    ; +0x2a, 0x14043283a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2b, 0x14043283b\nmov     rdx, [rax]                                                     ; +0x32, 0x140432842\nmov     rcx, rax                                                       ; +0x35, 0x140432845\ncall    qword ptr [rdx+48h]                                            ; +0x38, 0x140432848\nlea     rdx, a0178; \"0178\"                                             ; +0x3b, 0x14043284b\ncall    GameManager__toggleGameVariable                                ; +0x42, 0x140432852\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x47, 0x140432857\ntest    rcx, rcx                                                       ; +0x4e, 0x14043285e\njnz     short loc_140432893                                            ; +0x51, 0x140432861\nmov     ecx, 668h; Size                                                ; +0x53, 0x140432863\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x58, 0x140432868\nmov     [rsp+28h+arg_0], rax                                           ; +0x5d, 0x14043286d\nmov     rcx, rax                                                       ; +0x62, 0x140432872\ncall    sub_14017AB00                                                  ; +0x65, 0x140432875\nnop                                                                    ; +0x6a, 0x14043287a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x6b, 0x14043287b\nmov     r8, [rax]                                                      ; +0x72, 0x140432882\nmov     rcx, rax                                                       ; +0x75, 0x140432885\ncall    qword ptr [r8+48h]                                             ; +0x78, 0x140432888\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x7c, 0x14043288c\nlea     rdx, a0178; \"0178\"                                             ; +0x83, 0x140432893\ncall    GameManager__getGameVariable                                   ; +0x8a, 0x14043289a\nmov     [rbx+390h], al                                                 ; +0x8f, 0x14043289f\nmov     dword ptr [rbx+394h], 3F800000h                                ; +0x95, 0x1404328a5\nmov     rcx, [rbx+398h]                                                ; +0x9f, 0x1404328af\nmov     r8, [rcx]                                                      ; +0xa6, 0x1404328b6\nmovzx   edx, al                                                        ; +0xa9, 0x1404328b9\nadd     rsp, 20h                                                       ; +0xac, 0x1404328bc\npop     rbx                                                            ; +0xb0, 0x1404328c0\njmp     qword ptr [r8+140h]                                            ; +0xb1, 0x1404328c1", "xrefs": ["CreateParticlePopup::init @ 0x14042dd8f", "<???> @ 0x1406d9bcc"], "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"}