//
// TextArea::colorAllCharactersTo from 0x14008a890 to 0x14008a936 (166 bytes)
//
// 17 xrefs:
// > AccountLayer::updatePage @ 0x140093f21
// > AccountLayer::backupAccountFinished @ 0x1400942fe
// > AccountLayer::backupAccountFailed @ 0x140094678
// > AccountLayer::syncAccountFinished @ 0x1400947b7
// > AccountLayer::syncAccountFailed @ 0x140094a29
// > AccountHelpLayer::updatePage @ 0x1400954c7
// > ThreadViewPopup::mountVirtualRow @ 0x1400e289b
// > ThreadViewPopup::mountVirtualRow @ 0x1400e2983
// > ThreadDescPopup::buildUI @ 0x1400fd3eb
// > ThreadDescPopup::textChanged @ 0x1400fd5d0
// > ThreadDescPopup::textChanged @ 0x1400fd6b3
// > CommentCell::loadFromComment @ 0x140153695
// > SoundPackDescPopup::textChanged @ 0x140199ca0
// > SoundPackDescPopup::textChanged @ 0x140199d83
// > ??> @ 0x14088c05c
// > ??> @ 0x14088c06c
// > ??> @ 0x140912740
//
// This function is hookable on this platform (idp: pc, 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 11:25:58 +0000
//
__int64 __fastcall TextArea::colorAllCharactersTo(__int64 a1, __int64 a2)
{
__int64 result; // rax
int *v4; // r13
__int64 v5; // r15
__int64 i; // rdi
__int64 v7; // rcx
__int64 v8; // rbx
int *v9; // rsi
__int64 v10; // rbp
__int64 (__fastcall ***v11)(_QWORD, __int64); // rcx
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 616) + 480LL))(*(_QWORD *)(a1 + 616));
v4 = *(int **)(result + 56);
v5 = *v4;
if ( v5 > 0 )
{
for ( i = 0; i < v5; ++i )
{
v7 = *(_QWORD *)(*((_QWORD *)v4 + 2) + 8 * i);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 480LL))(v7);
v8 = 0;
v9 = *(int **)(result + 56);
v10 = *v9;
if ( v10 > 0 )
{
do
{
v11 = (__int64 (__fastcall ***)(_QWORD, __int64))(*(_QWORD *)(*((_QWORD *)v9 + 2) + 8 * v8) + 320LL);
result = (**v11)(v11, a2);
++v8;
}
while ( v8 < v10 );
}
}
}
return result;
}