//
// sub_180080E60 from 0x180080e60 to 0x180080ed6 (118 bytes)
//
// 3 xrefs:
// > sub_18007FBB0 @ 0x18007fbf0
// > sub_18007FBB0 @ 0x18007fc71
// > ??> @ 0x1801b5214
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char __fastcall sub_180080E60(_QWORD *a1, size_t *a2, const void *a3, size_t a4, char a5)
{
size_t v5; // rbx
_BYTE *v9; // rax
_BYTE *v10; // rdi
v5 = a4;
if ( a5 )
goto LABEL_4;
v9 = off_1801A2FA0(a4 + 1);
v10 = v9;
if ( v9 )
{
memcpy(v9, a3, v5);
v10[v5] = 0;
a3 = v10;
++v5;
LABEL_4:
*a1 = a3;
*a2 = v5;
LOBYTE(v9) = 1;
}
return (char)v9;
}