//
// TextArea::colorAllCharactersTo from 0x10011b844 to 0x10011b900 (188 bytes)
//
// 15 xrefs:
// > CommentCell::loadFromComment @ 0x10012bd30
// > CommentCell::loadFromComment @ 0x10012bda8
// > sub_1001EEF50 @ 0x1001eef8c
// > sub_1001EEF50 @ 0x1001eefe8
// > AccountLayer::backupAccountFinished @ 0x1001ef4f0
// > AccountLayer::backupAccountFailed @ 0x1001ef770
// > AccountLayer::syncAccountFinished @ 0x1001ef888
// > AccountLayer::syncAccountFailed @ 0x1001efa44
// > sub_1001F0350 @ 0x1001f0388
// > sub_1001F0350 @ 0x1001f03e4
// > SoundPackDescPopup::textChanged @ 0x1004d5440
// > ThreadViewPopup::mountVirtualRow @ 0x100500970
// > ThreadViewPopup::mountVirtualRow @ 0x100500c34
// > ThreadDescPopup::buildUI @ 0x1005134ec
// > ThreadDescPopup::textChanged @ 0x100513b08
//
// 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 10:59:13 +0000
//
__int64 __fastcall TextArea::colorAllCharactersTo(__int64 a1, int a2)
{
__int64 result; // x0
unsigned int *v3; // x19
__int64 v4; // x20
__int64 i; // x21
__int64 v6; // x0
unsigned int *v7; // x22
__int64 v8; // x8
__int64 v9; // x23
__int64 v10; // x24
__int16 v11; // [xsp+Ch] [xbp-34h] BYREF
char v12; // [xsp+Eh] [xbp-32h]
v11 = a2;
v12 = BYTE2(a2);
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 608) + 488LL))(*(_QWORD *)(a1 + 608));
v3 = *(unsigned int **)(result + 56);
v4 = *v3;
if ( (int)v4 >= 1 )
{
for ( i = 0; i != v4; ++i )
{
v6 = *(_QWORD *)(*((_QWORD *)v3 + 2) + 8 * i);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 488LL))(v6);
v7 = *(unsigned int **)(result + 56);
v8 = *v7;
if ( (int)v8 >= 1 )
{
v9 = 0;
v10 = 8 * v8;
do
{
result = (*(__int64 (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(*((_QWORD *)v7 + 2) + v9) + 960LL))(
*(_QWORD *)(*((_QWORD *)v7 + 2) + v9),
&v11);
v9 += 8;
}
while ( v10 != v9 );
}
}
}
return result;
}