	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_fifo
_read_fifo:                             ## @read_fifo
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movl	%edi, %r12d
	leal	2(%r12), %r15d
	movl	$28, %edi
	movl	%r15d, %esi
	callq	_outb_p
	movl	$20, %edi
	movl	%r15d, %esi
	callq	_outb_p
	orl	$128, %r13d
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_outb_p
	movl	$22, %edi
	movl	%r15d, %esi
	callq	_outb_p
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	incl	%r12d
	movl	%ebx, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$23, %edi
	movl	%r15d, %esi
	callq	_outb_p
	movl	%r12d, %edi
	callq	_inb_p
	movl	%eax, %ebx
	shrl	$3, %ebx
	andl	$23, %ebx
	movl	$22, %edi
	movl	%r15d, %esi
	callq	_outb_p
	movl	%r12d, %edi
	callq	_inb_p
                                        ## kill: def $eax killed $eax def $rax
	shrl	$3, %eax
	andl	$23, %eax
	movq	_nibtab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	shll	$4, %eax
	orl	(%rcx,%rbx,4), %eax
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	cmpl	%r14d, %r13d
	jne	LBB0_2
LBB0_3:
	movl	$20, %edi
	movl	%r15d, %esi
	callq	_outb_p
	movl	$28, %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb_p                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nibtab,8,3                     ## @nibtab
	.no_dead_strip	_read_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_fifo
_read_fifo:                             ; @read_fifo
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x23, x1
	mov	x22, x0
	add	w19, w0, #2
	mov	w0, #28
	mov	x1, x19
	bl	_outb_p
	mov	w0, #20
	mov	x1, x19
	bl	_outb_p
	orr	w0, w23, #0x80
	mov	x1, x22
	bl	_outb_p
	mov	w0, #22
	mov	x1, x19
	bl	_outb_p
	cmp	w20, #1
	b.lt	LBB0_3
; %bb.1:
	add	w22, w22, #1
	mov	w23, #23
Lloh0:
	adrp	x24, _nibtab@GOTPAGE
Lloh1:
	ldr	x24, [x24, _nibtab@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #23
	mov	x1, x19
	bl	_outb_p
	mov	x0, x22
	bl	_inb_p
	and	w25, w23, w0, lsr #3
	mov	w0, #22
	mov	x1, x19
	bl	_outb_p
	mov	x0, x22
	bl	_inb_p
	and	w8, w23, w0, lsr #3
	ldr	x9, [x24]
	ldr	w10, [x9, w25, uxtw #2]
	ldr	w8, [x9, w8, uxtw #2]
	orr	w8, w10, w8, lsl #4
	sxtw	x8, w8
	str	x8, [x21], #8
	subs	w20, w20, #1
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #20
	mov	x1, x19
	bl	_outb_p
	mov	w0, #28
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_outb_p
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_nibtab,8,3                     ; @nibtab
	.no_dead_strip	_read_fifo
.subsections_via_symbols
