{"type": "func", "start": 5374769120, "end": 5374769336, "name": "CreateParticlePopup::onMode", "pseudocode": "// \n// CreateParticlePopup::onMode from 0x1405c77e0 to 0x1405c78b8 (216 bytes)\n// \n// 3 xrefs:\n// > CreateParticlePopup::init @ 0x1405c2230\n// > <???> @ 0x14092e2d4\n// > <???> @ 0x14092e2e0\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\nvoid __fastcall CreateParticlePopup::onMode(__int64 a1, __int64 a2)\n{\n  int v3; // eax\n  const char *v4; // rdi\n  const char *v5; // rbx\n  __int64 v6; // rax\n  const char *v7; // rbx\n  __int64 v8; // rax\n  __int64 v9; // rax\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v4 = \"GJ_button_04.png\";\n  v5 = \"GJ_button_04.png\";\n  if ( v3 == *(_DWORD *)(a1 + 828) )\n    v3 = 0;\n  *(_DWORD *)(a1 + 828) = v3;\n  *(_DWORD *)(*(_QWORD *)(a1 + 792) + 544LL) = v3;\n  if ( *(_DWORD *)(a1 + 828) == 1 )\n    v5 = \"GJ_button_01.png\";\n  v6 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 800) + 952LL))(*(_QWORD *)(a1 + 800));\n  ButtonSprite::updateBGImage(v6, v5);\n  v7 = \"GJ_button_04.png\";\n  if ( *(_DWORD *)(a1 + 828) == 2 )\n    v7 = \"GJ_button_01.png\";\n  v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 952LL))(*(_QWORD *)(a1 + 808));\n  ButtonSprite::updateBGImage(v8, v7);\n  if ( *(_DWORD *)(a1 + 828) == 3 )\n    v4 = \"GJ_button_01.png\";\n  v9 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 816) + 952LL))(*(_QWORD *)(a1 + 816));\n  ButtonSprite::updateBGImage(v9, v4);\n}", "assembly": "; \n; CreateParticlePopup::onMode from 0x1405c77e0 to 0x1405c78b8 (216 bytes)\n; \n; 3 xrefs:\n; > CreateParticlePopup::init @ 0x1405c2230\n; > <???> @ 0x14092e2d4\n; > <???> @ 0x14092e2e0\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1405c77e0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1405c77e5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1405c77ea\npush    rdi                                                            ; +0xf, 0x1405c77ef\nsub     rsp, 20h                                                       ; +0x10, 0x1405c77f0\nmov     rax, [rdx]                                                     ; +0x14, 0x1405c77f4\nmov     rsi, rcx                                                       ; +0x17, 0x1405c77f7\nmov     rcx, rdx                                                       ; +0x1a, 0x1405c77fa\ncall    qword ptr [rax+38h]                                            ; +0x1d, 0x1405c77fd\nxor     ecx, ecx                                                       ; +0x20, 0x1405c7800\nlea     rdi, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x22, 0x1405c7802\ncmp     eax, [rsi+33Ch]                                                ; +0x29, 0x1405c7809\nlea     rbp, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x2f, 0x1405c780f\nmov     rbx, rdi                                                       ; +0x36, 0x1405c7816\ncmovz   eax, ecx                                                       ; +0x39, 0x1405c7819\nmov     [rsi+33Ch], eax                                                ; +0x3c, 0x1405c781c\nmov     rcx, [rsi+318h]                                                ; +0x42, 0x1405c7822\nmov     [rcx+220h], eax                                                ; +0x49, 0x1405c7829\nmov     rcx, [rsi+320h]                                                ; +0x4f, 0x1405c782f\ncmp     dword ptr [rsi+33Ch], 1                                        ; +0x56, 0x1405c7836\ncmovz   rbx, rbp                                                       ; +0x5d, 0x1405c783d\nmov     rax, [rcx]                                                     ; +0x61, 0x1405c7841\ncall    qword ptr [rax+3B8h]                                           ; +0x64, 0x1405c7844\nmov     rcx, rax                                                       ; +0x6a, 0x1405c784a\nmov     rdx, rbx                                                       ; +0x6d, 0x1405c784d\ncall    ButtonSprite__updateBGImage                                    ; +0x70, 0x1405c7850\nmov     rcx, [rsi+328h]                                                ; +0x75, 0x1405c7855\nmov     rbx, rdi                                                       ; +0x7c, 0x1405c785c\ncmp     dword ptr [rsi+33Ch], 2                                        ; +0x7f, 0x1405c785f\ncmovz   rbx, rbp                                                       ; +0x86, 0x1405c7866\nmov     rax, [rcx]                                                     ; +0x8a, 0x1405c786a\ncall    qword ptr [rax+3B8h]                                           ; +0x8d, 0x1405c786d\nmov     rcx, rax                                                       ; +0x93, 0x1405c7873\nmov     rdx, rbx                                                       ; +0x96, 0x1405c7876\ncall    ButtonSprite__updateBGImage                                    ; +0x99, 0x1405c7879\nmov     rcx, [rsi+330h]                                                ; +0x9e, 0x1405c787e\ncmp     dword ptr [rsi+33Ch], 3                                        ; +0xa5, 0x1405c7885\ncmovz   rdi, rbp                                                       ; +0xac, 0x1405c788c\nmov     rax, [rcx]                                                     ; +0xb0, 0x1405c7890\ncall    qword ptr [rax+3B8h]                                           ; +0xb3, 0x1405c7893\nmov     rcx, rax                                                       ; +0xb9, 0x1405c7899\nmov     rdx, rdi                                                       ; +0xbc, 0x1405c789c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xbf, 0x1405c789f\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xc4, 0x1405c78a4\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc9, 0x1405c78a9\nadd     rsp, 20h                                                       ; +0xce, 0x1405c78ae\npop     rdi                                                            ; +0xd2, 0x1405c78b2\njmp     ButtonSprite__updateBGImage                                    ; +0xd3, 0x1405c78b3", "xrefs": ["CreateParticlePopup::init @ 0x1405c2230", "<???> @ 0x14092e2d4", "<???> @ 0x14092e2e0"], "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"}