//
// SetupGravityModPopup::textChanged from 0xafb5ac to 0xafb64c (160 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetupGravityModPopup::textChanged @ 0xafb650
// > ??> @ 0x49630
// > ??> @ 0x14afb78
//
// 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:17 +0000
//
__int64 __fastcall SetupGravityModPopup::textChanged(SetupGravityModPopup *this, CCTextInputNode *a2)
{
char *v4; // x21
__int64 v5[2]; // [xsp+30h] [xbp+30h] BYREF
char *v6; // [xsp+40h] [xbp+40h]
if ( !*((_BYTE *)this + 732) )
{
CCTextInputNode::getString(a2, v5);
if ( (v5[0] & 1) != 0 )
{
v4 = v6;
*((_DWORD *)this + 182) = atoi(v6);
operator delete(v4);
}
else
{
*((_DWORD *)this + 182) = atoi((const char *)v5 + 1);
}
SetupGravityModPopup::updateItemID((__int64)this);
}
return _stack_chk_guard;
}