{"type": "func", "start": 5373108560, "end": 5373108776, "name": "CreateParticlePopup::onMode", "pseudocode": "// \n// CreateParticlePopup::onMode from 0x140432150 to 0x140432228 (216 bytes)\n// \n// 3 xrefs:\n// > CreateParticlePopup::init @ 0x14042cf0e\n// > <???> @ 0x1406d9b6c\n// > <???> @ 0x1406d9b78\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::onMode(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // eax\n  ParticlePreviewLayer *m_previewLayer; // rdx\n  const char *v5; // rdi\n  const char *v6; // rbx\n  ButtonSprite *v7; // rax\n  const char *v8; // rbx\n  ButtonSprite *v9; // rax\n  ButtonSprite *v10; // rax\n\n  v3 = a2->getTag(a2);\n  m_previewLayer = a1->m_previewLayer;\n  v5 = \"GJ_button_04.png\";\n  v6 = \"GJ_button_04.png\";\n  if ( v3 == a1->m_selectedMode )\n    v3 = 0;\n  a1->m_selectedMode = v3;\n  m_previewLayer->m_particleMode = v3;\n  if ( a1->m_selectedMode == 1 )\n    v6 = \"GJ_button_01.png\";\n  v7 = (ButtonSprite *)a1->m_mode1Button->getNormalImage(a1->m_mode1Button);\n  ButtonSprite::updateBGImage(v7, v6);\n  v8 = \"GJ_button_04.png\";\n  if ( a1->m_selectedMode == 2 )\n    v8 = \"GJ_button_01.png\";\n  v9 = (ButtonSprite *)a1->m_mode2Button->getNormalImage(a1->m_mode2Button);\n  ButtonSprite::updateBGImage(v9, v8);\n  if ( a1->m_selectedMode == 3 )\n    v5 = \"GJ_button_01.png\";\n  v10 = (ButtonSprite *)a1->m_mode3Button->getNormalImage(a1->m_mode3Button);\n  ButtonSprite::updateBGImage(v10, v5);\n}", "assembly": "; \n; CreateParticlePopup::onMode from 0x140432150 to 0x140432228 (216 bytes)\n; \n; 3 xrefs:\n; > CreateParticlePopup::init @ 0x14042cf0e\n; > <???> @ 0x1406d9b6c\n; > <???> @ 0x1406d9b78\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140432150\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140432155\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14043215a\npush    rdi                                                            ; +0xf, 0x14043215f\nsub     rsp, 20h                                                       ; +0x10, 0x140432160\nmov     rax, [rdx]                                                     ; +0x14, 0x140432164\nmov     rsi, rcx                                                       ; +0x17, 0x140432167\nmov     rcx, rdx                                                       ; +0x1a, 0x14043216a\ncall    qword ptr [rax+38h]                                            ; +0x1d, 0x14043216d\nmov     rdx, [rsi+300h]                                                ; +0x20, 0x140432170\nlea     rdi, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x27, 0x140432177\nxor     ecx, ecx                                                       ; +0x2e, 0x14043217e\nlea     rbp, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x30, 0x140432180\ncmp     eax, [rsi+324h]                                                ; +0x37, 0x140432187\nmov     rbx, rdi                                                       ; +0x3d, 0x14043218d\ncmovz   eax, ecx                                                       ; +0x40, 0x140432190\nmov     [rsi+324h], eax                                                ; +0x43, 0x140432193\nmov     [rdx+220h], eax                                                ; +0x49, 0x140432199\nmov     rcx, [rsi+308h]                                                ; +0x4f, 0x14043219f\ncmp     dword ptr [rsi+324h], 1                                        ; +0x56, 0x1404321a6\ncmovz   rbx, rbp                                                       ; +0x5d, 0x1404321ad\nmov     rax, [rcx]                                                     ; +0x61, 0x1404321b1\ncall    qword ptr [rax+3A8h]                                           ; +0x64, 0x1404321b4\nmov     rcx, rax                                                       ; +0x6a, 0x1404321ba\nmov     rdx, rbx                                                       ; +0x6d, 0x1404321bd\ncall    ButtonSprite__updateBGImage                                    ; +0x70, 0x1404321c0\nmov     rcx, [rsi+310h]                                                ; +0x75, 0x1404321c5\nmov     rbx, rdi                                                       ; +0x7c, 0x1404321cc\ncmp     dword ptr [rsi+324h], 2                                        ; +0x7f, 0x1404321cf\ncmovz   rbx, rbp                                                       ; +0x86, 0x1404321d6\nmov     rax, [rcx]                                                     ; +0x8a, 0x1404321da\ncall    qword ptr [rax+3A8h]                                           ; +0x8d, 0x1404321dd\nmov     rcx, rax                                                       ; +0x93, 0x1404321e3\nmov     rdx, rbx                                                       ; +0x96, 0x1404321e6\ncall    ButtonSprite__updateBGImage                                    ; +0x99, 0x1404321e9\nmov     rcx, [rsi+318h]                                                ; +0x9e, 0x1404321ee\ncmp     dword ptr [rsi+324h], 3                                        ; +0xa5, 0x1404321f5\ncmovz   rdi, rbp                                                       ; +0xac, 0x1404321fc\nmov     rax, [rcx]                                                     ; +0xb0, 0x140432200\ncall    qword ptr [rax+3A8h]                                           ; +0xb3, 0x140432203\nmov     rcx, rax                                                       ; +0xb9, 0x140432209\nmov     rdx, rdi                                                       ; +0xbc, 0x14043220c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xbf, 0x14043220f\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xc4, 0x140432214\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc9, 0x140432219\nadd     rsp, 20h                                                       ; +0xce, 0x14043221e\npop     rdi                                                            ; +0xd2, 0x140432222\njmp     ButtonSprite__updateBGImage                                    ; +0xd3, 0x140432223", "xrefs": ["CreateParticlePopup::init @ 0x14042cf0e", "<???> @ 0x1406d9b6c", "<???> @ 0x1406d9b78"], "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"}