{"type": "func", "start": 11528804, "end": 11529212, "name": "CreateParticlePopup::onSelectParticleTexture", "pseudocode": "// \n// CreateParticlePopup::onSelectParticleTexture from 0xafea64 to 0xafebfc (408 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x70a80\n// > CreateParticlePopup::init @ 0xb049c8\n// > <???> @ 0x1542d08\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:01:19 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::onSelectParticleTexture(CreateParticlePopup *this, cocos2d::CCObject *a2)\n{\n  cocos2d::CCSpriteFrameCache *v4; // x0\n  cocos2d::CCParticleSystemQuad *v5; // x24\n  cocos2d::CCSpriteFrameCache *v6; // x25\n  cocos2d::CCString *v7; // x0\n  const char *CString; // x0\n  cocos2d::CCSpriteFrame *v9; // x0\n  long double v10; // q0\n  __int64 v11; // x20\n  void (__fastcall *v12)(__int64, __int64 *); // x24\n  cocos2d::CCNode *v13; // x25\n  cocos2d::CCNode *v14; // x26\n  const cocos2d::CCPoint *v15; // x0\n  __int64 v17; // [xsp+58h] [xbp+58h] BYREF\n  __int64 v18; // [xsp+60h] [xbp+60h] BYREF\n\n  if ( (*(int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) > 0\n    && (*(int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) > 361 )\n  {\n    v4 = (cocos2d::CCSpriteFrameCache *)(&qword_168 + 1);\n  }\n  else if ( (*(int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) <= 0 )\n  {\n    v4 = nullptr;\n  }\n  else\n  {\n    v4 = (cocos2d::CCSpriteFrameCache *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  }\n  *((_DWORD *)this + 248) = (_DWORD)v4;\n  v5 = *((cocos2d::CCParticleSystemQuad **)this + 89);\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 *)*((unsigned int *)this + 248));\n  CString = (const char *)cocos2d::CCString::getCString(v7);\n  v9 = (cocos2d::CCSpriteFrame *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, CString);\n  cocos2d::CCParticleSystemQuad::setDisplayFrame(v5, v9);\n  *(float *)&v10 = (float)*((int *)this + 248);\n  CreateParticlePopup::updateParticleValueForType((__int64)this, 0x3Fu, nullptr, v10);\n  CreateParticlePopup::applyTexturePage(this);\n  v11 = *((_QWORD *)this + 111);\n  v12 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 184LL);\n  v13 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 512LL))(v11);\n  v14 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 512LL))(a2);\n  v15 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 192LL))(a2);\n  cocos2d::CCNode::convertToWorldSpace(&v17, v14, v15);\n  cocos2d::CCNode::convertToNodeSpace(&v18, v13, (const cocos2d::CCPoint *)&v17);\n  v12(v11, &v18);\n  return _stack_chk_guard;\n}", "assembly": "; \n; CreateParticlePopup::onSelectParticleTexture from 0xafea64 to 0xafebfc (408 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x70a80\n; > CreateParticlePopup::init @ 0xb049c8\n; > <???> @ 0x1542d08\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:01:19 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0xafea64\nMOV             X29, SP                                                ; +0x4, 0xafea68\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x8, 0xafea6c\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xafea70\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x10, 0xafea74\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x14, 0xafea78\nSTP             X25, X26, [SP,#0x70+var_30]                            ; +0x18, 0xafea7c\nLDR             X2, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xafea80\nMOV             X19, X1                                                ; +0x20, 0xafea84\nMOV             X20, X0                                                ; +0x24, 0xafea88\nMOV             X0, X1                                                 ; +0x28, 0xafea8c\nLDR             X1, [X1]                                               ; +0x2c, 0xafea90\nLDR             X2, [X2]                                               ; +0x30, 0xafea94\nSTR             X2, [X29,#0x70+var_8]                                  ; +0x34, 0xafea98\nLDR             X1, [X1,#0x40]                                         ; +0x38, 0xafea9c\nBLR             X1                                                     ; +0x3c, 0xafeaa0\nCMP             W0, WZR                                                ; +0x40, 0xafeaa4\nB.LE            loc_AFEAC4                                             ; +0x44, 0xafeaa8\nLDR             X1, [X19]                                              ; +0x48, 0xafeaac\nMOV             X0, X19                                                ; +0x4c, 0xafeab0\nLDR             X1, [X1,#0x40]                                         ; +0x50, 0xafeab4\nBLR             X1                                                     ; +0x54, 0xafeab8\nCMP             W0, #0x169                                             ; +0x58, 0xafeabc\nB.GT            loc_AFEBF0                                             ; +0x5c, 0xafeac0\nLDR             X1, [X19]                                              ; +0x60, 0xafeac4\nMOV             X0, X19                                                ; +0x64, 0xafeac8\nLDR             X1, [X1,#0x40]                                         ; +0x68, 0xafeacc\nBLR             X1                                                     ; +0x6c, 0xafead0\nCMP             W0, WZR                                                ; +0x70, 0xafead4\nB.LE            loc_AFEBE8                                             ; +0x74, 0xafead8\nLDR             X1, [X19]                                              ; +0x78, 0xafeadc\nMOV             X0, X19                                                ; +0x7c, 0xafeae0\nLDR             X1, [X1,#0x40]                                         ; +0x80, 0xafeae4\nBLR             X1                                                     ; +0x84, 0xafeae8\nSTR             W0, [X20,#0x3E0]                                       ; +0x88, 0xafeaec\nADD             X23, X29, #0x70+var_18                                 ; +0x8c, 0xafeaf0\nLDR             X24, [X20,#0x2C8]                                      ; +0x90, 0xafeaf4\nADD             X22, X29, #0x70+var_10                                 ; +0x94, 0xafeaf8\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x98, 0xafeafc\nMOV             X25, X0                                                ; +0x9c, 0xafeb00\nLDR             W1, [X20,#0x3E0]; char *                               ; +0xa0, 0xafeb04\nADRL            X0, aParticle02d001; \"particle_%02d_001.png\"           ; +0xa4, 0xafeb08\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xac, 0xafeb10\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xb0, 0xafeb14\nMOV             X1, X0; char *                                         ; +0xb4, 0xafeb18\nMOV             X0, X25; this                                          ; +0xb8, 0xafeb1c\nBL              _ZN7cocos2d18CCSpriteFrameCache17spriteFrameByNameEPKc; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const*) ; +0xbc, 0xafeb20\nMOV             X1, X0; cocos2d::CCSpriteFrame *                       ; +0xc0, 0xafeb24\nMOV             X0, X24; this                                          ; +0xc4, 0xafeb28\nBL              _ZN7cocos2d20CCParticleSystemQuad15setDisplayFrameEPNS_13CCSpriteFrameE; cocos2d::CCParticleSystemQuad::setDisplayFrame(cocos2d::CCSpriteFrame *) ; +0xc8, 0xafeb2c\nLDR             W3, [X20,#0x3E0]                                       ; +0xcc, 0xafeb30\nMOV             X2, #0                                                 ; +0xd0, 0xafeb34\nMOV             W1, #0x3F ; '?'                                        ; +0xd4, 0xafeb38\nMOV             X0, X20                                                ; +0xd8, 0xafeb3c\nSCVTF           S0, W3                                                 ; +0xdc, 0xafeb40\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0xe0, 0xafeb44\nMOV             X0, X20; this                                          ; +0xe4, 0xafeb48\nBL              _ZN19CreateParticlePopup16applyTexturePageEv; CreateParticlePopup::applyTexturePage(void) ; +0xe8, 0xafeb4c\nLDR             X20, [X20,#0x378]                                      ; +0xec, 0xafeb50\nMOV             X0, X20                                                ; +0xf0, 0xafeb54\nLDR             X1, [X20]                                              ; +0xf4, 0xafeb58\nLDR             X2, [X1,#0x200]                                        ; +0xf8, 0xafeb5c\nLDR             X24, [X1,#0xB8]                                        ; +0xfc, 0xafeb60\nBLR             X2                                                     ; +0x100, 0xafeb64\nMOV             X25, X0                                                ; +0x104, 0xafeb68\nLDR             X1, [X19]                                              ; +0x108, 0xafeb6c\nMOV             X0, X19                                                ; +0x10c, 0xafeb70\nLDR             X1, [X1,#0x200]                                        ; +0x110, 0xafeb74\nBLR             X1                                                     ; +0x114, 0xafeb78\nMOV             X26, X0                                                ; +0x118, 0xafeb7c\nLDR             X1, [X19]                                              ; +0x11c, 0xafeb80\nMOV             X0, X19                                                ; +0x120, 0xafeb84\nLDR             X1, [X1,#0xC0]                                         ; +0x124, 0xafeb88\nBLR             X1                                                     ; +0x128, 0xafeb8c\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0x12c, 0xafeb90\nMOV             X8, X23                                                ; +0x130, 0xafeb94\nMOV             X0, X26; this                                          ; +0x134, 0xafeb98\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x138, 0xafeb9c\nMOV             X8, X22                                                ; +0x13c, 0xafeba0\nMOV             X0, X25; this                                          ; +0x140, 0xafeba4\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0x144, 0xafeba8\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x148, 0xafebac\nMOV             X0, X20                                                ; +0x14c, 0xafebb0\nMOV             X1, X22                                                ; +0x150, 0xafebb4\nBLR             X24                                                    ; +0x154, 0xafebb8\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x158, 0xafebbc\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x15c, 0xafebc0\nLDR             X0, [X21]                                              ; +0x160, 0xafebc4\nCMP             X1, X0                                                 ; +0x164, 0xafebc8\nB.NE            loc_AFEBF8                                             ; +0x168, 0xafebcc\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x16c, 0xafebd0\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0x170, 0xafebd4\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0x174, 0xafebd8\nLDP             X25, X26, [SP,#0x70+var_30]                            ; +0x178, 0xafebdc\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x17c, 0xafebe0\nRET                                                                    ; +0x180, 0xafebe4\nMOV             W0, #0                                                 ; +0x184, 0xafebe8\nB               loc_AFEAEC                                             ; +0x188, 0xafebec\nMOV             W0, #0x169                                             ; +0x18c, 0xafebf0\nB               loc_AFEAEC                                             ; +0x190, 0xafebf4\nBL              .__stack_chk_fail                                      ; +0x194, 0xafebf8", "xrefs": ["<???> @ 0x70a80", "CreateParticlePopup::init @ 0xb049c8", "<???> @ 0x1542d08"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}