//
// GauntletSelectLayer::unlockAnimationStep2 from 0xa73f78 to 0xa74208 (656 bytes)
//
// 3 xrefs:
// > ??> @ 0x105778
// > GauntletSelectLayer::playUnlockAnimation @ 0xa73e9c
// > ??> @ 0x1547fd8
//
// 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::unlockAnimationStep2(cocos2d::CCDictionary **this)
{
unsigned __int8 *v2; // x20
cocos2d::CCDirector *v3; // x0
cocos2d::CCParticleSystem *v4; // x19
void (__fastcall *v5)(cocos2d::CCParticleSystem *, float); // x22
float v6; // s0
void (__fastcall *v7)(cocos2d::CCParticleSystem *, float); // x22
float v8; // s0
void (__fastcall *v9)(cocos2d::CCParticleSystem *, __int64 *); // x25
cocos2d::CCNode *v10; // x22
const cocos2d::CCPoint *v11; // x0
int v12; // w3
float v13; // s0
void (__fastcall *v14)(cocos2d::CCParticleSystem *, __int64 *); // x2
float v15; // s2
float v16; // s1
float v17; // s0
void (__fastcall *v18)(cocos2d::CCParticleSystem *, __int64 *); // x2
float v19; // s2
__int64 v21; // [xsp+50h] [xbp+50h] BYREF
__int64 v22; // [xsp+58h] [xbp+58h] BYREF
__int64 v23; // [xsp+60h] [xbp+60h] BYREF
float v24; // [xsp+68h] [xbp+68h]
float v25; // [xsp+6Ch] [xbp+6Ch]
__int64 v26[2]; // [xsp+70h] [xbp+70h] BYREF
void *v27; // [xsp+80h] [xbp+80h]
v2 = (unsigned __int8 *)cocos2d::CCDictionary::objectForKey(*(this + 62), *((unsigned int *)this + 127));
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v2);
cocos2d::CCDirector::getWinSize(&v21, v3);
v26[0] = 0;
v26[1] = 0;
v27 = nullptr;
std::string::__init(
v26,
"84a0.97a1a0.16a72a180a180a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a0a0a0a0a1a0a1a1a0a0a1a0a0.568627a0a0a0a1a0a0.8a0a0.2a0a1"
"50a0a0a0a0a0a1a2a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0",
0xAAu);
v4 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromString((__int64)v26, 0, 0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v4 + 1208LL))(v4, 10.0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v4 + 1224LL))(v4, 10.0);
v5 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v4 + 976LL);
v6 = (*(float (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v4 + 968LL))(v4);
v5(v4, v6 * 0.8);
v7 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v4 + 928LL);
v8 = (*(float (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v4 + 920LL))(v4);
v7(v4, v8 * 0.8);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v4 + 1584LL))(v4, 1);
(*((void (__fastcall **)(cocos2d::CCDictionary **, cocos2d::CCParticleSystem *, __int64))*this + 58))(this, v4, 11);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v4 + 160LL))(v4, 2.0);
cocos2d::CCParticleSystem::resetSystem(v4);
v9 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v4 + 184LL);
v10 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v2 + 512LL))(v2);
v11 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v2 + 192LL))(v2);
cocos2d::CCNode::convertToWorldSpace(&v22, v10, v11);
cocos2d::CCNode::convertToNodeSpace(&v23, (cocos2d::CCNode *)this, (const cocos2d::CCPoint *)&v22);
v9(v4, &v23);
v12 = v2[338];
v13 = (float)v2[336];
v14 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v4 + 1360LL);
v15 = (float)v2[337] / 255.0;
v25 = 1.0;
*((float *)&v23 + 1) = v15;
v24 = (float)v12 / 255.0;
*(float *)&v23 = v13 / 255.0;
v14(v4, &v23);
v16 = (float)v2[338];
v17 = (float)v2[336];
v18 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v4 + 1392LL);
v19 = (float)v2[337] / 255.0;
v25 = 1.0;
*((float *)&v23 + 1) = v19;
v24 = v16 / 255.0;
*(float *)&v23 = v17 / 255.0;
v18(v4, &v23);
if ( (v26[0] & 1) != 0 )
operator delete(v27);
return _stack_chk_guard;
}