// // LevelListLayer::updateStatsArt from 0x100349760 to 0x10034a576 (3606 bytes) // // 6 xrefs: // > LevelListLayer::init @ 0x100348bca // > LevelListLayer::onEnter @ 0x10034a5f0 // > LevelListLayer::loadLevelsFinished @ 0x10034ab89 // > LevelListLayer::likedItem @ 0x10034bb0d // > LevelListLayer::iconSelectClosed @ 0x10034bd68 // > sub_10034BD70 @ 0x10034bd8c // // 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:28:47 +0000 // __int64 __fastcall LevelListLayer::updateStatsArt(__int64 a1) { __int64 *v1; // rbx __int64 v2; // rdi unsigned int *v3; // rax _QWORD *v4; // rbx unsigned __int64 v5; // r14 __int64 v6; // r14 __int64 v7; // r15 const char *v8; // rsi __int64 v9; // rax __int64 v10; // rdi __int64 v11; // rsi __int64 v12; // rax float v13; // r14d __int64 v14; // rax __int64 v15; // rax int v16; // eax char *v17; // r12 char *v18; // r13 int v19; // ecx __int64 v20; // rax __int64 v21; // rax __m128 v22; // xmm2 __int64 v23; // rax __int64 CString; // rax __int64 v25; // r12 unsigned __int64 *v26; // r14 __int64 result; // rax char *v28; // r13 __int64 *v29; // rbx double v30; // rdi __int64 v31; // r12 unsigned __int64 *v32; // rbx __int64 *v33; // rbx const char *v34; // rdi char *v35; // r12 unsigned __int64 *v36; // r13 float v37; // xmm0_4 signed int v38; // eax __int64 *v39; // rbx char *v40; // r15 double v41; // rdi __int64 v42; // r13 __int64 v43; // rax unsigned __int64 *v44; // rbx __int64 *v45; // rbx char *v46; // r15 unsigned __int64 *v47; // rbx double v48; // rdi char *v49; // r13 unsigned __int64 *v50; // rbx double v51; // xmm0_8 char *v52; // r12 unsigned __int64 *v53; // rbx __int64 v54; // rax __int64 v55; // rax __int64 v56; // r15 __int64 v57; // rax unsigned __int64 *v58; // rbx void *v59; // r13 void *v60; // r12 __int64 v61; // rax double v62; // xmm0_8 __int64 v63; // rbx char *v64; // r15 void *v65; // r14 unsigned __int64 *v66; // rbx __int64 *v67; // rbx unsigned __int64 *v68; // rbx unsigned int *v69; // rbx double v70; // xmm0_8 char *v71; // r13 unsigned __int64 *v72; // rbx double v73; // rdi __int64 v74; // r15 unsigned __int64 *v75; // rbx char v76; // [rsp+0h] [rbp-90h] char v77; // [rsp+0h] [rbp-90h] float v78[2]; // [rsp+Ch] [rbp-84h] BYREF int v79; // [rsp+14h] [rbp-7Ch] char *v80; // [rsp+18h] [rbp-78h] __int16 v81; // [rsp+20h] [rbp-70h] BYREF char v82; // [rsp+22h] [rbp-6Eh] int v83; // [rsp+24h] [rbp-6Ch] char *v84; // [rsp+28h] [rbp-68h] int v85; // [rsp+34h] [rbp-5Ch] unsigned __int64 v86; // [rsp+38h] [rbp-58h] BYREF float v87; // [rsp+40h] [rbp-50h] char v88; // [rsp+47h] [rbp-49h] __int64 *v89; // [rsp+48h] [rbp-48h] double v90[8]; // [rsp+50h] [rbp-40h] BYREF v1 = (__int64 *)a1; *(_BYTE *)(a1 + 1008) = 0; v2 = *(_QWORD *)(a1 + 976); v89 = v1; if ( v2 ) { v3 = *(unsigned int **)(v2 + 56); if ( *v3 ) { v4 = *((_QWORD **)v3 + 2); v5 = (unsigned __int64)&v4[*v3 - 1]; do { if ( !*v4 ) break; (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v4 + 536LL))(*v4); ++v4; } while ( (unsigned __int64)v4 <= v5 ); v1 = v89; v2 = v89[122]; } } else { v2 = 0; } sub_1007FF190(v2); v6 = v1[123]; v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); GJLevelList::frameForListDifficulty(v90, *(unsigned int *)(v1[114] + 360), 2); if ( (LOBYTE(v90[0]) & 1) != 0 ) v8 = *(const char **)&v90[2]; else v8 = (char *)v90 + 1; v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v8); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v9); if ( (LOBYTE(v90[0]) & 1) != 0 ) operator delete(*(void **)&v90[2]); v10 = v1[124]; v11 = *(unsigned __int8 *)(v1[114] + 397); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 344LL))(v10, v11); v12 = cocos2d::CCDirector::sharedDirector(v10, v11); cocos2d::CCDirector::getWinSize(v78, v12); v83 = GJLevelList::completedLevels(v1[114]); LODWORD(v13) = GJLevelList::totalLevels(v1[114]); v14 = v1[114]; LOBYTE(v7) = 1; if ( *(int *)(v14 + 384) <= 0 || *(int *)(v14 + 388) <= 0 ) { v87 = v13; v85 = 0; } else { v15 = GameStatsManager::sharedState(); if ( GameStatsManager::hasClaimedListReward(v15) ) { v87 = v13; LOBYTE(v16) = 1; v85 = v16; } else { v87 = *(float *)(v1[114] + 388); v85 = 0; } LODWORD(v7) = 0; } v82 = 0; v81 = 0; v17 = cocos2d::CCSprite::create_1((__int64)"GJ_progressBar_001.png"); (*(void (__fastcall **)(char *, __int16 *))(*(_QWORD *)v17 + 960LL))(v17, &v81); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v17 + 912LL))(v17, 125); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v17 + 144LL))(v17, 0.80000001); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v17 + 128LL))(v17, 0.80000001); (*(void (__fastcall **)(__int64 *, char *, __int64))(*v1 + 464))(v1, v17, 3); sub_1007FEBF0(v1[122], v17); sub_100278250((float *)v90, v78[0] * 0.5, 16.0); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v17 + 184LL))(v17, v90); v18 = cocos2d::CCSprite::create_1((__int64)"GJ_progressBar_001.png"); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v18 + 128LL))(v18, 0.98000002); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v18 + 144LL))(v18, 0.75999999); v79 = v7; v88 = v7 | v85; v19 = 3298559; if ( (unsigned __int8)v7 | (unsigned __int8)v85 ) v19 = -16816; LOWORD(v90[0]) = v19; BYTE2(v90[0]) = BYTE2(v19); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v18 + 960LL))(v18, v90); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v18 + 912LL))(v18, 225); *(float *)&v84 = *((float *)v18 + 108) - (float)(0.98000002 * *((float *)v18 + 108)); (*(void (__fastcall **)(char *, char *, __int64))(*(_QWORD *)v17 + 464LL))(v17, v18, 1); sub_100278250((float *)v90, 0.0, 0.5); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v18 + 296LL))(v18, v90); *(float *)&v84 = *(float *)&v84 * 0.5; v20 = *(_QWORD *)v17; v80 = v17; v21 = (*(__int64 (__fastcall **)(char *))(v20 + 328))(v17); sub_100278250((float *)v90, *(float *)&v84, 0.5 * *(float *)(v21 + 4)); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v18 + 184LL))(v18, v90); v22 = 0; if ( SLODWORD(v87) > 0 ) { v22 = 0; v22.f32[0] = (float)v83 / (float)SLODWORD(v87); } v22.f32[0] = fminf(v22.f32[0] * *((float *)v18 + 108), *((float *)v18 + 108)); sub_100278270((__int64)v90, 0.0, 0.0, v22, (__m128)*((unsigned int *)v18 + 109)); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v18 + 1136LL))(v18, v90); v23 = sub_10088E820("%i/%i", v76); CString = cocos2d::CCString::getCString(v23); v25 = cocos2d::CCLabelBMFont::create_3(CString, "bigFont.fnt"); (*(void (__fastcall **)(__int64 *, __int64, __int64))(*v1 + 464))(v1, v25, 4); sub_1007FEBF0(v1[122], v25); v26 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v80 + 192LL))(v80); sub_100278250((float *)&v86, 0.0, 1.0); sub_100278350(v90, v26, &v86); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v25 + 184LL))(v25, v90); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v25 + 160LL))(v25, 0.5); result = v89[114]; if ( *(_DWORD *)(result + 544) != 2 ) { v28 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_downloadsIcon_001.png", COERCE_DOUBLE(1056964608)); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v28 + 160LL))(v28, 0.80000001); sub_100278250((float *)v90, 26.0, (float)(v78[1] * 0.5) + 88.0); v29 = v89; (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v28 + 184LL))(v28, v90); (*(void (__fastcall **)(__int64 *, char *, __int64))(*v29 + 464))(v29, v28, 1); sub_1007FEBF0(v29[122], v28); GameToolbox::intToShortString(v90, *(unsigned int *)(v29[114] + 352), 0); if ( (LOBYTE(v90[0]) & 1) != 0 ) v30 = v90[2]; else v30 = COERCE_DOUBLE((double *)((char *)v90 + 1)); v31 = cocos2d::CCLabelBMFont::create_3(*(_QWORD *)&v30, "bigFont.fnt"); if ( (LOBYTE(v90[0]) & 1) != 0 ) operator delete(*(void **)&v90[2]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, 0.40000001); v32 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v28 + 192LL))(v28); sub_100278250((float *)&v86, 0.0, -21.0); sub_100278350(v90, v32, &v86); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v31 + 184LL))(v31, v90); v33 = v89; (*(void (__fastcall **)(__int64 *, __int64, __int64))(*v89 + 464))(v89, v31, 1); sub_1007FEBF0(v33[122], v31); v34 = "GJ_dislikesIcon_001.png"; if ( *(int *)(v33[114] + 356) >= 0 ) v34 = "GJ_likesIcon_001.png"; v35 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v34, 0.0); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v35 + 160LL))(v35, 0.80000001); v36 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v28 + 192LL))(v28); if ( v88 ) v37 = -52.0; else v37 = -45.0; v38 = (*(_DWORD *)(v33[114] + 356) >> 29) & 0xFFFFFFFC; v87 = v37; sub_100278250((float *)&v86, 0.0, (float)v38 + v37); v39 = v89; sub_100278350(v90, v36, &v86); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v35 + 184LL))(v35, v90); (*(void (__fastcall **)(__int64 *, char *, __int64))(*v39 + 464))(v39, v35, 1); sub_1007FEBF0(v39[122], v35); GameToolbox::intToShortString(v90, *(unsigned int *)(v39[114] + 356), 0); v40 = v80; if ( (LOBYTE(v90[0]) & 1) != 0 ) v41 = v90[2]; else v41 = COERCE_DOUBLE((double *)((char *)v90 + 1)); v42 = cocos2d::CCLabelBMFont::create_3(*(_QWORD *)&v41, "bigFont.fnt"); if ( (LOBYTE(v90[0]) & 1) != 0 ) operator delete(*(void **)&v90[2]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v42 + 160LL))(v42, 0.40000001); v43 = *(_QWORD *)v35; v84 = v35; v44 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(v43 + 192))(v35); sub_100278250((float *)&v86, 0.0, -21.0); sub_100278350(v90, v44, &v86); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v42 + 184LL))(v42, v90); v45 = v89; (*(void (__fastcall **)(__int64 *, __int64, __int64))(*v89 + 464))(v89, v42, 1); result = sub_1007FEBF0(v45[122], v42); if ( !(_BYTE)v79 ) { if ( (_BYTE)v85 ) { v46 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_diamondsIcon_001.png", 0.0); (*(void (__fastcall **)(__int64 *, char *))(*v45 + 456))(v45, v46); sub_1007FEBF0(v45[122], v46); v47 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v84 + 192LL))(v84); sub_100278250((float *)&v86, 0.0, -52.0); sub_100278350(v90, v47, &v86); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v46 + 184LL))(v46, v90); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v46 + 160LL))(v46, 0.89999998); GameToolbox::intToShortString(v90, *(unsigned int *)(v89[114] + 384), 0); if ( (LOBYTE(v90[0]) & 1) != 0 ) v48 = v90[2]; else v48 = COERCE_DOUBLE((double *)((char *)v90 + 1)); v65 = (void *)cocos2d::CCLabelBMFont::create_3(*(_QWORD *)&v48, "bigFont.fnt"); if ( (LOBYTE(v90[0]) & 1) != 0 ) operator delete(*(void **)&v90[2]); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v65 + 160LL))(v65, 0.40000001); v66 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v46 + 192LL))(v46); sub_100278250((float *)&v86, 0.0, -21.0); sub_100278350(v90, v66, &v86); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v65 + 184LL))(v65, v90); v67 = v89; (*(void (__fastcall **)(__int64 *, void *, __int64))(*v89 + 464))(v89, v65, 1); } else { v49 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"diamond_small01_001.png", 0.0); (*(void (__fastcall **)(__int64 *, char *, __int64))(*v45 + 464))(v45, v49, 10); sub_1007FEBF0(v45[122], v49); v50 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v40 + 192LL))(v40); sub_100278250((float *)&v86, 125.0, 0.0); sub_100278350(v90, v50, &v86); v51 = (*(double (__fastcall **)(char *, double *))(*(_QWORD *)v49 + 184LL))(v49, v90); v52 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_completesIcon_001.png", v51); (*(void (__fastcall **)(__int64 *, char *))(*v89 + 456))(v89, v52); sub_1007FEBF0(v89[122], v52); v53 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v84 + 192LL))(v84); sub_100278250((float *)&v86, 0.0, v87); sub_100278350(v90, v53, &v86); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v52 + 184LL))(v52, v90); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v52 + 160LL))(v52, 0.80000001); GJLevelList::totalLevels(v89[114]); v54 = sub_10088E820("%i/%i", v77); v55 = cocos2d::CCString::getCString(v54); v56 = cocos2d::CCLabelBMFont::create_3(v55, "bigFont.fnt"); (*(void (__fastcall **)(__int64 *, __int64))(*v89 + 456))(v89, v56); sub_1007FEBF0(v89[122], v56); v57 = *(_QWORD *)v52; v80 = v52; v58 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(v57 + 192))(v52); sub_100278250((float *)&v86, 0.0, -21.0); sub_100278350(v90, v58, &v86); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v56 + 184LL))(v56, v90); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v56 + 160LL))(v56, 0.40000001); v59 = cocos2d::CCNode::create(); sub_100278260((float *)v90, 50.0, 50.0); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v59 + 320LL))(v59, v90); v60 = cocos2d::CCNode::create(); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v60 + 320LL))(v60, &unk_100BE2EF0); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v59 + 456LL))(v59, v60); *(float *)&v84 = *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v59 + 328LL))(v59) * 0.5; v61 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v59 + 328LL))(v59); *(_QWORD *)&v62 = (unsigned int)v84; sub_100278250((float *)v90, *(float *)&v84, 0.5 * *(float *)(v61 + 4)); v63 = (__int64)v89; (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v60 + 184LL))(v60, v90); if ( v83 >= *(_DWORD *)(*(_QWORD *)(v63 + 912) + 388LL) ) { v64 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_rewardBtn_001.png", v62); } else { strcpy((char *)v90, "(GJ_rewardBtn_001.png"); v64 = (char *)CCSpriteGrayscale::createWithSpriteFrameName(v90); if ( (LOBYTE(v90[0]) & 1) != 0 ) operator delete(*(void **)&v90[2]); CCSpriteWithHue::setEvenLuminance(v64, 1.0); memset(v90, 175, 3); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v64 + 960LL))(v64, v90); } (*(void (__fastcall **)(char *, float))(*(_QWORD *)v64 + 160LL))(v64, 0.60000002); (*(void (__fastcall **)(void *, char *))(*(_QWORD *)v60 + 456LL))(v60, v64); v65 = CCMenuItemSpriteExtra::create((__int64)v59, 0, v63, (__int64)LevelListLayer::onClaimReward, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v63 + 880) + 456LL))(*(_QWORD *)(v63 + 880), v65); v68 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v80 + 192LL))(v80); sub_100278250((float *)&v86, 0.0, -54.0); sub_100278350(v90, v68, &v86); v69 = (unsigned int *)(v89 + 125); sub_100278300(v89 + 125, v90); cocos2d::CCNode::convertToNodeSpace(v90, v89[110], v69); v70 = (*(double (__fastcall **)(void *, double *))(*(_QWORD *)v65 + 184LL))(v65, v90); v71 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"diamond_small01_001.png", v70); (*(void (__fastcall **)(void *, char *))(*(_QWORD *)v60 + 456LL))(v60, v71); v72 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v64 + 192LL))(v64); sub_100278250((float *)&v86, 8.0, -25.0); sub_100278350(v90, v72, &v86); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v71 + 184LL))(v71, v90); GameToolbox::intToString(v90, *(unsigned int *)(v89[114] + 384)); if ( (LOBYTE(v90[0]) & 1) != 0 ) v73 = v90[2]; else v73 = COERCE_DOUBLE((double *)((char *)v90 + 1)); v74 = cocos2d::CCLabelBMFont::create_3(*(_QWORD *)&v73, "bigFont.fnt"); if ( (LOBYTE(v90[0]) & 1) != 0 ) operator delete(*(void **)&v90[2]); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v60 + 456LL))(v60, v74); sub_100278250((float *)v90, 1.0, 0.5); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v74 + 296LL))(v74, v90); v75 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v71 + 192LL))(v71); sub_100278250((float *)&v86, -8.0, 0.0); sub_100278350(v90, v75, &v86); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v74 + 184LL))(v74, v90); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v74 + 160LL))(v74, 0.40000001); v67 = v89; } return sub_1007FEBF0(v67[122], v65); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source