	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function VGAPortSet
_VGAPortSet:                            ## @VGAPortSet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	orl	$768, %edi                      ## imm = 0x300
	leal	-960(%rdi), %eax
	cmpl	$20, %eax
	ja	LBB0_3
## %bb.1:
	shrq	$32, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	shll	$8, %r14d
	orl	%ebx, %r14d
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r14d, %esi
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_outportw                       ## TAILCALL
LBB0_2:
	movl	$986, %edi                      ## imm = 0x3DA
	callq	_inportb
	movl	$960, %edi                      ## imm = 0x3C0
	movl	%ebx, %esi
	callq	_outportb
	movl	$960, %edi                      ## imm = 0x3C0
	jmp	LBB0_4
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
LBB0_4:
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_outportb                       ## TAILCALL
LBB0_5:
	cmpl	$1, %ebx
	jne	LBB0_7
## %bb.6:
	movl	$964, %edi                      ## imm = 0x3C4
	movl	$256, %esi                      ## imm = 0x100
	callq	_outportw
	shll	$8, %r14d
	orl	$1, %r14d
	movl	$964, %edi                      ## imm = 0x3C4
	movl	%r14d, %esi
	callq	_outportw
	movl	$964, %edi                      ## imm = 0x3C4
	movl	$768, %esi                      ## imm = 0x300
	jmp	LBB0_8
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_VGAPortSet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function VGAPortSet
_VGAPortSet:                            ; @VGAPortSet
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x8, x0
	orr	w0, w8, #0x300
	sub	w9, w0, #960
	cmp	w9, #20
	b.hi	LBB0_5
; %bb.1:
	lsr	x20, x8, #32
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	orr	w1, w20, w19, lsl #8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outportw
LBB0_4:
	mov	w0, #986
	bl	_inportb
	mov	w0, #960
	mov	x1, x20
	bl	_outportb
	mov	w0, #960
LBB0_5:
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outportb
LBB0_6:
	cmp	w20, #1
	b.ne	LBB0_2
; %bb.7:
	mov	w0, #964
	mov	w1, #256
	bl	_outportw
	mov	w1, #1
	bfi	w1, w19, #8, #24
	mov	w0, #964
	bl	_outportw
	mov	w0, #964
	mov	w1, #768
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.no_dead_strip	_VGAPortSet
.subsections_via_symbols
