//
// sub_81143C from 0x81143c to 0x811480 (68 bytes)
//
// 1 xrefs:
// > sub_8183A0 @ 0x818770
//
// 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:01:37 +0000
//
int __fastcall sub_81143C(int a1, char *a2, int a3)
{
bool v6; // r4
size_t v7; // r6
int *v8; // r0
_BYTE *v9; // r3
v6 = *a2 == 0;
if ( *a2 )
{
v7 = strlen(a2);
v8 = sub_8110DC(a3, v7 + 1);
v9 = memcpy(v8, a2, v7);
v9[v7] = 0;
}
else
{
v9 = &unk_B6B226;
}
*(_DWORD *)a1 = v9;
*(_BYTE *)(a1 + 4) = !v6;
return a1;
}