//
// PlayLayer::showCompleteText from 0x100081f20 to 0x1000828a5 (2437 bytes)
//
// 3 xrefs:
// > PlayLayer::showCompleteEffect @ 0x100081de1
// > PlayLayer::levelComplete @ 0x100081853
// > PlayLayer::showCompleteEffect @ 0x100081e0e
//
// 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 12:20:02 +0000
//
__int64 __fastcall PlayLayer::showCompleteText(__int64 a1, __int64 a2)
{
__int64 v3; // rax
__int64 v4; // rax
bool v5; // zf
int v6; // xmm0_4
const char *v7; // rdi
__int64 v8; // r13
__int64 v9; // rax
int v10; // r12d
__int64 v11; // rax
int v12; // r15d
int v13; // r14d
int v14; // eax
__int64 v15; // rax
__int64 v16; // rax
__int64 v17; // r15
__int64 v18; // rax
__m128 v19; // xmm0
__m128 v20; // xmm1
__m128 v21; // xmm2
__int64 v22; // rax
__m128 v23; // xmm0
__m128 v24; // xmm1
__m128 v25; // xmm2
__int64 v26; // r14
__int64 v27; // rsi
__int64 v28; // rax
float v29; // xmm1_4
__int64 v30; // r15
__int64 v31; // rax
__int16 v32; // cx
__int64 v33; // rdi
__int64 v34; // rsi
__int64 v35; // r14
__int64 v36; // rax
__int16 v37; // cx
__int64 v38; // rax
int v39; // r15d
int v40; // eax
int v41; // ecx
int v42; // r8d
int v43; // r9d
__int64 v44; // rax
int v45; // r15d
int v46; // eax
int v47; // ecx
int v48; // r8d
int v49; // r9d
__int64 v50; // rax
int v51; // r15d
int v52; // eax
int v53; // ecx
int v54; // r8d
int v55; // r9d
__int64 v56; // rax
int v57; // r15d
int v58; // eax
int v59; // ecx
int v60; // r8d
int v61; // r9d
__int64 v62; // rax
int v63; // r15d
int v64; // eax
int v65; // ecx
int v66; // r8d
int v67; // r9d
__int64 v68; // rax
int v69; // eax
int v70; // r15d
int v71; // eax
int v72; // ecx
int v73; // r8d
int v74; // r9d
__int64 v75; // rax
int v76; // eax
int v77; // r15d
int v78; // eax
int v79; // ecx
int v80; // r8d
int v81; // r9d
__int64 v82; // rax
int v83; // eax
int v84; // r15d
int v85; // eax
int v86; // ecx
int v87; // r8d
int v88; // r9d
__int64 v89; // rax
int v90; // eax
int v91; // r15d
int v92; // eax
int v93; // ecx
int v94; // r8d
int v95; // r9d
__int64 v96; // rax
int v97; // eax
int v98; // r15d
int v99; // eax
int v100; // ecx
int v101; // r8d
int v102; // r9d
__int64 v103; // rax
int v104; // eax
int v105; // r15d
int v106; // eax
int v107; // ecx
int v108; // r8d
int v109; // r9d
__int64 v110; // rax
int v111; // eax
int v112; // r15d
int v113; // eax
int v114; // ecx
int v115; // r8d
int v116; // r9d
__int64 v117; // rax
int v118; // eax
int v119; // r15d
int v120; // eax
int v121; // ecx
int v122; // r8d
int v123; // r9d
__int64 v124; // rax
int v125; // eax
int v126; // r15d
int v127; // eax
int v128; // ecx
int v129; // r8d
int v130; // r9d
__int64 v131; // rax
int v132; // eax
int v133; // r15d
int v134; // eax
int v135; // ecx
int v136; // r8d
int v137; // r9d
__int64 v138; // rax
int v139; // r14d
int v140; // eax
int v141; // ecx
int v142; // r8d
int v143; // r9d
__int64 v144; // rax
_BYTE v146[8]; // [rsp+0h] [rbp-60h] BYREF
_BYTE v147[8]; // [rsp+8h] [rbp-58h] BYREF
__m128 v148; // [rsp+10h] [rbp-50h] BYREF
float v149[2]; // [rsp+20h] [rbp-40h] BYREF
__int64 v150; // [rsp+28h] [rbp-38h]
int v151; // [rsp+34h] [rbp-2Ch]
v3 = *(_QWORD *)(a1 + 14896);
if ( v3 )
v151 = *(unsigned __int8 *)(v3 + 1840);
else
v151 = 0;
v4 = cocos2d::CCDirector::sharedDirector(a1, a2);
cocos2d::CCDirector::getWinSize(v149, v4);
sub_100278250(v146, v149[0] * 0.5, (float)(0.5 * v149[1]) + 35.0);
v5 = *(_BYTE *)(a1 + 12544) == 0;
if ( *(_BYTE *)(a1 + 12544) )
v6 = 1065353216;
else
v6 = 1066192077;
LODWORD(v150) = v6;
v7 = "GJ_levelComplete_001.png";
if ( !v5 )
v7 = "GJ_practiceComplete_001.png";
v8 = cocos2d::CCSprite::createWithSpriteFrameName(v7);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v8, 15);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL))(v8, v146);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 0.0099999998);
v9 = cocos2d::CCScaleTo::create_1(0.66000003, *(float *)&v150);
v150 = cocos2d::CCEaseElasticOut::create(v9, 0.60000002);
v10 = cocos2d::CCDelayTime::create(0.88000005);
v11 = cocos2d::CCScaleTo::create(0.22000001, 0.0099999998, 0.0099999998);
v12 = cocos2d::CCEaseIn::create(v11, 2.0);
v13 = cocos2d::CCHide::create();
v14 = cocos2d::CCCallFunc::create(v8, 537, 0);
v15 = sub_10039EB60(v150, v10, v12, v13, v14, 0);
cocos2d::CCNode::runAction(v8, v15);
v16 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 192LL))(v8);
sub_1002782D0(v147, v16);
v17 = cocos2d::CCParticleSystemQuad::create("levelComplete01.plist", 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 1584LL))(v17, 1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v17, 13);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v17 + 184LL))(v17, v147);
v18 = *(_QWORD *)(a1 + 3256);
v19 = 0;
v20 = 0;
v20.f32[0] = (float)(unsigned __int8)*(_WORD *)(v18 + 2602) / 255.0;
v21 = 0;
v21.f32[0] = (float)HIBYTE(*(unsigned __int16 *)(v18 + 2602)) / 255.0;
v19.f32[0] = (float)*(unsigned __int8 *)(v18 + 2604) / 255.0;
v148 = _mm_movelh_ps(_mm_insert_ps(v20, v21, 16), _mm_blend_ps(v19, (__m128)xmmword_100A03610, 14));
(*(void (__fastcall **)(__int64, __m128 *))(*(_QWORD *)v17 + 1360LL))(v17, &v148);
v22 = *(_QWORD *)(a1 + 3256);
v23 = 0;
v23.f32[0] = (float)*(unsigned __int8 *)(v22 + 2604);
LODWORD(v22) = *(unsigned __int16 *)(v22 + 2602);
v24 = 0;
v25 = 0;
v24.f32[0] = (float)(unsigned __int8)v22 / 255.0;
v25.f32[0] = (float)((unsigned int)v22 >> 8) / 255.0;
v23.f32[0] = v23.f32[0] / 255.0;
v148 = _mm_movelh_ps(_mm_insert_ps(v24, v25, 16), _mm_blend_ps(v23, (__m128)xmmword_100A03610, 14));
(*(void (__fastcall **)(__int64, __m128 *))(*(_QWORD *)v17 + 1392LL))(v17, &v148);
v26 = cocos2d::CCParticleSystemQuad::create("levelComplete01.plist", 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v26 + 1584LL))(v26, 1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v26, 13);
v27 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 192LL))(v17);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v26 + 184LL))(v26, v27);
if ( !*(_BYTE *)(a1 + 12544) && !(_BYTE)v151 )
{
v28 = cocos2d::CCDirector::sharedDirector(v26, v27);
v29 = sub_100479770(v28);
v30 = CCCircleWave::create_1(0, 10.0, v29, 0.80000001);
*(_DWORD *)(v30 + 356) = 4;
v31 = *(_QWORD *)(a1 + 3256);
v32 = *(_WORD *)(v31 + 2602);
*(_BYTE *)(v30 + 342) = *(_BYTE *)(v31 + 2604);
*(_WORD *)(v30 + 340) = v32;
if ( *(_BYTE *)(a1 + 12238) || (v33 = *(_QWORD *)(a1 + 12608)) == 0 || *(_QWORD *)(a1 + 14896) )
v34 = a1 + 14884;
else
v34 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v33 + 192LL))(v33);
sub_1002782D0(&v148, v34);
(*(void (__fastcall **)(__int64, __m128 *))(*(_QWORD *)v30 + 184LL))(v30, &v148);
(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 3920) + 464LL))(*(_QWORD *)(a1 + 3920), v30, 0);
v35 = CCCircleWave::create_1(0, 10.0, 250.0, 0.80000001);
*(_DWORD *)(v35 + 356) = 4;
v36 = *(_QWORD *)(a1 + 3256);
v37 = *(_WORD *)(v36 + 2602);
*(_BYTE *)(v35 + 342) = *(_BYTE *)(v36 + 2604);
*(_WORD *)(v35 + 340) = v37;
v38 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 192LL))(v8);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v35 + 184LL))(v35, v38);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v35, 9);
v39 = cocos2d::CCDelayTime::create(0.0);
v40 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnCircle, 0);
v44 = sub_10039EB60(v39, v40, 0, v41, v42, v43);
cocos2d::CCNode::runAction(a1, v44);
v45 = cocos2d::CCDelayTime::create(0.050000001);
v46 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnCircle, 0);
v50 = sub_10039EB60(v45, v46, 0, v47, v48, v49);
cocos2d::CCNode::runAction(a1, v50);
v51 = cocos2d::CCDelayTime::create(0.1);
v52 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnCircle, 0);
v56 = sub_10039EB60(v51, v52, 0, v53, v54, v55);
cocos2d::CCNode::runAction(a1, v56);
v57 = cocos2d::CCDelayTime::create(0.15000001);
v58 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnCircle, 0);
v62 = sub_10039EB60(v57, v58, 0, v59, v60, v61);
cocos2d::CCNode::runAction(a1, v62);
v63 = cocos2d::CCDelayTime::create(0.2);
v64 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnCircle, 0);
v68 = sub_10039EB60(v63, v64, 0, v65, v66, v67);
cocos2d::CCNode::runAction(a1, v68);
v69 = rand();
v70 = cocos2d::CCDelayTime::create(
(float)((float)((float)((float)((float)v69 * 4.6566129e-10) + (float)((float)v69 * 4.6566129e-10)) + -1.0)
* 0.079999998)
+ 0.0);
v71 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework, 0);
v75 = sub_10039EB60(v70, v71, 0, v72, v73, v74);
cocos2d::CCNode::runAction(a1, v75);
v76 = rand();
v77 = cocos2d::CCDelayTime::create(
(float)((float)((float)((float)((float)v76 * 4.6566129e-10) + (float)((float)v76 * 4.6566129e-10)) + -1.0)
* 0.079999998)
+ 0.15000001);
v78 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework, 0);
v82 = sub_10039EB60(v77, v78, 0, v79, v80, v81);
cocos2d::CCNode::runAction(a1, v82);
v83 = rand();
v84 = cocos2d::CCDelayTime::create(
(float)((float)((float)((float)((float)v83 * 4.6566129e-10) + (float)((float)v83 * 4.6566129e-10)) + -1.0)
* 0.079999998)
+ 0.30000001);
v85 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework, 0);
v89 = sub_10039EB60(v84, v85, 0, v86, v87, v88);
cocos2d::CCNode::runAction(a1, v89);
v90 = rand();
v91 = cocos2d::CCDelayTime::create(
(float)((float)((float)((float)((float)v90 * 4.6566129e-10) + (float)((float)v90 * 4.6566129e-10)) + -1.0)
* 0.079999998)
+ 0.45000002);
v92 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework, 0);
v96 = sub_10039EB60(v91, v92, 0, v93, v94, v95);
cocos2d::CCNode::runAction(a1, v96);
v97 = rand();
v98 = cocos2d::CCDelayTime::create(
(float)((float)((float)((float)((float)v97 * 4.6566129e-10) + (float)((float)v97 * 4.6566129e-10)) + -1.0)
* 0.079999998)
+ 0.60000002);
v99 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework, 0);
v103 = sub_10039EB60(v98, v99, 0, v100, v101, v102);
cocos2d::CCNode::runAction(a1, v103);
v104 = rand();
v105 = cocos2d::CCDelayTime::create(
(float)((float)((float)((float)((float)v104 * 4.6566129e-10) + (float)((float)v104 * 4.6566129e-10)) + -1.0)
* 0.079999998)
+ 0.75);
v106 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework, 0);
v110 = sub_10039EB60(v105, v106, 0, v107, v108, v109);
cocos2d::CCNode::runAction(a1, v110);
v111 = rand();
v112 = cocos2d::CCDelayTime::create(
(float)((float)((float)((float)((float)v111 * 4.6566129e-10) + (float)((float)v111 * 4.6566129e-10)) + -1.0)
* 0.079999998)
+ 0.90000004);
v113 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework, 0);
v117 = sub_10039EB60(v112, v113, 0, v114, v115, v116);
cocos2d::CCNode::runAction(a1, v117);
v118 = rand();
v119 = cocos2d::CCDelayTime::create(
(float)((float)((float)((float)((float)v118 * 4.6566129e-10) + (float)((float)v118 * 4.6566129e-10)) + -1.0)
* 0.079999998)
+ 1.0500001);
v120 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework, 0);
v124 = sub_10039EB60(v119, v120, 0, v121, v122, v123);
cocos2d::CCNode::runAction(a1, v124);
v125 = rand();
v126 = cocos2d::CCDelayTime::create(
(float)((float)((float)((float)((float)v125 * 4.6566129e-10) + (float)((float)v125 * 4.6566129e-10)) + -1.0)
* 0.079999998)
+ 1.2);
v127 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework, 0);
v131 = sub_10039EB60(v126, v127, 0, v128, v129, v130);
cocos2d::CCNode::runAction(a1, v131);
v132 = rand();
v133 = cocos2d::CCDelayTime::create(
(float)((float)((float)((float)((float)v132 * 4.6566129e-10) + (float)((float)v132 * 4.6566129e-10)) + -1.0)
* 0.079999998)
+ 1.35);
v134 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework, 0);
v138 = sub_10039EB60(v133, v134, 0, v135, v136, v137);
cocos2d::CCNode::runAction(a1, v138);
}
v139 = cocos2d::CCDelayTime::create(1.5);
v140 = cocos2d::CCCallFunc::create(a1, PlayLayer::showEndLayer, 0);
v144 = sub_10039EB60(v139, v140, 0, v141, v142, v143);
return cocos2d::CCNode::runAction(a1, v144);
}