{"type": "func", "start": 4296951084, "end": 4296951268, "name": "GJBaseGameLayer::checkCameraLimitAfterTeleport", "pseudocode": "// \n// GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x1001e452c to 0x1001e45e4 (184 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::teleportPlayer @ 0x1001e4230\n// > PlayerObject::spiderTestJumpInternal @ 0x10022554c\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 *v6; // x0\n  float v7; // [xsp+Ch] [xbp-24h]\n  cocos2d::CCSize WinSize; // 0:kr00_8.8\n\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 && !a2->m_isSideways )\n  {\n    v6 = cocos2d::CCDirector::sharedDirector();\n    WinSize = cocos2d::CCDirector::getWinSize(v6);\n    if ( *(float *)(((__int64 (__fastcall *)(PlayerObject *, float, float))a2->getPosition)(\n                      a2,\n                      WinSize.width,\n                      WinSize.height)\n                  + 4) > (float)((float)(a1->m_gameState.m_cameraPosition.y + v7) + a3)\n      || *(float *)(((__int64 (__fastcall *)(PlayerObject *))a2->getPosition)(a2) + 4) < (float)(a1->m_gameState.m_cameraPosition.y\n                                                                                               - a3) )\n    {\n      a1->m_gameState.m_unkBool29 = 1;\n      GJBaseGameLayer::updateCamera(a1, 0.0);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x1001e452c to 0x1001e45e4 (184 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::teleportPlayer @ 0x1001e4230\n; > PlayerObject::spiderTestJumpInternal @ 0x10022554c\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1001e452c\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x1001e4530\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1001e4534\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1001e4538\nADD             X29, SP, #0x30                                         ; +0x10, 0x1001e453c\nFMOV            S8, S0                                                 ; +0x14, 0x1001e4540\nLDR             S0, [X0,#0x23C]                                        ; +0x18, 0x1001e4544\nFCMP            S0, #0.0                                               ; +0x1c, 0x1001e4548\nB.NE            loc_1001E45D0                                          ; +0x20, 0x1001e454c\nMOV             X20, X1                                                ; +0x24, 0x1001e4550\nLDRB            W8, [X1,#0x97B]                                        ; +0x28, 0x1001e4554\nTBNZ            W8, #0, loc_1001E45D0                                  ; +0x2c, 0x1001e4558\nMOV             X19, X0                                                ; +0x30, 0x1001e455c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x34, 0x1001e4560\nADD             X8, SP, #0x30+var_28                                   ; +0x38, 0x1001e4564\nBL              cocos2d__CCDirector__getWinSize                        ; +0x3c, 0x1001e4568\nLDR             X8, [X20]                                              ; +0x40, 0x1001e456c\nLDR             X8, [X8,#0xC0]                                         ; +0x44, 0x1001e4570\nMOV             X0, X20                                                ; +0x48, 0x1001e4574\nBLR             X8                                                     ; +0x4c, 0x1001e4578\nLDR             S0, [X0,#4]                                            ; +0x50, 0x1001e457c\nLDR             S1, [X19,#0x3E4]                                       ; +0x54, 0x1001e4580\nLDR             S2, [SP,#0x30+var_24]                                  ; +0x58, 0x1001e4584\nFADD            S1, S1, S2                                             ; +0x5c, 0x1001e4588\nFADD            S1, S1, S8                                             ; +0x60, 0x1001e458c\nFCMP            S0, S1                                                 ; +0x64, 0x1001e4590\nB.GT            loc_1001E45BC                                          ; +0x68, 0x1001e4594\nLDR             X8, [X20]                                              ; +0x6c, 0x1001e4598\nLDR             X8, [X8,#0xC0]                                         ; +0x70, 0x1001e459c\nMOV             X0, X20                                                ; +0x74, 0x1001e45a0\nBLR             X8                                                     ; +0x78, 0x1001e45a4\nLDR             S0, [X0,#4]                                            ; +0x7c, 0x1001e45a8\nLDR             S1, [X19,#0x3E4]                                       ; +0x80, 0x1001e45ac\nFSUB            S1, S1, S8                                             ; +0x84, 0x1001e45b0\nFCMP            S0, S1                                                 ; +0x88, 0x1001e45b4\nB.PL            loc_1001E45D0                                          ; +0x8c, 0x1001e45b8\nMOV             W8, #1                                                 ; +0x90, 0x1001e45bc\nSTRB            W8, [X19,#0x6B9]                                       ; +0x94, 0x1001e45c0\nFMOV            S0, WZR                                                ; +0x98, 0x1001e45c4\nMOV             X0, X19                                                ; +0x9c, 0x1001e45c8\nBL              GJBaseGameLayer__updateCamera                          ; +0xa0, 0x1001e45cc\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa4, 0x1001e45d0\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa8, 0x1001e45d4\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0xac, 0x1001e45d8\nADD             SP, SP, #0x40 ; '@'                                    ; +0xb0, 0x1001e45dc\nRET                                                                    ; +0xb4, 0x1001e45e0", "xrefs": ["GJBaseGameLayer::teleportPlayer @ 0x1001e4230", "PlayerObject::spiderTestJumpInternal @ 0x10022554c"], "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"}