// // PlayLayer::processCheckpoints from 0x140513890 to 0x140513ca0 (1040 bytes) // // 2 xrefs: // > @ 0x1407d5f60 // > @ 0x14092ac14 // // 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 11:33:32 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall PlayLayer::processCheckpoints(__int64 a1) { __int64 v2; // r8 __int64 v3; // rdx __int64 v4; // rcx __int64 v5; // rbp __int64 v6; // rdx __int64 v7; // rax int v8; // edx struct cocos2d::CCObject *MainObject; // rax __int64 *v10; // rdi __int64 v11; // rbx __int64 v12; // rax __int64 v13; // rax __int64 v14; // rcx cocos2d::CCObject *v15; // rcx __int64 v16; // rdx void *v17; // [rsp+80h] [rbp+8h] BYREF void *v18; // [rsp+88h] [rbp+10h] BYREF if ( *(_BYTE *)(a1 + 15548) ) { *(_BYTE *)(a1 + 15548) = 0; PlayLayer::markCheckpoint(a1); } v2 = *(_QWORD *)(a1 + 15552); if ( v2 ) { v3 = *(unsigned int *)(v2 + 1864); if ( (int)v3 > 0 ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)(a1 + 408) + 8LL))(a1 + 408, v3, 0); v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v17 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } if ( GameManager::getGameVariable(v4, "0146") ) goto LABEL_27; v5 = PlayLayer::markCheckpoint(a1); if ( !v5 ) goto LABEL_27; (*(void (__fastcall **)(_QWORD, void **))(**(_QWORD **)(a1 + 15552) + 1208LL))(*(_QWORD *)(a1 + 15552), &v17); v6 = *(_QWORD *)(a1 + 15552); if ( *(_BYTE *)(v6 + 1700) ) { v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3512) + 200LL))(*(_QWORD *)(a1 + 3512)); } else { v8 = *(_DWORD *)(v6 + 1484); if ( v8 <= 0 || (MainObject = GJBaseGameLayer::tryGetMainObject(a1, v8)) == nullptr ) { LABEL_16: v10 = *(__int64 **)(v5 + 3680); v11 = *v10; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, (const struct cocos2d::CCPoint *)&v17); (*(void (__fastcall **)(__int64 *, __int64))(v11 + 1216))(v10, v12); cocos2d::CCPoint::operator=(*(_QWORD *)(v5 + 3688) + 320LL, &v17); *(_BYTE *)(*(_QWORD *)(v5 + 3688) + 432LL) = 1; v13 = *(_QWORD *)(v5 + 3680); *(_BYTE *)(v13 + 774) = 1; *(_BYTE *)(v13 + 1007) = 1; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(v13 + 320) + 40LL))(v13 + 320, 0); *(_DWORD *)(v5 + 3708) = *(_DWORD *)(*(_QWORD *)(a1 + 15552) + 924LL); *(_DWORD *)(v5 + 3712) = *(_DWORD *)(*(_QWORD *)(a1 + 15552) + 1860LL); if ( *(_DWORD *)(*(_QWORD *)(a1 + 2168) + 1220LL) != 1 && !*(_BYTE *)(a1 + 13024) && !*(_BYTE *)(a1 + 13096) ) { v14 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v18 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v14 = qword_14090BFD0; } if ( (!GameManager::getGameVariable(v14, "0192") || *(_BYTE *)(*(_QWORD *)(a1 + 2168) + 1704LL)) && *(_QWORD *)(a1 + 14832) != v5 ) { cocos2d::CCObject::retain((cocos2d::CCObject *)v5); v15 = *(cocos2d::CCObject **)(a1 + 14832); if ( v15 ) cocos2d::CCObject::release(v15); *(_QWORD *)(a1 + 14832) = v5; } } LABEL_27: v16 = *(unsigned int *)(*(_QWORD *)(a1 + 15552) + 1480LL); if ( (int)v16 > 0 ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)(a1 + 408) + 8LL))(a1 + 408, v16, 0); GJBaseGameLayer::gameEventTriggered(a1, 0x3Cu, 0, 0); *(_QWORD *)(a1 + 15552) = 0; return; } v7 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, void **))(*(_QWORD *)MainObject + 1208LL))( MainObject, &v18); } cocos2d::CCPoint::operator=(&v17, v7); goto LABEL_16; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source