//
// sub_75C2D4 from 0x75c2d4 to 0x75c316 (66 bytes)
//
// 8 xrefs:
// > sub_75D698 @ 0x75d6e8
// > sub_75D698 @ 0x75d70e
// > sub_75DFB0 @ 0x75e000
// > sub_75DFB0 @ 0x75e026
// > sub_75E5A0 @ 0x75e5f0
// > sub_75E5A0 @ 0x75e616
// > sub_75EC84 @ 0x75ecd4
// > sub_75EC84 @ 0x75ecfa
//
// 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
//
int __fastcall sub_75C2D4(_BYTE *a1, int a2, int a3)
{
size_t v3; // r5
int v5; // r0
int *v6; // r4
int v7; // r7
int result; // r0
v3 = a2 - (_DWORD)a1;
v5 = sub_774FAC(a2 - (_DWORD)a1, 0, a3);
v6 = (int *)v5;
v7 = v5 + 12;
if ( v3 == 1 )
*(_BYTE *)(v5 + 12) = *a1;
else
memcpy((void *)(v5 + 12), a1, v3);
result = v7;
if ( v6 != &dword_ACDD9C )
{
*v6 = v3;
v6[2] = 0;
*((_BYTE *)v6 + v3 + 12) = 0;
}
return result;
}