//
// GauntletSelectLayer::unlockAnimationStep2 from 0x1002561a8 to 0x1002563f8 (592 bytes)
//
// 1 xrefs:
// > GauntletSelectLayer::playUnlockAnimation @ 0x100255e7c
//
// 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:33 +0000
//
void __fastcall GauntletSelectLayer::unlockAnimationStep2(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x19
__int64 v4; // x0
__int64 v5; // x20
float v6; // s0
float v7; // s0
__int64 v8; // x22
__int64 v9; // x0
__n128 v10; // q0
float v11; // s0
int8x8_t v12; // d1
float32x2_t v13; // d9
float v14; // s0
int8x8_t v15; // d1
float32x2_t v16; // [xsp+8h] [xbp-68h] BYREF
float v17; // [xsp+10h] [xbp-60h]
int v18; // [xsp+14h] [xbp-5Ch]
__int64 v19; // [xsp+18h] [xbp-58h] BYREF
void *__p[2]; // [xsp+20h] [xbp-50h] BYREF
char v21; // [xsp+37h] [xbp-39h]
__int64 v22; // [xsp+38h] [xbp-38h] BYREF
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 496), *(unsigned int *)(a1 + 508));
v3 = v2;
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v4, &v22);
sub_100009900(
__p,
"84a0.97a1a0.16a72a180a180a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a0a0a0a0a1a0a1a1a0a0a1a0a0.568627a0a0a0a1a0a0.8a0a0.2a0a1"
"50a0a0a0a0a0a1a2a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0");
v5 = GameToolbox::particleFromString((__int64)__p, 0, 0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 1208LL))(v5, 10.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 1224LL))(v5, 10.0);
v6 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v5 + 968LL))(v5);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 976LL))(v5, v6 * 0.8);
v7 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v5 + 920LL))(v5);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 928LL))(v5, v7 * 0.8);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 1584LL))(v5, 1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v5, 11);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 2.0);
cocos2d::CCParticleSystem::resetSystem(v5);
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3);
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3);
cocos2d::CCNode::convertToWorldSpace(&v19, v8, v9);
cocos2d::CCNode::convertToNodeSpace(&v16, a1, &v19, v10);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v5 + 184LL))(v5, &v16);
v11 = (float)*(unsigned __int8 *)(v3 + 338) / 255.0;
v12.i16[0] = *(_WORD *)(v3 + 336);
v12.i8[2] = *(_BYTE *)(v3 + 338);
v12.i32[1] = (unsigned __int32)v12.i32[0] >> 8;
v13 = (float32x2_t)vdup_n_s32(0x437F0000u);
v16 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v12, (int8x8_t)0xFF000000FFLL)), v13);
v17 = v11;
v18 = 1065353216;
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v5 + 1360LL))(v5, &v16);
v14 = (float)*(unsigned __int8 *)(v3 + 338) / 255.0;
v15.i16[0] = *(_WORD *)(v3 + 336);
v15.i8[2] = *(_BYTE *)(v3 + 338);
v15.i32[1] = (unsigned __int32)v15.i32[0] >> 8;
v16 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v15, (int8x8_t)0xFF000000FFLL)), v13);
v17 = v14;
v18 = 1065353216;
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v5 + 1392LL))(v5, &v16);
if ( v21 < 0 )
operator delete(__p[0]);
}