{"type": "func", "start": 8910964, "end": 8911200, "name": "GJBaseGameLayer::checkCameraLimitAfterTeleport", "pseudocode": "// \n// GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x87f874 to 0x87f960 (236 bytes)\n// \n// 5 xrefs:\n// > PlayerObject::spiderTestJumpInternal @ 0x634438\n// > PlayerObject::spiderTestJumpY @ 0x636250\n// > PlayerObject::spiderTestJumpX @ 0x636ca4\n// > GJBaseGameLayer::teleportPlayer @ 0x889eb0\n// > <???> @ 0x86418\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 *v4; // x0\n  float v7; // [xsp+44h] [xbp+44h]\n  cocos2d::CCSize WinSize; // 0:kr00_8.8\n\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 && !a2->m_isSideways )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector();\n    WinSize = cocos2d::CCDirector::getWinSize(v4);\n    if ( *(float *)(((__int64 (__fastcall *)(PlayerObject *, float, float))a2->getPosition)(\n                      a2,\n                      WinSize.width,\n                      WinSize.height)\n                  + 4) > (float)(a3 + (float)(a1->m_gameState.m_cameraPosition.y + v7))\n      || a2->getPosition(a2)->y < (float)(a1->m_gameState.m_cameraPosition.y - a3) )\n    {\n      a1->m_gameState.m_unkBool29 = 1;\n      GJBaseGameLayer::updateCamera(a1, 0.0);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x87f874 to 0x87f960 (236 bytes)\n; \n; 5 xrefs:\n; > PlayerObject::spiderTestJumpInternal @ 0x634438\n; > PlayerObject::spiderTestJumpY @ 0x636250\n; > PlayerObject::spiderTestJumpX @ 0x636ca4\n; > GJBaseGameLayer::teleportPlayer @ 0x889eb0\n; > <???> @ 0x86418\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x87f874\nMOV             X29, SP                                                ; +0x4, 0x87f878\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x87f87c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x87f880\nMOV             X20, X0                                                ; +0x10, 0x87f884\nLDR             S1, [X0,#0x23C]                                        ; +0x14, 0x87f888\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x87f88c\nFCMP            S1, #0.0                                               ; +0x1c, 0x87f890\nLDR             X0, [X0]                                               ; +0x20, 0x87f894\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x24, 0x87f898\nB.NE            loc_87F8A8                                             ; +0x28, 0x87f89c\nLDRB            W0, [X1,#0x99B]; this                                  ; +0x2c, 0x87f8a0\nCBZ             W0, loc_87F8C8                                         ; +0x30, 0x87f8a4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x34, 0x87f8a8\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x38, 0x87f8ac\nLDR             X0, [X19]                                              ; +0x3c, 0x87f8b0\nCMP             X1, X0                                                 ; +0x40, 0x87f8b4\nB.NE            loc_87F95C                                             ; +0x44, 0x87f8b8\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x48, 0x87f8bc\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x4c, 0x87f8c0\nRET                                                                    ; +0x50, 0x87f8c4\nSTR             Q0, [X29,#0x50+var_30]                                 ; +0x54, 0x87f8c8\nSTR             X1, [X29,#0x50+var_20]                                 ; +0x58, 0x87f8cc\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x5c, 0x87f8d0\nADD             X8, X29, #0x50+var_10                                  ; +0x60, 0x87f8d4\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x64, 0x87f8d8\nLDR             X1, [X29,#0x50+var_20]                                 ; +0x68, 0x87f8dc\nMOV             X0, X1                                                 ; +0x6c, 0x87f8e0\nLDR             X2, [X1]                                               ; +0x70, 0x87f8e4\nLDR             X2, [X2,#0xC0]                                         ; +0x74, 0x87f8e8\nBLR             X2                                                     ; +0x78, 0x87f8ec\nLDR             S1, [X20,#0x404]                                       ; +0x7c, 0x87f8f0\nLDR             X1, [X29,#0x50+var_20]                                 ; +0x80, 0x87f8f4\nLDR             S3, [X29,#0x50+var_C]                                  ; +0x84, 0x87f8f8\nLDR             Q0, [X29,#0x50+var_30]                                 ; +0x88, 0x87f8fc\nFADD            S1, S1, S3                                             ; +0x8c, 0x87f900\nLDR             S2, [X0,#4]                                            ; +0x90, 0x87f904\nFADD            S1, S0, S1                                             ; +0x94, 0x87f908\nFCMPE           S2, S1                                                 ; +0x98, 0x87f90c\nB.LE            loc_87F92C                                             ; +0x9c, 0x87f910\nFMOV            S0, WZR; float                                         ; +0xa0, 0x87f914\nMOV             W1, #1                                                 ; +0xa4, 0x87f918\nMOV             X0, X20; this                                          ; +0xa8, 0x87f91c\nSTRB            W1, [X20,#0x781]                                       ; +0xac, 0x87f920\nBL              _ZN15GJBaseGameLayer12updateCameraEf; GJBaseGameLayer::updateCamera(float) ; +0xb0, 0x87f924\nB               loc_87F8A8                                             ; +0xb4, 0x87f928\nLDR             X2, [X1]                                               ; +0xb8, 0x87f92c\nMOV             X0, X1                                                 ; +0xbc, 0x87f930\nSTR             Q0, [X29,#0x50+var_20]                                 ; +0xc0, 0x87f934\nLDR             X1, [X2,#0xC0]                                         ; +0xc4, 0x87f938\nBLR             X1                                                     ; +0xc8, 0x87f93c\nLDR             S1, [X20,#0x404]                                       ; +0xcc, 0x87f940\nLDR             Q0, [X29,#0x50+var_20]                                 ; +0xd0, 0x87f944\nLDR             S2, [X0,#4]                                            ; +0xd4, 0x87f948\nFSUB            S0, S1, S0                                             ; +0xd8, 0x87f94c\nFCMPE           S2, S0                                                 ; +0xdc, 0x87f950\nB.PL            loc_87F8A8                                             ; +0xe0, 0x87f954\nB               loc_87F914                                             ; +0xe4, 0x87f958\nBL              .__stack_chk_fail                                      ; +0xe8, 0x87f95c", "xrefs": ["PlayerObject::spiderTestJumpInternal @ 0x634438", "PlayerObject::spiderTestJumpY @ 0x636250", "PlayerObject::spiderTestJumpX @ 0x636ca4", "GJBaseGameLayer::teleportPlayer @ 0x889eb0", "<???> @ 0x86418"], "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"}