// // LevelInfoLayer::levelDownloadFinished from 0x1402fba60 to 0x1402fbdc2 (866 bytes) // // 2 xrefs: // > @ 0x1405871c0 // > @ 0x1406d4184 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=2 void LevelInfoLayer::levelDownloadFinished(LevelInfoLayer *a1, GJGameLevel *a2) { __int64 v4; // rdx cocos2d::CCObject *v5; // rcx __int64 v6; // rdx __int64 v7; // rcx __int64 v8; // rdx _QWORD *v9; // rax __int64 v10; // rcx _QWORD *v11; // rsi void **v12; // rdi __int64 v13; // rbx cocos2d::CCSpriteFrameCache *v14; // rax struct cocos2d::CCSpriteFrame *v15; // rax void *v16; // rcx __int64 *v17; // rcx __int64 v18; // rbx unsigned __int8 v19; // al __int64 *v20; // rbx __int64 *v21; // rax _BYTE v22[32]; // [rsp+30h] [rbp-50h] BYREF void *Block[2]; // [rsp+50h] [rbp-30h] BYREF __int64 v24; // [rsp+60h] [rbp-20h] unsigned __int64 v25; // [rsp+68h] [rbp-18h] v4 = *(_QWORD *)&a1->m_fSkewY; if ( !v4 || *(_DWORD *)(v4 + 328) - *(_DWORD *)(v4 + 332) == a2->m_levelID.random - a2->m_levelID.seed ) { (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)a1->m_pUserData + 320LL))(a1->m_pUserData, 0); v5 = *(cocos2d::CCObject **)&a1->m_fSkewY; if ( v5 ) cocos2d::CCObject::release(v5); *(_QWORD *)&a1->m_fSkewY = a2; cocos2d::CCObject::retain(a2); LOBYTE(v6) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_obPosition.y + 320LL))( *(_QWORD *)&a1->m_obPosition.y, v6); LevelInfoLayer::updateLabelValues((LevelInfoLayer *)((char *)a1 - 408)); v7 = *(_QWORD *)&a1->m_sInverse.ty; if ( v7 ) { v8 = *(_QWORD *)&a1->m_fSkewY; LOBYTE(v8) = *(_DWORD *)(v8 + 936) != *(_DWORD *)(v8 + 940); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 320LL))(v7, v8); if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_sInverse.ty + 328LL))(*(_QWORD *)&a1->m_sInverse.ty) ) { *(_OWORD *)Block = 0; Block[0] = sub_14003AA10(0x20u); v24 = 23; v25 = 31; strcpy((char *)Block[0], "GJ_duplicateBtn_001.png"); if ( *(_DWORD *)(*(_QWORD *)&a1->m_fSkewY + 936LL) - *(_DWORD *)(*(_QWORD *)&a1->m_fSkewY + 940LL) != 1 ) { v24 = 29; memmove(Block[0], "GJ_duplicateLockedBtn_001.png", 0x1Du); *((_BYTE *)Block[0] + 29) = 0; } v9 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_sInverse.ty + 936LL))(*(_QWORD *)&a1->m_sInverse.ty); v11 = v9; v12 = Block; if ( v25 > 0xF ) v12 = (void **)Block[0]; v13 = *v9; v14 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v10); v15 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, (const char *)v12); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSpriteFrame *))(v13 + 992))(v11, v15); if ( v25 > 0xF ) { v16 = Block[0]; if ( v25 + 1 >= 0x1000 ) { v16 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v16 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v16); } } v17 = *(__int64 **)&a1->m_sInverse.ty; v18 = *v17; v19 = (*(__int64 (__fastcall **)(__int64 *))(*v17 + 328))(v17); (*(void (__fastcall **)(_QWORD, _QWORD))(v18 + 920))(*(_QWORD *)&a1->m_sInverse.ty, v19); } v20 = (__int64 *)sub_14003BDB0((__int64)Block, *(_QWORD *)&a1->m_fSkewY + 1264LL); v21 = (__int64 *)sub_14003BDB0((__int64)v22, *(_QWORD *)&a1->m_fSkewY + 1232LL); CustomSongWidget::updateWithMultiAssets( *(CustomSongWidget **)&a1->m_bUseChildIndex, v21, v20, *(_DWORD *)(*(_QWORD *)&a1->m_fSkewY + 1296LL)); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source