//
// cocos2d::CCProgressTimer::setType from 0x1800603b0 to 0x1800603f9 (73 bytes)
//
// 8 xrefs:
// > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x1800596d1
// > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x1800597e1
// > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x1800598f1
// > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x1800599fe
// > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180059ace
// > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180059ba1
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd54c
//
// 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
//
__int64 __fastcall cocos2d::CCProgressTimer::setType(__int64 a1, int a2)
{
void *v4; // rcx
__int64 result; // rax
if ( a2 != *(_DWORD *)(a1 + 344) )
{
v4 = *(void **)(a1 + 368);
if ( v4 )
{
free(v4);
result = 0;
*(_QWORD *)(a1 + 368) = 0;
*(_DWORD *)(a1 + 360) = 0;
}
*(_DWORD *)(a1 + 344) = a2;
}
return result;
}