//
// TextArea::colorAllCharactersTo from 0x1000f6db0 to 0x1000f6e6c (188 bytes)
//
// 12 xrefs:
// > CommentCell::loadFromComment @ 0x100106b6c
// > CommentCell::loadFromComment @ 0x100106bdc
// > AccountLayer::updatePage @ 0x1001661e4
// > AccountLayer::updatePage @ 0x100166240
// > AccountLayer::backupAccountFinished @ 0x100166748
// > AccountLayer::backupAccountFailed @ 0x1001669c8
// > AccountLayer::syncAccountFinished @ 0x100166ae0
// > AccountLayer::syncAccountFailed @ 0x100166c9c
// > AccountHelpLayer::updatePage @ 0x1001675dc
// > AccountHelpLayer::updatePage @ 0x100167638
// > GJWriteMessagePopup::updateText @ 0x1002dd260
// > GJWriteMessagePopup::updateText @ 0x1002dd2c0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall TextArea::colorAllCharactersTo(TextArea *a1, cocos2d::ccColor3B a2)
{
unsigned int *v2; // x19
__int64 v3; // x20
__int64 i; // x21
__int64 v5; // x0
unsigned int *v6; // x22
__int64 v7; // x8
__int64 v8; // x23
__int64 v9; // x24
cocos2d::ccColor3B v10; // [xsp+Ch] [xbp-34h] BYREF
v10 = a2;
v2 = *(unsigned int **)(((__int64 (__fastcall *)(MultilineBitmapFont *))a1->m_label->getChildren)(a1->m_label) + 56);
v3 = *v2;
if ( (int)v3 >= 1 )
{
for ( i = 0; i != v3; ++i )
{
v5 = *(_QWORD *)(*((_QWORD *)v2 + 2) + 8 * i);
v6 = *(unsigned int **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 472LL))(v5) + 56);
v7 = *v6;
if ( (int)v7 >= 1 )
{
v8 = 0;
v9 = 8 * v7;
do
{
(*(void (__fastcall **)(_QWORD, cocos2d::ccColor3B *))(**(_QWORD **)(*((_QWORD *)v6 + 2) + v8) + 944LL))(
*(_QWORD *)(*((_QWORD *)v6 + 2) + v8),
&v10);
v8 += 8;
}
while ( v9 != v8 );
}
}
}
}