//
// pugi::as_wide from 0x8156c2 to 0x8156de (28 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:01:41 +0000
//
unsigned int *__fastcall pugi::as_wide(unsigned int *a1, unsigned __int8 *a2)
{
int v3; // r2
unsigned __int8 *v5; // r1
unsigned int v6; // r2
v3 = *a2;
if ( (v3 & 1) != 0 )
{
v5 = *((unsigned __int8 **)a2 + 2);
v6 = *((_DWORD *)a2 + 1);
}
else
{
v5 = a2 + 1;
v6 = v3 >> 1;
}
sub_8115F8(a1, v5, v6);
return a1;
}