//
// PlayLayer::showCompleteText from 0x1405071d0 to 0x1405077f6 (1574 bytes)
//
// 6 xrefs:
// > PlayLayer::showCompleteEffect @ 0x140507ceb
// > PlayLayer::levelComplete @ 0x140507143
// > PlayLayer::showCompleteEffect @ 0x140507ca8
// > ??> @ 0x1408d6430
// > ??> @ 0x1408d6440
// > ??> @ 0x14092a8c0
//
// 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:33:27 +0000
//
struct cocos2d::CCAction *__fastcall PlayLayer::showCompleteText(_BYTE *a1)
{
__int64 v1; // rax
char v3; // r13
__int64 v4; // rax
char v5; // al
float v6; // xmm8_4
const char *v7; // rcx
cocos2d::CCNode *v8; // rax
__int64 v9; // rcx
cocos2d::CCNode *v10; // r12
struct cocos2d::CCActionInterval *v11; // rax
struct cocos2d::CCFiniteTimeAction *v12; // r14
struct cocos2d::CCDelayTime *v13; // rsi
struct cocos2d::CCActionInterval *v14; // rax
struct cocos2d::CCEaseIn *v15; // rdi
__int64 v16; // rbx
__int64 v17; // rax
int v18; // r12d
struct cocos2d::CCAction *v19; // rax
cocos2d::CCNode *v20; // r14
const struct cocos2d::CCPoint *v21; // rax
struct cocos2d::CCParticleSystemQuad *v22; // rax
__int64 v23; // rdx
struct cocos2d::CCParticleSystemQuad *v24; // rsi
__int64 v25; // rax
int v26; // edx
__int64 v27; // rax
__int64 v28; // rax
int v29; // edx
__int64 v30; // rax
struct cocos2d::CCParticleSystemQuad *v31; // rax
__int64 v32; // rdx
struct cocos2d::CCParticleSystemQuad *v33; // rdi
__int64 v34; // rbx
__int64 v35; // rax
__int64 v36; // rcx
cocos2d::CCDirector *v37; // rax
__int64 v38; // rdx
__int64 v39; // rcx
__int64 v40; // r8
cocos2d::CCObject *v41; // rbx
__int64 v42; // rdx
__int64 v43; // rcx
const struct cocos2d::CCPoint *v44; // rdx
__int64 v45; // rdx
__int64 v46; // rcx
__int64 v47; // r8
cocos2d::CCObject *v48; // rdi
__int64 v49; // rbx
__int64 v50; // rdx
__int64 v51; // rax
int i; // edi
__int64 v53; // rbx
struct cocos2d::CCFiniteTimeAction *v54; // rax
struct cocos2d::CCAction *v55; // rax
__int64 v56; // rbx
int v57; // eax
struct cocos2d::CCFiniteTimeAction *v58; // rax
struct cocos2d::CCAction *v59; // rax
__int64 v60; // rbx
struct cocos2d::CCFiniteTimeAction *v61; // rax
struct cocos2d::CCAction *v62; // rax
__int16 v64; // [rsp+38h] [rbp-49h]
__int16 v65; // [rsp+38h] [rbp-49h]
float v66[2]; // [rsp+48h] [rbp-39h] BYREF
_BYTE v67[8]; // [rsp+50h] [rbp-31h] BYREF
_BYTE v68[8]; // [rsp+58h] [rbp-29h] BYREF
cocos2d::CCNode *v69; // [rsp+60h] [rbp-21h] BYREF
float v70; // [rsp+68h] [rbp-19h]
int v71; // [rsp+6Ch] [rbp-15h]
v1 = *((_QWORD *)a1 + 1947);
if ( v1 )
v3 = *(_BYTE *)(v1 + 1856);
else
v3 = 0;
v4 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v4, v66);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v67, v66[0] * 0.5, (float)(v66[1] * 0.5) + 35.0);
v5 = a1[13024];
if ( v5 )
v6 = 1.0;
else
v6 = 1.1;
v7 = "GJ_practiceComplete_001.png";
if ( !v5 )
v7 = "GJ_levelComplete_001.png";
v8 = cocos2d::CCSprite::createWithSpriteFrameName(v7);
v9 = *(_QWORD *)a1;
v69 = v8;
v10 = v8;
(*(void (__fastcall **)(_BYTE *, cocos2d::CCNode *, __int64))(v9 + 456))(a1, v8, 15);
(*(void (__fastcall **)(cocos2d::CCNode *, _BYTE *))(*(_QWORD *)v10 + 184LL))(v10, v67);
(*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v10 + 160LL))(v10);
v11 = cocos2d::CCScaleTo::create(0.66000003, v6);
v12 = cocos2d::CCEaseElasticOut::create(v11, 0.60000002);
v13 = cocos2d::CCDelayTime::create(0.88000005);
v14 = cocos2d::CCScaleTo::create(0.22000001, 0.0099999998, 0.0099999998);
v15 = cocos2d::CCEaseIn::create(v14, 2.0);
v16 = cocos2d::CCHide::create();
v17 = cocos2d::CCCallFunc::create(v10, sub_14003F5B0);
v18 = 0;
v19 = cocos2d::CCSequence::create(v12, v13, v15, v16, v17, 0);
v20 = v69;
cocos2d::CCNode::runAction(v69, v19);
v21 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v20 + 200LL))(v20);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v68, v21);
v22 = cocos2d::CCParticleSystemQuad::create("levelComplete01.plist", 0);
LOBYTE(v23) = 1;
v24 = v22;
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v22 + 1544LL))(v22, v23);
(*(void (__fastcall **)(_BYTE *, struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)a1 + 456LL))(
a1,
v24,
13);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, _BYTE *))(*(_QWORD *)v24 + 184LL))(v24, v68);
v25 = *((_QWORD *)a1 + 439);
v26 = *(unsigned __int8 *)(v25 + 2708);
v64 = *(_WORD *)(v25 + 2706);
v71 = 1065353216;
*(float *)&v69 = (float)(unsigned __int8)v64 / 255.0;
v27 = *(_QWORD *)v24;
v70 = (float)v26 / 255.0;
*((float *)&v69 + 1) = (float)HIBYTE(v64) / 255.0;
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, cocos2d::CCNode **))(v27 + 1352))(v24, &v69);
v28 = *((_QWORD *)a1 + 439);
v29 = *(unsigned __int8 *)(v28 + 2708);
v65 = *(_WORD *)(v28 + 2706);
v71 = 1065353216;
v30 = *(_QWORD *)v24;
*(float *)&v69 = (float)(unsigned __int8)v65 / 255.0;
*((float *)&v69 + 1) = (float)HIBYTE(v65) / 255.0;
v70 = (float)v29 / 255.0;
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, cocos2d::CCNode **))(v30 + 1384))(v24, &v69);
v31 = cocos2d::CCParticleSystemQuad::create("levelComplete01.plist", 0);
LOBYTE(v32) = 1;
v33 = v31;
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v31 + 1544LL))(v31, v32);
(*(void (__fastcall **)(_BYTE *, struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)a1 + 456LL))(
a1,
v33,
13);
v34 = *(_QWORD *)v33;
v35 = (*(__int64 (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v24 + 200LL))(v24);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(v34 + 184))(v33, v35);
if ( !a1[13024] && !v3 )
{
v37 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v36);
cocos2d::CCDirector::getScreenRight(v37);
v41 = CCCircleWave::create(v39, v38, v40, 0, 1);
*((_DWORD *)v41 + 89) = 4;
v42 = *((_QWORD *)a1 + 439);
*((_WORD *)v41 + 170) = *(_WORD *)(v42 + 2706);
*((_BYTE *)v41 + 342) = *(_BYTE *)(v42 + 2708);
if ( a1[12670] || (v43 = *((_QWORD *)a1 + 1636)) == 0 || *((_QWORD *)a1 + 1947) )
v44 = (const struct cocos2d::CCPoint *)(a1 + 15564);
else
v44 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v43 + 200LL))(v43);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v69, v44);
(*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCNode **))(*(_QWORD *)v41 + 184LL))(v41, &v69);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, _QWORD))(**((_QWORD **)a1 + 537) + 456LL))(
*((_QWORD *)a1 + 537),
v41,
0);
v48 = CCCircleWave::create(v46, v45, v47, 0, 1);
v49 = *(_QWORD *)v48;
*((_DWORD *)v48 + 89) = 4;
v50 = *((_QWORD *)a1 + 439);
*((_WORD *)v48 + 170) = *(_WORD *)(v50 + 2706);
*((_BYTE *)v48 + 342) = *(_BYTE *)(v50 + 2708);
v51 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v20 + 200LL))(v20);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v49 + 184))(v48, v51);
(*(void (__fastcall **)(_BYTE *, cocos2d::CCObject *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v48, 9);
for ( i = 0; i < 5; ++i )
{
v53 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnCircle);
v54 = cocos2d::CCDelayTime::create((float)i * 0.050000001);
v55 = cocos2d::CCSequence::create(v54, v53, 0);
cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v55);
}
do
{
v56 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework);
v57 = rand();
v58 = cocos2d::CCDelayTime::create(
(float)((float)((float)((float)((float)v57 / 32767.0) + (float)((float)v57 / 32767.0)) - 1.0) * 0.079999998)
+ (float)((float)v18 * 0.15000001));
v59 = cocos2d::CCSequence::create(v58, v56, 0);
cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v59);
++v18;
}
while ( v18 < 10 );
}
v60 = cocos2d::CCCallFunc::create(a1, PlayLayer::showEndLayer);
v61 = cocos2d::CCDelayTime::create(1.5);
v62 = cocos2d::CCSequence::create(v61, v60, 0);
return cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v62);
}