//
// PlayLayer::showCompleteText from 0x1001436a8 to 0x100143bd0 (1320 bytes)
//
// 3 xrefs:
// > PlayLayer::showCompleteEffect @ 0x1001435a4
// > PlayLayer::levelComplete @ 0x10014318c
// > PlayLayer::showCompleteEffect @ 0x1001435c8
//
// 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 10:59:33 +0000
//
void __fastcall PlayLayer::showCompleteText(__int64 a1)
{
__int64 v2; // x8
char v3; // w25
__int64 v4; // x0
float v5; // s8
const char *v6; // x0
__int64 v7; // x20
__int64 v8; // x0
__int64 v9; // x21
__int64 v10; // x0
__int64 v11; // x0
__n128 v12; // q0
double *v13; // x0
__int64 v14; // x21
__int64 v15; // x8
unsigned __int16 v16; // w9
float32x2_t v17; // d8
int8x8_t v18; // d1
__int64 v19; // x8
unsigned __int16 v20; // w9
int8x8_t v21; // d1
__int64 v22; // x22
__int64 v23; // x0
__int64 v24; // x0
__int64 v25; // x0
double v26; // d0
__int64 v27; // x21
__int64 v28; // x8
__int16 v29; // w9
double v30; // d0
__int64 v31; // x21
__int64 v32; // x8
__int16 v33; // w9
__int64 v34; // x0
unsigned int i; // w22
__int64 v36; // x21
__int64 v37; // x0
unsigned int j; // w22
unsigned int v39; // w0
__int64 v40; // x21
__int64 v41; // x0
__int64 v42; // x20
__int64 v43; // x0
float32x2_t v44; // [xsp+28h] [xbp-98h] BYREF
float v45; // [xsp+30h] [xbp-90h]
int v46; // [xsp+34h] [xbp-8Ch]
__int64 v47; // [xsp+38h] [xbp-88h] BYREF
float v48; // [xsp+40h] [xbp-80h] BYREF
__int64 v49; // [xsp+48h] [xbp-78h] BYREF
v2 = *(_QWORD *)(a1 + 14896);
if ( v2 )
v3 = *(_BYTE *)(v2 + 1840);
else
v3 = 0;
v4 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(&v49, v4);
sub_1000262BC(&v48, *(float *)&v49 * 0.5, (float)(*((float *)&v49 + 1) * 0.5) + 35.0);
if ( *(_BYTE *)(a1 + 12544) )
v5 = 1.0;
else
v5 = 1.1;
if ( *(_BYTE *)(a1 + 12544) )
v6 = "GJ_practiceComplete_001.png";
else
v6 = "GJ_levelComplete_001.png";
v7 = cocos2d::CCSprite::createWithSpriteFrameName(v6);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v7, 15);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 184LL))(v7, &v48);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 160LL))(v7, 0.01);
v8 = cocos2d::CCScaleTo::create_1(0.66, v5);
v9 = cocos2d::CCEaseElasticOut::create(v8, 0.6);
cocos2d::CCDelayTime::create(0.88);
v10 = cocos2d::CCScaleTo::create(0.22, 0.01, 0.01);
cocos2d::CCEaseIn::create(v10, 2.0);
cocos2d::CCHide::create();
cocos2d::CCCallFunc::create(v7, 536, 1);
v11 = sub_10021D420(v9);
v12 = cocos2d::CCNode::runAction(v7, v11);
v13 = (double *)(*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v7 + 192LL))(v7, v12);
sub_1000262F4(&v47, v13);
v14 = cocos2d::CCParticleSystemQuad::create("levelComplete01.plist", 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 1584LL))(v14, 1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v14, 13);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v14 + 184LL))(v14, &v47);
v15 = *(_QWORD *)(a1 + 3256);
v16 = *(unsigned __int8 *)(v15 + 2604);
v17 = (float32x2_t)vdup_n_s32(0x437F0000u);
v18.i16[0] = *(_WORD *)(v15 + 2602);
v18.i8[2] = *(_BYTE *)(v15 + 2604);
v18.i32[1] = (unsigned __int32)v18.i32[0] >> 8;
v44 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v18, (int8x8_t)0xFF000000FFLL)), v17);
v45 = (float)v16 / 255.0;
v46 = 1065353216;
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v14 + 1360LL))(v14, &v44);
v19 = *(_QWORD *)(a1 + 3256);
v20 = *(unsigned __int8 *)(v19 + 2604);
v21.i16[0] = *(_WORD *)(v19 + 2602);
v21.i8[2] = *(_BYTE *)(v19 + 2604);
v21.i32[1] = (unsigned __int32)v21.i32[0] >> 8;
v44 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v21, (int8x8_t)0xFF000000FFLL)), v17);
v45 = (float)v20 / 255.0;
v46 = 1065353216;
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v14 + 1392LL))(v14, &v44);
v22 = cocos2d::CCParticleSystemQuad::create("levelComplete01.plist", 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 1584LL))(v22, 1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v22, 13);
v23 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 192LL))(v14);
v24 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 184LL))(v22, v23);
if ( (*(_BYTE *)(a1 + 12544) & 1) == 0 && (v3 & 1) == 0 )
{
v25 = cocos2d::CCDirector::sharedDirector(v24);
v26 = sub_100207EB0(v25);
v27 = CCCircleWave::create_1(0, 10.0, *(float *)&v26, 0.8);
*(_DWORD *)(v27 + 356) = 4;
v28 = *(_QWORD *)(a1 + 3256);
v29 = *(_WORD *)(v28 + 2602);
*(_BYTE *)(v27 + 342) = *(_BYTE *)(v28 + 2604);
*(_WORD *)(v27 + 340) = v29;
v30 = sub_1001427B4(a1, &v44);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v27 + 184LL))(v27, &v44, v30);
(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 3920) + 464LL))(*(_QWORD *)(a1 + 3920), v27, 0);
v31 = CCCircleWave::create_1(0, 10.0, 250.0, 0.8);
*(_DWORD *)(v31 + 356) = 4;
v32 = *(_QWORD *)(a1 + 3256);
v33 = *(_WORD *)(v32 + 2602);
*(_BYTE *)(v31 + 342) = *(_BYTE *)(v32 + 2604);
*(_WORD *)(v31 + 340) = v33;
v34 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v31 + 184LL))(v31, v34);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v31, 9);
for ( i = 0; i != 5; ++i )
{
v36 = cocos2d::CCDelayTime::create((float)i * 0.05);
cocos2d::CCCallFunc::create(a1, PlayLayer::spawnCircle, 0);
v37 = sub_10021D420(v36);
cocos2d::CCNode::runAction(a1, v37);
}
for ( j = 0; j != 10; ++j )
{
v39 = rand();
v40 = cocos2d::CCDelayTime::create((float)((float)((float)(vcvts_n_f32_s32(v39, 0x1Fu) * 2.0) + -1.0) * 0.08) + (float)((float)j * 0.15));
cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework, 0);
v41 = sub_10021D420(v40);
cocos2d::CCNode::runAction(a1, v41);
}
}
v42 = cocos2d::CCDelayTime::create(1.5);
cocos2d::CCCallFunc::create(a1, PlayLayer::showEndLayer, 0);
v43 = sub_10021D420(v42);
cocos2d::CCNode::runAction(a1, v43);
}