//
// cocos2d::CCProgressTimer::setSprite from 0x180060320 to 0x1800603af (143 bytes)
//
// 4 xrefs:
// > ??> @ 0x180142620
// > ??> @ 0x180142630
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd528
//
// This function is hookable on this platform (idp: pc, 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:21:50 +0000
//
void __fastcall cocos2d::CCProgressTimer::setSprite(cocos2d::CCProgressTimer *this, struct cocos2d::CCSprite *a2)
{
cocos2d::CCObject *v4; // rcx
__int64 v5; // rbx
__int64 v6; // rax
void *v7; // rcx
if ( *((struct cocos2d::CCSprite **)this + 44) != a2 )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
v4 = *((cocos2d::CCObject **)this + 44);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *(_QWORD *)this;
*((_QWORD *)this + 44) = a2;
v6 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 320LL))(a2);
(*(void (__fastcall **)(cocos2d::CCProgressTimer *, __int64))(v5 + 312))(this, v6);
v7 = *((void **)this + 46);
if ( v7 )
{
free(v7);
*((_QWORD *)this + 46) = 0;
*((_DWORD *)this + 90) = 0;
}
}
}