// // PlayLayer::removeCheckpoint from 0x1405170d0 to 0x140517207 (311 bytes) // // 8 xrefs: // > GJBaseGameLayer::checkCollisions @ 0x14031babd // > PlayLayer::removeAllCheckpoints @ 0x140517235 // > UILayer::handleAction @ 0x140671640 // > UILayer::onDeleteCheck @ 0x14067312d // > @ 0x1408d7208 // > @ 0x1408d721c // > @ 0x1408d722c // > @ 0x14092ad4c // // 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:34 +0000 // void __fastcall PlayLayer::removeCheckpoint(__int64 a1, char a2) { cocos2d::CCArray *v4; // rcx struct cocos2d::CCObject *Object; // rax _QWORD *v6; // rbx cocos2d::CCObject *v7; // rcx cocos2d::CCArray *v8; // rcx struct cocos2d::CCObject *v9; // rbx _BYTE *v10; // rcx __int64 v11; // rdx if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 14904)) ) { v4 = *(cocos2d::CCArray **)(a1 + 14904); if ( a2 ) Object = cocos2d::CCArray::objectAtIndex(v4, 0); else Object = cocos2d::CCArray::lastObject(v4); v6 = *((_QWORD **)Object + 460); GJBaseGameLayer::removeObjectFromSection(a1, (__int64)v6); v7 = (cocos2d::CCObject *)v6[94]; if ( v7 ) { cocos2d::CCObject::release(v7); (*(void (__fastcall **)(_QWORD))(*(_QWORD *)v6[94] + 528LL))(v6[94]); v6[94] = 0; } (*(void (__fastcall **)(_QWORD *))(*v6 + 528LL))(v6); v8 = *(cocos2d::CCArray **)(a1 + 14904); if ( a2 ) { cocos2d::CCArray::removeObjectAtIndex(v8, 0, 1); } else { cocos2d::CCArray::removeLastObject(v8, 1); if ( *(_BYTE *)(a1 + 12670) && *(_BYTE *)(a1 + 13024) ) { if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 14904)) ) { v9 = cocos2d::CCArray::lastObject(*(cocos2d::CCArray **)(a1 + 14904)); v10 = *((_BYTE **)v9 + 460); v10[774] = 0; v10[1007] = 0; v10 += 320; v11 = *(_QWORD *)v10; LOBYTE(v11) = -1; (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v10 + 40LL))(v10, v11); *((_DWORD *)v9 + 1174) = *(_DWORD *)(a1 + 992); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source