//
// sub_61E4B4 from 0x61e4b4 to 0x61e552 (158 bytes)
//
// 1 xrefs:
// > sub_62B0D8 @ 0x62b10c
//
// 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_61E4B4(char **a1, int a2)
{
int v4; // r5
char **v5; // r4
char *v6; // r0
char *v7; // t1
const char *v8; // t1
int v9; // r2
const char *v10; // r0
char *v11; // r0
__int64 v13; // r0
int v14; // r4
int v15; // r0
memcpy(a1 + 84, (const void *)(a2 + 336), 0x3C8u);
v4 = a2 + 956;
memset(a1 + 240, 0, 0xF4u);
v5 = a1 + 239;
do
{
v7 = v5[1];
++v5;
v6 = v7;
v8 = *(const char **)(v4 + 4);
v4 += 4;
off_ABAEB0(v6);
v10 = v8;
*v5 = nullptr;
if ( v8 )
{
v11 = off_ABAEB8(v10);
if ( !v11 )
return 27;
*v5 = v11;
}
}
while ( v5 != a1 + 298 );
v13 = *(_QWORD *)(a2 + 408);
if ( !v13 )
return 0;
v14 = *(_DWORD *)(a2 + 1200);
if ( !v14 )
return 0;
nullsub_3(v13, HIDWORD(v13), v9, v13 | HIDWORD(v13));
v15 = sub_634EA8(v14);
a1[300] = (char *)v15;
if ( !v15 )
return 27;
a1[99] = (char *)v15;
return 0;
}