//
// sub_10011D610 from 0x10011d610 to 0x10011d6d0 (192 bytes)
//
// 1 xrefs:
// > SetupSpawnPopup::updateRemapButtons @ 0x10011d3a8
//
// 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 10:59:13 +0000
//
__int64 __fastcall sub_10011D610(__int64 result, __int64 a2)
{
__int64 v2; // x19
int v3; // w0
__int64 v4; // x9
int *v5; // x9
int v6; // w8
int v7; // w9
if ( (*(_BYTE *)(result + 1012) & 1) == 0 )
{
v2 = result;
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *(_QWORD *)(v2 + 1024);
if ( v3 >= (unsigned __int64)((*(_QWORD *)(v2 + 1032) - v4) >> 3) )
sub_10011D70C();
v5 = (int *)(v4 + 8LL * v3);
v6 = *v5;
if ( *(_DWORD *)(v2 + 1048) == *v5 )
{
v7 = v5[1];
if ( *(_DWORD *)(v2 + 1052) == v7 )
{
*(_QWORD *)(v2 + 1048) = 0;
return sub_10011D5B8(v2);
}
}
else
{
v7 = v5[1];
}
*(_DWORD *)(v2 + 1048) = v6;
*(_DWORD *)(v2 + 1052) = v7;
sub_1001AFA70(v2, 0xFFFFFFFFLL, (float)v6);
sub_1001AFA70(v2, 4294967294LL, (float)*(int *)(v2 + 1052));
return sub_10011D5B8(v2);
}
return result;
}