{"type": "func", "start": 5372605600, "end": 5372605802, "name": "PlayLayer::storeCheckpoint", "pseudocode": "// \n// PlayLayer::storeCheckpoint from 0x1403b74a0 to 0x1403b756a (202 bytes)\n// \n// 3 xrefs:\n// > PlayerObject::tryPlaceCheckpoint @ 0x1403a37fd\n// > PlayLayer::markCheckpoint @ 0x1403b75a4\n// > <???> @ 0x1406d6fc8\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\nvoid PlayLayer::storeCheckpoint(PlayLayer *a1, CheckpointObject *a2)\n{\n  GameObject *v4; // rbx\n  cocos2d::CCObject *m_glowSprite; // rcx\n\n  cocos2d::CCArray::addObject(a1->m_checkpointArray, a2);\n  a1->addToSection(a1, a2->m_physicalCheckpointObject);\n  if ( cocos2d::CCArray::count(a1->m_checkpointArray) > 0x32 && cocos2d::CCArray::count(a1->m_checkpointArray) )\n  {\n    v4 = *(GameObject **)&cocos2d::CCArray::objectAtIndex(a1->m_checkpointArray, 0)[65].m_uIndexInArray;\n    GJBaseGameLayer::removeObjectFromSection(a1, v4);\n    m_glowSprite = v4->m_glowSprite;\n    if ( m_glowSprite )\n    {\n      cocos2d::CCObject::release(m_glowSprite);\n      v4->m_glowSprite->removeMeAndCleanup(v4->m_glowSprite);\n      v4->m_glowSprite = nullptr;\n    }\n    v4->removeMeAndCleanup(v4);\n    cocos2d::CCArray::removeObjectAtIndex(a1->m_checkpointArray, 0, 1);\n  }\n}", "assembly": "; \n; PlayLayer::storeCheckpoint from 0x1403b74a0 to 0x1403b756a (202 bytes)\n; \n; 3 xrefs:\n; > PlayerObject::tryPlaceCheckpoint @ 0x1403a37fd\n; > PlayLayer::markCheckpoint @ 0x1403b75a4\n; > <???> @ 0x1406d6fc8\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403b74a0\npush    rdi                                                            ; +0x5, 0x1403b74a5\nsub     rsp, 20h                                                       ; +0x6, 0x1403b74a6\nmov     rdi, rcx                                                       ; +0xa, 0x1403b74aa\nmov     rbx, rdx                                                       ; +0xd, 0x1403b74ad\nmov     rcx, [rcx+3888h]                                               ; +0x10, 0x1403b74b0\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x17, 0x1403b74b7\nmov     rax, [rdi]                                                     ; +0x1d, 0x1403b74bd\nmov     rcx, rdi                                                       ; +0x20, 0x1403b74c0\nmov     rdx, [rbx+0E58h]                                               ; +0x23, 0x1403b74c3\ncall    qword ptr [rax+478h]                                           ; +0x2a, 0x1403b74ca\nmov     rcx, [rdi+3888h]                                               ; +0x30, 0x1403b74d0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x37, 0x1403b74d7\ncmp     eax, 32h ; '2'                                                 ; +0x3d, 0x1403b74dd\njbe     short loc_1403B755F                                            ; +0x40, 0x1403b74e0\nmov     rcx, [rdi+3888h]                                               ; +0x42, 0x1403b74e2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x49, 0x1403b74e9\ntest    eax, eax                                                       ; +0x4f, 0x1403b74ef\njz      short loc_1403B755F                                            ; +0x51, 0x1403b74f1\nmov     rcx, [rdi+3888h]                                               ; +0x53, 0x1403b74f3\nxor     edx, edx                                                       ; +0x5a, 0x1403b74fa\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x5c, 0x1403b74fc\nmov     rcx, rdi                                                       ; +0x62, 0x1403b7502\nmov     rbx, [rax+0E58h]                                               ; +0x65, 0x1403b7505\nmov     rdx, rbx                                                       ; +0x6c, 0x1403b750c\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0x6f, 0x1403b750f\nmov     rcx, [rbx+2F0h]                                                ; +0x74, 0x1403b7514\ntest    rcx, rcx                                                       ; +0x7b, 0x1403b751b\njz      short loc_1403B7541                                            ; +0x7e, 0x1403b751e\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x80, 0x1403b7520\nmov     rcx, [rbx+2F0h]                                                ; +0x86, 0x1403b7526\nmov     rax, [rcx]                                                     ; +0x8d, 0x1403b752d\ncall    qword ptr [rax+200h]                                           ; +0x90, 0x1403b7530\nmov     qword ptr [rbx+2F0h], 0                                        ; +0x96, 0x1403b7536\nmov     rax, [rbx]                                                     ; +0xa1, 0x1403b7541\nmov     rcx, rbx                                                       ; +0xa4, 0x1403b7544\ncall    qword ptr [rax+200h]                                           ; +0xa7, 0x1403b7547\nmov     rcx, [rdi+3888h]                                               ; +0xad, 0x1403b754d\nmov     r8b, 1                                                         ; +0xb4, 0x1403b7554\nxor     edx, edx                                                       ; +0xb7, 0x1403b7557\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0xb9, 0x1403b7559\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xbf, 0x1403b755f\nadd     rsp, 20h                                                       ; +0xc4, 0x1403b7564\npop     rdi                                                            ; +0xc8, 0x1403b7568\nretn                                                                   ; +0xc9, 0x1403b7569", "xrefs": ["PlayerObject::tryPlaceCheckpoint @ 0x1403a37fd", "PlayLayer::markCheckpoint @ 0x1403b75a4", "<???> @ 0x1406d6fc8"], "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"}