//
// sub_82E534 from 0x82e534 to 0x82e5d2 (158 bytes)
//
// 1 xrefs:
// > sub_83B158 @ 0x83b18c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:02:02 +0000
//
int __fastcall sub_82E534(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_D200B0(v6);
v10 = v8;
*v5 = nullptr;
if ( v8 )
{
v11 = off_D200B8(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_844F28(v14);
a1[300] = (char *)v15;
if ( !v15 )
return 27;
a1[99] = (char *)v15;
return 0;
}