// // PlayLayer::updateAttempts from 0x10008d590 to 0x10008d71c (396 bytes) // // 1 xrefs: // > PlayLayer::resetLevel @ 0x10008d234 // // 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:07 +0000 // unsigned __int8 __fastcall PlayLayer::updateAttempts(__int64 a1, __int64 a2, __int64 a3) { __int64 v4; // rax __int64 v5; // r14 __int64 v6; // rdx __int64 v7; // rax __int64 v8; // rdx __int64 v9; // rax __int64 v10; // r14 __int64 v11; // rdx __int64 v12; // rdx unsigned __int64 v13; // xmm0_8 __int64 v14; // rax __int64 v15; // rax __int64 v16; // r14 __int64 v17; // rdx __int64 v18; // rax __int64 v19; // rax __int64 CString; // rax __int64 v21; // rdi __int64 v22; // rsi __int64 v23; // rax float *v24; // rdi const char *v25; // rsi __int64 v26; // rdx float *v27; // r14 float *v28; // rax __int64 v29; // rax unsigned __int8 result; // al char v31; // [rsp+0h] [rbp-30h] _BYTE v32[8]; // [rsp+8h] [rbp-28h] BYREF float v33[8]; // [rsp+10h] [rbp-20h] BYREF ++*(_DWORD *)(a1 + 12212); GameManager::sharedState(a1, a2, a3); v5 = v4; GameManager::sharedState(a1, a2, v6); *(_DWORD *)(v5 + 1008) = *(_DWORD *)(v7 + 1008) + 1; GameManager::sharedState(a1, a2, v8); v10 = v9; v13 = GameManager::sharedState(a1, a2, v11).u64[0]; *(_DWORD *)(v10 + 1012) = *(_DWORD *)(v14 + 1012) + 1; if ( !*(_BYTE *)(a1 + 12544) ) { GameManager::sharedState(a1, a2, v12); v16 = v15; v13 = GameManager::sharedState(a1, a2, v17).u64[0]; *(_DWORD *)(v16 + 1016) = *(_DWORD *)(v18 + 1016) + 1; } v19 = sub_10088E820("Attempt %i", v31); CString = cocos2d::CCString::getCString(v19); v21 = *(_QWORD *)(a1 + 14328); v22 = CString; (*(void (__fastcall **)(__int64, __int64, double))(*(_QWORD *)v21 + 928LL))(v21, CString, *(double *)&v13); v23 = cocos2d::CCDirector::sharedDirector(v21, v22); v24 = v33; v25 = (const char *)v23; cocos2d::CCDirector::getWinSize(v33, v23); if ( *(_DWORD *)(a1 + 12212) != 1 || *(_BYTE *)(a1 + 12238) == 1 ) { v27 = *(float **)(a1 + 14328); sub_100278250( v32, (float)((float)(v33[0] * 0.5) + *(float *)(a1 + 992)) + 50.0, (float)((float)(0.5 * v33[1]) + *(float *)(a1 + 996)) + 85.0); v24 = v27; v25 = v32; (*(void (__fastcall **)(float *, _BYTE *))(*(_QWORD *)v27 + 184LL))(v27, v32); } if ( *(_BYTE *)(a1 + 14023) || *(_BYTE *)(a1 + 12544) == 1 && (GameManager::sharedState(v24, v25, v26), v25 = "0134", v24 = v28, (unsigned __int8)GameManager::getGameVariable(v28, "0134")) || (GameManager::sharedState(v24, v25, v26), (unsigned __int8)GameManager::getGameVariable(v29, "0135")) ) { result = 0; return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 14328) + 344LL))( *(_QWORD *)(a1 + 14328), result); } result = 1; if ( *(int *)(a1 + 12212) > 0 ) return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 14328) + 344LL))( *(_QWORD *)(a1 + 14328), result); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source