//
// TextArea::fadeOut from 0x1003223b0 to 0x1003224ad (253 bytes)
//
// 1 xrefs:
// > TextArea::fadeOutAndRemove @ 0x100322362
//
// 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::fadeOut(TextArea *a1, float a2)
{
int *v2; // r14
__int64 v3; // r15
__int64 i; // r12
__int64 v5; // rdi
__int64 v6; // rax
unsigned int *v7; // rax
cocos2d::CCNode **v8; // r13
cocos2d::CCNode **v9; // rbx
unsigned __int8 v10; // al
cocos2d::CCActionTween *v11; // rax
cocos2d::CCNode::stopAllActions(a1);
if ( ((__int64 (__fastcall *)(MultilineBitmapFont *))a1->m_label->getChildren)(a1->m_label) )
{
v2 = *(int **)(((__int64 (__fastcall *)(MultilineBitmapFont *))a1->m_label->getChildren)(a1->m_label) + 56);
v3 = *v2;
if ( v3 > 0 )
{
for ( i = 0; i != v3; ++i )
{
v5 = *(_QWORD *)(*((_QWORD *)v2 + 2) + 8 * i);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 472LL))(v5);
if ( v6 )
{
v7 = *(unsigned int **)(v6 + 56);
if ( *v7 )
{
v8 = *((cocos2d::CCNode ***)v7 + 2);
v9 = &v8[*v7 - 1];
do
{
if ( !*v8 )
break;
cocos2d::CCNode::stopAllActions(*v8++);
}
while ( v8 <= v9 );
}
}
}
}
}
v10 = ((__int64 (__fastcall *)(TextArea *))a1->getOpacity)(a1);
v11 = cocos2d::CCActionTween::create_1(a2, "opacity", (float)v10, 0.0);
cocos2d::CCNode::runAction(a1, v11);
}