//
// GauntletSelectLayer::playUnlockAnimation from 0xa73bfc to 0xa73f6c (880 bytes)
//
// 3 xrefs:
// > ??> @ 0x76d68
// > GauntletSelectLayer::rewardedVideoFinished @ 0xa71aa4
// > ??> @ 0x1543040
//
// 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:25 +0000
//
__int64 __fastcall GauntletSelectLayer::playUnlockAnimation(cocos2d::CCDictionary **this)
{
unsigned __int8 *v2; // x20
FMODAudioEngine *v3; // x0
FMODAudioEngine *v4; // x0
FMODAudioEngine *v5; // x0
__int64 v6; // x23
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x0
cocos2d::CCParticleSystem *v9; // x19
void (__fastcall *v10)(cocos2d::CCParticleSystem *, float); // x23
float v11; // s0
void (__fastcall *v12)(cocos2d::CCParticleSystem *, float); // x23
float v13; // s0
void (__fastcall *v14)(cocos2d::CCParticleSystem *, __int64 *); // x25
cocos2d::CCNode *v15; // x23
const cocos2d::CCPoint *v16; // x0
int v17; // w3
float v18; // s0
void (__fastcall *v19)(cocos2d::CCParticleSystem *, __int64 *); // x2
float v20; // s2
float v21; // s1
float v22; // s0
__int64 (__fastcall *v23)(cocos2d::CCParticleSystem *, __int64 *); // x2
float v24; // s2
cocos2d::CCDelayTime *v25; // x0
cocos2d::CCSequence *v26; // x19
cocos2d::CCFiniteTimeAction *v27; // x0
cocos2d::CCAction *v28; // x0
cocos2d::CCDelayTime *v29; // x0
cocos2d::CCSequence *v30; // x19
cocos2d::CCFiniteTimeAction *v31; // x0
cocos2d::CCAction *v32; // x0
__int64 v34; // [xsp+50h] [xbp+50h] BYREF
__int64 v35; // [xsp+58h] [xbp+58h] BYREF
__int64 v36; // [xsp+60h] [xbp+60h] BYREF
float v37; // [xsp+68h] [xbp+68h]
float v38; // [xsp+6Ch] [xbp+6Ch]
cocos2d::CCDirector *v39; // [xsp+70h] [xbp+70h] BYREF
__int64 v40; // [xsp+78h] [xbp+78h]
void *v41; // [xsp+80h] [xbp+80h]
v2 = (unsigned __int8 *)cocos2d::CCDictionary::objectForKey(*(this + 62), *((unsigned int *)this + 127));
v3 = (FMODAudioEngine *)GauntletNode::showUnlockAnimation((GauntletNode *)v2);
v4 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v3);
v5 = (FMODAudioEngine *)FMODAudioEngine::stopAllMusic(v4, 1);
v6 = FMODAudioEngine::sharedEngine(v5);
v39 = nullptr;
v40 = 0;
v41 = nullptr;
std::string::__init((__int64 *)&v39, "unlockGauntlet.ogg", 0x12u);
FMODAudioEngine::playEffect(v6, (char *)&v39, 0.0, 0.0, 0.5);
v7 = (cocos2d::CCDirector *)(unsigned __int8)v39;
if ( ((unsigned __int8)v39 & 1) != 0 )
operator delete(v41);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(&v34, v8);
v39 = nullptr;
v40 = 0;
v41 = nullptr;
std::string::__init(
(__int64 *)&v39,
"84a1.05a1.25a0.16a50a180a180a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a0a0a0.360784a0a1a0a1a1a0a0a1a0a0a0a0a0a1a0a0.8a0a0a0a"
"110a0a0a0a0a0a1a2a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0",
0xABu);
v9 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromString((__int64)&v39, 0, 0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v9 + 1208LL))(v9, 10.0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v9 + 1224LL))(v9, 5.0);
v10 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v9 + 976LL);
v11 = (*(float (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v9 + 968LL))(v9);
v10(v9, v11 * 0.7);
v12 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v9 + 928LL);
v13 = (*(float (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v9 + 920LL))(v9);
v12(v9, v13 * 0.7);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v9 + 1584LL))(v9, 1);
(*((void (__fastcall **)(cocos2d::CCDictionary **, cocos2d::CCParticleSystem *, __int64))*this + 58))(this, v9, 11);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v9 + 160LL))(v9, 2.0);
cocos2d::CCParticleSystem::resetSystem(v9);
v14 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v9 + 184LL);
v15 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v2 + 512LL))(v2);
v16 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v2 + 192LL))(v2);
cocos2d::CCNode::convertToWorldSpace(&v35, v15, v16);
cocos2d::CCNode::convertToNodeSpace(&v36, (cocos2d::CCNode *)this, (const cocos2d::CCPoint *)&v35);
v14(v9, &v36);
v17 = v2[338];
v18 = (float)v2[336];
v19 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v9 + 1360LL);
v20 = (float)v2[337] / 255.0;
v38 = 1.0;
*((float *)&v36 + 1) = v20;
v37 = (float)v17 / 255.0;
*(float *)&v36 = v18 / 255.0;
v19(v9, &v36);
v21 = (float)v2[338];
v22 = (float)v2[336];
v23 = *(__int64 (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v9 + 1392LL);
v24 = (float)v2[337] / 255.0;
v38 = 1.0;
*((float *)&v36 + 1) = v24;
v37 = v21 / 255.0;
*(float *)&v36 = v22 / 255.0;
v25 = (cocos2d::CCDelayTime *)v23(v9, &v36);
v26 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v25, 0.25);
v27 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, GauntletSelectLayer::unlockAnimationStep2, 0);
v28 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v26, v27, 0);
v29 = (cocos2d::CCDelayTime *)cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v28);
v30 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v29, 1.65);
v31 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(
this,
GauntletSelectLayer::unlockAnimationFinished,
0);
v32 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v30, v31, 0);
cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v32);
if ( ((unsigned __int8)v39 & 1) != 0 )
operator delete(v41);
return _stack_chk_guard;
}