//
// sub_82D5DC from 0x82d5dc to 0x82d664 (136 bytes)
//
// 1 xrefs:
// > sub_83168C @ 0x831d0e
//
// 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:01 +0000
//
int __fastcall sub_82D5DC(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_833E74(a1, v8, 0, a2 + 252, 0, 0);
if ( !v6 )
return sub_833E74(a1, (char *)v9, 0, a2 + 256, 0, 0);
return v6;
}