{"type": "func", "start": 6706916, "end": 6707154, "name": "CreateParticlePopup::onSelectParticleTexture", "pseudocode": "// \n// CreateParticlePopup::onSelectParticleTexture from 0x6656e4 to 0x6657d2 (238 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:40 +0000\n// \n\nint __fastcall CreateParticlePopup::onSelectParticleTexture(CreateParticlePopup *this, cocos2d::CCObject *a2)\n{\n  cocos2d::CCSpriteFrameCache *v4; // r0\n  cocos2d::CCParticleSystemQuad *v5; // r7\n  cocos2d::CCSpriteFrameCache *v6; // r8\n  cocos2d::CCString *v7; // r0\n  const char *CString; // r0\n  cocos2d::CCSpriteFrame *v9; // r0\n  int v10; // r5\n  int (__fastcall *v11)(int, _BYTE *); // r8\n  const cocos2d::CCPoint *v12; // r9\n  const cocos2d::CCPoint *v13; // r10\n  _BYTE v15[8]; // [sp+4h] [bp-14h] BYREF\n  _BYTE v16[8]; // [sp+Ch] [bp-Ch] BYREF\n\n  if ( (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) <= 0\n    || (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) < 362 )\n  {\n    if ( (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) > 0 )\n      v4 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n    else\n      v4 = nullptr;\n  }\n  else\n  {\n    v4 = (cocos2d::CCSpriteFrameCache *)(&dword_168 + 1);\n  }\n  *((_DWORD *)this + 174) = v4;\n  v5 = *((cocos2d::CCParticleSystemQuad **)this + 136);\n  v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v4);\n  v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"particle_%02d_001.png\",\n                              *((const char **)this + 174));\n  CString = (const char *)cocos2d::CCString::getCString(v7);\n  v9 = (cocos2d::CCSpriteFrame *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, CString);\n  cocos2d::CCParticleSystemQuad::setDisplayFrame(v5, v9);\n  CreateParticlePopup::updateParticleValueForType((unsigned int)this, (float)*((int *)this + 174), 63, nullptr);\n  CreateParticlePopup::applyTexturePage(this);\n  v10 = *((_DWORD *)this + 160);\n  v11 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v10 + 92);\n  v12 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v10 + 256))(v10);\n  v13 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 256))(a2);\n  (*(void (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 96))(a2);\n  cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v15, v13);\n  cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v16, v12);\n  return v11(v10, v16);\n}", "assembly": "; \n; CreateParticlePopup::onSelectParticleTexture from 0x6656e4 to 0x6657d2 (238 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:40 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x6656e4\nSUB             SP, SP, #0x18                                          ; +0x4, 0x6656e8\nLDR             R6, =(__stack_chk_guard_ptr - 0x6656F6)                ; +0x6, 0x6656ea\nMOV             R5, R0                                                 ; +0x8, 0x6656ec\nMOV             R0, R1                                                 ; +0xa, 0x6656ee\nMOV             R4, R1                                                 ; +0xc, 0x6656f0\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x6656f2\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x6656f4\nLDR             R3, [R6]                                               ; +0x12, 0x6656f6\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x14, 0x6656f8\nLDR             R3, [R1]                                               ; +0x16, 0x6656fa\nLDR             R3, [R3,#0x20]                                         ; +0x18, 0x6656fc\nBLX             R3                                                     ; +0x1a, 0x6656fe\nCMP             R0, #0                                                 ; +0x1c, 0x665700\nBGT             loc_665714                                             ; +0x1e, 0x665702\nLDR             R3, [R4]                                               ; +0x20, 0x665704\nMOV             R0, R4                                                 ; +0x22, 0x665706\nLDR             R3, [R3,#0x20]                                         ; +0x24, 0x665708\nBLX             R3                                                     ; +0x26, 0x66570a\nCMP             R0, #0                                                 ; +0x28, 0x66570c\nBGT             loc_665728                                             ; +0x2a, 0x66570e\nMOVS            R0, #0                                                 ; +0x2c, 0x665710\nB               loc_665730                                             ; +0x2e, 0x665712\nLDR             R3, [R4]                                               ; +0x30, 0x665714\nMOV             R0, R4                                                 ; +0x32, 0x665716\nLDR             R3, [R3,#0x20]                                         ; +0x34, 0x665718\nBLX             R3                                                     ; +0x36, 0x66571a\nCMP.W           R0, #0x16A                                             ; +0x38, 0x66571c\nBLT             loc_665704                                             ; +0x3c, 0x665720\nMOVW            R0, #0x169                                             ; +0x3e, 0x665722\nB               loc_665730                                             ; +0x42, 0x665726\nLDR             R3, [R4]                                               ; +0x44, 0x665728\nMOV             R0, R4                                                 ; +0x46, 0x66572a\nLDR             R3, [R3,#0x20]                                         ; +0x48, 0x66572c\nBLX             R3                                                     ; +0x4a, 0x66572e\nSTR.W           R0, [R5,#0x2B8]                                        ; +0x4c, 0x665730\nLDR.W           R7, [R5,#0x220]                                        ; +0x50, 0x665734\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x54, 0x665738\nLDR.W           R1, [R5,#0x2B8]; char *                                ; +0x58, 0x66573c\nMOV             R8, R0                                                 ; +0x5c, 0x665740\nLDR             R0, =(aParticle02d001 - 0x665748); \"particle_%02d_001.png\" ; +0x5e, 0x665742\nADD             R0, PC; \"particle_%02d_001.png\"                        ; +0x60, 0x665744\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x62, 0x665746\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x66, 0x66574a\nMOV             R1, R0; char *                                         ; +0x6a, 0x66574e\nMOV             R0, R8; this                                           ; +0x6c, 0x665750\nBL              _ZN7cocos2d18CCSpriteFrameCache17spriteFrameByNameEPKc; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const*) ; +0x6e, 0x665752\nMOV             R1, R0; cocos2d::CCSpriteFrame *                       ; +0x72, 0x665756\nMOV             R0, R7; this                                           ; +0x74, 0x665758\nBL              _ZN7cocos2d20CCParticleSystemQuad15setDisplayFrameEPNS_13CCSpriteFrameE; cocos2d::CCParticleSystemQuad::setDisplayFrame(cocos2d::CCSpriteFrame *) ; +0x76, 0x66575a\nVLDR            S15, [R5,#0x2B8]                                       ; +0x7a, 0x66575e\nMOVS            R2, #0x3F ; '?'                                        ; +0x7e, 0x665762\nMOV             R0, R5                                                 ; +0x80, 0x665764\nMOVS            R3, #0                                                 ; +0x82, 0x665766\nADD             R7, SP, #0x18+var_14                                   ; +0x84, 0x665768\nVCVT.F32.S32    S15, S15                                               ; +0x86, 0x66576a\nVMOV            R1, S15                                                ; +0x8a, 0x66576e\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x8e, 0x665772\nMOV             R0, R5; this                                           ; +0x92, 0x665776\nBL              _ZN19CreateParticlePopup16applyTexturePageEv; CreateParticlePopup::applyTexturePage(void) ; +0x94, 0x665778\nLDR.W           R5, [R5,#0x280]                                        ; +0x98, 0x66577c\nLDR             R3, [R5]                                               ; +0x9c, 0x665780\nMOV             R0, R5                                                 ; +0x9e, 0x665782\nLDR.W           R8, [R3,#0x5C]                                         ; +0xa0, 0x665784\nLDR.W           R3, [R3,#0x100]                                        ; +0xa4, 0x665788\nBLX             R3                                                     ; +0xa8, 0x66578c\nLDR             R3, [R4]                                               ; +0xaa, 0x66578e\nLDR.W           R3, [R3,#0x100]                                        ; +0xac, 0x665790\nMOV             R9, R0                                                 ; +0xb0, 0x665794\nMOV             R0, R4                                                 ; +0xb2, 0x665796\nBLX             R3                                                     ; +0xb4, 0x665798\nLDR             R3, [R4]                                               ; +0xb6, 0x66579a\nLDR             R3, [R3,#0x60]                                         ; +0xb8, 0x66579c\nMOV             R10, R0                                                ; +0xba, 0x66579e\nMOV             R0, R4                                                 ; +0xbc, 0x6657a0\nBLX             R3                                                     ; +0xbe, 0x6657a2\nADD             R4, SP, #0x18+var_C                                    ; +0xc0, 0x6657a4\nMOV             R1, R10; cocos2d::CCPoint *                            ; +0xc2, 0x6657a6\nMOV             R2, R0                                                 ; +0xc4, 0x6657a8\nMOV             R0, R7; this                                           ; +0xc6, 0x6657aa\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0xc8, 0x6657ac\nMOV             R2, R7                                                 ; +0xcc, 0x6657b0\nMOV             R0, R4; this                                           ; +0xce, 0x6657b2\nMOV             R1, R9; cocos2d::CCPoint *                             ; +0xd0, 0x6657b4\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0xd2, 0x6657b6\nMOV             R0, R5                                                 ; +0xd6, 0x6657ba\nMOV             R1, R4                                                 ; +0xd8, 0x6657bc\nBLX             R8                                                     ; +0xda, 0x6657be\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xdc, 0x6657c0\nLDR             R3, [R6]                                               ; +0xde, 0x6657c2\nCMP             R2, R3                                                 ; +0xe0, 0x6657c4\nBEQ             loc_6657CC                                             ; +0xe2, 0x6657c6\nBLX             __stack_chk_fail                                       ; +0xe4, 0x6657c8\nADD             SP, SP, #0x18                                          ; +0xe8, 0x6657cc\nPOP.W           {R4-R10,PC}                                            ; +0xea, 0x6657ce", "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"}