{"type": "func", "start": 4299633584, "end": 4299633774, "name": "CreateParticlePopup::onMode", "pseudocode": "// \n// CreateParticlePopup::onMode from 0x1004733b0 to 0x10047346e (190 bytes)\n// \n// 3 xrefs:\n// > CreateParticlePopup::init @ 0x10046f34d\n// > CreateParticlePopup::init @ 0x10046f456\n// > CreateParticlePopup::init @ 0x10046f55d\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::onMode(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  int v2; // eax\n  int v3; // ecx\n  ButtonSprite *v4; // rax\n  const char *v5; // r14\n  const char *v6; // rsi\n  ButtonSprite *v7; // rax\n  const char *v8; // rsi\n  ButtonSprite *v9; // rax\n\n  v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  v3 = 0;\n  if ( v2 != a1->m_selectedMode )\n    v3 = v2;\n  a1->m_selectedMode = v3;\n  a1->m_previewLayer->m_particleMode = v3;\n  v4 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_mode1Button->getNormalImage)(a1->m_mode1Button);\n  v5 = \"GJ_button_04.png\";\n  v6 = \"GJ_button_04.png\";\n  if ( a1->m_selectedMode == 1 )\n    v6 = \"GJ_button_01.png\";\n  ButtonSprite::updateBGImage(v4, v6);\n  v7 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_mode2Button->getNormalImage)(a1->m_mode2Button);\n  v8 = \"GJ_button_04.png\";\n  if ( a1->m_selectedMode == 2 )\n    v8 = \"GJ_button_01.png\";\n  ButtonSprite::updateBGImage(v7, v8);\n  v9 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_mode3Button->getNormalImage)(a1->m_mode3Button);\n  if ( a1->m_selectedMode == 3 )\n    v5 = \"GJ_button_01.png\";\n  ButtonSprite::updateBGImage(v9, v5);\n}", "assembly": "; \n; CreateParticlePopup::onMode from 0x1004733b0 to 0x10047346e (190 bytes)\n; \n; 3 xrefs:\n; > CreateParticlePopup::init @ 0x10046f34d\n; > CreateParticlePopup::init @ 0x10046f456\n; > CreateParticlePopup::init @ 0x10046f55d\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, 0x1004733b0\nmov     rbp, rsp                                                       ; +0x1, 0x1004733b1\npush    r15                                                            ; +0x4, 0x1004733b4\npush    r14                                                            ; +0x6, 0x1004733b6\npush    rbx                                                            ; +0x8, 0x1004733b8\npush    rax                                                            ; +0x9, 0x1004733b9\nmov     rbx, rdi                                                       ; +0xa, 0x1004733ba\nmov     rax, [rsi]                                                     ; +0xd, 0x1004733bd\nmov     rdi, rsi                                                       ; +0x10, 0x1004733c0\ncall    qword ptr [rax+40h]                                            ; +0x13, 0x1004733c3\nxor     ecx, ecx                                                       ; +0x16, 0x1004733c6\ncmp     eax, [rbx+324h]                                                ; +0x18, 0x1004733c8\ncmovnz  ecx, eax                                                       ; +0x1e, 0x1004733ce\nmov     [rbx+324h], ecx                                                ; +0x21, 0x1004733d1\nmov     rax, [rbx+300h]                                                ; +0x27, 0x1004733d7\nmov     [rax+220h], ecx                                                ; +0x2e, 0x1004733de\nmov     rdi, [rbx+308h]                                                ; +0x34, 0x1004733e4\nmov     rax, [rdi]                                                     ; +0x3b, 0x1004733eb\ncall    qword ptr [rax+420h]                                           ; +0x3e, 0x1004733ee\ncmp     dword ptr [rbx+324h], 1                                        ; +0x44, 0x1004733f4\nlea     r15, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x4b, 0x1004733fb\nlea     r14, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x52, 0x100473402\nmov     rsi, r14                                                       ; +0x59, 0x100473409\ncmovz   rsi, r15                                                       ; +0x5c, 0x10047340c\nmov     rdi, rax                                                       ; +0x60, 0x100473410\ncall    ButtonSprite__updateBGImage                                    ; +0x63, 0x100473413\nmov     rdi, [rbx+310h]                                                ; +0x68, 0x100473418\nmov     rax, [rdi]                                                     ; +0x6f, 0x10047341f\ncall    qword ptr [rax+420h]                                           ; +0x72, 0x100473422\ncmp     dword ptr [rbx+324h], 2                                        ; +0x78, 0x100473428\nmov     rsi, r14                                                       ; +0x7f, 0x10047342f\ncmovz   rsi, r15                                                       ; +0x82, 0x100473432\nmov     rdi, rax                                                       ; +0x86, 0x100473436\ncall    ButtonSprite__updateBGImage                                    ; +0x89, 0x100473439\nmov     rdi, [rbx+318h]                                                ; +0x8e, 0x10047343e\nmov     rax, [rdi]                                                     ; +0x95, 0x100473445\ncall    qword ptr [rax+420h]                                           ; +0x98, 0x100473448\ncmp     dword ptr [rbx+324h], 3                                        ; +0x9e, 0x10047344e\ncmovz   r14, r15                                                       ; +0xa5, 0x100473455\nmov     rdi, rax                                                       ; +0xa9, 0x100473459\nmov     rsi, r14                                                       ; +0xac, 0x10047345c\nadd     rsp, 8                                                         ; +0xaf, 0x10047345f\npop     rbx                                                            ; +0xb3, 0x100473463\npop     r14                                                            ; +0xb4, 0x100473464\npop     r15                                                            ; +0xb6, 0x100473466\npop     rbp                                                            ; +0xb8, 0x100473468\njmp     ButtonSprite__updateBGImage                                    ; +0xb9, 0x100473469", "xrefs": ["CreateParticlePopup::init @ 0x10046f34d", "CreateParticlePopup::init @ 0x10046f456", "CreateParticlePopup::init @ 0x10046f55d"], "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"}