	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLPanScreen                   ## -- Begin function VGLPanScreen
	.p2align	4, 0x90
_VGLPanScreen:                          ## @VGLPanScreen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	testl	%esi, %esi
	js	LBB0_7
## %bb.1:
	movl	%edx, %r14d
	testl	%edx, %edx
	js	LBB0_7
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	%esi, %ecx
	addq	(%rdi), %rcx
	cmpq	8(%rdi), %rcx
	jg	LBB0_7
## %bb.3:
	movl	%r14d, %ecx
	addq	16(%rbx), %rcx
	cmpq	24(%rbx), %rcx
	jg	LBB0_7
## %bb.4:
	movq	32(%rbx), %rcx
	movq	_MEMBUF@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.5:
	movl	%r15d, -32(%rbp)
	movl	%r14d, -28(%rbp)
	movq	_FBIO_SETDISPSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	xorl	%edi, %edi
	callq	_ioctl
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.6:
	movl	%r15d, 40(%rbx)
	movl	%r14d, 44(%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEMBUF,8,3                     ## @MEMBUF
	.comm	_FBIO_SETDISPSTART,4,2          ## @FBIO_SETDISPSTART
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLPanScreen                   ; -- Begin function VGLPanScreen
	.p2align	2
_VGLPanScreen:                          ; @VGLPanScreen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	tbnz	w1, #31, LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	mov	w0, #-1
	tbnz	w2, #31, LBB0_8
; %bb.2:
	mov	x21, x1
	ldp	x8, x9, [x20]
	add	x8, x8, w1, uxtw
	cmp	x8, x9
	b.gt	LBB0_8
; %bb.3:
	ldp	x8, x9, [x20, #16]
	add	x8, x8, w19, uxtw
	cmp	x8, x9
	b.gt	LBB0_7
; %bb.4:
	ldr	x8, [x20, #32]
Lloh0:
	adrp	x9, _MEMBUF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MEMBUF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	stp	w21, w19, [sp, #8]
Lloh3:
	adrp	x8, _FBIO_SETDISPSTART@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FBIO_SETDISPSTART@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w0, #0
	bl	_ioctl
	cbz	x0, LBB0_9
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	stp	w21, w19, [x20, #40]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MEMBUF,8,3                     ; @MEMBUF
	.comm	_FBIO_SETDISPSTART,4,2          ; @FBIO_SETDISPSTART
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
