//
// cocos2d::CCProgressTimer::setType from 0x1006dc020 to 0x1006dc06f (79 bytes)
//
// 7 xrefs:
// > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x100278d5c
// > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x100278f6c
// > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x1002790df
// > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x10027928f
// > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x10027947f
// > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x10027962f
// > CCCountdown::init @ 0x1008ade3b
//
// 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 12:35:43 +0000
//
void __fastcall cocos2d::CCProgressTimer::setType(__int64 a1, int a2)
{
void *v2; // rax
if ( *(_DWORD *)(a1 + 340) != a2 )
{
v2 = *(void **)(a1 + 368);
if ( v2 )
{
free(v2);
*(_QWORD *)(a1 + 368) = 0;
*(_DWORD *)(a1 + 360) = 0;
}
*(_DWORD *)(a1 + 340) = a2;
}
}