// // LevelInfoLayer::onClone from 0x1002b13d0 to 0x1002b1537 (359 bytes) // // 1 xrefs: // > LevelInfoLayer::FLAlert_Clicked @ 0x1002b1ad9 // // 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:01 +0000 // void __fastcall LevelInfoLayer::onClone(__int64 a1) { __int64 v1; // rax __int128 *v2; // rax __int64 v3; // r14 __int64 v4; // rdx double v5; // xmm0_8 __int64 v6; // rax __int64 v7; // rax _DWORD *NewLevel; // r14 __int64 v9; // rsi _DWORD *v10; // rax int v11; // ebx int v12; // eax __int64 v13; // rbx __int64 v14; // rax char *v15; // rax __int128 v16; // [rsp+0h] [rbp-30h] BYREF void *__p; // [rsp+10h] [rbp-20h] v1 = *(_QWORD *)(a1 + 504); if ( *(_DWORD *)(v1 + 1140) != 4 ) { if ( (*(_BYTE *)(v1 + 392) & 1) != 0 ) { sub_10001AD30(&v16, *(const void **)(v1 + 408), *(_QWORD *)(v1 + 400)); } else { v2 = (__int128 *)(v1 + 392); __p = *((void **)v2 + 2); v16 = *v2; } if ( (v16 & 1) != 0 ) { v3 = *((_QWORD *)&v16 + 1); operator delete(__p); if ( !v3 ) return; } else if ( !((unsigned __int8)v16 >> 1) ) { return; } if ( !*(_BYTE *)(a1 + 488) ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); *(_BYTE *)(a1 + 488) = 1; *(_QWORD *)&v5 = GameManager::sharedState(a1, 0, v4).u64[0]; *(_DWORD *)(v6 + 708) = 2; v7 = GameLevelManager::sharedState(v5); NewLevel = (_DWORD *)GameLevelManager::createNewLevel(v7); v9 = *(_QWORD *)(a1 + 504); GJGameLevel::copyLevelInfo(NewLevel, v9); v10 = *(_DWORD **)(a1 + 504); v11 = v10[247] - v10[248]; if ( !v11 ) v11 = v10[82] - v10[83]; NewLevel[249] = v11; v12 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); NewLevel[248] = v12; NewLevel[247] = v12 + v11; v13 = cocos2d::CCDirector::sharedDirector(NewLevel, v9); v14 = EditLevelLayer::scene((__int64)NewLevel, v9); v15 = cocos2d::CCTransitionFade::create_1(v14, 0.5); cocos2d::CCDirector::replaceScene(v13, v15); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source