{"type": "func", "start": 4297583600, "end": 4297583784, "name": "GJBaseGameLayer::checkCameraLimitAfterTeleport", "pseudocode": "// \n// GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x10027ebf0 to 0x10027eca8 (184 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::teleportPlayer @ 0x10027e8f4\n// > PlayerObject::spiderTestJumpInternal @ 0x1002c2170\n// \n// This function is hookable on this platform (idp: arm, 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:01:54 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::checkCameraLimitAfterTeleport(__int64 result, _BYTE *a2, float a3)\n{\n  __int64 v5; // x19\n  __int64 v6; // x0\n  double WinSize; // d0\n  __int64 v8; // x0\n  __int64 v9; // [xsp+8h] [xbp-28h] BYREF\n\n  if ( *(float *)(result + 572) == 0.0 && (a2[2427] & 1) == 0 )\n  {\n    v5 = result;\n    v6 = cocos2d::CCDirector::sharedDirector();\n    WinSize = cocos2d::CCDirector::getWinSize(v6, &v9);\n    v8 = (*(__int64 (__fastcall **)(_BYTE *, double))(*(_QWORD *)a2 + 192LL))(a2, WinSize);\n    if ( *(float *)(v8 + 4) > (float)((float)(*(float *)(v5 + 996) + *((float *)&v9 + 1)) + a3)\n      || (result = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a2 + 192LL))(a2),\n          *(float *)(result + 4) < (float)(*(float *)(v5 + 996) - a3)) )\n    {\n      *(_BYTE *)(v5 + 1721) = 1;\n      return GJBaseGameLayer::updateCamera(v5, 0.0);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x10027ebf0 to 0x10027eca8 (184 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::teleportPlayer @ 0x10027e8f4\n; > PlayerObject::spiderTestJumpInternal @ 0x1002c2170\n; \n; This function is hookable on this platform (idp: arm, 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:01:54 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x10027ebf0\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x10027ebf4\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10027ebf8\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10027ebfc\nADD             X29, SP, #0x30                                         ; +0x10, 0x10027ec00\nFMOV            S8, S0                                                 ; +0x14, 0x10027ec04\nLDR             S0, [X0,#0x23C]                                        ; +0x18, 0x10027ec08\nFCMP            S0, #0.0                                               ; +0x1c, 0x10027ec0c\nB.NE            loc_10027EC94                                          ; +0x20, 0x10027ec10\nMOV             X20, X1                                                ; +0x24, 0x10027ec14\nLDRB            W8, [X1,#0x97B]                                        ; +0x28, 0x10027ec18\nTBNZ            W8, #0, loc_10027EC94                                  ; +0x2c, 0x10027ec1c\nMOV             X19, X0                                                ; +0x30, 0x10027ec20\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x34, 0x10027ec24\nADD             X8, SP, #0x30+var_28                                   ; +0x38, 0x10027ec28\nBL              cocos2d__CCDirector__getWinSize                        ; +0x3c, 0x10027ec2c\nLDR             X8, [X20]                                              ; +0x40, 0x10027ec30\nLDR             X8, [X8,#0xC0]                                         ; +0x44, 0x10027ec34\nMOV             X0, X20                                                ; +0x48, 0x10027ec38\nBLR             X8                                                     ; +0x4c, 0x10027ec3c\nLDR             S0, [X0,#4]                                            ; +0x50, 0x10027ec40\nLDR             S1, [X19,#0x3E4]                                       ; +0x54, 0x10027ec44\nLDR             S2, [SP,#0x30+var_24]                                  ; +0x58, 0x10027ec48\nFADD            S1, S1, S2                                             ; +0x5c, 0x10027ec4c\nFADD            S1, S1, S8                                             ; +0x60, 0x10027ec50\nFCMP            S0, S1                                                 ; +0x64, 0x10027ec54\nB.GT            loc_10027EC80                                          ; +0x68, 0x10027ec58\nLDR             X8, [X20]                                              ; +0x6c, 0x10027ec5c\nLDR             X8, [X8,#0xC0]                                         ; +0x70, 0x10027ec60\nMOV             X0, X20                                                ; +0x74, 0x10027ec64\nBLR             X8                                                     ; +0x78, 0x10027ec68\nLDR             S0, [X0,#4]                                            ; +0x7c, 0x10027ec6c\nLDR             S1, [X19,#0x3E4]                                       ; +0x80, 0x10027ec70\nFSUB            S1, S1, S8                                             ; +0x84, 0x10027ec74\nFCMP            S0, S1                                                 ; +0x88, 0x10027ec78\nB.PL            loc_10027EC94                                          ; +0x8c, 0x10027ec7c\nMOV             W8, #1                                                 ; +0x90, 0x10027ec80\nSTRB            W8, [X19,#0x6B9]                                       ; +0x94, 0x10027ec84\nFMOV            S0, WZR                                                ; +0x98, 0x10027ec88\nMOV             X0, X19                                                ; +0x9c, 0x10027ec8c\nBL              GJBaseGameLayer__updateCamera                          ; +0xa0, 0x10027ec90\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa4, 0x10027ec94\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa8, 0x10027ec98\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0xac, 0x10027ec9c\nADD             SP, SP, #0x40 ; '@'                                    ; +0xb0, 0x10027eca0\nRET                                                                    ; +0xb4, 0x10027eca4", "xrefs": ["GJBaseGameLayer::teleportPlayer @ 0x10027e8f4", "PlayerObject::spiderTestJumpInternal @ 0x1002c2170"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}