//
// TextArea::fadeIn from 0x1003221f0 to 0x10032231e (302 bytes)
//
// 0 xrefs:
//
// 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
//
float __fastcall TextArea::fadeIn(TextArea *a1, float a2, bool a3)
{
int *v3; // r14
__int64 v4; // r15
__int64 i; // r12
__int64 v6; // rdi
__int64 v7; // rax
unsigned int *v8; // rax
cocos2d::CCNode **v9; // r13
cocos2d::CCNode **v10; // rbx
unsigned int v11; // r14d
unsigned int v12; // r15d
unsigned int v13; // eax
int v14; // r8d
int v15; // r9d
cocos2d::CCAction *v16; // rax
cocos2d::CCNode::stopAllActions(a1);
if ( ((__int64 (__fastcall *)(MultilineBitmapFont *, bool))a1->m_label->getChildren)(a1->m_label, a3) )
{
v3 = *(int **)(((__int64 (__fastcall *)(MultilineBitmapFont *))a1->m_label->getChildren)(a1->m_label) + 56);
v4 = *v3;
if ( v4 > 0 )
{
for ( i = 0; i != v4; ++i )
{
v6 = *(_QWORD *)(*((_QWORD *)v3 + 2) + 8 * i);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 472LL))(v6);
if ( v7 )
{
v8 = *(unsigned int **)(v7 + 56);
if ( *v8 )
{
v9 = *((cocos2d::CCNode ***)v8 + 2);
v10 = &v9[*v8 - 1];
do
{
if ( !*v9 )
break;
cocos2d::CCNode::stopAllActions(*v9++);
}
while ( v9 <= v10 );
}
}
}
}
}
((void (__fastcall *)(TextArea *, _QWORD))a1->setOpacity)(a1, 0);
a1->m_allShown = 0;
v11 = (unsigned int)cocos2d::CCFadeIn::create(a2);
v12 = (unsigned int)cocos2d::CCDelayTime::create(a2);
v13 = (unsigned int)cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)(unsigned __int64)TextArea::finishFade);
v16 = (cocos2d::CCAction *)sub_1003B5760(v11, v12, v13, 0, v14, v15);
cocos2d::CCNode::runAction(a1, v16);
return a2;
}