{"type": "func", "start": 5374771472, "end": 5374771662, "name": "CreateParticlePopup::onTogglePerfLog", "pseudocode": "// \n// CreateParticlePopup::onTogglePerfLog from 0x1405c8110 to 0x1405c81ce (190 bytes)\n// \n// 2 xrefs:\n// > CreateParticlePopup::init @ 0x1405c30b5\n// > <???> @ 0x14092e34c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:34:51 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::onTogglePerfLog(__int64 a1)\n{\n  __int64 v2; // rcx\n  bool GameVariable; // al\n  void *v5; // [rsp+30h] [rbp+8h]\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  if ( !qword_14090BFD0 )\n  {\n    v5 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n  }\n  GameManager::toggleGameVariable(a1, \"0178\");\n  v2 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v6 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = qword_14090BFD0;\n  }\n  GameVariable = GameManager::getGameVariable(v2, \"0178\");\n  *(_BYTE *)(a1 + 976) = GameVariable;\n  *(_DWORD *)(a1 + 980) = 1065353216;\n  return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 984) + 336LL))(\n           *(_QWORD *)(a1 + 984),\n           GameVariable);\n}", "assembly": "; \n; CreateParticlePopup::onTogglePerfLog from 0x1405c8110 to 0x1405c81ce (190 bytes)\n; \n; 2 xrefs:\n; > CreateParticlePopup::init @ 0x1405c30b5\n; > <???> @ 0x14092e34c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:34:51 +0000\n; \npush    rbx                                                            ; +0x0, 0x1405c8110\nsub     rsp, 20h                                                       ; +0x2, 0x1405c8112\nmov     rbx, rcx                                                       ; +0x6, 0x1405c8116\ncmp     cs:qword_14090BFD0, 0                                          ; +0x9, 0x1405c8119\njnz     short loc_1405C814B                                            ; +0x11, 0x1405c8121\nmov     ecx, 6E8h; Size                                                ; +0x13, 0x1405c8123\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18, 0x1405c8128\nmov     [rsp+28h+arg_0], rax                                           ; +0x1d, 0x1405c812d\nmov     rcx, rax                                                       ; +0x22, 0x1405c8132\ncall    GameManager__GameManager                                       ; +0x25, 0x1405c8135\nnop                                                                    ; +0x2a, 0x1405c813a\nmov     cs:qword_14090BFD0, rax                                        ; +0x2b, 0x1405c813b\nmov     rdx, [rax]                                                     ; +0x32, 0x1405c8142\nmov     rcx, rax                                                       ; +0x35, 0x1405c8145\ncall    qword ptr [rdx+48h]                                            ; +0x38, 0x1405c8148\nlea     rdx, a0178; \"0178\"                                             ; +0x3b, 0x1405c814b\ncall    GameManager__toggleGameVariable                                ; +0x42, 0x1405c8152\nmov     rcx, cs:qword_14090BFD0                                        ; +0x47, 0x1405c8157\ntest    rcx, rcx                                                       ; +0x4e, 0x1405c815e\njnz     short loc_1405C8196                                            ; +0x51, 0x1405c8161\nmov     ecx, 6E8h; Size                                                ; +0x53, 0x1405c8163\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x58, 0x1405c8168\nmov     [rsp+28h+arg_0], rax                                           ; +0x5d, 0x1405c816d\nmov     rcx, rax                                                       ; +0x62, 0x1405c8172\ncall    GameManager__GameManager                                       ; +0x65, 0x1405c8175\nnop                                                                    ; +0x6a, 0x1405c817a\nmov     cs:qword_14090BFD0, rax                                        ; +0x6b, 0x1405c817b\nmov     rcx, [rax]                                                     ; +0x72, 0x1405c8182\nmov     r8, [rcx+48h]                                                  ; +0x75, 0x1405c8185\nmov     rcx, rax                                                       ; +0x79, 0x1405c8189\ncall    r8                                                             ; +0x7c, 0x1405c818c\nmov     rcx, cs:qword_14090BFD0                                        ; +0x7f, 0x1405c818f\nlea     rdx, a0178; \"0178\"                                             ; +0x86, 0x1405c8196\ncall    GameManager__getGameVariable                                   ; +0x8d, 0x1405c819d\nmov     [rbx+3D0h], al                                                 ; +0x92, 0x1405c81a2\nmov     dword ptr [rbx+3D4h], 3F800000h                                ; +0x98, 0x1405c81a8\nmov     rcx, [rbx+3D8h]                                                ; +0xa2, 0x1405c81b2\nmov     rdx, [rcx]                                                     ; +0xa9, 0x1405c81b9\nmov     r8, [rdx+150h]                                                 ; +0xac, 0x1405c81bc\nmovzx   edx, al                                                        ; +0xb3, 0x1405c81c3\nadd     rsp, 20h                                                       ; +0xb6, 0x1405c81c6\npop     rbx                                                            ; +0xba, 0x1405c81ca\njmp     r8                                                             ; +0xbb, 0x1405c81cb", "xrefs": ["CreateParticlePopup::init @ 0x1405c30b5", "<???> @ 0x14092e34c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}