//
// sub_10042FF04 from 0x10042ff04 to 0x10042ff38 (52 bytes)
//
// 2 xrefs:
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x100032a2c
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x100032a78
//
// 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:05:05 +0000
//
__int64 __fastcall sub_10042FF04(__int64 a1)
{
__int64 v1; // x8
__int64 v2; // x9
__int64 result; // x0
v1 = *(_QWORD *)(a1 + 1840);
v2 = *(_QWORD *)(a1 + 1848);
if ( v1 == v2 )
return 0;
LODWORD(result) = 0;
do
{
result = (unsigned int)(*(_DWORD *)(v1 + 8) + result);
v1 += 16;
}
while ( v1 != v2 );
return result;
}