//
// PlayerObject::updatePlayerBirdFrame from 0x1002c6d80 to 0x1002c6f84 (516 bytes)
//
// 2 xrefs:
// > PlayerObject::toggleBirdMode @ 0x1002c6bac
// > MenuGameLayer::resetPlayer @ 0x1004426c4
//
// 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:02:33 +0000
//
void __fastcall PlayerObject::updatePlayerBirdFrame(__int64 a1, int a2)
{
int v3; // w8
__int64 v4; // x20
__int64 v5; // x0
__int64 v6; // x0
__int64 CString; // x22
__int64 v8; // x0
__int64 v9; // x23
__int64 v10; // x0
__int64 v11; // x24
__int64 v12; // x0
__int64 v13; // x21
__int64 v14; // x25
__int64 v15; // x0
__int64 v16; // x0
__int64 v17; // x0
__int64 v18; // x22
__int64 v19; // x0
__int64 v20; // x0
__int64 v21; // x0
__int64 v22; // x22
__int64 v23; // x0
__int64 v24; // x0
__int64 v25; // x0
__int64 v26; // x22
__int64 v27; // x0
__int64 v28; // x0
double *v29; // x0
__int64 v30; // x21
__int64 v31; // x21
__int64 v32; // x0
__int64 v33; // x0
char *v34; // x0
void *__p[2]; // [xsp+8h] [xbp-68h] BYREF
char v36; // [xsp+1Fh] [xbp-51h]
float v37; // [xsp+20h] [xbp-50h] BYREF
__int64 v38; // [xsp+28h] [xbp-48h] BYREF
if ( a2 >= 149 )
v3 = 149;
else
v3 = a2;
if ( v3 <= 1 )
v4 = 1;
else
v4 = (unsigned int)v3;
v5 = GameManager::sharedState(a1);
GameManager::loadIcon(v5, v4, 3, *(unsigned int *)(a1 + 2972));
v6 = sub_1003065B0("bird_%02d_001.png", v4);
CString = cocos2d::CCString::getCString(v6);
v8 = sub_1003065B0("bird_%02d_2_001.png", v4);
v9 = cocos2d::CCString::getCString(v8);
v10 = sub_1003065B0("bird_%02d_3_001.png", v4);
v11 = cocos2d::CCString::getCString(v10);
v12 = sub_1003065B0("bird_%02d_glow_001.png", v4);
v13 = cocos2d::CCString::getCString(v12);
v14 = *(_QWORD *)(a1 + 1832);
v15 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v13);
v16 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v15, CString);
v17 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 1160LL))(v14, v16);
v18 = *(_QWORD *)(a1 + 1840);
v19 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v17);
v20 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v19, v9);
v21 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 1160LL))(v18, v20);
v22 = *(_QWORD *)(a1 + 1848);
v23 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v21);
v24 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v23, v11);
v25 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 1160LL))(v22, v24);
v26 = *(_QWORD *)(a1 + 1864);
v27 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v25);
v28 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v27, v13);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v26 + 1160LL))(v26, v28);
v29 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1832) + 328LL))(*(_QWORD *)(a1 + 1832));
sub_100026438(&v38, v29);
v30 = *(_QWORD *)(a1 + 1840);
sub_1000262BC(&v37, *(float *)&v38 * 0.5, *((float *)&v38 + 1) * 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v30 + 184LL))(v30, &v37);
v31 = *(_QWORD *)(a1 + 1848);
v32 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1840) + 192LL))(*(_QWORD *)(a1 + 1840));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v31 + 184LL))(v31, v32);
v33 = sub_1003065B0("bird_%02d_extra_001.png", v4);
v34 = (char *)cocos2d::CCString::getCString(v33);
sub_100009900(__p, v34);
sub_1002B53E0(a1, (__int64 *)__p);
if ( v36 < 0 )
operator delete(__p[0]);
}