{"type": "func", "start": 6700224, "end": 6700364, "name": "CreateParticlePopup::onMode", "pseudocode": "// \n// CreateParticlePopup::onMode from 0x663cc0 to 0x663d4c (140 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:55:39 +0000\n// \n\nchar *__fastcall CreateParticlePopup::onMode(CreateParticlePopup *this, cocos2d::CCObject *a2)\n{\n  int v3; // r0\n  int v4; // r3\n  char *v5; // r0\n  const char *v6; // r1\n  char *v7; // r0\n  const char *v8; // r1\n  char *v9; // r0\n  const char *v10; // r1\n\n  v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  if ( v3 == *((_DWORD *)this + 152) )\n    v3 = 0;\n  v4 = *((_DWORD *)this + 147);\n  *((_DWORD *)this + 152) = v3;\n  *(_DWORD *)(v4 + 440) = v3;\n  v5 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 148) + 536))(*((_DWORD *)this + 148));\n  if ( *((_DWORD *)this + 152) == 1 )\n    v6 = \"GJ_button_01.png\";\n  else\n    v6 = \"GJ_button_04.png\";\n  ButtonSprite::updateBGImage(v5, v6);\n  v7 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 149) + 536))(*((_DWORD *)this + 149));\n  if ( *((_DWORD *)this + 152) == 2 )\n    v8 = \"GJ_button_01.png\";\n  else\n    v8 = \"GJ_button_04.png\";\n  ButtonSprite::updateBGImage(v7, v8);\n  v9 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 150) + 536))(*((_DWORD *)this + 150));\n  if ( *((_DWORD *)this + 152) == 3 )\n    v10 = \"GJ_button_01.png\";\n  else\n    v10 = \"GJ_button_04.png\";\n  return ButtonSprite::updateBGImage(v9, v10);\n}", "assembly": "; \n; CreateParticlePopup::onMode from 0x663cc0 to 0x663d4c (140 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:55:39 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x663cc0\nMOV             R4, R0                                                 ; +0x2, 0x663cc2\nLDR             R3, [R1]                                               ; +0x4, 0x663cc4\nMOV             R0, R1                                                 ; +0x6, 0x663cc6\nLDR             R3, [R3,#0x20]                                         ; +0x8, 0x663cc8\nBLX             R3                                                     ; +0xa, 0x663cca\nLDR.W           R3, [R4,#0x260]                                        ; +0xc, 0x663ccc\nCMP             R0, R3                                                 ; +0x10, 0x663cd0\nIT EQ                                                                  ; +0x12, 0x663cd2\nMOVEQ           R0, #0                                                 ; +0x14, 0x663cd4\nLDR.W           R3, [R4,#0x24C]                                        ; +0x16, 0x663cd6\nSTR.W           R0, [R4,#0x260]                                        ; +0x1a, 0x663cda\nSTR.W           R0, [R3,#0x1B8]                                        ; +0x1e, 0x663cde\nLDR.W           R0, [R4,#0x250]                                        ; +0x22, 0x663ce2\nLDR             R3, [R0]                                               ; +0x26, 0x663ce6\nLDR.W           R3, [R3,#0x218]                                        ; +0x28, 0x663ce8\nBLX             R3                                                     ; +0x2c, 0x663cec\nLDR.W           R3, [R4,#0x260]                                        ; +0x2e, 0x663cee\nCMP             R3, #1                                                 ; +0x32, 0x663cf2\nBEQ             loc_663CFC                                             ; +0x34, 0x663cf4\nLDR             R1, =(aGjButton04Png - 0x663CFC); \"GJ_button_04.png\"   ; +0x36, 0x663cf6\nADD             R1, PC; \"GJ_button_04.png\"                             ; +0x38, 0x663cf8\nB               loc_663D00                                             ; +0x3a, 0x663cfa\nLDR             R1, =(aGjButton01Png - 0x663D02); \"GJ_button_01.png\"   ; +0x3c, 0x663cfc\nADD             R1, PC; \"GJ_button_01.png\"                             ; +0x3e, 0x663cfe\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x40, 0x663d00\nLDR.W           R0, [R4,#0x254]                                        ; +0x44, 0x663d04\nLDR             R3, [R0]                                               ; +0x48, 0x663d08\nLDR.W           R3, [R3,#0x218]                                        ; +0x4a, 0x663d0a\nBLX             R3                                                     ; +0x4e, 0x663d0e\nLDR.W           R3, [R4,#0x260]                                        ; +0x50, 0x663d10\nCMP             R3, #2                                                 ; +0x54, 0x663d14\nBEQ             loc_663D1E                                             ; +0x56, 0x663d16\nLDR             R1, =(aGjButton04Png - 0x663D1E); \"GJ_button_04.png\"   ; +0x58, 0x663d18\nADD             R1, PC; \"GJ_button_04.png\"                             ; +0x5a, 0x663d1a\nB               loc_663D22                                             ; +0x5c, 0x663d1c\nLDR             R1, =(aGjButton01Png - 0x663D24); \"GJ_button_01.png\"   ; +0x5e, 0x663d1e\nADD             R1, PC; \"GJ_button_01.png\"                             ; +0x60, 0x663d20\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x62, 0x663d22\nLDR.W           R0, [R4,#0x258]                                        ; +0x66, 0x663d26\nLDR             R3, [R0]                                               ; +0x6a, 0x663d2a\nLDR.W           R3, [R3,#0x218]                                        ; +0x6c, 0x663d2c\nBLX             R3                                                     ; +0x70, 0x663d30\nLDR.W           R3, [R4,#0x260]                                        ; +0x72, 0x663d32\nCMP             R3, #3                                                 ; +0x76, 0x663d36\nBEQ             loc_663D40                                             ; +0x78, 0x663d38\nLDR             R1, =(aGjButton04Png - 0x663D40); \"GJ_button_04.png\"   ; +0x7a, 0x663d3a\nADD             R1, PC; \"GJ_button_04.png\"                             ; +0x7c, 0x663d3c\nB               loc_663D44                                             ; +0x7e, 0x663d3e\nLDR             R1, =(aGjButton01Png - 0x663D46); \"GJ_button_01.png\"   ; +0x80, 0x663d40\nADD             R1, PC; \"GJ_button_01.png\"                             ; +0x82, 0x663d42\nPOP.W           {R4,LR}                                                ; +0x84, 0x663d44\nB.W             _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x88, 0x663d48", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}