//
// std::__ndk1::ios_base::imbue from 0xf43190 to 0xf4321c (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x46df8
//
// 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:08 +0000
//
__int64 __usercall std::ios_base::imbue@(
std::ios_base *this@,
const std::locale *a2@,
std::locale *a3@)
{
char *v4; // x22
__int64 result; // x0
__int64 v7; // x8
__int64 v8; // x21
v4 = (char *)this + 48;
std::locale::locale(a3, (std::ios_base *)((char *)this + 48));
result = std::locale::operator=(v4, a2);
v7 = *((_QWORD *)this + 9);
if ( v7 )
{
v8 = v7 - 1;
do
{
result = (*(__int64 (__fastcall **)(__int64, std::ios_base *, _QWORD))(*((_QWORD *)this + 7) + 8 * v8))(
1,
this,
*(unsigned int *)(*((_QWORD *)this + 8) + 4 * v8));
--v8;
}
while ( v8 != -1 );
}
return result;
}