//
// sub_100451DDC from 0x100451ddc to 0x100451e78 (156 bytes)
//
// 3 xrefs:
// > sub_1004513E0 @ 0x100451ab4
// > sub_100451B78 @ 0x100451bec
// > sub_100451BF0 @ 0x100451c80
//
// 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:21 +0000
//
__int64 __fastcall sub_100451DDC(__int64 a1)
{
unsigned int v2; // w20
__int64 v3; // x0
__int64 result; // x0
unsigned int v5; // w20
__int64 v6; // x0
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 1016)) )
{
v2 = 0;
do
{
v3 = sub_1002E75A0(*(_QWORD *)(a1 + 1016), v2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, *(unsigned __int8 *)(a1 + 1076));
++v2;
}
while ( v2 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 1016)) );
}
result = sub_1002E757C(*(_QWORD *)(a1 + 1024));
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(*(_QWORD *)(a1 + 1024), v5);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, *(unsigned __int8 *)(a1 + 1077));
++v5;
result = sub_1002E757C(*(_QWORD *)(a1 + 1024));
}
while ( v5 < (unsigned int)result );
}
return result;
}