//
// GJBaseGameLayer::updateCameraMode from 0x1001e6918 to 0x1001e698c (116 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::toggleDualMode @ 0x1001e6438
// > GJBaseGameLayer::playerWillSwitchMode @ 0x1001e69c8
// > CameraTriggerGameObject::triggerObject @ 0x100392bbc
//
// 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::updateCameraMode(GJBaseGameLayer *a1, EffectGameObject *a2, bool a3)
{
int m_isFreeMode; // w8
int m_cameraIsFreeMode; // w9
float32x2_t v5; // d0
float32x2_t v6; // d0
m_isFreeMode = a1->m_gameState.m_isFreeMode;
m_cameraIsFreeMode = a2->m_cameraIsFreeMode;
a1->m_gameState.m_isFreeMode = m_cameraIsFreeMode;
a1->m_gameState.m_unkBool9 = a2->m_cameraDisableGridSnap;
if ( a2->m_cameraEditCameraSettings )
{
v5 = (float32x2_t)vrev64_s32(*(int32x2_t *)&a2->m_cameraEasingValue);
v6 = (float32x2_t)vbsl_s8(
(int8x8_t)vcgt_f32((float32x2_t)0x3F80000000000000LL, v5),
(int8x8_t)0x3F80000000000000LL,
(int8x8_t)v5);
*(int8x8_t *)&a1->m_gameState.m_unkFloat2 = vbsl_s8(
(int8x8_t)vcgt_f32(v6, (float32x2_t)0x422000003F800000LL),
(int8x8_t)0x422000003F800000LL,
(int8x8_t)v6);
}
if ( m_isFreeMode != m_cameraIsFreeMode && a3 )
GJBaseGameLayer::updateDualGround(a1, a1->m_player1, a1->m_gameState.m_dualRelated, 0, 0.0);
}