//
// cocos2d::CCProgressTimer::setSprite from 0xd692a0 to 0xd69330 (144 bytes)
//
// 2 xrefs:
// > cocos2d::CCProgressTimer::initWithSprite @ 0xd6a298
// > ??> @ 0xe79b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:07:55 +0000
//
void __fastcall cocos2d::CCProgressTimer::setSprite(cocos2d::CCProgressTimer *this, cocos2d::CCSprite *a2)
{
cocos2d::CCSprite *v3; // x0
cocos2d::CCSprite *v5; // x21
__int64 v6; // x1
void (__fastcall *v7)(cocos2d::CCProgressTimer *, __int64); // x20
__int64 v8; // x0
void *v9; // x0
v3 = *((cocos2d::CCSprite **)this + 44);
if ( v3 != a2 )
{
v5 = nullptr;
if ( a2 )
{
v5 = a2;
cocos2d::CCObject::retain((__int64)a2);
v3 = *((cocos2d::CCSprite **)this + 44);
}
if ( v3 )
cocos2d::CCObject::release(v3);
*((_QWORD *)this + 44) = a2;
v6 = *(_QWORD *)a2;
v7 = *(void (__fastcall **)(cocos2d::CCProgressTimer *, __int64))(*(_QWORD *)this + 320LL);
v8 = (*(__int64 (__fastcall **)(cocos2d::CCSprite *))(v6 + 328))(v5);
v7(this, v8);
v9 = *((void **)this + 46);
if ( v9 )
{
free(v9);
*((_QWORD *)this + 46) = 0;
*((_DWORD *)this + 90) = 0;
}
}
}