//
// SetupCameraEdgePopup::onCameraEdge from 0xb25238 to 0xb2532c (244 bytes)
//
// 6 xrefs:
// > ??> @ 0xb0140
// > SetupCameraEdgePopup::init @ 0xb25964
// > SetupCameraEdgePopup::init @ 0xb25a54
// > SetupCameraEdgePopup::init @ 0xb25b3c
// > SetupCameraEdgePopup::init @ 0xb25c38
// > ??> @ 0x1545030
//
// 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 13:01:38 +0000
//
cocos2d::CCArray *__fastcall SetupCameraEdgePopup::onCameraEdge(SetupCameraEdgePopup *this, cocos2d::CCObject *a2)
{
CCMenuItemToggler *v3; // x0
CCMenuItemToggler *v4; // x0
CCMenuItemToggler *v5; // x0
CCMenuItemToggler *v6; // x0
cocos2d::CCArray *result; // x0
unsigned int v8; // w20
bool v9; // cf
unsigned int v10; // w1
*((_DWORD *)this + 257) = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v3 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 129), 0);
CCMenuItemToggler::toggle(v3, *((_DWORD *)this + 257) == 1);
v4 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 129), 1u);
CCMenuItemToggler::toggle(v4, *((_DWORD *)this + 257) == 2);
v5 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 129), 2u);
CCMenuItemToggler::toggle(v5, *((_DWORD *)this + 257) == 3);
v6 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 129), 3u);
CCMenuItemToggler::toggle(v6, *((_DWORD *)this + 257) == 4);
result = *((cocos2d::CCArray **)this + 85);
if ( result )
{
*((_DWORD *)result + 462) = *((_DWORD *)this + 257);
}
else
{
result = *((cocos2d::CCArray **)this + 86);
if ( result )
{
v8 = 0;
while ( 1 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
v9 = v8 >= (unsigned int)result;
v10 = v8++;
if ( v9 )
break;
*(_DWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v10) + 1848) = *((_DWORD *)this + 257);
result = *((cocos2d::CCArray **)this + 86);
}
}
}
return result;
}