//
// sub_10055DCE0 from 0x10055dce0 to 0x10055dda4 (196 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d4dd0
//
// 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:08:05 +0000
//
__int64 __fastcall sub_10055DCE0(__int64 a1)
{
__int64 v1; // x19
__int64 v2; // x20
int v3; // w9
int v4; // w21
int v5; // w8
__int64 v6; // x22
__int64 v7; // x0
v1 = *(_QWORD *)(a1 + 8);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v1 + 24LL))(v1) )
v2 = v1;
else
v2 = 0;
if ( *(_QWORD *)(v1 + 56) )
{
v3 = *(_DWORD *)(v1 + 24);
if ( v3 >= 1 )
{
v4 = 0;
v5 = *(_DWORD *)(v1 + 28);
do
{
if ( v5 >= 1 )
{
v6 = 0;
do
{
v7 = *(_QWORD *)(*(_QWORD *)(v1 + 56) + 8 * (v6 + v4 * v5));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 40LL))(v7);
v5 = *(_DWORD *)(v1 + 28);
++v6;
}
while ( (int)v6 < v5 );
v3 = *(_DWORD *)(v1 + 24);
}
++v4;
}
while ( v4 < v3 );
}
*(_DWORD *)(v1 + 48) = 0;
}
if ( v2 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 32LL))(v2);
return 0;
}