{"type": "func", "start": 5372127152, "end": 5372127337, "name": "GJBaseGameLayer::checkCameraLimitAfterTeleport", "pseudocode": "// \n// GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x1403427b0 to 0x140342869 (185 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::teleportPlayer @ 0x14031696e\n// > PlayerObject::spiderTestJumpInternal @ 0x1404f3337\n// > <???> @ 0x14091fdf0\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 11:30:40 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::checkCameraLimitAfterTeleport(__int64 a1, _BYTE *a2, float a3)\n{\n  __int64 v5; // rax\n  __int64 v6; // rax\n  char v7; // [rsp+50h] [rbp+8h] BYREF\n  float v8; // [rsp+54h] [rbp+Ch]\n\n  if ( *(float *)(a1 + 572) == 0.0 && !a2[2507] )\n  {\n    v5 = cocos2d::CCDirector::sharedDirector(a1);\n    cocos2d::CCDirector::getWinSize(v5, &v7);\n    v6 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a2 + 200LL))(a2);\n    if ( *(float *)(v6 + 4) > (float)((float)(v8 + *(float *)(a1 + 1044)) + a3)\n      || (float)(*(float *)(a1 + 1044) - a3) > *(float *)((*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a2 + 200LL))(a2)\n                                                        + 4) )\n    {\n      *(_BYTE *)(a1 + 1889) = 1;\n      GJBaseGameLayer::updateCamera(a1);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x1403427b0 to 0x140342869 (185 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::teleportPlayer @ 0x14031696e\n; > PlayerObject::spiderTestJumpInternal @ 0x1404f3337\n; > <???> @ 0x14091fdf0\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 11:30:40 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403427b0\npush    rdi                                                            ; +0x5, 0x1403427b5\nsub     rsp, 40h                                                       ; +0x6, 0x1403427b6\nmovss   xmm0, dword ptr [rcx+23Ch]                                     ; +0xa, 0x1403427ba\nmov     rdi, rdx                                                       ; +0x12, 0x1403427c2\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x15, 0x1403427c5\nmov     rbx, rcx                                                       ; +0x1a, 0x1403427ca\nxorps   xmm6, xmm6                                                     ; +0x1d, 0x1403427cd\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x20, 0x1403427d0\nucomiss xmm0, xmm6                                                     ; +0x25, 0x1403427d5\nmovaps  xmm7, xmm2                                                     ; +0x28, 0x1403427d8\njp      short loc_140342854                                            ; +0x2b, 0x1403427db\njnz     short loc_140342854                                            ; +0x2d, 0x1403427dd\ncmp     byte ptr [rdx+9CBh], 0                                         ; +0x2f, 0x1403427df\njnz     short loc_140342854                                            ; +0x36, 0x1403427e6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x38, 0x1403427e8\nmov     rcx, rax                                                       ; +0x3e, 0x1403427ee\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x41, 0x1403427f1\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x46, 0x1403427f6\nmov     rax, [rdi]                                                     ; +0x4c, 0x1403427fc\nmov     rcx, rdi                                                       ; +0x4f, 0x1403427ff\ncall    qword ptr [rax+0C8h]                                           ; +0x52, 0x140342802\nmovss   xmm1, [rsp+48h+arg_4]                                          ; +0x58, 0x140342808\naddss   xmm1, dword ptr [rbx+414h]                                     ; +0x5e, 0x14034280e\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x66, 0x140342816\naddss   xmm1, xmm7                                                     ; +0x6b, 0x14034281b\ncomiss  xmm0, xmm1                                                     ; +0x6f, 0x14034281f\nja      short loc_140342842                                            ; +0x72, 0x140342822\nmov     rax, [rdi]                                                     ; +0x74, 0x140342824\nmov     rcx, rdi                                                       ; +0x77, 0x140342827\ncall    qword ptr [rax+0C8h]                                           ; +0x7a, 0x14034282a\nmovss   xmm0, dword ptr [rbx+414h]                                     ; +0x80, 0x140342830\nsubss   xmm0, xmm7                                                     ; +0x88, 0x140342838\ncomiss  xmm0, dword ptr [rax+4]                                        ; +0x8c, 0x14034283c\njbe     short loc_140342854                                            ; +0x90, 0x140342840\nxorps   xmm1, xmm1                                                     ; +0x92, 0x140342842\nmov     byte ptr [rbx+761h], 1                                         ; +0x95, 0x140342845\nmov     rcx, rbx                                                       ; +0x9c, 0x14034284c\ncall    GJBaseGameLayer__updateCamera                                  ; +0x9f, 0x14034284f\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xa4, 0x140342854\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xa9, 0x140342859\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xae, 0x14034285e\nadd     rsp, 40h                                                       ; +0xb3, 0x140342863\npop     rdi                                                            ; +0xb7, 0x140342867\nretn                                                                   ; +0xb8, 0x140342868", "xrefs": ["GJBaseGameLayer::teleportPlayer @ 0x14031696e", "PlayerObject::spiderTestJumpInternal @ 0x1404f3337", "<???> @ 0x14091fdf0"], "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"}