//
// GauntletSelectLayer::unlockAnimationStep3 from 0x10025645c to 0x1002567dc (896 bytes)
//
// 1 xrefs:
// > GauntletSelectLayer::unlockAnimationFinished @ 0x100256458
//
// 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:34 +0000
//
void __fastcall GauntletSelectLayer::unlockAnimationStep3(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x19
__int64 v4; // x0
__int64 v5; // x21
__int64 v6; // x22
__int64 v7; // x0
__n128 v8; // q0
float v9; // s0
int8x8_t v10; // d1
float32x2_t v11; // d9
float v12; // s0
int8x8_t v13; // d1
__int64 v14; // x21
__int64 v15; // x22
__int64 v16; // x0
__n128 v17; // q0
float v18; // s2
float v19; // s3
__int64 v20; // x0
__int64 v21; // x0
__int64 v22; // [xsp+0h] [xbp-80h] BYREF
float v23; // [xsp+8h] [xbp-78h]
int v24; // [xsp+Ch] [xbp-74h]
float32x2_t v25; // [xsp+10h] [xbp-70h] BYREF
float v26; // [xsp+18h] [xbp-68h]
int v27; // [xsp+1Ch] [xbp-64h]
std::string v28; // [xsp+20h] [xbp-60h] BYREF
__int64 v29; // [xsp+38h] [xbp-48h] BYREF
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 496), *(unsigned int *)(a1 + 508));
v3 = v2;
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v4, &v29);
sub_100009900(
&v28,
"100a0a0.88a0.21a-1a90a180a5a5a48a82a0a0a0a0a0a0a7a2a0a360a0.411765a1a1a1a0a1a1a0a3a2a0a60a0a0a0.737255a0a0.160784a0a"
"1a0a0.16a0.1a0.51a0.12a0a0a0a0a0a0a0a2a1a1a0a0a166a0a0a0a0a0a0a0a0a1a1a0a0a0a0");
v5 = GameToolbox::particleFromString((__int64)&v28, 0, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 1584LL))(v5, 1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v5, 15);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 1.6);
sub_1000262BC((float *)&v25, 30.0, 70.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v5 + 960LL))(v5, &v25);
cocos2d::CCParticleSystem::resetSystem(v5);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3);
cocos2d::CCNode::convertToWorldSpace(&v22, v6, v7);
cocos2d::CCNode::convertToNodeSpace(&v25, a1, &v22, v8);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v5 + 184LL))(v5, &v25);
v9 = (float)*(unsigned __int8 *)(v3 + 338) / 255.0;
v10.i16[0] = *(_WORD *)(v3 + 336);
v10.i8[2] = *(_BYTE *)(v3 + 338);
v10.i32[1] = (unsigned __int32)v10.i32[0] >> 8;
v11 = (float32x2_t)vdup_n_s32(0x437F0000u);
v25 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v10, (int8x8_t)0xFF000000FFLL)), v11);
v26 = v9;
v27 = 1065353216;
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v5 + 1360LL))(v5, &v25);
v12 = (float)*(unsigned __int8 *)(v3 + 338) / 255.0;
v13.i16[0] = *(_WORD *)(v3 + 336);
v13.i8[2] = *(_BYTE *)(v3 + 338);
v13.i32[1] = (unsigned __int32)v13.i32[0] >> 8;
v25 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v13, (int8x8_t)0xFF000000FFLL)), v11);
v26 = v12;
v27 = 1065353216;
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v5 + 1392LL))(v5, &v25);
std::string::assign(
&v28,
"30a0a1.15a0.3a-1a110a97a0a8a44a71a0a0a0a0a0a0a75a12a0a0a1a0.4a0.890196a0.4a0a0.4a0.51a0.22a-5a1a0a0a1a0a0a0a0.078431"
"4a0a0a0a0.16a0a0.25a0a0a0a0a0a0a0a0a2a0a0a0a0a159a0a0.35a0a0a0a0a1a0a1a0a0a0a0a0");
v14 = GameToolbox::particleFromString((__int64)&v28, 0, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 1584LL))(v14, 1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v14, 16);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 160LL))(v14, 2.2);
cocos2d::CCParticleSystem::resetSystem(v14);
v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3);
v16 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3);
cocos2d::CCNode::convertToWorldSpace(&v22, v15, v16);
cocos2d::CCNode::convertToNodeSpace(&v25, a1, &v22, v17);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v14 + 184LL))(v14, &v25);
sub_1000262BC((float *)&v25, 10.0, 40.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v14 + 960LL))(v14, &v25);
v18 = (float)HIBYTE(*(unsigned __int16 *)(v3 + 336)) / 255.0;
v19 = (float)*(unsigned __int8 *)(v3 + 338);
v25.f32[0] = (float)(unsigned __int8)*(_WORD *)(v3 + 336) / 255.0;
v25.f32[1] = v18;
v26 = v19 / 255.0;
LODWORD(v22) = v25.i32[0];
*((float *)&v22 + 1) = v18;
v23 = v19 / 255.0;
v27 = 1008981770;
v24 = 0;
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v14 + 1360LL))(v14, &v25);
v20 = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v14 + 1392LL))(v14, &v22);
v21 = GameManager::sharedState(v20);
GameManager::fadeInMenuMusic(v21);
if ( SHIBYTE(v28.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v28.__r_.__value_.__l.__data_);
}