//
// sub_62704C from 0x62704c to 0x6270aa (94 bytes)
//
// 5 xrefs:
// > sub_611760 @ 0x611774
// > sub_614F6C @ 0x614f84
// > sub_6181B4 @ 0x6181ce
// > sub_63A6F4 @ 0x63a712
// > sub_63A7E4 @ 0x63a808
//
// 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_62704C(char *a1, int *a2)
{
char *result; // r0
void *p; // [sp+0h] [bp-10h] BYREF
int v4; // [sp+4h] [bp-Ch]
char *v5; // [sp+8h] [bp-8h]
int v6; // [sp+Ch] [bp-4h]
p = nullptr;
v4 = 0;
v5 = nullptr;
v6 = 0;
if ( sub_624680((int)&p, (int (*)(void))sub_623FB4, a1, a2) == -1 || v6 )
{
result = v5;
if ( v5 )
{
off_ABAEB0(p);
return nullptr;
}
}
else if ( v5 )
{
*((_BYTE *)p + v4) = v6;
return (char *)p;
}
else
{
return off_ABAEB8(&byte_9B1912);
}
return result;
}