//
// cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture from 0x10028da20 to 0x10028db27 (263 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008f5258
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCProgressTimer *__fastcall cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture(
cocos2d::CCTransitionProgressHorizontal *a1,
cocos2d::CCRenderTexture *a2)
{
cocos2d::CCDirector *v3; // rsi
cocos2d::CCSprite *v4; // rax
cocos2d::CCProgressTimer *v5; // rbx
float v7[2]; // [rsp+0h] [rbp-20h] BYREF
double v8[3]; // [rsp+8h] [rbp-18h] BYREF
double v9; // 0:xmm0_8.8
v3 = cocos2d::CCDirector::sharedDirector();
*(cocos2d::CCSize *)&v9 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7);
v4 = (cocos2d::CCSprite *)((__int64 (__fastcall *)(cocos2d::CCRenderTexture *, cocos2d::CCDirector *, double))a2->getSprite)(
a2,
v3,
v9);
v5 = cocos2d::CCProgressTimer::create(v4);
cocos2d::CCSprite::setFlipY(v5->m_pSprite, 1);
cocos2d::CCProgressTimer::setType(v5, kCCProgressTimerTypeBar);
sub_10028CBE0((float *)v8, 1.0, 0.0);
((void (__fastcall *)(cocos2d::CCProgressTimer *, double *))v5->setMidpoint)(v5, v8);
sub_10028CBE0((float *)v8, 1.0, 0.0);
sub_10028CC90(&v5->m_tBarChangeRate, v8);
cocos2d::CCProgressTimer::setPercentage(v5, 100.0);
sub_10028CBE0((float *)v8, v7[0] * 0.5, v7[1] * 0.5);
((void (__fastcall *)(cocos2d::CCProgressTimer *, double *))v5->setPosition)(v5, v8);
sub_10028CBE0((float *)v8, 0.5, 0.5);
cocos2d::CCProgressTimer::setAnchorPoint(v5, (cocos2d::CCPoint)1056964608LL);
return v5;
}