//
// cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture from 0xaf0bf0 to 0xaf0d20 (304 bytes)
//
// 2 xrefs:
// > ??> @ 0x31170
// > ??> @ 0x120db30
//
// 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 *cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture(
cocos2d::CCTransitionProgressVertical *a1,
cocos2d::CCRenderTexture *a2)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCSprite *v3; // x0
cocos2d::CCProgressTimer *v4; // x19
void (__fastcall *setMidpoint)(cocos2d::CCProgressTimer *__hidden, cocos2d::CCPoint); // x22
float v6; // s0
float v7; // s1
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22
float v11; // [xsp+58h] [xbp+58h]
float v12; // [xsp+5Ch] [xbp+5Ch]
cocos2d::CCPoint v13; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCSize WinSize; // 0:kr00_8.8
cocos2d::CCPoint v15; // 0:s0.4,4:s1.4
v2 = cocos2d::CCDirector::sharedDirector();
WinSize = cocos2d::CCDirector::getWinSize(v2);
v3 = (cocos2d::CCSprite *)((__int64 (__fastcall *)(cocos2d::CCRenderTexture *, float, float))a2->getSprite)(
a2,
WinSize.width,
WinSize.height);
v4 = cocos2d::CCProgressTimer::create(v3);
cocos2d::CCSprite::setFlipY(v4->m_pSprite, 1);
cocos2d::CCProgressTimer::setType(v4, kCCProgressTimerTypeBar);
setMidpoint = v4->setMidpoint;
cocos2d::CCPoint::CCPoint(&v13, 0.0, 0.0);
((void (__fastcall *)(cocos2d::CCProgressTimer *, cocos2d::CCPoint *))setMidpoint)(v4, &v13);
cocos2d::CCPoint::CCPoint(&v13, 0.0, 1.0);
cocos2d::CCPoint::operator=(&v4->m_tBarChangeRate, v6, v7, (float *)&v13);
cocos2d::CCProgressTimer::setPercentage(v4, 100.0);
setPosition = v4->setPosition;
cocos2d::CCPoint::CCPoint(&v13, v11 * 0.5, v12 * 0.5);
setPosition(v4, &v13);
cocos2d::CCPoint::CCPoint(&v13, 0.5, 0.5);
cocos2d::CCProgressTimer::setAnchorPoint(v4, v15);
return v4;
}