//
// sub_10046AC78 from 0x10046ac78 to 0x10046acec (116 bytes)
//
// 2 xrefs:
// > sub_100468D88 @ 0x100468e2c
// > sub_100468D88 @ 0x100468e40
//
// 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:34 +0000
//
void __fastcall sub_10046AC78(__int64 a1, _QWORD *a2)
{
unsigned int *v2; // x9
__int64 v3; // x8
__int64 *v5; // x20
unsigned __int64 v6; // x21
__int64 v7; // x8
a2[1] = *a2;
if ( a1 )
{
v2 = *(unsigned int **)(a1 + 56);
v3 = *v2;
if ( (_DWORD)v3 )
{
v5 = *((__int64 **)v2 + 2);
v6 = (unsigned __int64)&v5[v3 - 1];
do
{
v7 = *v5;
if ( !*v5 )
break;
if ( *(_BYTE *)(v7 + 60) == 1 )
sub_10000D038((__int64)a2, (int *)(v7 + 56));
++v5;
}
while ( (unsigned __int64)v5 <= v6 );
}
}
}