//
// SecretLayer5::showFailAnimation from 0x14058af10 to 0x14058b53f (1583 bytes)
//
// 2 xrefs:
// > SecretLayer5::handleSecretResponse @ 0x14058aef8
// > ??> @ 0x14092cb40
//
// 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 11:34:29 +0000
//
// Hidden C++ exception states: #wind=6
struct cocos2d::CCAction *__fastcall SecretLayer5::showFailAnimation(cocos2d::CCNode **a1)
{
cocos2d::CCNode *v2; // rdi
struct cocos2d::CCActionInterval *v3; // rax
struct cocos2d::CCEaseInOut *v4; // rbx
struct cocos2d::CCFiniteTimeAction *v5; // rax
struct cocos2d::CCAction *v6; // rax
cocos2d::CCNode *v7; // rsi
struct cocos2d::CCActionInterval *v8; // rax
struct cocos2d::CCEaseInOut *v9; // rdi
struct cocos2d::CCDelayTime *v10; // rbx
struct cocos2d::CCActionInterval *v11; // rax
struct cocos2d::CCFiniteTimeAction *v12; // rax
struct cocos2d::CCAction *v13; // rax
cocos2d::CCNode *v14; // r12
const struct cocos2d::CCPoint *v15; // rax
struct cocos2d::CCMoveBy *v16; // r15
const struct cocos2d::CCPoint *v17; // rax
struct cocos2d::CCMoveBy *v18; // r14
const struct cocos2d::CCPoint *v19; // rax
struct cocos2d::CCMoveBy *v20; // rsi
const struct cocos2d::CCPoint *v21; // rax
struct cocos2d::CCMoveBy *v22; // rdi
const struct cocos2d::CCPoint *v23; // rax
struct cocos2d::CCMoveBy *v24; // rbx
const struct cocos2d::CCPoint *v25; // rax
struct cocos2d::CCFiniteTimeAction *v26; // rax
struct cocos2d::CCAction *v27; // rax
__int64 v28; // rcx
_QWORD *v29; // rbx
__int64 v30; // r8
__int64 v31; // r9
int v32; // ecx
__int64 v33; // rcx
_QWORD *v34; // rdi
int v35; // ebx
int v36; // xmm7_4
__int64 v37; // r8
__int64 v38; // r9
struct cocos2d::CCActionInterval *v39; // rax
struct cocos2d::CCEaseInOut *v40; // r12
struct cocos2d::CCActionInterval *v41; // rax
struct cocos2d::CCEaseInOut *v42; // r15
struct cocos2d::CCActionInterval *v43; // rax
struct cocos2d::CCEaseInOut *v44; // r14
struct cocos2d::CCActionInterval *v45; // rax
struct cocos2d::CCEaseInOut *v46; // rsi
struct cocos2d::CCActionInterval *v47; // rax
struct cocos2d::CCEaseInOut *v48; // rdi
struct cocos2d::CCActionInterval *v49; // rax
struct cocos2d::CCEaseInOut *v50; // rbx
struct cocos2d::CCActionInterval *v51; // rax
struct cocos2d::CCFiniteTimeAction *v52; // rax
struct cocos2d::CCAction *v53; // rbx
cocos2d::CCNode *v54; // rax
cocos2d::CCNode *v55; // rdi
struct cocos2d::CCActionInterval *v56; // rax
struct cocos2d::CCEaseInOut *v57; // rbx
struct cocos2d::CCFiniteTimeAction *v58; // rax
struct cocos2d::CCAction *v59; // rax
char v61[8]; // [rsp+48h] [rbp-89h] BYREF
char v62[8]; // [rsp+50h] [rbp-81h] BYREF
_QWORD *v63; // [rsp+58h] [rbp-79h]
void *v64; // [rsp+60h] [rbp-71h]
_QWORD v65[4]; // [rsp+68h] [rbp-69h] BYREF
_QWORD v66[13]; // [rsp+88h] [rbp-49h] BYREF
_QWORD *v67; // [rsp+138h] [rbp+67h] BYREF
void *v68; // [rsp+140h] [rbp+6Fh] BYREF
char v69; // [rsp+148h] [rbp+77h] BYREF
char v70; // [rsp+150h] [rbp+7Fh] BYREF
LOWORD(v67) = 25855;
BYTE2(v67) = -56;
(**((void (__fastcall ***)(__int64, _QWORD **))a1[71] + 40))((__int64)a1[71] + 320, &v67);
cocos2d::CCNode::stopAllActions(a1[71]);
v2 = a1[71];
v3 = cocos2d::CCFadeTo::create(1.8, 0);
v4 = cocos2d::CCEaseInOut::create(v3, 2.0);
v5 = cocos2d::CCDelayTime::create(0.80000001);
v6 = cocos2d::CCSequence::create(v5, v4, 0);
cocos2d::CCNode::runAction(v2, v6);
cocos2d::CCNode::stopAllActions(a1[72]);
(*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)a1[72] + 40) + 40LL))((__int64)a1[72] + 320, 0);
(**((void (__fastcall ***)(__int64, void *))a1[72] + 40))((__int64)a1[72] + 320, &unk_140704658);
v7 = a1[72];
v8 = cocos2d::CCFadeTo::create(2.2, 0);
v9 = cocos2d::CCEaseInOut::create(v8, 2.0);
v10 = cocos2d::CCDelayTime::create(0.2);
v11 = cocos2d::CCFadeTo::create(0.0099999998, 0xFFu);
v12 = cocos2d::CCEaseInOut::create(v11, 2.0);
v13 = cocos2d::CCSequence::create(v12, v10, v9, 0);
cocos2d::CCNode::runAction(v7, v13);
v14 = a1[70];
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v67, -2.0, 0.0);
v16 = cocos2d::CCMoveBy::create(0.060000002, v15);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v68, 2.0, 0.0);
v18 = cocos2d::CCMoveBy::create(0.060000002, v17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v69, -3.0, 0.0);
v20 = cocos2d::CCMoveBy::create(0.050000001, v19);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v70, 3.0, 0.0);
v22 = cocos2d::CCMoveBy::create(0.050000001, v21);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, -3.0, 0.0);
v24 = cocos2d::CCMoveBy::create(0.0, v23);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 3.0, 0.0);
v26 = cocos2d::CCMoveBy::create(0.0, v25);
v27 = cocos2d::CCSequence::create(v26, v24, v22, v20, v18, v16, 0);
cocos2d::CCNode::runAction(v14, v27);
v63 = v65;
v28 = qword_14090C070;
if ( !qword_14090C070 )
{
v64 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v64);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v28 = qword_14090C070;
}
v29 = MusicDownloadManager::pathForSFX(v28, v65, 0x902u);
v32 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v67 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v67);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v32 = qword_14090BF60;
}
FMODAudioEngine::playEffect(v32, (__int64)v29, v30, v31, 1065353216);
v67 = v66;
v33 = qword_14090C070;
if ( !qword_14090C070 )
{
v68 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v68);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v33 = qword_14090C070;
}
v34 = MusicDownloadManager::pathForSFX(v33, v66, 0x3276u);
v35 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v68 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v68);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v35 = qword_14090BF60;
}
*(float *)&v36 = (float)((float)((float)rand() / 32767.0) * 0.30000001) + 0.40000001;
rand();
FMODAudioEngine::playEffect(v35, (__int64)v34, v37, v38, v36);
v39 = cocos2d::CCRotateBy::create(0.27500001, 3.0);
v40 = cocos2d::CCEaseInOut::create(v39, 2.0);
v41 = cocos2d::CCRotateBy::create(0.42500001, -7.1999998);
v42 = cocos2d::CCEaseInOut::create(v41, 1.8);
v43 = cocos2d::CCRotateBy::create(0.34999999, 9.0);
v44 = cocos2d::CCEaseInOut::create(v43, 1.8);
v45 = cocos2d::CCRotateBy::create(0.30000001, -10.2);
v46 = cocos2d::CCEaseInOut::create(v45, 1.8);
v47 = cocos2d::CCRotateBy::create(0.27500001, 11.4);
v48 = cocos2d::CCEaseInOut::create(v47, 1.8);
v49 = cocos2d::CCRotateBy::create(0.25, -12.0);
v50 = cocos2d::CCEaseInOut::create(v49, 1.8);
v51 = cocos2d::CCRotateBy::create(0.125, 6.0);
v52 = cocos2d::CCEaseOut::create(v51, 1.8);
v53 = cocos2d::CCSequence::create(v52, v50, v48, v46, v44, v42, v40, 0);
v54 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1[74] + 504LL))(a1[74]);
cocos2d::CCNode::runAction(v54, v53);
LOWORD(v67) = 7256;
BYTE2(v67) = 61;
(**((void (__fastcall ***)(__int64, _QWORD **))a1[74] + 40))((__int64)a1[74] + 320, &v67);
v55 = a1[74];
v56 = cocos2d::CCTintTo::create(2.2, 0x6Eu, 0x47u, 0x99u);
v57 = cocos2d::CCEaseInOut::create(v56, 1.8);
v58 = cocos2d::CCDelayTime::create(0.60000002);
v59 = cocos2d::CCSequence::create(v58, v57, 0);
return cocos2d::CCNode::runAction(v55, v59);
}