{"type": "func", "start": 5436504, "end": 5436644, "name": "CreateParticlePopup::onMode", "pseudocode": "// \n// CreateParticlePopup::onMode from 0x52f458 to 0x52f4e4 (140 bytes)\n// \n// 0 xrefs:\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; // r0\n  ParticlePreviewLayer *m_previewLayer; // r3\n  ButtonSprite *v5; // r0\n  const char *v6; // r1\n  ButtonSprite *v7; // r0\n  const char *v8; // r1\n  ButtonSprite *v9; // r0\n  const char *v10; // r1\n\n  v3 = a2->getTag(a2);\n  if ( v3 == a1->m_selectedMode )\n    v3 = 0;\n  m_previewLayer = a1->m_previewLayer;\n  a1->m_selectedMode = v3;\n  m_previewLayer->m_particleMode = v3;\n  v5 = (ButtonSprite *)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 *)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 *)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 0x52f458 to 0x52f4e4 (140 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, [R1]                                               ; +0x0, 0x52f458\nPUSH            {R4,LR}                                                ; +0x2, 0x52f45a\nMOV             R4, R0                                                 ; +0x4, 0x52f45c\nLDR             R3, [R3,#0x20]                                         ; +0x6, 0x52f45e\nMOV             R0, R1                                                 ; +0x8, 0x52f460\nBLX             R3                                                     ; +0xa, 0x52f462\nLDR.W           R3, [R4,#0x24C]                                        ; +0xc, 0x52f464\nCMP             R0, R3                                                 ; +0x10, 0x52f468\nIT EQ                                                                  ; +0x12, 0x52f46a\nMOVEQ           R0, #0                                                 ; +0x14, 0x52f46c\nLDR.W           R3, [R4,#0x238]                                        ; +0x16, 0x52f46e\nSTR.W           R0, [R4,#0x24C]                                        ; +0x1a, 0x52f472\nSTR.W           R0, [R3,#0x1B8]                                        ; +0x1e, 0x52f476\nLDR.W           R0, [R4,#0x23C]                                        ; +0x22, 0x52f47a\nLDR             R3, [R0]                                               ; +0x26, 0x52f47e\nLDR.W           R3, [R3,#0x210]                                        ; +0x28, 0x52f480\nBLX             R3                                                     ; +0x2c, 0x52f484\nLDR.W           R3, [R4,#0x24C]                                        ; +0x2e, 0x52f486\nCMP             R3, #1                                                 ; +0x32, 0x52f48a\nBEQ             loc_52F494                                             ; +0x34, 0x52f48c\nLDR             R1, =(aGjButton04Png - 0x52F494); \"GJ_button_04.png\"   ; +0x36, 0x52f48e\nADD             R1, PC; \"GJ_button_04.png\"                             ; +0x38, 0x52f490\nB               loc_52F498                                             ; +0x3a, 0x52f492\nLDR             R1, =(aGjButton01Png - 0x52F49A); \"GJ_button_01.png\"   ; +0x3c, 0x52f494\nADD             R1, PC; \"GJ_button_01.png\"                             ; +0x3e, 0x52f496\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x40, 0x52f498\nLDR.W           R0, [R4,#0x240]                                        ; +0x44, 0x52f49c\nLDR             R3, [R0]                                               ; +0x48, 0x52f4a0\nLDR.W           R3, [R3,#0x210]                                        ; +0x4a, 0x52f4a2\nBLX             R3                                                     ; +0x4e, 0x52f4a6\nLDR.W           R3, [R4,#0x24C]                                        ; +0x50, 0x52f4a8\nCMP             R3, #2                                                 ; +0x54, 0x52f4ac\nBEQ             loc_52F4B6                                             ; +0x56, 0x52f4ae\nLDR             R1, =(aGjButton04Png - 0x52F4B6); \"GJ_button_04.png\"   ; +0x58, 0x52f4b0\nADD             R1, PC; \"GJ_button_04.png\"                             ; +0x5a, 0x52f4b2\nB               loc_52F4BA                                             ; +0x5c, 0x52f4b4\nLDR             R1, =(aGjButton01Png - 0x52F4BC); \"GJ_button_01.png\"   ; +0x5e, 0x52f4b6\nADD             R1, PC; \"GJ_button_01.png\"                             ; +0x60, 0x52f4b8\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x62, 0x52f4ba\nLDR.W           R0, [R4,#0x244]                                        ; +0x66, 0x52f4be\nLDR             R3, [R0]                                               ; +0x6a, 0x52f4c2\nLDR.W           R3, [R3,#0x210]                                        ; +0x6c, 0x52f4c4\nBLX             R3                                                     ; +0x70, 0x52f4c8\nLDR.W           R3, [R4,#0x24C]                                        ; +0x72, 0x52f4ca\nCMP             R3, #3                                                 ; +0x76, 0x52f4ce\nBEQ             loc_52F4D8                                             ; +0x78, 0x52f4d0\nLDR             R1, =(aGjButton04Png - 0x52F4D8); \"GJ_button_04.png\"   ; +0x7a, 0x52f4d2\nADD             R1, PC; \"GJ_button_04.png\"                             ; +0x7c, 0x52f4d4\nB               loc_52F4DC                                             ; +0x7e, 0x52f4d6\nLDR             R1, =(aGjButton01Png - 0x52F4DE); \"GJ_button_01.png\"   ; +0x80, 0x52f4d8\nADD             R1, PC; \"GJ_button_01.png\"                             ; +0x82, 0x52f4da\nPOP.W           {R4,LR}                                                ; +0x84, 0x52f4dc\nB.W             _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x88, 0x52f4e0", "xrefs": [], "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"}