//
// GJBaseGameLayer::getTargetFlyCameraY from 0x100282794 to 0x10028281c (136 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::animateInDualGroundNew @ 0x100282570
//
// 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
//
float __fastcall GJBaseGameLayer::getTargetFlyCameraY(__int64 a1, __int64 a2)
{
__int64 v2; // x9
__int64 v3; // x0
__int64 v5; // [xsp+8h] [xbp-8h] BYREF
if ( *(_BYTE *)(a1 + 1010) == 1 && ((v2 = *(_QWORD *)(a1 + 984)) != 0 || (v2 = *(_QWORD *)(a1 + 12432)) != 0) )
{
(*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)v2 + 1816LL))(&v5, v2);
}
else if ( a2 )
{
(*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)a2 + 1816LL))(&v5, a2);
}
else
{
v3 = *(_QWORD *)(a1 + 12432);
if ( !v3 )
return 0.0;
(*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)v3 + 1816LL))(&v5, v3);
}
return *((float *)&v5 + 1);
}