//
// sub_85014C from 0x85014c to 0x850262 (278 bytes)
//
// 1 xrefs:
// > sub_84DC64 @ 0x84df76
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:02:30 +0000
//
int __fastcall sub_85014C(int a1, char *a2, const char *a3, char *a4, const char **a5, size_t *a6)
{
size_t v9; // r7
unsigned int v10; // r0
int *v11; // r5
char *v12; // r0
char *v13; // r6
int v14; // r5
unsigned int v16; // r0
_BYTE v17[20]; // [sp+38h] [bp-14h] BYREF
if ( a2 )
{
v9 = strlen(a2);
strlen(a4);
nullsub_1();
v11 = sub_84B8A8((int)&off_D132E4, a4, v10);
if ( !v11 )
return 27;
if ( v9 )
{
nullsub_1();
sub_84B980(v11);
}
}
else
{
strlen(a4);
nullsub_1();
v11 = sub_84B8A8((int)&off_D132E4, a4, v16);
if ( !v11 )
return 27;
}
sub_84B990(v11, (int)v17);
v12 = sub_837044(
"%s %02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
a3,
v17[0],
v17[1],
v17[2],
v17[3],
v17[4],
v17[5],
v17[6],
v17[7],
v17[8],
v17[9],
v17[10],
v17[11],
v17[12],
v17[13],
v17[14],
v17[15]);
v13 = v12;
if ( v12 )
{
v14 = sub_81FC8C(a1, v12, 0, a5, a6);
off_D200B0(v13);
return v14;
}
return 27;
}