{"type": "func", "start": 4296152272, "end": 4296152453, "name": "GJBaseGameLayer::checkCameraLimitAfterTeleport", "pseudocode": "// \n// GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x1001214d0 to 0x100121585 (181 bytes)\n// \n// 3 xrefs:\n// > PlayerObject::spiderTestJumpInternal @ 0x10040e39e\n// > PlayerObject::spiderTestJumpX @ 0x10040fbfb\n// > PlayerObject::spiderTestJumpY @ 0x100410a8b\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 __fastcall GJBaseGameLayer::checkCameraLimitAfterTeleport(GJBaseGameLayer *a1, PlayerObject *a2, float a3)\n{\n  cocos2d::CCDirector *v4; // rsi\n  __int64 v5; // rax\n  __int64 v6; // rax\n  float v7[2]; // [rsp-2Ch] [rbp-2Ch] BYREF\n  float v8; // [rsp-24h] [rbp-24h]\n  double v9; // 0:xmm0_8.8\n\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 && !a2->m_isSideways )\n  {\n    v8 = a3;\n    v4 = cocos2d::CCDirector::sharedDirector();\n    *(cocos2d::CCSize *)&v9 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7);\n    v5 = ((__int64 (__fastcall *)(PlayerObject *, cocos2d::CCDirector *, double))a2->getPosition)(a2, v4, v9);\n    if ( *(float *)(v5 + 4) > (float)((float)(a1->m_gameState.m_cameraPosition.y + v7[1]) + v8)\n      || (v6 = ((__int64 (__fastcall *)(PlayerObject *))a2->getPosition)(a2),\n          (float)(a1->m_gameState.m_cameraPosition.y - v8) > *(float *)(v6 + 4)) )\n    {\n      a1->m_gameState.m_unkBool29 = 1;\n      GJBaseGameLayer::updateCamera(a1, 0.0);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x1001214d0 to 0x100121585 (181 bytes)\n; \n; 3 xrefs:\n; > PlayerObject::spiderTestJumpInternal @ 0x10040e39e\n; > PlayerObject::spiderTestJumpX @ 0x10040fbfb\n; > PlayerObject::spiderTestJumpY @ 0x100410a8b\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\nmovss   xmm2, dword ptr [rdi+23Ch]                                     ; +0x0, 0x1001214d0\nxorps   xmm1, xmm1                                                     ; +0x8, 0x1001214d8\nucomiss xmm2, xmm1                                                     ; +0xb, 0x1001214db\njnz     short locret_1001214E2                                         ; +0xe, 0x1001214de\njnp     short loc_1001214E3                                            ; +0x10, 0x1001214e0\nretn                                                                   ; +0x12, 0x1001214e2\ncmp     byte ptr [rsi+973h], 0                                         ; +0x13, 0x1001214e3\njnz     short locret_1001214E2                                         ; +0x1a, 0x1001214ea\npush    rbp                                                            ; +0x1c, 0x1001214ec\nmov     rbp, rsp                                                       ; +0x1d, 0x1001214ed\npush    r15                                                            ; +0x20, 0x1001214f0\npush    r14                                                            ; +0x22, 0x1001214f2\npush    rbx                                                            ; +0x24, 0x1001214f4\nsub     rsp, 18h                                                       ; +0x25, 0x1001214f5\nmov     r14, rdi                                                       ; +0x29, 0x1001214f9\nmov     rbx, rsi                                                       ; +0x2c, 0x1001214fc\nmovss   dword ptr [rbp-1Ch], xmm0                                      ; +0x2f, 0x1001214ff\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x34, 0x100121504\nlea     rdi, [rbp-24h]                                                 ; +0x39, 0x100121509\nmov     rsi, rax                                                       ; +0x3d, 0x10012150d\ncall    cocos2d__CCDirector__getWinSize                                ; +0x40, 0x100121510\nmov     rax, [rbx]                                                     ; +0x45, 0x100121515\nmov     r15, rbx                                                       ; +0x48, 0x100121518\nmov     rdi, rbx                                                       ; +0x4b, 0x10012151b\ncall    qword ptr [rax+0C0h]                                           ; +0x4e, 0x10012151e\nmovss   xmm2, dword ptr [rbp-1Ch]                                      ; +0x54, 0x100121524\nmov     rdi, r14                                                       ; +0x59, 0x100121529\nmovss   xmm0, dword ptr [r14+3E4h]                                     ; +0x5c, 0x10012152c\naddss   xmm0, dword ptr [rbp-20h]                                      ; +0x65, 0x100121535\nmovss   xmm1, dword ptr [rax+4]                                        ; +0x6a, 0x10012153a\naddss   xmm0, xmm2                                                     ; +0x6f, 0x10012153f\nucomiss xmm1, xmm0                                                     ; +0x73, 0x100121543\nja      short loc_10012156B                                            ; +0x76, 0x100121546\nmov     rdi, r15                                                       ; +0x78, 0x100121548\nmov     rax, [r15]                                                     ; +0x7b, 0x10012154b\ncall    qword ptr [rax+0C0h]                                           ; +0x7e, 0x10012154e\nmov     rdi, r14                                                       ; +0x84, 0x100121554\nmovss   xmm0, dword ptr [r14+3E4h]                                     ; +0x87, 0x100121557\nsubss   xmm0, dword ptr [rbp-1Ch]                                      ; +0x90, 0x100121560\nucomiss xmm0, dword ptr [rax+4]                                        ; +0x95, 0x100121565\njbe     short loc_10012157A                                            ; +0x99, 0x100121569\nmov     byte ptr [rdi+6B9h], 1                                         ; +0x9b, 0x10012156b\nxorps   xmm0, xmm0                                                     ; +0xa2, 0x100121572\ncall    GJBaseGameLayer__updateCamera                                  ; +0xa5, 0x100121575\nadd     rsp, 18h                                                       ; +0xaa, 0x10012157a\npop     rbx                                                            ; +0xae, 0x10012157e\npop     r14                                                            ; +0xaf, 0x10012157f\npop     r15                                                            ; +0xb1, 0x100121581\npop     rbp                                                            ; +0xb3, 0x100121583\nretn                                                                   ; +0xb4, 0x100121584", "xrefs": ["PlayerObject::spiderTestJumpInternal @ 0x10040e39e", "PlayerObject::spiderTestJumpX @ 0x10040fbfb", "PlayerObject::spiderTestJumpY @ 0x100410a8b"], "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"}