//
// CameraTriggerGameObject::triggerObject from 0x898cc8 to 0x898e78 (432 bytes)
//
// 2 xrefs:
// > ??> @ 0xf0370
// > ??> @ 0x1453300
//
// 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:56:11 +0000
//
__int64 __fastcall CameraTriggerGameObject::triggerObject(
SFXTriggerGameObject *a1,
GJBaseGameLayer *this,
int a3,
const void **a4)
{
__int64 result; // x0
int v7; // w0
bool v8; // w2
bool v9; // w7
result = *((unsigned int *)a1 + 257);
if ( (_DWORD)result == 2015 )
return (*(__int64 (__fastcall **)(GJBaseGameLayer *, _QWORD, _QWORD, _QWORD, _QWORD, _QWORD, float, float, float))(*(_QWORD *)this + 1432LL))(
this,
*((unsigned __int8 *)a1 + 1552),
*((unsigned __int8 *)a1 + 1525),
*((unsigned int *)a1 + 374),
*((unsigned int *)a1 + 229),
*((unsigned int *)a1 + 418),
*((float *)a1 + 386),
*((float *)a1 + 363),
*((float *)a1 + 375));
if ( (int)result <= 2015 )
{
if ( (_DWORD)result == 1914 )
{
v7 = *((_DWORD *)a1 + 378);
v8 = v7 != 2;
v9 = v7 != 1;
if ( *((_BYTE *)a1 + 1840) )
return GJBaseGameLayer::exitStaticCamera(
this,
v8,
v9,
*((float *)a1 + 363),
*((_DWORD *)a1 + 374),
*((float *)a1 + 375),
*((_BYTE *)a1 + 1852),
*((float *)a1 + 464),
*((_BYTE *)a1 + 1860));
else
return GJBaseGameLayer::updateStaticCameraPosToGroup(
this,
*((_DWORD *)a1 + 367),
v8,
v9,
*((_BYTE *)a1 + 1841),
*((float *)a1 + 461),
*((float *)a1 + 363),
*((_DWORD *)a1 + 374),
*((float *)a1 + 375),
*((_BYTE *)a1 + 1852),
*((float *)a1 + 464));
}
else
{
if ( (_DWORD)result != 1916 )
return EffectGameObject::triggerObject(a1, (GJEffectManager **)this, a3, a4);
if ( *((_DWORD *)a1 + 378) == 2 )
return GJBaseGameLayer::updateCameraOffsetY(
this,
*((float *)a1 + 373),
*((float *)a1 + 363),
*((_DWORD *)a1 + 374),
*((float *)a1 + 375),
*((_DWORD *)a1 + 229),
*((_DWORD *)a1 + 418));
GJBaseGameLayer::updateCameraOffsetX(
this,
*((float *)a1 + 372),
*((float *)a1 + 363),
*((_DWORD *)a1 + 374),
*((float *)a1 + 375),
*((_DWORD *)a1 + 229),
*((_DWORD *)a1 + 418));
result = *((unsigned int *)a1 + 378);
if ( (_DWORD)result != 1 )
return GJBaseGameLayer::updateCameraOffsetY(
this,
*((float *)a1 + 373),
*((float *)a1 + 363),
*((_DWORD *)a1 + 374),
*((float *)a1 + 375),
*((_DWORD *)a1 + 229),
*((_DWORD *)a1 + 418));
}
}
else
{
switch ( (_DWORD)result )
{
case 0x80E:
return GJBaseGameLayer::updateCameraEdge(this, *((_DWORD *)a1 + 462), *((_DWORD *)a1 + 366));
case 0xB6D:
return GJBaseGameLayer::updateCameraMode(this, a1, 1);
case 0x7E0:
break;
default:
return EffectGameObject::triggerObject(a1, (GJEffectManager **)this, a3, a4);
}
}
return result;
}