	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLGetXY                       ## -- Begin function VGLGetXY
	.p2align	4, 0x90
_VGLGetXY:                              ## @VGLGetXY
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_VGLCheckSwitch
	testl	%ebx, %ebx
	js	LBB0_13
## %bb.1:
	testl	%r12d, %r12d
	js	LBB0_13
## %bb.2:
	cmpl	%ebx, (%r15)
	jle	LBB0_13
## %bb.3:
	cmpl	%r12d, 4(%r15)
	jle	LBB0_13
## %bb.4:
	movq	_VGLDisplay@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_5
## %bb.6:
	movq	8(%r15), %rax
	movq	_MEMBUF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
	jmp	LBB0_13
LBB0_5:
	movq	_VGLVDisplay@GOTPCREL(%rip), %r15
LBB0_7:
	movl	16(%r15), %ecx
	leal	-1(%rcx), %eax
	cmpl	$3, %eax
	ja	LBB0_13
## %bb.8:
	imull	(%r15), %r12d
	addl	%ebx, %r12d
	imull	%ecx, %r12d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movslq	%r12d, %rsi
	shlq	$2, %rsi
	addq	24(%r15), %rsi
	leaq	-36(%rbp), %rdi
	movl	$1, %edx
	callq	_memcpy
	movl	-36(%rbp), %edi
	callq	_le32toh
	movzbl	%al, %r14d
	jmp	LBB0_13
LBB0_10:
	movslq	%r12d, %rsi
	shlq	$2, %rsi
	addq	24(%r15), %rsi
	leaq	-36(%rbp), %rdi
	movl	$2, %edx
	callq	_memcpy
	movl	-36(%rbp), %edi
	callq	_le32toh
	movzwl	%ax, %r14d
	jmp	LBB0_13
LBB0_11:
	movslq	%r12d, %rsi
	shlq	$2, %rsi
	addq	24(%r15), %rsi
	leaq	-36(%rbp), %rdi
	movl	$3, %edx
	callq	_memcpy
	movl	-36(%rbp), %edi
	callq	_le32toh
	movl	%eax, %r14d
	andl	$16777215, %r14d                ## imm = 0xFFFFFF
	jmp	LBB0_13
LBB0_12:
	movslq	%r12d, %rsi
	shlq	$2, %rsi
	addq	24(%r15), %rsi
	leaq	-36(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	-36(%rbp), %edi
	callq	_le32toh
	movl	%eax, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_VGLDisplay,8,3                 ## @VGLDisplay
	.comm	_VGLVDisplay,32,3               ## @VGLVDisplay
	.comm	_MEMBUF,8,3                     ## @MEMBUF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLGetXY                       ; -- Begin function VGLGetXY
	.p2align	2
_VGLGetXY:                              ; @VGLGetXY
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_VGLCheckSwitch
	mov	w0, #0
	tbnz	w21, #31, LBB0_11
; %bb.1:
	tbnz	w20, #31, LBB0_11
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, w21
	b.le	LBB0_11
; %bb.3:
	ldr	w8, [x19, #4]
	cmp	w8, w20
	b.le	LBB0_10
; %bb.4:
Lloh0:
	adrp	x8, _VGLDisplay@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VGLDisplay@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _MEMBUF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEMBUF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x19, _VGLVDisplay@GOTPAGE
Lloh7:
	ldr	x19, [x19, _VGLVDisplay@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x19, #16]
	sub	w9, w8, #1
	cmp	w9, #3
	b.hi	LBB0_10
; %bb.8:
	ldr	w10, [x19]
	madd	w10, w10, w20, w21
	mul	w8, w10, w8
Lloh8:
	adrp	x10, lJTI0_0@PAGE
Lloh9:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_9
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_9:
	ldr	x9, [x19, #24]
	add	x1, x9, w8, sxtw #2
	add	x0, sp, #12
	mov	w2, #1
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_le32toh
	and	w0, w0, #0xff
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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_12:
	ldr	x9, [x19, #24]
	add	x1, x9, w8, sxtw #2
	add	x0, sp, #12
	mov	w2, #2
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_le32toh
	and	w0, w0, #0xffff
	b	LBB0_11
LBB0_13:
	ldr	x9, [x19, #24]
	add	x1, x9, w8, sxtw #2
	add	x0, sp, #12
	mov	w2, #3
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_le32toh
	and	w0, w0, #0xffffff
	b	LBB0_11
LBB0_14:
	ldr	x9, [x19, #24]
	add	x1, x9, w8, sxtw #2
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_le32toh
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_14-LBB0_9)>>2
                                        ; -- End function
	.comm	_VGLDisplay,8,3                 ; @VGLDisplay
	.comm	_VGLVDisplay,32,3               ; @VGLVDisplay
	.comm	_MEMBUF,8,3                     ; @MEMBUF
.subsections_via_symbols
