//
// GJBaseGameLayer::updateStaticCameraPosToGroup from 0x5b9b18 to 0x5b9cf0 (472 bytes)
//
// 1 xrefs:
// > CameraTriggerGameObject::triggerObject @ 0x4f559e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:40 +0000
//
void __fastcall GJBaseGameLayer::updateStaticCameraPosToGroup(
cocos2d::CCDictionary **this,
int a2,
int a3,
int a4,
bool a5,
float a6,
float a7,
int a8,
float a9,
char a10,
float a11)
{
float v15; // s17
int MainObject; // r0
char v17; // r5
_BYTE v18[8]; // [sp+1Ch] [bp-18h] BYREF
_DWORD v19[2]; // [sp+24h] [bp-10h] BYREF
v15 = a6;
MainObject = GJBaseGameLayer::tryGetMainObject(this, a2);
if ( MainObject )
{
(*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)MainObject + 680))(v18, MainObject);
if ( a6 <= 1.0 )
v15 = 1.0;
if ( a3 )
{
*((float *)this + 130) = a11;
*((float *)this + 112) = v15;
*((float *)this + 114) = (float)a5;
*((float *)this + 128) = (float)(unsigned __int8)a10;
*((float *)this + 116) = (float)a2;
GJGameState::stopTweenAction((unsigned int)(this + 82), 0x15u);
if ( *((float *)this + 114) != 0.0 || *((float *)this + 128) != 0.0 )
{
if ( a7 > 0.0 )
{
*(this + 108) = nullptr;
*(this + 110) = nullptr;
GJGameState::tweenValue((GJGameState *)(this + 82), 0.0, 1.0, 0x15u, a7, a8, a9, -1, -1);
}
else
{
*((float *)this + 108) = 1.0;
*((float *)this + 110) = 1.0;
}
}
}
if ( a4 )
{
*((float *)this + 131) = a11;
*((float *)this + 113) = v15;
*((float *)this + 115) = (float)a5;
*((float *)this + 117) = (float)a2;
*((float *)this + 129) = (float)(unsigned __int8)a10;
GJGameState::stopTweenAction((unsigned int)(this + 82), 0x16u);
if ( *((float *)this + 115) != 0.0 || *((float *)this + 129) != 0.0 )
{
if ( a7 > 0.0 )
{
*(this + 109) = nullptr;
*(this + 111) = nullptr;
GJGameState::tweenValue((GJGameState *)(this + 82), 0.0, 1.0, 0x16u, a7, a8, a9, -1, -1);
}
else
{
*(this + 109) = (cocos2d::CCDictionary *)1065353216;
*(this + 111) = (cocos2d::CCDictionary *)1065353216;
}
}
}
v17 = a10;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, (const cocos2d::CCPoint *)v18);
if ( a5 )
v17 = 1;
GJBaseGameLayer::updateStaticCameraPos((int)this, v19, a3, a4, v17, a7, a8, a9);
}
}