{"type": "func", "start": 4299585968, "end": 4299586158, "name": "CreateParticlePopup::onMode", "pseudocode": "// \n// CreateParticlePopup::onMode from 0x1004679b0 to 0x100467a6e (190 bytes)\n// \n// 3 xrefs:\n// > CreateParticlePopup::init @ 0x1004635ad\n// > CreateParticlePopup::init @ 0x1004636c2\n// > CreateParticlePopup::init @ 0x1004637c9\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 12:30:29 +0000\n// \n\nvoid __fastcall CreateParticlePopup::onMode(__int64 a1, __int64 a2)\n{\n  int v2; // eax\n  int v3; // ecx\n  __int64 v4; // rax\n  const char *v5; // r14\n  const char *v6; // rsi\n  __int64 v7; // rax\n  const char *v8; // rsi\n  __int64 v9; // rax\n\n  v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  v3 = 0;\n  if ( v2 != *(_DWORD *)(a1 + 828) )\n    v3 = v2;\n  *(_DWORD *)(a1 + 828) = v3;\n  *(_DWORD *)(*(_QWORD *)(a1 + 792) + 544LL) = v3;\n  v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 800) + 1072LL))(*(_QWORD *)(a1 + 800));\n  v5 = \"GJ_button_04.png\";\n  v6 = \"GJ_button_04.png\";\n  if ( *(_DWORD *)(a1 + 828) == 1 )\n    v6 = \"GJ_button_01.png\";\n  ButtonSprite::updateBGImage(v4, (__int64)v6);\n  v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 1072LL))(*(_QWORD *)(a1 + 808));\n  v8 = \"GJ_button_04.png\";\n  if ( *(_DWORD *)(a1 + 828) == 2 )\n    v8 = \"GJ_button_01.png\";\n  ButtonSprite::updateBGImage(v7, (__int64)v8);\n  v9 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 816) + 1072LL))(*(_QWORD *)(a1 + 816));\n  if ( *(_DWORD *)(a1 + 828) == 3 )\n    v5 = \"GJ_button_01.png\";\n  ButtonSprite::updateBGImage(v9, (__int64)v5);\n}", "assembly": "; \n; CreateParticlePopup::onMode from 0x1004679b0 to 0x100467a6e (190 bytes)\n; \n; 3 xrefs:\n; > CreateParticlePopup::init @ 0x1004635ad\n; > CreateParticlePopup::init @ 0x1004636c2\n; > CreateParticlePopup::init @ 0x1004637c9\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 12:30:29 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004679b0\nmov     rbp, rsp                                                       ; +0x1, 0x1004679b1\npush    r15                                                            ; +0x4, 0x1004679b4\npush    r14                                                            ; +0x6, 0x1004679b6\npush    rbx                                                            ; +0x8, 0x1004679b8\npush    rax                                                            ; +0x9, 0x1004679b9\nmov     rbx, rdi                                                       ; +0xa, 0x1004679ba\nmov     rax, [rsi]                                                     ; +0xd, 0x1004679bd\nmov     rdi, rsi                                                       ; +0x10, 0x1004679c0\ncall    qword ptr [rax+40h]                                            ; +0x13, 0x1004679c3\nxor     ecx, ecx                                                       ; +0x16, 0x1004679c6\ncmp     eax, [rbx+33Ch]                                                ; +0x18, 0x1004679c8\ncmovnz  ecx, eax                                                       ; +0x1e, 0x1004679ce\nmov     [rbx+33Ch], ecx                                                ; +0x21, 0x1004679d1\nmov     rax, [rbx+318h]                                                ; +0x27, 0x1004679d7\nmov     [rax+220h], ecx                                                ; +0x2e, 0x1004679de\nmov     rdi, [rbx+320h]                                                ; +0x34, 0x1004679e4\nmov     rax, [rdi]                                                     ; +0x3b, 0x1004679eb\ncall    qword ptr [rax+430h]                                           ; +0x3e, 0x1004679ee\ncmp     dword ptr [rbx+33Ch], 1                                        ; +0x44, 0x1004679f4\nlea     r15, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x4b, 0x1004679fb\nlea     r14, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x52, 0x100467a02\nmov     rsi, r14                                                       ; +0x59, 0x100467a09\ncmovz   rsi, r15                                                       ; +0x5c, 0x100467a0c\nmov     rdi, rax                                                       ; +0x60, 0x100467a10\ncall    ButtonSprite__updateBGImage                                    ; +0x63, 0x100467a13\nmov     rdi, [rbx+328h]                                                ; +0x68, 0x100467a18\nmov     rax, [rdi]                                                     ; +0x6f, 0x100467a1f\ncall    qword ptr [rax+430h]                                           ; +0x72, 0x100467a22\ncmp     dword ptr [rbx+33Ch], 2                                        ; +0x78, 0x100467a28\nmov     rsi, r14                                                       ; +0x7f, 0x100467a2f\ncmovz   rsi, r15                                                       ; +0x82, 0x100467a32\nmov     rdi, rax                                                       ; +0x86, 0x100467a36\ncall    ButtonSprite__updateBGImage                                    ; +0x89, 0x100467a39\nmov     rdi, [rbx+330h]                                                ; +0x8e, 0x100467a3e\nmov     rax, [rdi]                                                     ; +0x95, 0x100467a45\ncall    qword ptr [rax+430h]                                           ; +0x98, 0x100467a48\ncmp     dword ptr [rbx+33Ch], 3                                        ; +0x9e, 0x100467a4e\ncmovz   r14, r15                                                       ; +0xa5, 0x100467a55\nmov     rdi, rax                                                       ; +0xa9, 0x100467a59\nmov     rsi, r14                                                       ; +0xac, 0x100467a5c\nadd     rsp, 8                                                         ; +0xaf, 0x100467a5f\npop     rbx                                                            ; +0xb3, 0x100467a63\npop     r14                                                            ; +0xb4, 0x100467a64\npop     r15                                                            ; +0xb6, 0x100467a66\npop     rbp                                                            ; +0xb8, 0x100467a68\njmp     ButtonSprite__updateBGImage                                    ; +0xb9, 0x100467a69", "xrefs": ["CreateParticlePopup::init @ 0x1004635ad", "CreateParticlePopup::init @ 0x1004636c2", "CreateParticlePopup::init @ 0x1004637c9"], "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"}