//
// std::__ndk1::__put_character_sequence> from 0x8b7d14 to 0x8b7ed8 (452 bytes)
//
// 29 xrefs:
// > compareStrings @ 0x8b7fd0
// > compareStrings @ 0x8b8048
// > compareStrings @ 0x8b8060
// > compareStrings @ 0x8b80b8
// > compareStrings @ 0x8b80f0
// > compareStrings @ 0x8b8100
// > compareStrings @ 0x8b811c
// > compareStrings @ 0x8b8154
// > compareStrings @ 0x8b8160
// > compareStrings @ 0x8b8200
// > cocos2d::ZipUtils::urlDecode @ 0xd9cbbc
// > cocos2d::ZipUtils::urlDecode @ 0xd9cc1c
// > DS_Dictionary::setVec2ForKey @ 0xdbcd34
// > DS_Dictionary::setVec2ForKey @ 0xdbcd54
// > DS_Dictionary::setVec2ForKey @ 0xdbcd78
// > DS_Dictionary::setRectForKey @ 0xdbd0bc
// > DS_Dictionary::setRectForKey @ 0xdbd0d8
// > DS_Dictionary::setRectForKey @ 0xdbd0f8
// > DS_Dictionary::setRectForKey @ 0xdbd114
// > DS_Dictionary::setRectForKey @ 0xdbd138
// > DS_Dictionary::setVec2ArrayForKey @ 0xdbd64c
// > DS_Dictionary::setVec2ArrayForKey @ 0xdbd674
// > DS_Dictionary::setVec2ArrayForKey @ 0xdbd6a0
// > DS_Dictionary::setRectArrayForKey @ 0xdbda90
// > DS_Dictionary::setRectArrayForKey @ 0xdbdab4
// > DS_Dictionary::setRectArrayForKey @ 0xdbdadc
// > DS_Dictionary::setRectArrayForKey @ 0xdbdb04
// > DS_Dictionary::setRectArrayForKey @ 0xdbdb2c
// > ??> @ 0xa8028
//
// 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 12:56:26 +0000
//
_QWORD *__fastcall std::__put_character_sequence>(_QWORD *a1, __int64 a2, __int64 a3)
{
__int64 v4; // x1
char *v7; // x0
_QWORD *v8; // x0
__int64 v9; // x20
__int64 v10; // x25
__int64 v11; // x23
__int64 v12; // x26
int v13; // w5
__int64 v15; // x0
int v16; // w22
__int64 v17; // [xsp+70h] [xbp+70h] BYREF
char v18[8]; // [xsp+78h] [xbp+78h] BYREF
_QWORD *v19; // [xsp+80h] [xbp+80h]
v18[0] = 0;
v4 = *a1;
v19 = a1;
v7 = (char *)a1 + *(_QWORD *)(v4 - 24);
if ( !*((_DWORD *)v7 + 8) )
{
v8 = *((_QWORD **)v7 + 17);
if ( v8 )
{
std::ostream::flush(v8);
v4 = *a1;
}
v18[0] = 1;
v9 = (__int64)a1 + *(_QWORD *)(v4 - 24);
v10 = *(_QWORD *)(v9 + 40);
if ( (*(_DWORD *)(v9 + 8) & 0xB0) == 0x20 )
{
v12 = a2 + a3;
v11 = a2 + a3;
}
else
{
v11 = a2 + a3;
v12 = a2;
}
v13 = *(_DWORD *)(v9 + 144);
if ( v13 == -1 )
{
std::ios_base::getloc(&v17, (std::ios_base *)v9);
v15 = std::locale::use_facet((std::locale *)&v17, (std::locale::id *)&std::ctype::id);
v16 = (*(unsigned __int8 (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 56LL))(v15, 32);
std::locale::~locale((std::locale *)&v17);
*(_DWORD *)(v9 + 144) = v16;
LOBYTE(v13) = v16;
}
if ( !sub_8B7B34(v10, a2, v12, v11, v9, v13) )
std::ios_base::clear(
(std::ios_base *)((char *)a1 + *(_QWORD *)(*a1 - 24LL)),
*(_DWORD *)((char *)a1 + *(_QWORD *)(*a1 - 24LL) + 32) | 5);
}
std::ostream::sentry::~sentry((__int64)v18);
return a1;
}