//
// sub_9795DE from 0x9795de to 0x979620 (66 bytes)
//
// 0 xrefs:
//
// 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:06:01 +0000
//
unsigned int *__fastcall sub_9795DE(unsigned int *a1, unsigned __int8 *a2, unsigned int a3)
{
unsigned int v4; // r0
unsigned __int8 *v5; // lr
unsigned int v6; // r3
unsigned __int8 *v7; // r1
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v5 = a2 + 4;
v4 = *((_DWORD *)a2 + 1);
v6 = *a2;
if ( (v6 & 1) == 0 )
v4 = v6 >> 1;
if ( v4 < a3 )
std::__basic_string_common::__throw_out_of_range();
v7 = *((unsigned __int8 **)a2 + 2);
if ( (v6 & 1) == 0 )
v7 = v5;
std::wstring::__init(a1, (int)&v7[4 * a3], v4 - a3);
return a1;
}