//
// SetupGravityModPopup::updateItemID from 0x6632a4 to 0x6632f6 (82 bytes)
//
// 1 xrefs:
// > SetupGravityModPopup::textChanged @ 0x663332
//
// 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:39 +0000
//
_DWORD *__fastcall SetupGravityModPopup::updateItemID(_DWORD *this)
{
_DWORD *v1; // r5
unsigned int v2; // r4
int v3; // r3
int v4; // r0
v1 = this;
v2 = *(this + 130);
v3 = *(this + 140) & ~((int)*(this + 140) >> 31);
if ( v3 >= 999 )
v3 = 999;
*(this + 140) = v3;
if ( v2 )
{
*(_DWORD *)(v2 + 1500) = v3;
}
else if ( *(this + 131) )
{
while ( 1 )
{
this = (_DWORD *)cocos2d::CCArray::count((cocos2d::CCArray *)v1[131]);
if ( v2 >= (unsigned int)this )
break;
v4 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v1[131], v2++);
*(_DWORD *)(v4 + 1500) = v1[140];
}
}
return this;
}