//
// DialogLayer::animateIn from 0x1003b1950 to 0x1003b1b44 (500 bytes)
//
// 24 xrefs:
// > PlayLayer::destroyPlayer @ 0x1000882c2
// > DailyLevelPage::dailyStatusFailed @ 0x10021631d
// > CreatorLayer::onTreasureRoom @ 0x1002843fb
// > sub_10029EC20 @ 0x10029ee34
// > sub_1002EC240 @ 0x1002ec3cf
// > sub_100310700 @ 0x10031088f
// > LevelListLayer::onClaimReward @ 0x10034a8dd
// > GJGarageLayer::showUnlockPopup @ 0x10035891e
// > SecretLayer4::showFirstDialog @ 0x10039b04a
// > sub_10039C370 @ 0x10039c6b4
// > DialogLayer::animateInRandomSide @ 0x1003b1942
// > DialogLayer::animateInDialog @ 0x1003b1b6b
// > LevelPage::onSecretDoor @ 0x100424cee
// > SecretLayer5::showFirstDialog @ 0x100470818
// > sub_100472510 @ 0x100472854
// > SecretLayer2::showCompletedLevel @ 0x10049984f
// > SecretLayer3::onClick @ 0x10049ea55
// > SecretLayer3::firstInteractionStep2 @ 0x10049f3e4
// > SecretLayer3::firstInteractionStep4 @ 0x10049f927
// > SecretLayer3::revealStep2 @ 0x1004a0287
// > SecretLayer3::revealStep4 @ 0x1004a0a28
// > SecretLayer3::revealStep5 @ 0x1004a0ff7
// > sub_100602BF0 @ 0x100602e04
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1006d9858
//
// This function is hookable on this platform (idp: pc, 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 12:29:26 +0000
//
__int64 __fastcall DialogLayer::animateIn(__int64 a1, int a2)
{
__int64 v3; // r15
_QWORD *v4; // rsi
__int64 v5; // r14
int v6; // kr00_4
float v7; // xmm1_4
float v8; // xmm0_4
_OWORD *v9; // rax
__int64 v10; // rax
double v11; // xmm0_8
__int64 v12; // rax
double v13; // xmm0_8
__int64 v14; // rax
__int64 v15; // rsi
__int64 result; // rax
char v17; // r14
_OWORD *v18; // rax
float v19; // [rsp+8h] [rbp-38h] BYREF
timeb v20; // [rsp+10h] [rbp-30h] BYREF
float v21; // [rsp+24h] [rbp-1Ch]
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 344LL))(a1, 1);
ftime(&v20);
*(double *)(a1 + 552) = (double)v20.millitm / 1000.0 + (double)SLODWORD(v20.time);
v3 = (unsigned int)(a2 - 2);
v4 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 560) + 192LL))(*(_QWORD *)(a1 + 560));
sub_1002782D0(&v20, v4);
v6 = a2;
v5 = *(_QWORD *)(a1 + 560);
switch ( v3 )
{
case 0LL:
v7 = *((float *)&v20.time + 1);
v8 = -191.0;
goto LABEL_9;
case 1LL:
v14 = cocos2d::CCDirector::sharedDirector(&v20, v4);
v8 = (float)(sub_100479770(v14) + 190.0) + 1.0;
v7 = *((float *)&v20.time + 1);
goto LABEL_9;
case 2LL:
v21 = *(float *)&v20.time;
v10 = cocos2d::CCDirector::sharedDirector(&v20, v4);
v11 = sub_100479740(v10);
v7 = (float)(*(float *)&v11 + 50.0) + 1.0;
goto LABEL_7;
case 3LL:
v21 = *(float *)&v20.time;
v12 = cocos2d::CCDirector::sharedDirector(&v20, v4);
v13 = sub_100479740(v12);
v7 = (float)(*(float *)&v13 + -50.0) + -1.0;
LABEL_7:
v8 = v21;
LABEL_9:
sub_100278250(&v19, v8, v7);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v5 + 184LL))(v5, &v19);
v9 = cocos2d::CCMoveTo::create(&v20, (__m128)0x3F000000u);
goto LABEL_10;
default:
if ( v6 != 1 )
goto LABEL_11;
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 560) + 160LL))(*(_QWORD *)(a1 + 560), 0.1);
v9 = cocos2d::CCScaleTo::create_1((__m128)0x3F000000u, 1.0);
LABEL_10:
v15 = cocos2d::CCEaseElasticOut::create(v9, 0.60000002);
cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 560), v15);
LABEL_11:
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1152LL))(a1);
if ( (_BYTE)result )
{
v17 = result;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1168LL))(a1, 0);
v18 = cocos2d::CCFadeTo::create(v17, (__m128)0x3E0F5C29u);
return cocos2d::CCNode::runAction(a1, (__int64)v18);
}
return result;
}
}