//
// cocos2d::CCProgressTimer::initWithSprite from 0x10047df88 to 0x10047e058 (208 bytes)
//
// 1 xrefs:
// > cocos2d::CCProgressTimer::create @ 0x10047df58
//
// This function is hookable on this platform (idp: arm, 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:05:45 +0000
//
__int64 __fastcall cocos2d::CCProgressTimer::initWithSprite(__int64 a1, __int64 a2)
{
double v4; // d0
__int64 v5; // x0
__int64 v6; // x0
double v8; // [xsp+8h] [xbp-18h] BYREF
cocos2d::CCProgressTimer::setPercentage(a1, 0.0);
*(_QWORD *)(a1 + 368) = 0;
*(_DWORD *)(a1 + 360) = 0;
sub_1000262BC((float *)&v8, 0.5, 0.5);
cocos2d::CCNode::setAnchorPoint(a1, &v8);
*(_DWORD *)(a1 + 340) = 0;
*(_BYTE *)(a1 + 392) = 0;
sub_1000262BC((float *)&v8, 0.5, 0.5);
(*(void (__fastcall **)(__int64, double *))(*(_QWORD *)a1 + 1032LL))(a1, &v8);
sub_1000262BC((float *)&v8, 1.0, 1.0);
v4 = sub_10002630C((_QWORD *)(a1 + 384), &v8);
cocos2d::CCProgressTimer::setSprite(a1, a2, v4);
v5 = cocos2d::CCShaderCache::sharedShaderCache();
v6 = cocos2d::CCShaderCache::programForKey(v5, "ShaderPositionTextureColor");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 664LL))(a1, v6);
return 1;
}