//
// sub_756E9C from 0x756e9c to 0x756f16 (122 bytes)
//
// 4 xrefs:
// > sub_74EC08 @ 0x74ec62
// > sub_74EEBC @ 0x74ef16
// > sub_766888 @ 0x7668de
// > sub_766AF4 @ 0x766b4a
//
// 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_756E9C(int a1, _BYTE *a2, int a3)
{
int result; // r0
_BYTE *v4; // r3
char *v5; // r1
_BYTE *v6; // r2
char v7; // r3
char v8; // r3
result = *(_DWORD *)(a1 + 12);
*a2 = 37;
if ( (result & 0x800) != 0 )
v4 = a2 + 2;
else
v4 = a2 + 1;
if ( (result & 0x800) != 0 )
a2[1] = 43;
if ( (result & 0x400) != 0 )
*v4++ = 35;
*v4 = 46;
v4[1] = 42;
v5 = v4 + 2;
if ( a3 )
{
v5 = v4 + 3;
v4[2] = a3;
}
if ( (result & 0x104) == 4 )
{
v6 = v5 + 1;
*v5 = 102;
LABEL_17:
*v6 = 0;
return result;
}
if ( (result & 0x104) != 0x100 )
{
v6 = v5 + 1;
if ( (result & 0x4000) != 0 )
v7 = 71;
else
v7 = 103;
*v5 = v7;
goto LABEL_17;
}
if ( (result & 0x4000) != 0 )
v8 = 69;
else
v8 = 101;
*v5 = v8;
v5[1] = 0;
return result;
}