//
// MenuGameLayer::update from 0x492a08 to 0x492c4a (578 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:38 +0000
//
int __fastcall MenuGameLayer::update(GJActionManager ***this, float a2)
{
float v4; // s17
int v5; // r7
const cocos2d::CCPoint *v6; // r0
cocos2d::CCDirector *v7; // r0
int v8; // r3
float v9; // s20
float v10; // s16
cocos2d::CCDirector *v11; // r0
float v12; // s16
int v13; // r7
void (__fastcall *v14)(int, _BYTE *); // r8
float *v15; // r0
float *v16; // r0
float v17; // s14
float i; // s15
int v19; // r7
float v20; // s15
float j; // s14
float v23[2]; // [sp+4h] [bp-24h] BYREF
float v24[2]; // [sp+Ch] [bp-1Ch] BYREF
float v25[2]; // [sp+14h] [bp-14h] BYREF
_BYTE v26[8]; // [sp+1Ch] [bp-Ch] BYREF
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v23);
v4 = a2 * 60.0;
*((float *)this + 80) = *((float *)this + 80) + a2;
MenuGameLayer::updateColors((MenuGameLayer *)this);
v5 = (int)*(this + 85);
v6 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 96))(v5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, v6);
cocos2d::CCPoint::operator=(v5 + 2016, v26);
PlayerObject::updateInternalActions(*(this + 85), a2);
v7 = (cocos2d::CCDirector *)(*((int (__fastcall **)(_DWORD, _DWORD))**(this + 85) + 5))(*(this + 85), a2 * 60.0);
*((double *)*(this + 85) + 266) = *((float *)this + 80);
v8 = (int)*(this + 85);
v9 = *(float *)(v8 + 2144);
if ( *(float *)(v8 + 2008) == 1.0 )
v10 = 0.0;
else
v10 = 1.0 - *(float *)(v8 + 2008);
if ( *(float *)(v8 + 2008) != 1.0 )
v10 = (float)(v9 * v10) * 0.5;
v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
v12 = (float)((float)(COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v11)) + 90.0) + (float)(v9 * 0.5)) - v10;
if ( *(float *)((*((int (__fastcall **)(_DWORD))**(this + 85) + 24))(*(this + 85)) + 4) < v12 )
{
v13 = (int)*(this + 85);
v14 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v13 + 92);
v15 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v13 + 96))(v13);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, *v15, v12);
v14(v13, v26);
PlayerObject::hitGround((PlayerObject *)*(this + 85), nullptr, 0);
}
PlayerObject::updateRotation(*((float *)this + 85), v4);
v16 = (float *)(*((int (__fastcall **)(_DWORD))**(this + 85) + 24))(*(this + 85));
if ( *v16 > (float)(v23[0] + 100.0) )
MenuGameLayer::resetPlayer((MenuGameLayer *)this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, *((float *)this + 83) + (float)((float)(v4 * 5.77) * 0.9), 0.0);
cocos2d::CCPoint::operator=(this + 83, v26);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v24,
-(float)(*((float *)this + 83) * 0.1),
-(float)(*((float *)this + 84) * 0.1));
v17 = *((float *)this + 88);
for ( i = v24[0]; i < (float)-v17; i = i + v17 )
;
v24[0] = i;
(*((void (__fastcall **)(_DWORD, float *))**(this + 86) + 23))(*(this + 86), v24);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, COERCE_FLOAT((unsigned int)*(this + 83) ^ 0x80000000), 0.0);
v19 = (int)*(this + 87);
v20 = v25[0];
for ( j = *(float *)(v19 + 324); v20 < (float)-j; v20 = v20 + j )
;
v25[0] = v20;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, (const cocos2d::CCPoint *)v25);
GJGroundLayer::updateGroundPos(v19, v26);
return PlayerObject::updateEffects(*(this + 85), a2);
}