//
// sub_100404268 from 0x100404268 to 0x100404308 (160 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::onClose @ 0x1001ae688
// > sub_1004A0628 @ 0x1004a0718
//
// 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:04:40 +0000
//
void __fastcall sub_100404268(__int64 a1, __int64 a2, __int64 a3)
{
unsigned int *v3; // x9
__int64 v4; // x8
__int64 *v5; // x20
unsigned __int64 v6; // x21
__int64 v7; // x8
if ( a2 )
{
if ( *(_BYTE *)(a2 + 1255) == 1 )
sub_10002630C((_QWORD *)(a2 + 1800), (double *)&dword_1009F7210);
}
else if ( a3 )
{
v3 = *(unsigned int **)(a3 + 56);
v4 = *v3;
if ( (_DWORD)v4 )
{
v5 = *((__int64 **)v3 + 2);
v6 = (unsigned __int64)&v5[v4 - 1];
do
{
v7 = *v5;
if ( !*v5 )
break;
if ( *(_BYTE *)(v7 + 1255) == 1 )
sub_10002630C((_QWORD *)(v7 + 1800), (double *)&dword_1009F7210);
++v5;
}
while ( (unsigned __int64)v5 <= v6 );
}
}
}