//
// SetupObjectTogglePopup::valueDidChange from 0x100238254 to 0x1002382c4 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x100903ad8
//
// 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 11:01:20 +0000
//
__int64 __fastcall SetupObjectTogglePopup::valueDidChange(__int64 result, int a2, __n128 a3)
{
__int64 v3; // x19
__int64 v4; // x20
__int64 v5; // x0
if ( a2 == 56 )
{
if ( *(_QWORD *)(result + 680) )
v3 = sub_1002E73C8(a3);
else
v3 = *(_QWORD *)(result + 688);
result = sub_1002E757C(v3);
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = sub_1002E75A0(v3, v4);
sub_10042C92C(v5);
v4 = (unsigned int)(v4 + 1);
result = sub_1002E757C(v3);
}
while ( (unsigned int)v4 < (unsigned int)result );
}
}
return result;
}