{"type": "func", "start": 4297907448, "end": 4297907632, "name": "CreateParticlePopup::onMode", "pseudocode": "// \n// CreateParticlePopup::onMode from 0x1002cdcf8 to 0x1002cddb0 (184 bytes)\n// \n// 1 xrefs:\n// > CreateParticlePopup::init @ 0x1002cad10\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 v3; // w0\n  int v4; // w8\n  ButtonSprite *v5; // x0\n  const char *v6; // x1\n  ButtonSprite *v7; // x0\n  const char *v8; // x1\n  ButtonSprite *v9; // x0\n  const char *v10; // x1\n\n  v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  if ( v3 == a1->m_selectedMode )\n    v4 = 0;\n  else\n    v4 = v3;\n  a1->m_selectedMode = v4;\n  a1->m_previewLayer->m_particleMode = v4;\n  v5 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_mode1Button->getNormalImage)(a1->m_mode1Button);\n  if ( a1->m_selectedMode == 1 )\n    v6 = \"GJ_button_01.png\";\n  else\n    v6 = \"GJ_button_04.png\";\n  ButtonSprite::updateBGImage(v5, v6);\n  v7 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_mode2Button->getNormalImage)(a1->m_mode2Button);\n  if ( a1->m_selectedMode == 2 )\n    v8 = \"GJ_button_01.png\";\n  else\n    v8 = \"GJ_button_04.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    v10 = \"GJ_button_01.png\";\n  else\n    v10 = \"GJ_button_04.png\";\n  ButtonSprite::updateBGImage(v9, v10);\n}", "assembly": "; \n; CreateParticlePopup::onMode from 0x1002cdcf8 to 0x1002cddb0 (184 bytes)\n; \n; 1 xrefs:\n; > CreateParticlePopup::init @ 0x1002cad10\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1002cdcf8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002cdcfc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002cdd00\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002cdd04\nMOV             X19, X0                                                ; +0x10, 0x1002cdd08\nLDR             X8, [X1]                                               ; +0x14, 0x1002cdd0c\nLDR             X8, [X8,#0x40]                                         ; +0x18, 0x1002cdd10\nMOV             X0, X1                                                 ; +0x1c, 0x1002cdd14\nBLR             X8                                                     ; +0x20, 0x1002cdd18\nLDR             W8, [X19,#0x324]                                       ; +0x24, 0x1002cdd1c\nCMP             W0, W8                                                 ; +0x28, 0x1002cdd20\nCSEL            W8, WZR, W0, EQ                                        ; +0x2c, 0x1002cdd24\nSTR             W8, [X19,#0x324]                                       ; +0x30, 0x1002cdd28\nLDR             X9, [X19,#0x300]                                       ; +0x34, 0x1002cdd2c\nSTR             W8, [X9,#0x220]                                        ; +0x38, 0x1002cdd30\nLDR             X0, [X19,#0x308]                                       ; +0x3c, 0x1002cdd34\nLDR             X8, [X0]                                               ; +0x40, 0x1002cdd38\nLDR             X8, [X8,#0x420]                                        ; +0x44, 0x1002cdd3c\nBLR             X8                                                     ; +0x48, 0x1002cdd40\nLDR             W8, [X19,#0x324]                                       ; +0x4c, 0x1002cdd44\nADRL            X20, aGjButton04Png; \"GJ_button_04.png\"                ; +0x50, 0x1002cdd48\nADRL            X21, aGjButton01Png; \"GJ_button_01.png\"                ; +0x58, 0x1002cdd50\nCMP             W8, #1                                                 ; +0x60, 0x1002cdd58\nCSEL            X1, X21, X20, EQ                                       ; +0x64, 0x1002cdd5c\nBL              ButtonSprite__updateBGImage                            ; +0x68, 0x1002cdd60\nLDR             X0, [X19,#0x310]                                       ; +0x6c, 0x1002cdd64\nLDR             X8, [X0]                                               ; +0x70, 0x1002cdd68\nLDR             X8, [X8,#0x420]                                        ; +0x74, 0x1002cdd6c\nBLR             X8                                                     ; +0x78, 0x1002cdd70\nLDR             W8, [X19,#0x324]                                       ; +0x7c, 0x1002cdd74\nCMP             W8, #2                                                 ; +0x80, 0x1002cdd78\nCSEL            X1, X21, X20, EQ                                       ; +0x84, 0x1002cdd7c\nBL              ButtonSprite__updateBGImage                            ; +0x88, 0x1002cdd80\nLDR             X0, [X19,#0x318]                                       ; +0x8c, 0x1002cdd84\nLDR             X8, [X0]                                               ; +0x90, 0x1002cdd88\nLDR             X8, [X8,#0x420]                                        ; +0x94, 0x1002cdd8c\nBLR             X8                                                     ; +0x98, 0x1002cdd90\nLDR             W8, [X19,#0x324]                                       ; +0x9c, 0x1002cdd94\nCMP             W8, #3                                                 ; +0xa0, 0x1002cdd98\nCSEL            X1, X21, X20, EQ                                       ; +0xa4, 0x1002cdd9c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa8, 0x1002cdda0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xac, 0x1002cdda4\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xb0, 0x1002cdda8\nB               ButtonSprite__updateBGImage                            ; +0xb4, 0x1002cddac", "xrefs": ["CreateParticlePopup::init @ 0x1002cad10"], "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"}