//
// GJBaseGameLayer::updateStaticCameraPosToGroup from 0x1002a0a14 to 0x1002a0bec (472 bytes)
//
// 1 xrefs:
// > CameraTriggerGameObject::triggerObject @ 0x100439718
//
// 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:02:12 +0000
//
void __fastcall GJBaseGameLayer::updateStaticCameraPosToGroup(
__int64 a1,
__int64 a2,
int a3,
int a4,
unsigned int a5,
int a6,
unsigned int a7,
float a8,
float a9,
float a10,
float a11)
{
int v19; // w25
__int64 MainObject; // x0
float v22; // s11
__int64 v23; // x26
float v24; // s13
__int64 v25; // x27
float v26; // s14
char v27; // w8
char v28; // w19
int v29; // w8
__int64 v30; // x28
int v31; // w25
char v32; // [xsp+10h] [xbp-C0h]
__int64 v34; // [xsp+18h] [xbp-B8h]
__int64 v35; // [xsp+20h] [xbp-B0h]
__int64 v36; // [xsp+30h] [xbp-A0h] BYREF
__int64 v37; // [xsp+38h] [xbp-98h] BYREF
v19 = a2;
MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2);
if ( MainObject )
{
(*(void (__fastcall **)(__int64 *__return_ptr))(*(_QWORD *)MainObject + 1360LL))(&v37);
v22 = fmaxf(a8, 1.0);
v23 = a1 + 552;
v32 = a7;
v24 = (float)a7;
v25 = a1 + 608;
v35 = a1 + 528;
v34 = a1 + 536;
v26 = (float)v19;
v27 = 1;
do
{
v28 = v27;
if ( (v27 & 1) != 0 )
v29 = a3;
else
v29 = a4;
if ( v29 == 1 )
{
if ( (v28 & 1) != 0 )
v30 = 0;
else
v30 = 4;
*(float *)(v23 + v30) = (float)a5;
*(float *)(v25 + v30) = v24;
*(float *)(a1 + 616 + v30) = a11;
*(float *)(a1 + 560 + v30) = v26;
*(float *)(a1 + 544 + v30) = v22;
if ( (v28 & 1) != 0 )
v31 = 21;
else
v31 = 22;
LODWORD(v36) = v31;
sub_10001BB58((_QWORD *)(a1 + 1016), (int *)&v36);
if ( *(float *)(v23 + v30) != 0.0 || *(float *)(v25 + v30) != 0.0 )
{
if ( a9 <= 0.0 )
{
*(_DWORD *)(v35 + v30) = 1065353216;
*(_DWORD *)(v34 + v30) = 1065353216;
}
else
{
*(_DWORD *)(v35 + v30) = 0;
*(_DWORD *)(v34 + v30) = 0;
sub_10027409C(a1 + 424, v31, a6, -1, -1, 0.0, 1.0, a9, a10);
}
}
}
v27 = 0;
}
while ( (v28 & 1) != 0 );
sub_1000262F4(&v36, (double *)&v37);
GJBaseGameLayer::updateStaticCameraPos(a1, (__int64)&v36, a3, a4, a5 | v32, a6, a9, a10);
}
}