//
// GJBaseGameLayer::updateCameraOffsetY from 0x10014ef70 to 0x10014f067 (247 bytes)
//
// 3 xrefs:
// > PlayLayer::playEndAnimationToPos @ 0x1000b6073
// > PlayLayer::playPlatformerEndAnimationToPos @ 0x1000b65c0
// > CameraTriggerGameObject::triggerObject @ 0x1001de0e9
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJBaseGameLayer::updateCameraOffsetY(
GJBaseGameLayer *a1,
float a2,
float a3,
int a4,
float a5,
int a6,
int a7)
{
std::unordered_map *p_m_tweenActions; // rdi
int v10[3]; // [rsp+4h] [rbp-5Ch] BYREF
__int64 v11; // [rsp+10h] [rbp-50h]
int v12; // [rsp+18h] [rbp-48h]
float v13; // [rsp+1Ch] [rbp-44h]
__int16 v14; // [rsp+20h] [rbp-40h]
int v15; // [rsp+24h] [rbp-3Ch]
int v16; // [rsp+28h] [rbp-38h]
int v17; // [rsp+2Ch] [rbp-34h] BYREF
float y; // [rsp+30h] [rbp-30h]
float v19; // [rsp+34h] [rbp-2Ch]
float v20; // [rsp+38h] [rbp-28h]
float v21; // [rsp+3Ch] [rbp-24h]
a1->m_gameState.m_unkPoint1.y = a2;
if ( a3 <= 0.0 )
{
v10[0] = 16;
sub_1000569A0(&a1->m_gameState.m_tweenActions.__table_.__bucket_list_.__ptr_.__value_, v10);
a1->m_gameState.m_cameraOffset.y = a1->m_gameState.m_unkPoint1.y;
}
else
{
y = a1->m_gameState.m_cameraOffset.y;
v17 = 16;
v10[0] = 16;
p_m_tweenActions = &a1->m_gameState.m_tweenActions;
v19 = a5;
v20 = a3;
v21 = a2;
sub_1000569A0(p_m_tweenActions, v10);
v11 = 0;
v14 = 0;
*(float *)v10 = y;
*(float *)&v10[1] = v21;
*(float *)&v10[2] = v20;
v12 = a4;
v13 = v19;
v15 = a6;
v16 = a7;
sub_100165AA0(p_m_tweenActions, &v17, &v17, v10);
}
}