//
// cocos2d::CCProgressTimer::setSprite from 0x7df600 to 0x7df650 (80 bytes)
//
// 1 xrefs:
// > cocos2d::CCProgressTimer::initWithSprite @ 0x7e01ce
//
// 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 12:00:48 +0000
//
void __fastcall cocos2d::CCProgressTimer::setSprite(cocos2d::CCProgressTimer *this, cocos2d::CCSprite *a2)
{
_DWORD *v4; // r0
int v5; // r3
void (__fastcall *v6)(cocos2d::CCProgressTimer *, int); // r6
int v7; // r0
void *v8; // r0
if ( *((cocos2d::CCSprite **)this + 72) != a2 )
{
if ( a2 )
cocos2d::CCObject::retain((int)a2);
v4 = *((_DWORD **)this + 72);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *(_DWORD *)this;
*((_DWORD *)this + 72) = a2;
v6 = *(void (__fastcall **)(cocos2d::CCProgressTimer *, int))(v5 + 160);
v7 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 164))(a2);
v6(this, v7);
v8 = *((void **)this + 74);
if ( v8 )
{
free(v8);
*((_DWORD *)this + 74) = 0;
*((_DWORD *)this + 73) = 0;
}
}
}