//
// SetupCameraModePopup::onEditCameraSettings from 0x1405ac2a0 to 0x1405ac34a (170 bytes)
//
// 4 xrefs:
// > SetupCameraModePopup::init @ 0x1405abb37
// > ??> @ 0x1408df10c
// > ??> @ 0x1408df11c
// > ??> @ 0x14092d7dc
//
// This function is hookable on this platform (idp: pc, 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:34:40 +0000
//
__int64 __fastcall SetupCameraModePopup::onEditCameraSettings(__int64 a1)
{
bool v2; // al
__int64 v3; // rcx
unsigned int i; // edi
struct cocos2d::CCObject *v5; // rax
v2 = *(_BYTE *)(a1 + 1061) == 0;
*(_BYTE *)(a1 + 1061) = v2;
v3 = *(_QWORD *)(a1 + 680);
if ( v3 )
{
*(_BYTE *)(v3 + 1765) = v2;
}
else
{
for ( i = 0;
i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688));
*((_BYTE *)v5 + 1765) = *(_BYTE *)(a1 + 1061) )
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), i++);
}
}
if ( *(_BYTE *)(a1 + 1061) )
{
SetupCameraModePopup::updateCameraEasing(a1);
SetupCameraModePopup::updateCameraPadding(a1);
}
return SetupCameraModePopup::updateItemVisibility(a1);
}