//
// RetryLevelLayer::showLayer from 0x100248884 to 0x10024898c (264 bytes)
//
// 1 xrefs:
// > ??> @ 0x100908b78
//
// 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 11:01:27 +0000
//
double __fastcall RetryLevelLayer::showLayer(_QWORD *a1, int a2)
{
__int64 v4; // x0
double result; // d0
float *v6; // x0
__int64 v7; // x20
char v8; // w0
__int64 v9; // x1
__int64 v10; // x2
__int64 v11; // x3
__int64 v12; // x4
__int64 v13; // x5
__int64 v14; // x6
__int64 v15; // x7
__int64 v16; // x0
__n128 v17; // q0
float *v18; // x1
cocos2d::CCNode::stopAllActions(a1[72]);
(*(void (__fastcall **)(_QWORD *))(*a1 + 1344LL))(a1);
v4 = a1[72];
if ( a2 )
{
(*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v4 + 184LL))(v4, a1 + 68);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 1168LL))(a1, 100);
(*(void (__fastcall **)(_QWORD *))(*a1 + 1360LL))(a1);
}
else
{
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 160LL))(v4, 0.1);
v6 = cocos2d::CCScaleTo::create_1(0.5, 1.0);
v7 = cocos2d::CCEaseElasticOut::create(v6, 0.6);
v8 = (unsigned __int8)cocos2d::CCCallFunc::create((__int64)a1, 1360, 1);
v16 = sub_10021D420(v7, v9, v10, v11, v12, v13, v14, v15, v8);
v17 = cocos2d::CCNode::runAction(a1[72], v16);
(*(void (__fastcall **)(_QWORD *, _QWORD, __n128))(*a1 + 1168LL))(a1, 0, v17);
v18 = cocos2d::CCFadeTo::create(100, 0.5);
*(_QWORD *)&result = cocos2d::CCNode::runAction(a1, v18).n128_u64[0];
}
return result;
}