//
// GJBaseGameLayer::animateInDualGroundNew from 0x10028254c to 0x10028271c (464 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateDualGround @ 0x100282134
//
// 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:01:56 +0000
//
void __fastcall GJBaseGameLayer::animateInDualGroundNew(__int64 a1, float a2, __int64 a3, int a4)
{
float TargetFlyCameraY; // s9
float v8; // s11
float v9; // s0
float v10; // s0
float v11; // s10
float v12; // s0
__int64 v13; // x0
__int64 v14; // [xsp+8h] [xbp-38h] BYREF
TargetFlyCameraY = GJBaseGameLayer::getTargetFlyCameraY();
v8 = a2 * 0.5;
v9 = TargetFlyCameraY - (float)(a2 * 0.5);
if ( (*(_BYTE *)(a1 + 786) & 1) == 0 )
v9 = floorf(v9 / 30.0) * 30.0;
*(float *)(a1 + 776) = v8 + fmaxf(v9, 90.0);
if ( (*(_BYTE *)(a1 + 1010) & 1) != 0 || (v10 = 0.5, *(_BYTE *)(a1 + 784) == 1) )
v10 = 0.4;
if ( a4 )
v11 = 0.0;
else
v11 = v10;
if ( v11 <= 0.0 )
{
LODWORD(v14) = 25;
sub_10001BB58((_QWORD *)(a1 + 1016), (int *)&v14);
*(_DWORD *)(a1 + 1012) = 1065353216;
}
else if ( *(_BYTE *)(a1 + 784) != 1 || *(float *)(a1 + 748) != a2 )
{
v12 = *(float *)(a1 + 1012);
if ( v12 >= 0.0 )
{
if ( v12 > 0.0 )
{
v13 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v13, &v14);
v12 = (float)(*(float *)(a1 + 1012)
* (float)((float)(*((float *)&v14 + 1) * 0.5) + (float)(1.0 - (float)(*(float *)(a1 + 748) * 0.5))))
/ (float)((float)(1.0 - v8) + (float)(*((float *)&v14 + 1) * 0.5));
*(float *)(a1 + 1012) = v12;
}
}
else
{
*(_DWORD *)(a1 + 1012) = 0;
v12 = 0.0;
}
sub_10027409C(a1 + 424, 25, 1, -1, -1, v12, 1.0, v11, 2.0);
}
if ( *(float *)(a1 + 572) == 0.0 || *(_BYTE *)(a1 + 672) == 1 )
{
sub_1000262BC((float *)&v14, 0.0, *(float *)(a1 + 776));
GJBaseGameLayer::updateStaticCameraPos(a1, &v14, 0, 1, 0, 1, v11, 2.0);
*(_BYTE *)(a1 + 672) = 1;
}
*(_BYTE *)(a1 + 784) = 1;
*(float *)(a1 + 748) = a2;
*(float *)(a1 + 744) = TargetFlyCameraY;
}