//
// _ZNSt6__ndk112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6assignIPwEENS_9enable_ifIXaasr21__is_forward_iteratorIT_EE5valuesr38__libcpp_string_gets_noexcept_iteratorIS9_EE5valueERS5_E4typeES9_S9_ from 0x975b98 to 0x975c2e (150 bytes)
//
// 12 xrefs:
// > ??> @ 0x9684ae
// > ??> @ 0x96850a
// > ??> @ 0x968566
// > std::__ndk1::moneypunct_byname::init @ 0x968946
// > std::__ndk1::moneypunct_byname::init @ 0x9689a2
// > std::__ndk1::moneypunct_byname::init @ 0x9689fe
// > std::__ndk1::__time_get_storage::init @ 0x975774
// > std::__ndk1::__time_get_storage::init @ 0x9757cc
// > std::__ndk1::__time_get_storage::init @ 0x97583a
// > std::__ndk1::__time_get_storage::init @ 0x97588c
// > std::__ndk1::__time_get_storage::init @ 0x9758f4
// > std::__ndk1::__time_get_storage::init @ 0x975944
//
// 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:57 +0000
//
_BYTE *__fastcall std::wstring::assign(_BYTE *a1, char *a2, char *a3)
{
_BYTE *v3; // r4
char *v5; // r6
unsigned int v6; // r8
unsigned int v7; // r9
unsigned int v8; // r1
int v9; // r3
_DWORD *v10; // r0
unsigned int v11; // r1
_DWORD *v12; // r2
int v13; // t1
v3 = a1;
v5 = a2;
v6 = a3 - a2;
LOBYTE(a1) = *a1;
v7 = (a3 - a2) >> 2;
if ( ((unsigned __int8)a1 & 1) != 0 )
{
a1 = *(_BYTE **)v3;
v8 = (*(_DWORD *)v3 & 0xFFFFFFFE) - 1;
}
else
{
v8 = 1;
}
if ( v7 > v8 )
{
if ( ((unsigned __int8)a1 & 1) != 0 )
v9 = *((_DWORD *)v3 + 1);
else
v9 = (unsigned __int8)a1 >> 1;
std::wstring::__grow_by(v3, v8, v7 - v8, v9, 0, v9, 0);
LOBYTE(a1) = *v3;
}
if ( ((unsigned __int8)a1 & 1) != 0 )
v10 = *((_DWORD **)v3 + 2);
else
v10 = v3 + 4;
if ( v5 != a3 )
{
v11 = ((unsigned int)(a3 - 4 - v5) >> 2) + 1;
v12 = v10;
do
{
v13 = *(_DWORD *)v5;
v5 += 4;
*v12++ = v13;
}
while ( a3 != v5 );
v10 += v11;
}
*v10 = 0;
if ( (*v3 & 1) != 0 )
*((_DWORD *)v3 + 1) = v7;
else
*v3 = v6 >> 1;
return v3;
}