//
// TextArea::colorAllCharactersTo from 0x140077630 to 0x1400776d6 (166 bytes)
//
// 14 xrefs:
// > AccountLayer::updatePage @ 0x14007e84b
// > AccountLayer::backupAccountFinished @ 0x14007ec40
// > AccountLayer::backupAccountFailed @ 0x14007efc7
// > AccountLayer::syncAccountFinished @ 0x14007f0f7
// > AccountLayer::syncAccountFailed @ 0x14007f374
// > AccountHelpLayer::updatePage @ 0x14007fdb7
// > CommentCell::loadFromComment @ 0x1400b7178
// > CommentCell::loadFromComment @ 0x1400b72b8
// > CommentCell::loadFromComment @ 0x1400b72fb
// > GJWriteMessagePopup::updateText @ 0x14029ab56
// > GJWriteMessagePopup::updateText @ 0x14029ac5d
// > ??> @ 0x14066762c
// > ??> @ 0x14066763c
// > ??> @ 0x1406c654c
//
// 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 TextArea::colorAllCharactersTo(TextArea *a1, cocos2d::ccColor3B *a2)
{
cocos2d::ccArray *data; // r13
__int64 num; // r15
__int64 i; // rdi
cocos2d::CCObject *v6; // rcx
__int64 v7; // rbx
int *v8; // rsi
__int64 v9; // rbp
void (__fastcall ***v10)(_QWORD, cocos2d::ccColor3B *); // rcx
data = a1->m_label->getChildren(a1->m_label)->data;
num = (int)data->num;
if ( num > 0 )
{
for ( i = 0; i < num; ++i )
{
v6 = data->arr[i];
v7 = 0;
v8 = *(int **)(((__int64 (__fastcall *)(cocos2d::CCObject *))v6->__vftable[6].update)(v6) + 56);
v9 = *v8;
if ( v9 > 0 )
{
do
{
v10 = (void (__fastcall ***)(_QWORD, cocos2d::ccColor3B *))(*(_QWORD *)(*((_QWORD *)v8 + 2) + 8 * v7) + 320LL);
(**v10)(v10, a2);
++v7;
}
while ( v7 < v9 );
}
}
}
}