//
// sub_61D55C from 0x61d55c to 0x61d5e4 (136 bytes)
//
// 1 xrefs:
// > sub_62160C @ 0x621c8e
//
// 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_61D55C(int a1, int a2)
{
const char *v4; // r1
const char *v5; // r1
int v6; // r2
char v8[256]; // [sp+8h] [bp-100h] BYREF
_DWORD v9[64]; // [sp+108h] [bp+0h] BYREF
memset(v8, 0, sizeof(v8));
memset(v9, 0, sizeof(v9));
v4 = *(const char **)(a1 + 1136);
if ( v4 )
{
strncpy(v8, v4, 0x100u);
v8[255] = 0;
}
v5 = *(const char **)(a1 + 1140);
if ( v5 )
{
strncpy((char *)v9, v5, 0x100u);
HIBYTE(v9[63]) = 0;
}
v6 = sub_623DF4(a1, v8, 0, a2 + 252, 0, 0);
if ( !v6 )
return sub_623DF4(a1, (char *)v9, 0, a2 + 256, 0, 0);
return v6;
}