{"type": "func", "start": 4749520, "end": 4749682, "name": "GJBaseGameLayer::checkCameraLimitAfterTeleport", "pseudocode": "// \n// GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x4878d0 to 0x487972 (162 bytes)\n// \n// 4 xrefs:\n// > PlayerObject::spiderTestJumpInternal @ 0x349272\n// > PlayerObject::spiderTestJumpY @ 0x34aab6\n// > PlayerObject::spiderTestJumpX @ 0x34b372\n// > GJBaseGameLayer::teleportPlayer @ 0x4915e6\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 *v6; // r0\n  const cocos2d::CCPoint *v7; // r0\n  cocos2d::CCSize v8; // [sp+4h] [bp-Ch] BYREF\n\n  if ( a1->m_gameState.m_unkPoint17.y == 0.0 && !a2->m_isSideways )\n  {\n    v6 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(&v8, v6);\n    v7 = a2->getPosition(a2);\n    if ( v7->y > (float)((float)(a1->m_gameState.m_cameraPosition.y + v8.height) + a3)\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 0x4878d0 to 0x487972 (162 bytes)\n; \n; 4 xrefs:\n; > PlayerObject::spiderTestJumpInternal @ 0x349272\n; > PlayerObject::spiderTestJumpY @ 0x34aab6\n; > PlayerObject::spiderTestJumpX @ 0x34b372\n; > GJBaseGameLayer::teleportPlayer @ 0x4915e6\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\nVLDR            S15, [R0,#0x1DC]                                       ; +0x0, 0x4878d0\nLDR             R3, =(__stack_chk_guard_ptr - 0x4878DC)                ; +0x4, 0x4878d4\nPUSH            {R4-R6,LR}                                             ; +0x6, 0x4878d6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x8, 0x4878d8\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xa, 0x4878da\nVPUSH           {D8}                                                   ; +0xc, 0x4878dc\nMOV             R4, R0                                                 ; +0x10, 0x4878e0\nMOV             R5, R1                                                 ; +0x12, 0x4878e2\nMOV             R6, R3                                                 ; +0x14, 0x4878e4\nVCMP.F32        S15, #0.0                                              ; +0x16, 0x4878e6\nVMOV            S16, R2                                                ; +0x1a, 0x4878ea\nLDR             R2, [R3]                                               ; +0x1e, 0x4878ee\nSUB             SP, SP, #0x10                                          ; +0x20, 0x4878f0\nVMRS            APSR_nzcv, FPSCR                                       ; +0x22, 0x4878f2\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x26, 0x4878f6\nBNE             loc_48795E                                             ; +0x28, 0x4878f8\nLDRB.W          R3, [R1,#0x7BB]                                        ; +0x2a, 0x4878fa\nCBNZ            R3, loc_48795E                                         ; +0x2e, 0x4878fe\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x30, 0x487900\nMOV             R1, R0                                                 ; +0x34, 0x487904\nADD             R0, SP, #0x10+var_C; this                              ; +0x36, 0x487906\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x38, 0x487908\nLDR             R3, [R5]                                               ; +0x3c, 0x48790c\nMOV             R0, R5                                                 ; +0x3e, 0x48790e\nLDR             R3, [R3,#0x60]                                         ; +0x40, 0x487910\nBLX             R3                                                     ; +0x42, 0x487912\nVLDR            S14, [SP,#0x10+var_8]                                  ; +0x44, 0x487914\nVLDR            S15, [R4,#0x364]                                       ; +0x48, 0x487918\nVADD.F32        S15, S15, S14                                          ; +0x4c, 0x48791c\nVADD.F32        S15, S15, S16                                          ; +0x50, 0x487920\nVLDR            S14, [R0,#4]                                           ; +0x54, 0x487924\nVCMPE.F32       S14, S15                                               ; +0x58, 0x487928\nVMRS            APSR_nzcv, FPSCR                                       ; +0x5c, 0x48792c\nBGT             loc_487950                                             ; +0x60, 0x487930\nLDR             R3, [R5]                                               ; +0x62, 0x487932\nMOV             R0, R5                                                 ; +0x64, 0x487934\nLDR             R3, [R3,#0x60]                                         ; +0x66, 0x487936\nBLX             R3                                                     ; +0x68, 0x487938\nVLDR            S15, [R4,#0x364]                                       ; +0x6a, 0x48793a\nVSUB.F32        S15, S15, S16                                          ; +0x6e, 0x48793e\nVLDR            S14, [R0,#4]                                           ; +0x72, 0x487942\nVCMPE.F32       S14, S15                                               ; +0x76, 0x487946\nVMRS            APSR_nzcv, FPSCR                                       ; +0x7a, 0x48794a\nBPL             loc_48795E                                             ; +0x7e, 0x48794e\nMOVS            R3, #1                                                 ; +0x80, 0x487950\nMOV             R0, R4; this                                           ; +0x82, 0x487952\nSTRB.W          R3, [R4,#0x561]                                        ; +0x84, 0x487954\nMOVS            R1, #0; float                                          ; +0x88, 0x487958\nBL              _ZN15GJBaseGameLayer12updateCameraEf; GJBaseGameLayer::updateCamera(float) ; +0x8a, 0x48795a\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x8e, 0x48795e\nLDR             R3, [R6]                                               ; +0x90, 0x487960\nCMP             R2, R3                                                 ; +0x92, 0x487962\nBEQ             loc_48796A                                             ; +0x94, 0x487964\nBLX             __stack_chk_fail                                       ; +0x96, 0x487966\nADD             SP, SP, #0x10                                          ; +0x9a, 0x48796a\nVPOP            {D8}                                                   ; +0x9c, 0x48796c\nPOP             {R4-R6,PC}                                             ; +0xa0, 0x487970", "xrefs": ["PlayerObject::spiderTestJumpInternal @ 0x349272", "PlayerObject::spiderTestJumpY @ 0x34aab6", "PlayerObject::spiderTestJumpX @ 0x34b372", "GJBaseGameLayer::teleportPlayer @ 0x4915e6"], "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"}