//
// sub_1005F4BD0 from 0x1005f4bd0 to 0x1005f4d04 (308 bytes)
//
// 2 xrefs:
// > sub_1005CA658 @ 0x1005ca770
// > sub_1005D02B4 @ 0x1005d0348
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall sub_1005F4BD0(__int64 a1, int *a2, int a3)
{
__int64 v5; // x26
__int64 v6; // x25
__int64 v7; // x27
const char *v8; // x8
int v9; // w0
v5 = 0;
v6 = *((_QWORD *)a2 + 1);
v7 = *a2;
while ( 1 )
{
if ( v5 >= v7 )
return (unsigned int)sub_1005DA72C(a1, (__int64)"\n", 1) == 1;
if ( !((int)v5 % 18) )
{
if ( (int)sub_1005DA72C(a1, (__int64)"\n", 1) < 1 )
return 0;
if ( (int)sub_1005DAA18(a1, a3, a3) < 1 )
break;
}
if ( (_DWORD)v7 - 1 == (_DWORD)v5 )
v8 = "";
else
v8 = ":";
v9 = sub_1005DCA40(a1, "%02x%s", *(unsigned __int8 *)(v6 + v5++), v8);
if ( v9 < 1 )
return 0;
}
return 0;
}