//
// SetupPortalPopup::updateCameraPadding from 0x63409c to 0x6340d8 (60 bytes)
//
// 2 xrefs:
// > SetupPortalPopup::onEditCameraSettings @ 0x634124
// > SetupPortalPopup::sliderChanged @ 0x63419c
//
// 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:55:19 +0000
//
unsigned int __fastcall SetupPortalPopup::updateCameraPadding(unsigned int this)
{
unsigned int v1; // r5
unsigned int v2; // r4
int v3; // r0
v1 = this;
v2 = *(_DWORD *)(this + 524);
if ( v2 )
{
*(_DWORD *)(v2 + 1572) = *(_DWORD *)(this + 556);
}
else
{
while ( 1 )
{
this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v1 + 520));
if ( v2 >= this )
break;
v3 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v1 + 520), v2++);
*(_DWORD *)(v3 + 1572) = *(_DWORD *)(v1 + 556);
}
}
return this;
}