//
// GJBaseGameLayer::getTargetFlyCameraY from 0x99de98 to 0x99df54 (188 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::animateInDualGroundNew @ 0x9e6440
// > ??> @ 0x78d78
//
// 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 12:58:05 +0000
//
__int64 __fastcall GJBaseGameLayer::getTargetFlyCameraY(GJBaseGameLayer *this, GameObject *a2)
{
__int64 v2; // x2
__int64 v4; // x0
__int64 v5; // [xsp+20h] [xbp+20h] BYREF
if ( !*((_BYTE *)this + 1010) )
{
if ( a2 )
{
LABEL_5:
(*(void (__fastcall **)(__int64 *__return_ptr, GameObject *))(*(_QWORD *)a2 + 1816LL))(&v5, a2);
return _stack_chk_guard;
}
v4 = *((_QWORD *)this + 1554);
if ( !v4 )
return _stack_chk_guard;
LABEL_8:
(*(void (__fastcall **)(__int64 *__return_ptr))(*(_QWORD *)v4 + 1816LL))(&v5);
return _stack_chk_guard;
}
v2 = *((_QWORD *)this + 123);
if ( !v2 )
{
v4 = *((_QWORD *)this + 1554);
if ( !v4 )
{
if ( !a2 )
return _stack_chk_guard;
goto LABEL_5;
}
goto LABEL_8;
}
(*(void (__fastcall **)(__int64 *__return_ptr, _QWORD))(*(_QWORD *)v2 + 1816LL))(&v5, *((_QWORD *)this + 123));
return _stack_chk_guard;
}