	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dos_flush_input
_dos_flush_input:                       ## @dos_flush_input
	.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
	movq	_ports@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	(%rdi), %rax
	leaq	(%rax,%rax,2), %rbx
	xorl	%eax, %eax
	callq	_disable
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14,%rbx,8)
	cmpq	$0, (%r14,%rbx,8)
	je	LBB0_2
## %bb.1:
	leaq	(%r14,%rbx,8), %rdi
	movq	_com_fifo@GOTPCREL(%rip), %rax
	movq	_FIFO_ENABLE@GOTPCREL(%rip), %rcx
	movq	_FIFO_RCV_RST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_FIFO_TRIGGER@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_outb
LBB0_2:
	xorl	%eax, %eax
	callq	_enable
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ports,8,3                      ## @ports
	.comm	_com_fifo,4,2                   ## @com_fifo
	.comm	_FIFO_ENABLE,4,2                ## @FIFO_ENABLE
	.comm	_FIFO_RCV_RST,4,2               ## @FIFO_RCV_RST
	.comm	_FIFO_TRIGGER,4,2               ## @FIFO_TRIGGER
	.no_dead_strip	_dos_flush_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dos_flush_input
_dos_flush_input:                       ; @dos_flush_input
	.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
Lloh0:
	adrp	x8, _ports@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ports@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	mov	w10, #24
	madd	x19, x9, x10, x8
	bl	_disable
	stp	xzr, xzr, [x19, #8]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _com_fifo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _com_fifo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _FIFO_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FIFO_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _FIFO_RCV_RST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FIFO_RCV_RST@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _FIFO_TRIGGER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FIFO_TRIGGER@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_outb
LBB0_2:
	bl	_enable
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ports,8,3                      ; @ports
	.comm	_com_fifo,4,2                   ; @com_fifo
	.comm	_FIFO_ENABLE,4,2                ; @FIFO_ENABLE
	.comm	_FIFO_RCV_RST,4,2               ; @FIFO_RCV_RST
	.comm	_FIFO_TRIGGER,4,2               ; @FIFO_TRIGGER
	.no_dead_strip	_dos_flush_input
.subsections_via_symbols
