//
// sub_10072D9A8 from 0x10072d9a8 to 0x10072da6c (196 bytes)
//
// 3 xrefs:
// > sub_100730228 @ 0x100730230
// > sub_1007303FC @ 0x100730424
// > sub_1007303FC @ 0x100730470
//
// 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:13:11 +0000
//
_BYTE *__fastcall sub_10072D9A8(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_1006AE878((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_10[(unsigned __int64)(unsigned __int8)*a1 >> 4];
v8 = *a1++;
v7[1] = a0123456789abcd_10[v8 & 0xF];
v7[2] = 58;
--v2;
v7 += 3;
}
while ( v2 );
v5 = &result[v6];
}
*(v5 - 1) = 0;
}
else
{
sub_100706FB0(34, 111, 65, (__int64)"v3_utl.c", 416);
return nullptr;
}
}
return result;
}