//
// sub_57C48 from 0x57c48 to 0x57cbc (116 bytes)
//
// 2 xrefs:
// > sub_57C48 @ 0x57cac
// > sub_581C4 @ 0x58338
//
// 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 12:13:50 +0000
//
__int64 __fastcall sub_57C48(__int64 a1, _OWORD *a2)
{
__int64 v2; // x8
__int64 v4; // x9
__int64 i; // x10
__int64 v6; // x11
__int64 j; // x21
char v8; // zf
v2 = *(_QWORD *)(a1 + 16);
if ( v2 )
{
v4 = *(int *)(a1 + 24);
for ( i = 0; i < v4; ++i )
{
v6 = *(_QWORD *)(v2 + 8 * i);
*(_OWORD *)(v6 + 8) = *a2;
}
}
else
{
*(_OWORD *)(*(_QWORD *)(a1 + 96) + 8LL) = *a2;
}
for ( j = a1 + 400; ; sub_57C48(*(_QWORD *)(j + 16), a2) )
{
sub_5937C();
if ( v8 )
break;
}
return 0;
}