//
// CCPartAnimSprite::transformSprite from 0x3c747c to 0x3c7576 (250 bytes)
//
// 1 xrefs:
// > CCPartAnimSprite::setDisplayFrame @ 0x3c7600
//
// 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:46:35 +0000
//
int __fastcall CCPartAnimSprite::transformSprite(cocos2d::CCArray **this, SpriteDescription *a2, int a3, int a4)
{
cocos2d::CCNode *v6; // r4
float v7; // s15
int v8; // r1
cocos2d::CCNode *v9; // r0
float v10; // s15
int v11; // r3
int v12; // r1
void (__fastcall *v13)(cocos2d::CCNode *, int); // r3
cocos2d::CCNode *v14; // r0
int v15; // r2
int v16; // r3
int v18[4]; // [sp+0h] [bp-10h] BYREF
v18[0] = (int)this;
v18[1] = (int)a2;
v18[2] = a3;
v18[3] = a4;
v6 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(*(this + 132), *((_DWORD *)a2 + 21));
cocos2d::CCNode::stopAllActions(v6);
(*(void (__fastcall **)(cocos2d::CCNode *, char *))(*(_DWORD *)v6 + 92))(v6, (char *)a2 + 52);
v7 = *((float *)a2 + 17);
if ( v7 == 0.0 )
{
v9 = v6;
v8 = *((_DWORD *)a2 + 15);
}
else
{
v8 = *((_DWORD *)a2 + 15);
v9 = v6;
}
if ( v7 != 0.0 )
v8 ^= 0x80000000;
(*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v6 + 64))(v9, v8);
v10 = *((float *)a2 + 18);
v11 = *(_DWORD *)v6;
if ( v10 == 0.0 )
{
v13 = *(void (__fastcall **)(cocos2d::CCNode *, int))(v11 + 72);
v14 = v6;
v12 = *((_DWORD *)a2 + 16);
}
else
{
v12 = *((_DWORD *)a2 + 16);
v13 = *(void (__fastcall **)(cocos2d::CCNode *, int))(v11 + 72);
v14 = v6;
}
if ( v10 != 0.0 )
v12 ^= 0x80000000;
v13(v14, v12);
(*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v6 + 180))(v6, *((_DWORD *)a2 + 19));
if ( *((_BYTE *)a2 + 88) )
{
(*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v6 + 580))(v6, *((_DWORD *)a2 + 23));
std::string::basic_string(v18, *((_DWORD *)a2 + 23) + 136);
CCSpritePart::frameChanged((int)v6, (unsigned __int8 *)v18, v15, v16);
std::string::~string((int)v18);
}
if ( (*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v6 + 52))(v6) != *((_DWORD *)a2 + 20) )
(*((void (__fastcall **)(cocos2d::CCArray **, cocos2d::CCNode *))*this + 74))(this, v6);
CCSpritePart::setBeingUsed((int)v6, 1);
return (*(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v6 + 172))(v6, 1);
}