//
// sub_96E928 from 0x96e928 to 0x96e9fe (214 bytes)
//
// 1 xrefs:
// > std::__ndk1::locale::__install_ctor @ 0x96eeb4
//
// 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:05:50 +0000
//
int __fastcall sub_96E928(int a1, int a2, std::__shared_count *a3)
{
__int64 v5; // r0
_DWORD *v6; // r6
unsigned int v8; // r1
__int64 v9; // kr00_8
unsigned int v10; // r4
std::__shared_count *v11; // r0
HIDWORD(v5) = -1;
v6 = (_DWORD *)(a1 + 8);
LODWORD(v5) = &byte_8[loc_96EA00 + 9890110];
*(_QWORD *)a1 = v5;
v8 = ((*(_DWORD *)(a2 + 12) - *(_DWORD *)(a2 + 8)) >> 2) + 1;
if ( v8 <= 0x1C )
v8 = 28;
sub_96D5D0((int)v6, v8);
*(_DWORD *)(a1 + 144) = 0;
*(_DWORD *)(a1 + 148) = 0;
*(_DWORD *)(a1 + 152) = 0;
std::string::__init((int *)(a1 + 144), "*", 1u);
std::__shared_count::__add_shared(a3);
if ( a1 != a2 )
sub_9762F0(v6, *(_DWORD *)(a2 + 8), *(_DWORD *)(a2 + 12));
v9 = *(_QWORD *)(a2 + 8);
if ( HIDWORD(v9) != (_DWORD)v9 )
{
v10 = 0;
do
{
v11 = *(std::__shared_count **)(*v6 + 4 * v10);
if ( v11 )
{
std::__shared_count::__add_shared(v11);
v9 = *(_QWORD *)(a2 + 8);
}
++v10;
}
while ( v10 < (HIDWORD(v9) - (int)v9) >> 2 );
}
sub_96EA08(a1, a3);
if ( a3 )
std::__shared_count::__release_shared(a3);
return a1;
}