	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLSetXY                       ## -- Begin function VGLSetXY
	.p2align	4, 0x90
_VGLSetXY:                              ## @VGLSetXY
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r14
	movl	%ecx, -44(%rbp)
	xorl	%eax, %eax
	callq	_VGLCheckSwitch
	testl	%r13d, %r13d
	js	LBB0_30
## %bb.1:
	testl	%ebx, %ebx
	js	LBB0_30
## %bb.2:
	movl	(%r14), %r12d
	cmpl	%r13d, %r12d
	jle	LBB0_30
## %bb.3:
	cmpl	%ebx, 4(%r14)
	jle	LBB0_30
## %bb.4:
	movq	_VGLDisplay@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_5
## %bb.8:
	cmpl	$139, 8(%r14)
	jne	LBB0_30
## %bb.9:
	imull	%ebx, %r12d
	addl	%r13d, %r12d
	leaq	12(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	imull	12(%r14), %r12d
LBB0_11:
	movl	%r15d, %edi
	callq	_htole32
	movl	%eax, -44(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	decl	%eax
	cmpl	$3, %eax
	ja	LBB0_28
## %bb.12:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movslq	%r12d, %rdi
	shlq	$2, %rdi
	addq	16(%r14), %rdi
	leaq	-44(%rbp), %rsi
LBB0_14:
	movl	$1, %edx
	callq	_memcpy
	jmp	LBB0_28
LBB0_5:
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_VGLMouseFreezeXY
	movl	%eax, %r12d
	movq	_VGLVDisplay@GOTPCREL(%rip), %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_VGLSetXY
	testl	%r12d, %r12d
	jne	LBB0_28
## %bb.6:
	movl	8(%r14), %eax
	addl	$-128, %eax
	cmpl	$11, %eax
	ja	LBB0_28
## %bb.7:
	movl	(%r14), %r12d
	imull	%ebx, %r12d
	addl	%r13d, %r12d
	imull	12(%r14), %r12d
	leaq	12(%r14), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movl	%r12d, %edi
	callq	_VGLSetSegment
	movl	%eax, %r12d
	jmp	LBB0_11
LBB0_15:
	movslq	%r12d, %rdi
	shlq	$2, %rdi
	addq	16(%r14), %rdi
	leaq	-44(%rbp), %rsi
LBB0_16:
	movl	$2, %edx
	callq	_memcpy
	jmp	LBB0_28
LBB0_17:
	movslq	%r12d, %rdi
LBB0_18:
	shlq	$2, %rdi
	addq	16(%r14), %rdi
	leaq	-44(%rbp), %rsi
	movl	$3, %edx
	callq	_memcpy
	jmp	LBB0_28
LBB0_19:
	movslq	%r12d, %rdi
	shlq	$2, %rdi
	addq	16(%r14), %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_28
LBB0_24:
	movl	$964, %edi                      ## imm = 0x3C4
	movl	$2, %esi
	callq	_outb
	movl	%r13d, %ecx
	andb	$3, %cl
	movl	$1, %esi
	shll	%cl, %esi
	movl	$965, %edi                      ## imm = 0x3C5
	callq	_outb
	movq	_VGLAdpInfo@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movq	16(%r14), %rax
	shrl	$2, %r13d
	addl	%ebx, %r13d
	movl	%r15d, (%rax,%r13,4)
	jmp	LBB0_28
LBB0_25:
	movq	_VGLAdpInfo@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movl	%r13d, %edi
	shrl	$3, %edi
	addl	%ebx, %edi
	callq	_VGLSetSegment
	movl	%eax, %r12d
	jmp	LBB0_27
LBB0_26:
	movq	_VGLAdpInfo@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movl	%r13d, %r12d
	shrl	$3, %r12d
	addl	%ebx, %r12d
LBB0_27:
	movl	$964, %edi                      ## imm = 0x3C4
	movl	$2, %esi
	callq	_outb
	movl	$965, %edi                      ## imm = 0x3C5
	movl	$15, %esi
	callq	_outb
	movl	$974, %edi                      ## imm = 0x3CE
	xorl	%esi, %esi
	callq	_outb
	movl	%r15d, %esi
	andl	$15, %esi
	movl	$975, %edi                      ## imm = 0x3CF
	callq	_outb
	movl	$974, %edi                      ## imm = 0x3CE
	movl	$1, %esi
	callq	_outb
	movl	$975, %edi                      ## imm = 0x3CF
	movl	$15, %esi
	callq	_outb
	movl	$974, %edi                      ## imm = 0x3CE
	movl	$8, %esi
	callq	_outb
	andb	$7, %r13b
	movl	$128, %esi
	movl	%r13d, %ecx
	shrl	%cl, %esi
	movl	$975, %edi                      ## imm = 0x3CF
	callq	_outb
	movq	16(%r14), %rax
	movslq	%r12d, %rcx
	orl	%r15d, (%rax,%rcx,4)
LBB0_28:
	movq	_VGLDisplay@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_30
## %bb.29:
	xorl	%eax, %eax
	callq	_VGLMouseUnFreeze
LBB0_30:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%r12d, %edi
	callq	_VGLSetSegment
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_htole32
	movl	%eax, -44(%rbp)
	movq	_VGLAdpInfo@GOTPCREL(%rip), %rax
	movl	4(%rax), %eax
	subl	%ebx, %eax
	movslq	%ebx, %rdi
	cmpl	$2, %eax
	je	LBB0_23
## %bb.21:
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.22:
	shlq	$2, %rdi
	addq	16(%r14), %rdi
	leaq	-44(%rbp), %rsi
	movl	$1, %edx
	callq	_memcpy
	incl	%r12d
	movl	%r12d, %edi
	callq	_VGLSetSegment
	movslq	%eax, %rdi
	shlq	$2, %rdi
	addq	16(%r14), %rdi
	leaq	-40(%rbp), %rsi
	jmp	LBB0_16
LBB0_23:
	shlq	$2, %rdi
	addq	16(%r14), %rdi
	leaq	-44(%rbp), %rsi
	movl	$2, %edx
	callq	_memcpy
	addl	$2, %r12d
	movl	%r12d, %edi
	callq	_VGLSetSegment
	movslq	%eax, %rdi
	shlq	$2, %rdi
	addq	16(%r14), %rdi
	leaq	-36(%rbp), %rsi
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_24
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_25
	.long	L0_0_set_26
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_20
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_11
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
LJTI0_1:
	.long	L0_1_set_13
	.long	L0_1_set_15
	.long	L0_1_set_17
	.long	L0_1_set_19
	.end_data_region
                                        ## -- End function
	.comm	_VGLDisplay,8,3                 ## @VGLDisplay
	.comm	_VGLVDisplay,24,3               ## @VGLVDisplay
	.comm	_VGLAdpInfo,8,2                 ## @VGLAdpInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VGLSetXY                       ; -- Begin function VGLSetXY
	.p2align	2
_VGLSetXY:                              ; @VGLSetXY
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	str	w3, [sp, #12]
	bl	_VGLCheckSwitch
	tbnz	w21, #31, LBB0_29
; %bb.1:
	tbnz	w22, #31, LBB0_29
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, w21
	b.le	LBB0_29
; %bb.3:
	ldr	w9, [x19, #4]
	cmp	w9, w22
	b.le	LBB0_29
; %bb.4:
Lloh0:
	adrp	x24, _VGLDisplay@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VGLDisplay@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x9, x19
	b.eq	LBB0_11
; %bb.5:
	ldr	w9, [x19, #8]
	cmp	w9, #139
	b.ne	LBB0_29
; %bb.6:
	madd	w8, w8, w22, w21
	mov	x25, x19
	ldr	w9, [x25, #12]!
	mul	w23, w8, w9
LBB0_7:
	mov	x0, x20
	bl	_htole32
	str	w0, [sp, #12]
	ldr	w8, [x25]
	sub	w8, w8, #1
	cmp	w8, #3
	b.hi	LBB0_27
; %bb.8:
Lloh2:
	adrp	x9, lJTI0_1@PAGE
Lloh3:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	ldr	x8, [x19, #16]
	add	x0, x8, w23, sxtw #2
	add	x1, sp, #12
LBB0_10:
	mov	w2, #1
	bl	_memcpy
	b	LBB0_27
LBB0_11:
	mov	x0, x21
	mov	x1, x22
	bl	_VGLMouseFreezeXY
	mov	x23, x0
Lloh4:
	adrp	x0, _VGLVDisplay@GOTPAGE
Lloh5:
	ldr	x0, [x0, _VGLVDisplay@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	bl	_VGLSetXY
	cbnz	w23, LBB0_27
; %bb.12:
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	cmp	w8, #11
	b.hi	LBB0_27
; %bb.13:
	ldr	w9, [x19]
	madd	w9, w9, w22, w21
	mov	x25, x19
	ldr	w10, [x25, #12]!
	mul	w23, w9, w10
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_14:
	mov	x0, x23
	bl	_VGLSetSegment
	mov	x23, x0
	b	LBB0_7
LBB0_15:
	ldr	x8, [x19, #16]
	add	x0, x8, w23, sxtw #2
	add	x1, sp, #12
LBB0_16:
	mov	w2, #2
	bl	_memcpy
	b	LBB0_27
LBB0_17:
	ldr	x8, [x19, #16]
	add	x0, x8, w23, sxtw #2
LBB0_18:
	add	x1, sp, #12
	mov	w2, #3
	bl	_memcpy
	b	LBB0_27
LBB0_19:
	ldr	x8, [x19, #16]
	add	x0, x8, w23, sxtw #2
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	b	LBB0_27
LBB0_20:
	mov	w0, #964
	mov	w1, #2
	bl	_outb
	and	w8, w21, #0x3
	mov	w9, #1
	lsl	w1, w9, w8
	mov	w0, #965
	bl	_outb
Lloh8:
	adrp	x8, _VGLAdpInfo@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VGLAdpInfo@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh10:
	ldr	w8, [x8]
	mul	w8, w8, w22
	add	w8, w8, w21, lsr #2
	str	w20, [x9, w8, uxtw #2]
	b	LBB0_27
LBB0_21:
Lloh11:
	adrp	x8, _VGLAdpInfo@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VGLAdpInfo@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mul	w8, w8, w22
	add	w0, w8, w21, lsr #3
	bl	_VGLSetSegment
	mov	x22, x0
	b	LBB0_26
LBB0_22:
	mov	x0, x23
	bl	_VGLSetSegment
	mov	x21, x0
	mov	x0, x20
	bl	_htole32
	str	w0, [sp, #12]
Lloh14:
	adrp	x8, _VGLAdpInfo@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VGLAdpInfo@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8, #4]
	sub	w8, w8, w21
	cmp	w8, #2
	b.eq	LBB0_30
; %bb.23:
	cmp	w8, #1
	b.ne	LBB0_31
; %bb.24:
	ldr	x8, [x19, #16]
	add	x0, x8, w21, sxtw #2
	add	x20, sp, #12
	add	x1, sp, #12
	mov	w2, #1
	bl	_memcpy
	add	w0, w23, #1
	bl	_VGLSetSegment
	ldr	x8, [x19, #16]
	add	x0, x8, w0, sxtw #2
	add	x1, x20, #4
	b	LBB0_16
LBB0_25:
Lloh17:
	adrp	x8, _VGLAdpInfo@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VGLAdpInfo@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mul	w8, w8, w22
	add	w22, w8, w21, lsr #3
LBB0_26:
	mov	w0, #964
	mov	w1, #2
	bl	_outb
	mov	w0, #965
	mov	w1, #15
	bl	_outb
	mov	w0, #974
	mov	w1, #0
	bl	_outb
	and	w1, w20, #0xf
	mov	w0, #975
	bl	_outb
	mov	w0, #974
	mov	w1, #1
	bl	_outb
	mov	w0, #975
	mov	w1, #15
	bl	_outb
	mov	w0, #974
	mov	w1, #8
	bl	_outb
	and	w8, w21, #0x7
	mov	w9, #128
	lsr	w1, w9, w8
	mov	w0, #975
	bl	_outb
	ldr	x8, [x19, #16]
	sbfiz	x9, x22, #2, #32
	ldr	w10, [x8, x9]
	orr	w10, w10, w20
	str	w10, [x8, x9]
LBB0_27:
	ldr	x8, [x24]
	cmp	x8, x19
	b.ne	LBB0_29
; %bb.28:
	bl	_VGLMouseUnFreeze
LBB0_29:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_30:
	ldr	x8, [x19, #16]
	add	x0, x8, w21, sxtw #2
	add	x20, sp, #12
	add	x1, sp, #12
	mov	w2, #2
	bl	_memcpy
	add	w0, w23, #2
	bl	_VGLSetSegment
	ldr	x8, [x19, #16]
	add	x0, x8, w0, sxtw #2
	add	x1, x20, #8
	b	LBB0_10
LBB0_31:
	ldr	x8, [x19, #16]
	add	x0, x8, w21, sxtw #2
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_20-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_21-LBB0_7)>>2
	.byte	(LBB0_25-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_22-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
lJTI0_1:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_15-LBB0_9)>>2
	.byte	(LBB0_17-LBB0_9)>>2
	.byte	(LBB0_19-LBB0_9)>>2
                                        ; -- End function
	.comm	_VGLDisplay,8,3                 ; @VGLDisplay
	.comm	_VGLVDisplay,24,3               ; @VGLVDisplay
	.comm	_VGLAdpInfo,8,2                 ; @VGLAdpInfo
.subsections_via_symbols
