{"type": "func", "start": 5372605808, "end": 5372606003, "name": "PlayLayer::markCheckpoint", "pseudocode": "// \n// PlayLayer::markCheckpoint from 0x1403b7570 to 0x1403b7633 (195 bytes)\n// \n// 4 xrefs:\n// > PlayerObject::tryPlaceCheckpoint @ 0x1403a3657\n// > PlayLayer::processCheckpoints @ 0x1403b492f\n// > PlayLayer::processCheckpoints @ 0x1403b4997\n// > <???> @ 0x1406d6fd4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nCheckpointObject *PlayLayer::markCheckpoint(PlayLayer *a1)\n{\n  CheckpointObject *Checkpoint; // rdi\n  unsigned int v4; // eax\n  __int64 v5; // rcx\n\n  if ( a1->m_player1->m_isDead )\n    return nullptr;\n  Checkpoint = PlayLayer::createCheckpoint(a1);\n  PlayLayer::storeCheckpoint(a1, Checkpoint);\n  Checkpoint->m_physicalCheckpointObject->activateObject(Checkpoint->m_physicalCheckpointObject);\n  if ( a1->m_isPlatformer && a1->m_isPracticeMode && cocos2d::CCArray::count(a1->m_checkpointArray) > 1 )\n  {\n    v4 = cocos2d::CCArray::count(a1->m_checkpointArray);\n    v5 = *(_QWORD *)&cocos2d::CCArray::objectAtIndex(a1->m_checkpointArray, v4 - 2)[65].m_uIndexInArray;\n    *(_BYTE *)(v5 + 774) = 1;\n    *(_BYTE *)(v5 + 1007) = 1;\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(v5 + 320) + 40LL))(v5 + 320, 0);\n  }\n  a1->m_tryPlaceCheckpoint = 0;\n  return Checkpoint;\n}", "assembly": "; \n; PlayLayer::markCheckpoint from 0x1403b7570 to 0x1403b7633 (195 bytes)\n; \n; 4 xrefs:\n; > PlayerObject::tryPlaceCheckpoint @ 0x1403a3657\n; > PlayLayer::processCheckpoints @ 0x1403b492f\n; > PlayLayer::processCheckpoints @ 0x1403b4997\n; > <???> @ 0x1406d6fd4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1403b7570\nsub     rsp, 20h                                                       ; +0x2, 0x1403b7572\nmov     rax, [rcx+0DA0h]                                               ; +0x6, 0x1403b7576\nmov     rbx, rcx                                                       ; +0xd, 0x1403b757d\ncmp     byte ptr [rax+9C0h], 0                                         ; +0x10, 0x1403b7580\njz      short loc_1403B7591                                            ; +0x17, 0x1403b7587\nxor     eax, eax                                                       ; +0x19, 0x1403b7589\nadd     rsp, 20h                                                       ; +0x1b, 0x1403b758b\npop     rbx                                                            ; +0x1f, 0x1403b758f\nretn                                                                   ; +0x20, 0x1403b7590\nmov     [rsp+28h+arg_0], rdi                                           ; +0x21, 0x1403b7591\ncall    PlayLayer__createCheckpoint                                    ; +0x26, 0x1403b7596\nmov     rdx, rax                                                       ; +0x2b, 0x1403b759b\nmov     rcx, rbx                                                       ; +0x2e, 0x1403b759e\nmov     rdi, rax                                                       ; +0x31, 0x1403b75a1\ncall    PlayLayer__storeCheckpoint                                     ; +0x34, 0x1403b75a4\nmov     rcx, [rdi+0E58h]                                               ; +0x39, 0x1403b75a9\nmov     rdx, [rcx]                                                     ; +0x40, 0x1403b75b0\ncall    qword ptr [rdx+470h]                                           ; +0x43, 0x1403b75b3\ncmp     byte ptr [rbx+309Eh], 0                                        ; +0x49, 0x1403b75b9\njz      short loc_1403B761E                                            ; +0x50, 0x1403b75c0\ncmp     byte ptr [rbx+31F0h], 0                                        ; +0x52, 0x1403b75c2\njz      short loc_1403B761E                                            ; +0x59, 0x1403b75c9\nmov     rcx, [rbx+3888h]                                               ; +0x5b, 0x1403b75cb\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x62, 0x1403b75d2\ncmp     eax, 1                                                         ; +0x68, 0x1403b75d8\njbe     short loc_1403B761E                                            ; +0x6b, 0x1403b75db\nmov     rcx, [rbx+3888h]                                               ; +0x6d, 0x1403b75dd\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x1403b75e4\nmov     rcx, [rbx+3888h]                                               ; +0x7a, 0x1403b75ea\nlea     edx, [rax-2]                                                   ; +0x81, 0x1403b75f1\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x84, 0x1403b75f4\nxor     edx, edx                                                       ; +0x8a, 0x1403b75fa\nmov     rcx, [rax+0E58h]                                               ; +0x8c, 0x1403b75fc\nmov     byte ptr [rcx+306h], 1                                         ; +0x93, 0x1403b7603\nmov     byte ptr [rcx+3EFh], 1                                         ; +0x9a, 0x1403b760a\nadd     rcx, 140h                                                      ; +0xa1, 0x1403b7611\nmov     rax, [rcx]                                                     ; +0xa8, 0x1403b7618\ncall    qword ptr [rax+28h]                                            ; +0xab, 0x1403b761b\nmov     rax, rdi                                                       ; +0xae, 0x1403b761e\nmov     byte ptr [rbx+3A64h], 0                                        ; +0xb1, 0x1403b7621\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xb8, 0x1403b7628\nadd     rsp, 20h                                                       ; +0xbd, 0x1403b762d\npop     rbx                                                            ; +0xc1, 0x1403b7631\nretn                                                                   ; +0xc2, 0x1403b7632", "xrefs": ["PlayerObject::tryPlaceCheckpoint @ 0x1403a3657", "PlayLayer::processCheckpoints @ 0x1403b492f", "PlayLayer::processCheckpoints @ 0x1403b4997", "<???> @ 0x1406d6fd4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}