//
// GauntletSelectLayer::unlockAnimationStep3 from 0xa74210 to 0xa7467c (1132 bytes)
//
// 2 xrefs:
// > GauntletSelectLayer::unlockAnimationFinished @ 0xa76a6c
// > ??> @ 0xbee70
//
// 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::unlockAnimationStep3(cocos2d::CCDictionary **this)
{
unsigned __int8 *v2; // x19
cocos2d::CCDirector *v3; // x0
cocos2d::CCParticleSystem *v4; // x20
void (__fastcall *v5)(cocos2d::CCParticleSystem *, __int64 *); // x24
void (__fastcall *v6)(cocos2d::CCParticleSystem *, __int64 *); // x26
cocos2d::CCNode *v7; // x24
const cocos2d::CCPoint *v8; // x0
int v9; // w3
float v10; // s0
void (__fastcall *v11)(cocos2d::CCParticleSystem *, __int64 *); // x2
float v12; // s2
int v13; // w3
float v14; // s0
void (__fastcall *v15)(cocos2d::CCParticleSystem *, __int64 *); // x2
float v16; // s2
unsigned __int64 v17; // x26
_BYTE *v18; // x3
char v19; // w0
__int64 v20; // x20
char *v21; // x28
_BYTE *v22; // x27
cocos2d::CCParticleSystem *v23; // x20
void (__fastcall *v24)(cocos2d::CCParticleSystem *, __int64 *); // x23
cocos2d::CCNode *v25; // x26
const cocos2d::CCPoint *v26; // x0
void (__fastcall *v27)(cocos2d::CCParticleSystem *, __int64 *); // x22
int v28; // w3
float v29; // s0
float v30; // s1
GameManager *v31; // x0
GameManager *v32; // x0
__int64 v34; // x20
__int64 v35; // [xsp+78h] [xbp+78h] BYREF
__int64 v36; // [xsp+80h] [xbp+80h] BYREF
float v37; // [xsp+88h] [xbp+88h]
int v38; // [xsp+8Ch] [xbp+8Ch]
__int64 v39; // [xsp+90h] [xbp+90h] BYREF
float v40; // [xsp+98h] [xbp+98h]
float v41; // [xsp+9Ch] [xbp+9Ch]
__int64 v42; // [xsp+A0h] [xbp+A0h] BYREF
__int64 v43; // [xsp+A8h] [xbp+A8h]
void *v44; // [xsp+B0h] [xbp+B0h]
v2 = (unsigned __int8 *)cocos2d::CCDictionary::objectForKey(*(this + 62), *((unsigned int *)this + 127));
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v2);
cocos2d::CCDirector::getWinSize(&v35, v3);
v42 = 0;
v43 = 0;
v44 = nullptr;
std::string::__init(
&v42,
"100a0a0.88a0.21a-1a90a180a5a5a48a82a0a0a0a0a0a0a7a2a0a360a0.411765a1a1a1a0a1a1a0a3a2a0a60a0a0a0.737255a0a0.160784a0a"
"1a0a0.16a0.1a0.51a0.12a0a0a0a0a0a0a0a2a1a1a0a0a166a0a0a0a0a0a0a0a0a1a1a0a0a0a0",
0xC2u);
v4 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromString((__int64)&v42, 0, 0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v4 + 1584LL))(v4, 1);
(*((void (__fastcall **)(cocos2d::CCDictionary **, cocos2d::CCParticleSystem *, __int64))*this + 58))(this, v4, 15);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v4 + 160LL))(v4, 1.6);
v5 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v4 + 960LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, 30.0, 70.0);
v5(v4, &v39);
cocos2d::CCParticleSystem::resetSystem(v4);
v6 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v4 + 184LL);
v7 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v2 + 512LL))(v2);
v8 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v2 + 192LL))(v2);
cocos2d::CCNode::convertToWorldSpace(&v36, v7, v8);
cocos2d::CCNode::convertToNodeSpace(&v39, (cocos2d::CCNode *)this, (const cocos2d::CCPoint *)&v36);
v6(v4, &v39);
v9 = v2[338];
v10 = (float)v2[336];
v11 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v4 + 1360LL);
v12 = (float)v2[337] / 255.0;
v41 = 1.0;
*((float *)&v39 + 1) = v12;
v40 = (float)v9 / 255.0;
*(float *)&v39 = v10 / 255.0;
v11(v4, &v39);
v13 = v2[338];
v14 = (float)v2[336];
v15 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v4 + 1392LL);
v16 = (float)v2[337] / 255.0;
v41 = 1.0;
*((float *)&v39 + 1) = v16;
v40 = (float)v13 / 255.0;
*(float *)&v39 = v14 / 255.0;
v15(v4, &v39);
if ( (v42 & 1) != 0 )
{
v17 = (v42 & 0xFFFFFFFFFFFFFFFELL) - 1;
if ( v17 > 0xC3 )
{
v18 = memcpy(
v44,
"30a0a1.15a0.3a-1a110a97a0a8a44a71a0a0a0a0a0a0a75a12a0a0a1a0.4a0.890196a0.4a0a0.4a0.51a0.22a-5a1a0a0a1a0a0a"
"0a0.0784314a0a0a0a0.16a0a0.25a0a0a0a0a0a0a0a0a2a0a0a0a0a159a0a0.35a0a0a0a0a1a0a1a0a0a0a0a0",
0xC4u);
v19 = v42;
v18[196] = 0;
if ( (v19 & 1) != 0 )
v43 = 196;
else
LOBYTE(v42) = -120;
goto LABEL_9;
}
v34 = 2 * v17;
v21 = (char *)v44;
if ( 2 * v17 < 0xC4 )
v34 = 196;
v20 = (v34 + 16) & 0xFFFFFFFFFFFFFFF0LL;
}
else
{
v20 = 208;
v17 = 22;
v21 = (char *)&v42 + 1;
}
v22 = (_BYTE *)operator new(v20);
memcpy(
v22,
"30a0a1.15a0.3a-1a110a97a0a8a44a71a0a0a0a0a0a0a75a12a0a0a1a0.4a0.890196a0.4a0a0.4a0.51a0.22a-5a1a0a0a1a0a0a0a0.078431"
"4a0a0a0a0.16a0a0.25a0a0a0a0a0a0a0a0a2a0a0a0a0a159a0a0.35a0a0a0a0a1a0a1a0a0a0a0a0",
0xC4u);
if ( v17 != 22 )
operator delete(v21);
v44 = v22;
v42 = v20 | 1;
v43 = 196;
v22[196] = 0;
LABEL_9:
v23 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromString((__int64)&v42, 0, 0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v23 + 1584LL))(v23, 1);
(*((void (__fastcall **)(cocos2d::CCDictionary **, cocos2d::CCParticleSystem *, __int64))*this + 58))(this, v23, 16);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v23 + 160LL))(v23, 2.2);
cocos2d::CCParticleSystem::resetSystem(v23);
v24 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v23 + 184LL);
v25 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v2 + 512LL))(v2);
v26 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v2 + 192LL))(v2);
cocos2d::CCNode::convertToWorldSpace(&v36, v25, v26);
cocos2d::CCNode::convertToNodeSpace(&v39, (cocos2d::CCNode *)this, (const cocos2d::CCPoint *)&v36);
v24(v23, &v39);
v27 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v23 + 960LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, 10.0, 40.0);
v27(v23, &v39);
v28 = v2[336];
v29 = (float)v2[338];
v30 = (float)v2[337] / 255.0;
v38 = 1008981770;
v41 = 0.0;
*((float *)&v36 + 1) = v30;
*((float *)&v39 + 1) = v30;
*(float *)&v36 = (float)v28 / 255.0;
*(float *)&v39 = *(float *)&v36;
v37 = v29 / 255.0;
v40 = v29 / 255.0;
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v23 + 1360LL))(v23, &v36);
v31 = (GameManager *)(*(__int64 (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v23 + 1392LL))(
v23,
&v39);
v32 = (GameManager *)GameManager::sharedState(v31);
GameManager::fadeInMenuMusic(v32);
if ( (v42 & 1) != 0 )
operator delete(v44);
return _stack_chk_guard;
}