//
// sub_100607840 from 0x100607840 to 0x100607904 (196 bytes)
//
// 3 xrefs:
// > sub_10060A0C0 @ 0x10060a0c8
// > sub_10060A294 @ 0x10060a2bc
// > sub_10060A294 @ 0x10060a308
//
// 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
//
_BYTE *__fastcall sub_100607840(char *a1, __int64 a2)
{
__int64 v2; // x19
_BYTE *result; // x0
_BYTE *v5; // x8
__int64 v6; // x8
_BYTE *v7; // x10
char v8; // t1
v2 = a2;
result = nullptr;
if ( a1 && a2 )
{
result = sub_100588710((unsigned int)(3 * a2 + 1), (__int64)"v3_utl.c", 415);
if ( result )
{
v5 = result;
if ( v2 >= 1 )
{
v6 = 3 * v2;
v7 = result;
do
{
*v7 = a0123456789abcd_9[(unsigned __int64)(unsigned __int8)*a1 >> 4];
v8 = *a1++;
v7[1] = a0123456789abcd_9[v8 & 0xF];
v7[2] = 58;
--v2;
v7 += 3;
}
while ( v2 );
v5 = &result[v6];
}
*(v5 - 1) = 0;
}
else
{
sub_1005E0E48(34, 111, 65, (__int64)"v3_utl.c", 416);
return nullptr;
}
}
return result;
}