{"type": "func", "start": 5371042720, "end": 5371042905, "name": "GJBaseGameLayer::checkCameraLimitAfterTeleport", "pseudocode": "// \n// GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x140239ba0 to 0x140239c59 (185 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::teleportPlayer @ 0x1402107ac\n// > PlayerObject::spiderTestJumpInternal @ 0x14039513c\n// > <???> @ 0x1406ce1cc\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 GJBaseGameLayer::checkCameraLimitAfterTeleport(GJBaseGameLayer *a1, PlayerObject *a2, float a3)\n{\n  cocos2d::CCDirector *v5; // rax\n  float v6; // [rsp+54h] [rbp+Ch]\n\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 && !a2->m_isSideways )\n  {\n    v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n    cocos2d::CCDirector::getWinSize(v5);\n    if ( a2->getPosition_0(a2)->y > (float)((float)(v6 + a1->m_gameState.m_cameraPosition.y) + a3)\n      || (float)(a1->m_gameState.m_cameraPosition.y - a3) > a2->getPosition_0(a2)->y )\n    {\n      a1->m_gameState.m_unkBool29 = 1;\n      GJBaseGameLayer::updateCamera(a1, 0.0);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x140239ba0 to 0x140239c59 (185 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::teleportPlayer @ 0x1402107ac\n; > PlayerObject::spiderTestJumpInternal @ 0x14039513c\n; > <???> @ 0x1406ce1cc\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_8], rbx                                               ; +0x0, 0x140239ba0\npush    rdi                                                            ; +0x5, 0x140239ba5\nsub     rsp, 40h                                                       ; +0x6, 0x140239ba6\nmovss   xmm0, dword ptr [rcx+23Ch]                                     ; +0xa, 0x140239baa\nmov     rdi, rdx                                                       ; +0x12, 0x140239bb2\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x15, 0x140239bb5\nmov     rbx, rcx                                                       ; +0x1a, 0x140239bba\nxorps   xmm6, xmm6                                                     ; +0x1d, 0x140239bbd\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x20, 0x140239bc0\nucomiss xmm0, xmm6                                                     ; +0x25, 0x140239bc5\nmovaps  xmm7, xmm2                                                     ; +0x28, 0x140239bc8\njp      short loc_140239C44                                            ; +0x2b, 0x140239bcb\njnz     short loc_140239C44                                            ; +0x2d, 0x140239bcd\ncmp     byte ptr [rdx+9C3h], 0                                         ; +0x2f, 0x140239bcf\njnz     short loc_140239C44                                            ; +0x36, 0x140239bd6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x38, 0x140239bd8\nmov     rcx, rax                                                       ; +0x3e, 0x140239bde\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x41, 0x140239be1\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x46, 0x140239be6\nmov     rax, [rdi]                                                     ; +0x4c, 0x140239bec\nmov     rcx, rdi                                                       ; +0x4f, 0x140239bef\ncall    qword ptr [rax+0C8h]                                           ; +0x52, 0x140239bf2\nmovss   xmm1, [rsp+48h+arg_4]                                          ; +0x58, 0x140239bf8\naddss   xmm1, dword ptr [rbx+414h]                                     ; +0x5e, 0x140239bfe\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x66, 0x140239c06\naddss   xmm1, xmm7                                                     ; +0x6b, 0x140239c0b\ncomiss  xmm0, xmm1                                                     ; +0x6f, 0x140239c0f\nja      short loc_140239C32                                            ; +0x72, 0x140239c12\nmov     rax, [rdi]                                                     ; +0x74, 0x140239c14\nmov     rcx, rdi                                                       ; +0x77, 0x140239c17\ncall    qword ptr [rax+0C8h]                                           ; +0x7a, 0x140239c1a\nmovss   xmm0, dword ptr [rbx+414h]                                     ; +0x80, 0x140239c20\nsubss   xmm0, xmm7                                                     ; +0x88, 0x140239c28\ncomiss  xmm0, dword ptr [rax+4]                                        ; +0x8c, 0x140239c2c\njbe     short loc_140239C44                                            ; +0x90, 0x140239c30\nxorps   xmm1, xmm1                                                     ; +0x92, 0x140239c32\nmov     byte ptr [rbx+761h], 1                                         ; +0x95, 0x140239c35\nmov     rcx, rbx                                                       ; +0x9c, 0x140239c3c\ncall    GJBaseGameLayer__updateCamera                                  ; +0x9f, 0x140239c3f\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xa4, 0x140239c44\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xa9, 0x140239c49\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xae, 0x140239c4e\nadd     rsp, 40h                                                       ; +0xb3, 0x140239c53\npop     rdi                                                            ; +0xb7, 0x140239c57\nretn                                                                   ; +0xb8, 0x140239c58", "xrefs": ["GJBaseGameLayer::teleportPlayer @ 0x1402107ac", "PlayerObject::spiderTestJumpInternal @ 0x14039513c", "<???> @ 0x1406ce1cc"], "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"}