//
// cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture from 0x180059790 to 0x180059897 (263 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800fcd78
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bcc4c
//
// 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:48 +0000
//
struct cocos2d::CCProgressTimer *__fastcall cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture(
cocos2d::CCTransitionProgressInOut *this,
struct cocos2d::CCRenderTexture *a2)
{
struct cocos2d::CCDirector *v3; // rax
struct cocos2d::CCSprite *v4; // rax
struct cocos2d::CCProgressTimer *v5; // rdi
__int64 v6; // rbx
float *v7; // rax
float *v8; // rax
__int64 v9; // rbx
float *v10; // rax
float *v11; // rax
float v13; // [rsp+48h] [rbp+10h] BYREF
float v14; // [rsp+4Ch] [rbp+14h]
float v15; // [rsp+50h] [rbp+18h] BYREF
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v3, &v13);
v4 = (struct cocos2d::CCSprite *)(*(__int64 (__fastcall **)(struct cocos2d::CCRenderTexture *))(*(_QWORD *)a2 + 888LL))(a2);
v5 = cocos2d::CCProgressTimer::create(v4);
cocos2d::CCSprite::setFlipY(*((cocos2d::CCSprite **)v5 + 44), 1);
cocos2d::CCProgressTimer::setType(v5, 1);
v6 = *(_QWORD *)v5;
v7 = kmVec2Fill(&v15, 0.5, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCProgressTimer *, float *))(v6 + 912))(v5, v7);
v8 = kmVec2Fill(&v15, 1.0, 1.0);
cocos2d::CCSize::operator=((_DWORD *)v5 + 96, v8);
cocos2d::CCProgressTimer::setPercentage(v5, 0.0);
v9 = *(_QWORD *)v5;
v10 = kmVec2Fill(&v15, v13 * 0.5, v14 * 0.5);
(*(void (__fastcall **)(struct cocos2d::CCProgressTimer *, float *))(v9 + 184))(v5, v10);
v11 = kmVec2Fill(&v15, 0.5, 0.5);
cocos2d::CCProgressTimer::setAnchorPoint(v5, v11);
return v5;
}