//
// std::__ndk1::collate_byname::collate_byname from 0xf6e294 to 0xf6e3a4 (272 bytes)
//
// 4 xrefs:
// > sub_F6A1A8 @ 0xf6a310
// > sub_F6B1B0 @ 0xf6b2e0
// > ??> @ 0xa96f0
// > ??> @ 0xb8858
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:13:38 +0000
//
// Alternative name is '_ZNSt6__ndk114collate_bynameIcEC2ERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEm'
__int64 __fastcall std::collate_byname::collate_byname(_QWORD *a1, __int64 a2, __int64 a3)
{
__int64 result; // x0
void *exception; // x0
__int64 v7; // x1
void *v8; // x20
unsigned __int64 v9[4]; // [xsp+0h] [xbp-40h] BYREF
v9[3] = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
*a1 = off_1534158;
a1[1] = a3 - 1;
result = newlocale();
a1[2] = result;
if ( !result )
{
exception = _cxa_allocate_exception(0x10u);
v7 = a2;
v8 = exception;
std::operator+("collate_byname::collate_byname failed to construct for ", v7, v9);
std::runtime_error::runtime_error(v8, v9);
_cxa_throw(
v8,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))std::overflow_error::~overflow_error);
}
_ReadStatusReg(TPIDR_EL0);
return result;
}