//
// DialogLayer::animateIn from 0xa706e8 to 0xa70950 (616 bytes)
//
// 27 xrefs:
// > PlayLayer::destroyPlayer @ 0x6ff4cc
// > CreatorLayer::onTreasureRoom @ 0x7dc994
// > GJGarageLayer::showUnlockPopup @ 0x8bfbcc
// > LevelPage::onSecretDoor @ 0x8c6e5c
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x903e44
// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0xa2b698
// > DailyLevelPage::dailyStatusFailed @ 0xa6d48c
// > DialogLayer::animateInRandomSide @ 0xa709b8
// > DialogLayer::animateInRandomSide @ 0xa709c8
// > DialogLayer::animateInRandomSide @ 0xa709dc
// > DialogLayer::animateInDialog @ 0xa709f0
// > GJShopLayer::showCantAffordMessage @ 0xa806ac
// > SecretLayer2::showCompletedLevel @ 0xa8be48
// > SecretLayer3::firstInteractionStep2 @ 0xa8c694
// > SecretLayer3::firstInteractionStep4 @ 0xa8c9e4
// > SecretLayer3::onClick @ 0xa8cba0
// > SecretLayer3::revealStep2 @ 0xa8db88
// > SecretLayer3::revealStep5 @ 0xa8df24
// > SecretLayer3::revealStep4 @ 0xa8f044
// > SecretLayer4::showDialog @ 0xa94a10
// > SecretLayer4::showFirstDialog @ 0xa95154
// > GJPathPage::showCantAffordMessage @ 0xba840c
// > LevelListLayer::onClaimReward @ 0xbac098
// > SecretLayer5::showDialog @ 0xbc5b04
// > SecretLayer5::showFirstDialog @ 0xbc62bc
// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0xc06a74
// > ??> @ 0x4ee38
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:00:23 +0000
//
__int64 __fastcall DialogLayer::animateIn(cocos2d::CCNode *a1, unsigned int a2)
{
const cocos2d::CCPoint *v4; // x0
bool v5; // zf
cocos2d::CCDirector **v6; // x21
float v7; // s8
cocos2d::CCDirector *v8; // x0
void (__fastcall *v9)(cocos2d::CCDirector **, _QWORD *); // x24
cocos2d::CCDirector *v10; // x0
float v11; // s0
const cocos2d::CCPoint *v12; // x1
cocos2d::CCEaseElasticOut *v13; // x0
cocos2d::CCActionInterval *v14; // x1
cocos2d::CCAction *v15; // x0
unsigned int v16; // w21
unsigned __int8 v17; // w1
cocos2d::CCAction *v18; // x0
cocos2d::CCScaleTo *v20; // x0
__int64 v21; // x21
void (__fastcall *v22)(__int64, _QWORD *); // x24
cocos2d::CCDirector **v23; // x21
void (__fastcall *v24)(cocos2d::CCDirector **, _QWORD *); // x24
cocos2d::CCDirector *v25; // x0
float v26; // s0
cocos2d::CCDirector *v27; // x0
float v28; // s0
float v29; // [xsp+50h] [xbp+50h] BYREF
float v30; // [xsp+54h] [xbp+54h]
_QWORD v31[2]; // [xsp+58h] [xbp+58h] BYREF
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)a1 + 344LL))(a1, 1);
clock_gettime(0, (struct timespec *)v31);
*((double *)a1 + 69) = (double)v31[0] + (double)v31[1] / 1000000000.0;
if ( a2 == 1 )
{
v20 = (cocos2d::CCScaleTo *)(*(__int64 (__fastcall **)(_QWORD, float))(**((_QWORD **)a1 + 70) + 160LL))(
*((_QWORD *)a1 + 70),
0.1);
v13 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create(v20, 0.5, 1.0);
LABEL_10:
v15 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v13, v14, 0.6);
cocos2d::CCNode::runAction(*((cocos2d::CCNode **)a1 + 70), v15);
goto LABEL_11;
}
if ( a2 && a2 <= 5 )
{
v4 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 70) + 192LL))(*((_QWORD *)a1 + 70));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, v4);
if ( a2 == 2 )
{
v21 = *((_QWORD *)a1 + 70);
v22 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v21 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, -191.0, v30);
v22(v21, v31);
}
else if ( a2 == 3 )
{
v23 = *((cocos2d::CCDirector ***)a1 + 70);
v24 = *((void (__fastcall **)(cocos2d::CCDirector **, _QWORD *))*v23 + 23);
v25 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v23);
cocos2d::CCDirector::getScreenRight(v25);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, (float)(v26 + 190.0) + 1.0, v30);
v24(v23, v31);
}
else
{
v5 = a2 == 4;
v6 = *((cocos2d::CCDirector ***)a1 + 70);
v7 = v29;
v8 = *v6;
v9 = *((void (__fastcall **)(cocos2d::CCDirector **, _QWORD *))*v6 + 23);
if ( v5 )
{
v27 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);
cocos2d::CCDirector::getScreenTop(v27);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v7, (float)(v28 + 50.0) + 1.0);
}
else
{
v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);
cocos2d::CCDirector::getScreenTop(v10);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v7, (float)(v11 - 50.0) - 1.0);
}
v9(v6, v31);
}
v13 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)&v29, 0.5, v12);
goto LABEL_10;
}
LABEL_11:
v16 = (*(unsigned __int8 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1 + 1152LL))(a1);
if ( (float)v16 > 0.0 )
{
(*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)a1 + 1168LL))(a1, 0);
v18 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)v16, 0.14, v17);
cocos2d::CCNode::runAction(a1, v18);
}
return _stack_chk_guard;
}