//
// sub_855D00 from 0x855d00 to 0x855d9a (154 bytes)
//
// 1 xrefs:
// > sub_85239C @ 0x852664
//
// 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:36 +0000
//
int __fastcall sub_855D00(int a1, int a2, const char *a3, char *a4)
{
size_t v7; // r9
size_t v8; // r0
size_t v9; // r4
size_t v10; // r6
int v11; // r5
char *v12; // r0
char *v13; // r7
char *v14; // r3
int v15; // r4
_DWORD *v16; // r6
v7 = strlen(a4);
v8 = strlen(a3);
v9 = v8 + v7;
v10 = v8;
v11 = v8 + v7 + 2;
v12 = (char *)off_D200AC(v11);
if ( !v12 )
return 27;
v13 = v12;
sub_8346C0(v12, v11, "%s:", a3);
memcpy(&v13[v10 + 1], a4, v7);
v14 = &v13[v9];
v15 = 0;
v14[1] = 0;
v16 = sub_846064(*(_DWORD *)(*(_DWORD *)(a1 + 34944) + 4 * a2), (int)v13);
if ( !v16 )
{
v15 = 27;
off_D200B0(v13);
sub_84619C(*(_DWORD *)(*(_DWORD *)(a1 + 34944) + 4 * a2));
}
*(_DWORD *)(*(_DWORD *)(a1 + 34944) + 4 * a2) = v16;
return v15;
}