//
// GauntletSelectLayer::unlockAnimationStep2 from 0x1001c0630 to 0x1001c0880 (592 bytes)
//
// 1 xrefs:
// > GauntletSelectLayer::playUnlockAnimation @ 0x1001c0304
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GauntletSelectLayer::unlockAnimationStep2(GauntletSelectLayer *a1)
{
cocos2d::CCObject *v2; // x19
cocos2d::CCDirector *v3; // x0
cocos2d::CCParticleSystemQuad *v4; // x20
float v5; // s0
float v6; // s0
cocos2d::CCNode *v7; // x22
const cocos2d::CCPoint *v8; // x0
float v9; // s0
int8x8_t v10; // d1
float32x2_t v11; // d9
float v12; // s0
int8x8_t v13; // d1
float32x2_t v14; // [xsp+8h] [xbp-68h] BYREF
float v15; // [xsp+10h] [xbp-60h]
int v16; // [xsp+14h] [xbp-5Ch]
cocos2d::CCPoint v17; // [xsp+18h] [xbp-58h] BYREF
void *__p[2]; // [xsp+20h] [xbp-50h] BYREF
char v19; // [xsp+37h] [xbp-39h]
cocos2d::CCPoint v20; // 0:kr10_8.8
v2 = cocos2d::CCDictionary::objectForKey(a1->m_gauntlets, (unsigned int)a1->m_gauntletID);
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v3);
sub_100009900(
__p,
"84a0.97a1a0.16a72a180a180a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a0a0a0a0a1a0a1a1a0a0a1a0a0.568627a0a0a0a1a0a0.8a0a0.2a0a1"
"50a0a0a0a0a0a1a2a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0");
v4 = GameToolbox::particleFromString((__int64)__p, nullptr, 0);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v4->setEndRadius)(v4, 10.0);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v4->setEndRadiusVar)(v4, 10.0);
v5 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v4->getLife)(v4);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v4->setLife)(v4, v5 * 0.8);
v6 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v4->getDuration)(v4);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v4->setDuration)(v4, v6 * 0.8);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v4->setAutoRemoveOnFinish)(v4, 1);
((void (__fastcall *)(GauntletSelectLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->addChild_0)(a1, v4, 11);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v4->setScale)(v4, 2.0);
cocos2d::CCParticleSystem::resetSystem(v4);
v7 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCObject *))v2->__vftable[6].~CCObject_0)(v2);
v8 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCObject *))v2->__vftable[2].acceptVisitor)(v2);
cocos2d::CCNode::convertToWorldSpace(v7, v8);
v20 = cocos2d::CCNode::convertToNodeSpace(a1, &v17);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float32x2_t *, float, float))v4->setPosition)(
v4,
&v14,
v20.x,
v20.y);
v9 = (float)BYTE2(v2[6].__vftable) / 255.0;
v10.i16[0] = (__int16)v2[6].__vftable;
v10.i8[2] = BYTE2(v2[6].__vftable);
v10.i32[1] = (unsigned __int32)v10.i32[0] >> 8;
v11 = (float32x2_t)vdup_n_s32(0x437F0000u);
v14 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v10, (int8x8_t)0xFF000000FFLL)), v11);
v15 = v9;
v16 = 1065353216;
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float32x2_t *))v4->setStartColor)(v4, &v14);
v12 = (float)BYTE2(v2[6].__vftable) / 255.0;
v13.i16[0] = (__int16)v2[6].__vftable;
v13.i8[2] = BYTE2(v2[6].__vftable);
v13.i32[1] = (unsigned __int32)v13.i32[0] >> 8;
v14 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v13, (int8x8_t)0xFF000000FFLL)), v11);
v15 = v12;
v16 = 1065353216;
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float32x2_t *))v4->setEndColor)(v4, &v14);
if ( v19 < 0 )
operator delete(__p[0]);
}