//
// TextArea::colorAllCharactersTo from 0x3d984c to 0x3d98aa (94 bytes)
//
// 14 xrefs:
// > CommentCell::loadFromComment @ 0x433cbe
// > AccountLayer::backupAccountFinished @ 0x584338
// > AccountLayer::syncAccountFinished @ 0x58440c
// > AccountLayer::syncAccountFailed @ 0x584538
// > AccountLayer::updatePage @ 0x584812
// > AccountLayer::backupAccountFailed @ 0x5851a8
// > AccountHelpLayer::updatePage @ 0x58534c
// > GJWriteMessagePopup::updateText @ 0x5ddf90
// > GJWriteMessagePopup::updateText @ 0x5de012
// > ThreadDescPopup::textChanged @ 0x74d60c
// > ThreadDescPopup::buildUI @ 0x7545c0
// > ThreadViewPopup::mountVirtualRow @ 0x75f836
// > ThreadViewPopup::mountVirtualRow @ 0x75f8e0
// > SoundPackDescPopup::textChanged @ 0x785be4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:46 +0000
//
int __fastcall TextArea::colorAllCharactersTo(int a1, int a2)
{
int v2; // r4
int result; // r0
int *v4; // r7
int v5; // r9
int v6; // r5
int v7; // r0
int *v8; // r8
int v9; // r10
int v10; // r0
int v11; // [sp+4h] [bp-4h] BYREF
v2 = 0;
v11 = a2;
result = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 520) + 244))(*(_DWORD *)(a1 + 520));
v4 = *(int **)(result + 52);
v5 = *v4;
while ( v2 < v5 )
{
v6 = 0;
v7 = *(_DWORD *)(v4[3] + 4 * v2);
result = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 244))(v7);
v8 = *(int **)(result + 52);
v9 = *v8;
while ( v6 < v9 )
{
v10 = *(_DWORD *)(v8[3] + 4 * v6++);
result = (*(int (__fastcall **)(int, int *))(*(_DWORD *)v10 + 480))(v10, &v11);
}
++v2;
}
return result;
}