//
// sub_846098 from 0x846098 to 0x8460ea (82 bytes)
//
// 4 xrefs:
// > sub_82EB00 @ 0x82f612
// > sub_837220 @ 0x837318
// > sub_837220 @ 0x837394
// > sub_854AF8 @ 0x854b1c
//
// 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:24 +0000
//
char *__fastcall sub_846098(int a1, char *a2)
{
char *result; // r0
char *v4; // r6
int i; // r2
result = off_D200B8(a2);
v4 = result;
if ( result )
{
result = (char *)off_D200AC(8u);
if ( result )
{
*(_DWORD *)result = v4;
*((_DWORD *)result + 1) = 0;
if ( a1 )
{
for ( i = a1; *(_DWORD *)(i + 4); i = *(_DWORD *)(i + 4) )
;
*(_DWORD *)(i + 4) = result;
return (char *)a1;
}
}
else
{
off_D200B0(v4);
return nullptr;
}
}
return result;
}