//
// GauntletSelectLayer::unlockAnimationFinished from 0x1403010b0 to 0x140301211 (353 bytes)
//
// 2 xrefs:
// > GauntletSelectLayer::playUnlockAnimation @ 0x140300520
// > ??> @ 0x14091e4a0
//
// This function is hookable on this platform (idp: pc, 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:30:08 +0000
//
void __fastcall GauntletSelectLayer::unlockAnimationFinished(__int64 a1)
{
__int64 v1; // rax
struct cocos2d::CCObject *v3; // rsi
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rdx
cocos2d::extension::CCScale9Sprite *v7; // r14
__int64 v8; // rbx
__int64 v9; // rax
__int64 v10; // rbx
struct cocos2d::CCActionInterval *v11; // rax
struct cocos2d::CCFiniteTimeAction *v12; // rax
struct cocos2d::CCAction *v13; // rax
_BYTE v14[40]; // [rsp+30h] [rbp-28h] BYREF
char v15; // [rsp+60h] [rbp+8h] BYREF
v1 = *(_QWORD *)(a1 + 440);
*(_BYTE *)(a1 + 513) = 0;
*(_BYTE *)(v1 + 628) = 0;
v3 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 496), *(int *)(a1 + 508));
*((_BYTE *)v3 + 352) = 0;
GauntletNode::generateNode(v3);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, 0.0, 0.0, 86.0, 86.0);
v5 = cocos2d::extension::CCScale9Sprite::create("GJ_squareB_01.png", v4);
LOBYTE(v6) = -1;
v7 = (cocos2d::extension::CCScale9Sprite *)v5;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(v5 + 320) + 40LL))(v5 + 320, v6);
v8 = *(_QWORD *)v7;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v15, 110.0, 234.0);
(*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *, __int64))(v8 + 312))(v7, v9);
(*(void (__fastcall **)(struct cocos2d::CCObject *, cocos2d::extension::CCScale9Sprite *, __int64))(*(_QWORD *)v3 + 456LL))(
v3,
v7,
100);
(**((void (__fastcall ***)(__int64, __int16 *))v7 + 40))((__int64)v7 + 320, &word_140703444);
cocos2d::extension::CCScale9Sprite::setBlendAdditive(v7, 1);
v10 = cocos2d::CCCallFunc::create(v7, sub_14003F5B0);
v11 = cocos2d::CCFadeOut::create(0.80000001);
v12 = cocos2d::CCEaseIn::create(v11, 1.5);
v13 = cocos2d::CCSequence::create(v12, v10, 0);
cocos2d::CCNode::runAction(v7, v13);
GauntletSelectLayer::unlockAnimationStep3(a1);
}