//
// cocos2d::CCProgressTimer::setSprite from 0x10047e09c to 0x10047e11c (128 bytes)
//
// 1 xrefs:
// > cocos2d::CCProgressTimer::initWithSprite @ 0x10047e01c
//
// 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 11:05:45 +0000
//
void __fastcall cocos2d::CCProgressTimer::setSprite(__int64 a1, __int64 a2)
{
_DWORD *v3; // x0
__int64 v5; // x0
void *v6; // x0
v3 = *(_DWORD **)(a1 + 352);
if ( v3 != (_DWORD *)a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v3 = *(_DWORD **)(a1 + 352);
}
if ( v3 )
cocos2d::CCObject::release(v3);
*(_QWORD *)(a1 + 352) = a2;
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 320LL))(a1, v5);
v6 = *(void **)(a1 + 368);
if ( v6 )
{
free(v6);
*(_QWORD *)(a1 + 368) = 0;
*(_DWORD *)(a1 + 360) = 0;
}
}
}