{"type": "func", "start": 4296005600, "end": 4296005781, "name": "GJBaseGameLayer::checkCameraLimitAfterTeleport", "pseudocode": "// \n// GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x1000fd7e0 to 0x1000fd895 (181 bytes)\n// \n// 3 xrefs:\n// > PlayerObject::spiderTestJumpInternal @ 0x1003fb4be\n// > PlayerObject::spiderTestJumpX @ 0x1003fcd1b\n// > PlayerObject::spiderTestJumpY @ 0x1003fdbab\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:21:19 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::checkCameraLimitAfterTeleport(__int64 a1, _BYTE *a2, float a3)\n{\n  __int64 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\n  if ( *(float *)(a1 + 572) == 0.0 && !a2[2427] )\n  {\n    v8 = a3;\n    v4 = cocos2d::CCDirector::sharedDirector(a1, a2);\n    cocos2d::CCDirector::getWinSize(v7, v4);\n    v5 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a2 + 192LL))(a2);\n    if ( *(float *)(v5 + 4) > (float)((float)(*(float *)(a1 + 996) + v7[1]) + v8)\n      || (v6 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a2 + 192LL))(a2),\n          (float)(*(float *)(a1 + 996) - v8) > *(float *)(v6 + 4)) )\n    {\n      *(_BYTE *)(a1 + 1721) = 1;\n      GJBaseGameLayer::updateCamera(a1, 0.0);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x1000fd7e0 to 0x1000fd895 (181 bytes)\n; \n; 3 xrefs:\n; > PlayerObject::spiderTestJumpInternal @ 0x1003fb4be\n; > PlayerObject::spiderTestJumpX @ 0x1003fcd1b\n; > PlayerObject::spiderTestJumpY @ 0x1003fdbab\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:21:19 +0000\n; \nmovss   xmm2, dword ptr [rdi+23Ch]                                     ; +0x0, 0x1000fd7e0\nxorps   xmm1, xmm1                                                     ; +0x8, 0x1000fd7e8\nucomiss xmm2, xmm1                                                     ; +0xb, 0x1000fd7eb\njnz     short locret_1000FD7F2                                         ; +0xe, 0x1000fd7ee\njnp     short loc_1000FD7F3                                            ; +0x10, 0x1000fd7f0\nretn                                                                   ; +0x12, 0x1000fd7f2\ncmp     byte ptr [rsi+97Bh], 0                                         ; +0x13, 0x1000fd7f3\njnz     short locret_1000FD7F2                                         ; +0x1a, 0x1000fd7fa\npush    rbp                                                            ; +0x1c, 0x1000fd7fc\nmov     rbp, rsp                                                       ; +0x1d, 0x1000fd7fd\npush    r15                                                            ; +0x20, 0x1000fd800\npush    r14                                                            ; +0x22, 0x1000fd802\npush    rbx                                                            ; +0x24, 0x1000fd804\nsub     rsp, 18h                                                       ; +0x25, 0x1000fd805\nmov     r14, rdi                                                       ; +0x29, 0x1000fd809\nmov     rbx, rsi                                                       ; +0x2c, 0x1000fd80c\nmovss   dword ptr [rbp-1Ch], xmm0                                      ; +0x2f, 0x1000fd80f\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x34, 0x1000fd814\nlea     rdi, [rbp-24h]                                                 ; +0x39, 0x1000fd819\nmov     rsi, rax                                                       ; +0x3d, 0x1000fd81d\ncall    cocos2d__CCDirector__getWinSize                                ; +0x40, 0x1000fd820\nmov     rax, [rbx]                                                     ; +0x45, 0x1000fd825\nmov     r15, rbx                                                       ; +0x48, 0x1000fd828\nmov     rdi, rbx                                                       ; +0x4b, 0x1000fd82b\ncall    qword ptr [rax+0C0h]                                           ; +0x4e, 0x1000fd82e\nmovss   xmm2, dword ptr [rbp-1Ch]                                      ; +0x54, 0x1000fd834\nmov     rdi, r14                                                       ; +0x59, 0x1000fd839\nmovss   xmm0, dword ptr [r14+3E4h]                                     ; +0x5c, 0x1000fd83c\naddss   xmm0, dword ptr [rbp-20h]                                      ; +0x65, 0x1000fd845\nmovss   xmm1, dword ptr [rax+4]                                        ; +0x6a, 0x1000fd84a\naddss   xmm0, xmm2                                                     ; +0x6f, 0x1000fd84f\nucomiss xmm1, xmm0                                                     ; +0x73, 0x1000fd853\nja      short loc_1000FD87B                                            ; +0x76, 0x1000fd856\nmov     rdi, r15                                                       ; +0x78, 0x1000fd858\nmov     rax, [r15]                                                     ; +0x7b, 0x1000fd85b\ncall    qword ptr [rax+0C0h]                                           ; +0x7e, 0x1000fd85e\nmov     rdi, r14                                                       ; +0x84, 0x1000fd864\nmovss   xmm0, dword ptr [r14+3E4h]                                     ; +0x87, 0x1000fd867\nsubss   xmm0, dword ptr [rbp-1Ch]                                      ; +0x90, 0x1000fd870\nucomiss xmm0, dword ptr [rax+4]                                        ; +0x95, 0x1000fd875\njbe     short loc_1000FD88A                                            ; +0x99, 0x1000fd879\nmov     byte ptr [rdi+6B9h], 1                                         ; +0x9b, 0x1000fd87b\nxorps   xmm0, xmm0                                                     ; +0xa2, 0x1000fd882\ncall    GJBaseGameLayer__updateCamera                                  ; +0xa5, 0x1000fd885\nadd     rsp, 18h                                                       ; +0xaa, 0x1000fd88a\npop     rbx                                                            ; +0xae, 0x1000fd88e\npop     r14                                                            ; +0xaf, 0x1000fd88f\npop     r15                                                            ; +0xb1, 0x1000fd891\npop     rbp                                                            ; +0xb3, 0x1000fd893\nretn                                                                   ; +0xb4, 0x1000fd894", "xrefs": ["PlayerObject::spiderTestJumpInternal @ 0x1003fb4be", "PlayerObject::spiderTestJumpX @ 0x1003fcd1b", "PlayerObject::spiderTestJumpY @ 0x1003fdbab"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}