//
// sub_10073C268 from 0x10073c268 to 0x10073c324 (188 bytes)
//
// 1 xrefs:
// > sub_10073B400 @ 0x10073b43c
//
// 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:17 +0000
//
_BYTE *__fastcall sub_10073C268(char *__s, int a2, _QWORD *a3, _DWORD *a4)
{
int v6; // w23
__int64 v8; // x24
_BYTE *result; // x0
__int64 v10; // x8
_BYTE *v11; // x9
v6 = a2;
if ( a2 == -1 )
v6 = strlen(__s);
v8 = 2LL * v6;
result = sub_1006AE878((unsigned int)(v8 + 2), (__int64)"p12_utl.c", 74);
if ( !result )
return nullptr;
if ( v6 >= 1 )
{
v10 = 0;
do
{
v11 = &result[v10];
*v11 = 0;
v11[1] = __s[(int)v10 >> 1];
v10 += 2;
}
while ( v10 < v8 );
}
result[2 * v6] = 0;
result[(int)(v8 | 1)] = 0;
if ( a4 )
*a4 = v8 + 2;
if ( a3 )
*a3 = result;
return result;
}