//
// sub_7743B0 from 0x7743b0 to 0x7743fc (76 bytes)
//
// 0 xrefs:
//
// 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_7743B0(int **a1, char a2)
{
int *v2; // r3
int v4; // r2
int v6; // r5
int **result; // r0
int *v8; // r2
v2 = *a1;
v4 = *(*a1 - 3);
v6 = v4 + 1;
if ( v4 + 1 > (unsigned int)*(*a1 - 2) || *(v2 - 1) > 0 )
{
sub_7740F8((_BYTE **)a1, v4 + 1);
v2 = *a1;
v4 = *(*a1 - 3);
}
*((_BYTE *)v2 + v4) = a2;
result = a1;
v8 = *a1;
if ( *a1 - 3 != &dword_ACDD9C )
{
*(v8 - 3) = v6;
*(v8 - 1) = 0;
*((_BYTE *)v8 + v6) = 0;
}
return result;
}