{"type": "func", "start": 10225180, "end": 10225424, "name": "CreateParticlePopup::onMode", "pseudocode": "// \n// CreateParticlePopup::onMode from 0x9c061c to 0x9c0710 (244 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x8f940\n// > CreateParticlePopup::init @ 0x9c5bbc\n// > <???> @ 0x122ce38\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; // w1\n  ParticlePreviewLayer *m_previewLayer; // x3\n  CCMenuItemSpriteExtra_vtbl *v5; // x2\n  ButtonSprite *v6; // x0\n  const char *v7; // x1\n  ButtonSprite *v8; // x0\n  const char *v9; // x1\n  ButtonSprite *v10; // x0\n  const char *v11; // x1\n\n  v3 = a2->getTag(a2);\n  m_previewLayer = a1->m_previewLayer;\n  v5 = a1->m_mode1Button->__vftable;\n  if ( a1->m_selectedMode == v3 )\n    v3 = 0;\n  a1->m_selectedMode = v3;\n  m_previewLayer->m_particleMode = v3;\n  v6 = (ButtonSprite *)((__int64 (*)(void))v5->getNormalImage)();\n  if ( a1->m_selectedMode == 1 )\n    v7 = \"GJ_button_01.png\";\n  else\n    v7 = \"GJ_button_04.png\";\n  ButtonSprite::updateBGImage(v6, v7);\n  v8 = (ButtonSprite *)a1->m_mode2Button->getNormalImage(a1->m_mode2Button);\n  if ( a1->m_selectedMode == 2 )\n    v9 = \"GJ_button_01.png\";\n  else\n    v9 = \"GJ_button_04.png\";\n  ButtonSprite::updateBGImage(v8, v9);\n  v10 = (ButtonSprite *)a1->m_mode3Button->getNormalImage(a1->m_mode3Button);\n  if ( a1->m_selectedMode == 3 )\n    v11 = \"GJ_button_01.png\";\n  else\n    v11 = \"GJ_button_04.png\";\n  ButtonSprite::updateBGImage(v10, v11);\n}", "assembly": "; \n; CreateParticlePopup::onMode from 0x9c061c to 0x9c0710 (244 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x8f940\n; > CreateParticlePopup::init @ 0x9c5bbc\n; > <???> @ 0x122ce38\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             X29, X30, [SP,#var_20]!                                ; +0x0, 0x9c061c\nMOV             X29, SP                                                ; +0x4, 0x9c0620\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x9c0624\nMOV             X19, X0                                                ; +0xc, 0x9c0628\nMOV             X0, X1                                                 ; +0x10, 0x9c062c\nLDR             X1, [X1]                                               ; +0x14, 0x9c0630\nLDR             X1, [X1,#0x40]                                         ; +0x18, 0x9c0634\nBLR             X1                                                     ; +0x1c, 0x9c0638\nMOV             W1, W0                                                 ; +0x20, 0x9c063c\nLDR             X2, [X19,#0x308]                                       ; +0x24, 0x9c0640\nLDR             W4, [X19,#0x324]                                       ; +0x28, 0x9c0644\nLDR             X3, [X19,#0x300]                                       ; +0x2c, 0x9c0648\nMOV             X0, X2                                                 ; +0x30, 0x9c064c\nLDR             X2, [X2]                                               ; +0x34, 0x9c0650\nCMP             W4, W1                                                 ; +0x38, 0x9c0654\nCSEL            W1, W1, WZR, NE                                        ; +0x3c, 0x9c0658\nSTR             W1, [X19,#0x324]                                       ; +0x40, 0x9c065c\nSTR             W1, [X3,#0x220]                                        ; +0x44, 0x9c0660\nLDR             X1, [X2,#0x420]                                        ; +0x48, 0x9c0664\nBLR             X1                                                     ; +0x4c, 0x9c0668\nLDR             W1, [X19,#0x324]                                       ; +0x50, 0x9c066c\nCMP             W1, #1                                                 ; +0x54, 0x9c0670\nB.EQ            loc_9C06E4                                             ; +0x58, 0x9c0674\nADRL            X1, aGjButton04Png; \"GJ_button_04.png\"                 ; +0x5c, 0x9c0678\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x64, 0x9c0680\nLDR             X1, [X19,#0x310]                                       ; +0x68, 0x9c0684\nMOV             X0, X1                                                 ; +0x6c, 0x9c0688\nLDR             X1, [X1]                                               ; +0x70, 0x9c068c\nLDR             X1, [X1,#0x420]                                        ; +0x74, 0x9c0690\nBLR             X1                                                     ; +0x78, 0x9c0694\nLDR             W1, [X19,#0x324]                                       ; +0x7c, 0x9c0698\nCMP             W1, #2                                                 ; +0x80, 0x9c069c\nB.EQ            loc_9C06F0                                             ; +0x84, 0x9c06a0\nADRL            X1, aGjButton04Png; \"GJ_button_04.png\"                 ; +0x88, 0x9c06a4\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x90, 0x9c06ac\nLDR             X1, [X19,#0x318]                                       ; +0x94, 0x9c06b0\nMOV             X0, X1                                                 ; +0x98, 0x9c06b4\nLDR             X1, [X1]                                               ; +0x9c, 0x9c06b8\nLDR             X1, [X1,#0x420]                                        ; +0xa0, 0x9c06bc\nBLR             X1                                                     ; +0xa4, 0x9c06c0\nLDR             W1, [X19,#0x324]                                       ; +0xa8, 0x9c06c4\nCMP             W1, #3                                                 ; +0xac, 0x9c06c8\nB.EQ            loc_9C06FC                                             ; +0xb0, 0x9c06cc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xb4, 0x9c06d0\nADRP            X1, #aGjButton04Png@PAGE; \"GJ_button_04.png\"           ; +0xb8, 0x9c06d4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xbc, 0x9c06d8\nADD             X1, X1, #aGjButton04Png@PAGEOFF; \"GJ_button_04.png\"    ; +0xc0, 0x9c06dc\nB               _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0xc4, 0x9c06e0\nADRL            X1, aGjButton01Png; \"GJ_button_01.png\"                 ; +0xc8, 0x9c06e4\nB               loc_9C0680                                             ; +0xd0, 0x9c06ec\nADRL            X1, aGjButton01Png; \"GJ_button_01.png\"                 ; +0xd4, 0x9c06f0\nB               loc_9C06AC                                             ; +0xdc, 0x9c06f8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xe0, 0x9c06fc\nADRP            X1, #aGjButton01Png@PAGE; \"GJ_button_01.png\"           ; +0xe4, 0x9c0700\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xe8, 0x9c0704\nADD             X1, X1, #aGjButton01Png@PAGEOFF; \"GJ_button_01.png\"    ; +0xec, 0x9c0708\nB               _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0xf0, 0x9c070c", "xrefs": ["<???> @ 0x8f940", "CreateParticlePopup::init @ 0x9c5bbc", "<???> @ 0x122ce38"], "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"}