//
// sub_10007C028 from 0x10007c028 to 0x10007c0e4 (188 bytes)
//
// 2 xrefs:
// > sub_10007BBFC @ 0x10007bc18
// > sub_10007BEFC @ 0x10007bf24
//
// 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:58:15 +0000
//
__int64 __fastcall sub_10007C028(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x21
__int64 v4; // x22
__int64 v5; // x23
__int64 v6; // x0
__int64 v7; // x0
v2 = sub_1002E736C(a1);
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 672)) )
{
v3 = 0;
do
{
v4 = sub_1002E75A0(*(_QWORD *)(a1 + 672), v3);
if ( (unsigned int)sub_1002E757C(v4) )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(v4, v5);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1072LL))(v6);
if ( *(_BYTE *)(v7 + 360) == 1 )
sub_1002E74E0(v2, v7);
v5 = (unsigned int)(v5 + 1);
}
while ( (unsigned int)v5 < (unsigned int)sub_1002E757C(v4) );
}
v3 = (unsigned int)(v3 + 1);
}
while ( (unsigned int)v3 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 672)) );
}
return v2;
}