//
// sub_100521F30 from 0x100521f30 to 0x100521fb4 (132 bytes)
//
// 2 xrefs:
// > sub_100521918 @ 0x10052193c
// > ReportPopup::FLAlert_Clicked @ 0x100522008
//
// 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:07:12 +0000
//
void __usercall sub_100521F30(_QWORD *a1@, _QWORD *a2@)
{
__int64 v3; // x8
__int64 v4; // x9
__int64 v6; // x21
unsigned __int64 v7; // x22
*a2 = 0;
a2[1] = 0;
a2[2] = 0;
v3 = a1[144];
v4 = a1[143];
if ( v3 != v4 )
{
v6 = 0;
v7 = 0;
do
{
if ( *(_BYTE *)(*(_QWORD *)(v4 + 8 * v7) + 392LL) == 1 )
{
sub_10000D038((__int64)a2, (int *)(a1[140] + v6));
v3 = a1[144];
v4 = a1[143];
}
++v7;
v6 += 4;
}
while ( v7 < (v3 - v4) >> 3 );
}
}