//
// sub_835D10 from 0x835d10 to 0x835d40 (48 bytes)
//
// 2 xrefs:
// > sub_8280FC @ 0x828130
// > sub_828178 @ 0x828194
//
// 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:12 +0000
//
int __fastcall sub_835D10(_BYTE *a1, int a2, char *a3, int *a4)
{
int result; // r0
_BYTE *v5; // [sp+4h] [bp-Ch] BYREF
int v6; // [sp+8h] [bp-8h]
int v7; // [sp+Ch] [bp-4h]
v7 = a2;
v5 = a1;
v6 = 0;
result = sub_83508C((unsigned int *)&v5, a3, a4);
if ( result != -1 && v7 )
{
if ( v7 == v6 )
*(v5 - 1) = 0;
else
*v5 = 0;
}
return result;
}