//
// CreateParticlePopup::onSelectParticleTexture from 0x6656e4 to 0x6657d2 (238 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:55:40 +0000
//
int __fastcall CreateParticlePopup::onSelectParticleTexture(CreateParticlePopup *this, cocos2d::CCObject *a2)
{
cocos2d::CCSpriteFrameCache *v4; // r0
cocos2d::CCParticleSystemQuad *v5; // r7
cocos2d::CCSpriteFrameCache *v6; // r8
cocos2d::CCString *v7; // r0
const char *CString; // r0
cocos2d::CCSpriteFrame *v9; // r0
int v10; // r5
int (__fastcall *v11)(int, _BYTE *); // r8
const cocos2d::CCPoint *v12; // r9
const cocos2d::CCPoint *v13; // r10
_BYTE v15[8]; // [sp+4h] [bp-14h] BYREF
_BYTE v16[8]; // [sp+Ch] [bp-Ch] BYREF
if ( (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) <= 0
|| (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) < 362 )
{
if ( (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) > 0 )
v4 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
else
v4 = nullptr;
}
else
{
v4 = (cocos2d::CCSpriteFrameCache *)(&dword_168 + 1);
}
*((_DWORD *)this + 174) = v4;
v5 = *((cocos2d::CCParticleSystemQuad **)this + 136);
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v4);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"particle_%02d_001.png",
*((const char **)this + 174));
CString = (const char *)cocos2d::CCString::getCString(v7);
v9 = (cocos2d::CCSpriteFrame *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, CString);
cocos2d::CCParticleSystemQuad::setDisplayFrame(v5, v9);
CreateParticlePopup::updateParticleValueForType((unsigned int)this, (float)*((int *)this + 174), 63, nullptr);
CreateParticlePopup::applyTexturePage(this);
v10 = *((_DWORD *)this + 160);
v11 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v10 + 92);
v12 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v10 + 256))(v10);
v13 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 256))(a2);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 96))(a2);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v15, v13);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v16, v12);
return v11(v10, v16);
}