//
// TextArea::colorAllCharactersTo from 0x6b2670 to 0x6b2748 (216 bytes)
//
// 21 xrefs:
// > CommentCell::loadFromComment @ 0x74b3f8
// > CommentCell::loadFromComment @ 0x74bfd4
// > CommentCell::loadFromComment @ 0x74c8e8
// > AccountLayer::backupAccountFinished @ 0x98d1d8
// > AccountLayer::syncAccountFinished @ 0x98d314
// > AccountLayer::syncAccountFailed @ 0x98d488
// > AccountLayer::updatePage @ 0x98d6c4
// > AccountLayer::updatePage @ 0x98d8f4
// > AccountHelpLayer::updatePage @ 0x98e520
// > AccountHelpLayer::updatePage @ 0x98e638
// > AccountLayer::backupAccountFailed @ 0x98ed24
// > GJWriteMessagePopup::updateText @ 0xa2f448
// > GJWriteMessagePopup::updateText @ 0xa2f50c
// > ThreadDescPopup::textChanged @ 0xc6e234
// > ThreadDescPopup::textChanged @ 0xc6e2f0
// > ThreadDescPopup::buildUI @ 0xc7a58c
// > ThreadViewPopup::mountVirtualRow @ 0xc8c0bc
// > ThreadViewPopup::mountVirtualRow @ 0xc8c0dc
// > SoundPackDescPopup::textChanged @ 0xcce6c0
// > SoundPackDescPopup::textChanged @ 0xcce77c
// > ??> @ 0xed838
//
// 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:50:51 +0000
//
__int64 __fastcall TextArea::colorAllCharactersTo(__int64 a1, __int64 a2)
{
unsigned int *v2; // x24
__int64 result; // x0
__int64 v4; // x22
__int64 v5; // x23
__int64 v6; // x25
__int64 v7; // x19
__int64 v8; // x20
__int64 v9; // x2
__int64 v10; // [xsp+58h] [xbp+58h] BYREF
v10 = a2;
v2 = *(unsigned int **)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 608) + 488LL))(*(_QWORD *)(a1 + 608))
+ 56);
result = *v2;
if ( (int)result > 0 )
{
v4 = 0;
v5 = 8 * ((unsigned int)(result - 1) + 1LL);
do
{
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)v2 + 2) + v4) + 488LL))(*(_QWORD *)(*((_QWORD *)v2 + 2) + v4));
v6 = *(_QWORD *)(result + 56);
if ( *(int *)v6 > 0 )
{
v7 = 0;
v8 = 8 * ((unsigned int)(*(_DWORD *)v6 - 1) + 1LL);
do
{
v9 = *(_QWORD *)(*(_QWORD *)(v6 + 16) + v7);
v7 += 8;
result = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v9 + 960LL))(v9, &v10);
}
while ( v7 != v8 );
}
v4 += 8;
}
while ( v4 != v5 );
}
return result;
}