	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_fifo_regio
_read_fifo_regio:                       ## @read_fifo_regio
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_A_FIFO_DATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	addq	$4, %rsi
	callq	_outb
	cmpl	$4, %ebx
	jb	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	callq	_inl
	movl	%eax, %edi
	callq	_le32_to_cpu
	movl	%eax, (%r15)
	addq	$16, %r15
	addl	$-4, %ebx
	cmpl	$4, %ebx
	jae	LBB0_6
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	callq	_inw
	movl	%eax, %edi
	callq	_le16_to_cpu
	movl	%eax, (%r15)
	addq	$8, %r15
	addl	$-2, %ebx
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %ebx
	jae	LBB0_7
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	callq	_inb
	movl	%eax, (%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_FIFO_DATA0,4,2               ## @A_FIFO_DATA0
	.no_dead_strip	_read_fifo_regio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_fifo_regio
_read_fifo_regio:                       ; @read_fifo_regio
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _A_FIFO_DATA0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_FIFO_DATA0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x20]
	add	x1, x8, #4
	bl	_outb
	cmp	w21, #4
	b.lo	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_inl
	bl	_le32_to_cpu
	str	w0, [x19], #16
	sub	w21, w21, #4
	cmp	w21, #4
	b.hs	LBB0_1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20]
	bl	_inw
	bl	_le16_to_cpu
	str	w0, [x19], #8
	sub	w21, w21, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, #2
	b.hs	LBB0_2
; %bb.4:
	cbz	w21, LBB0_6
; %bb.5:
	ldr	x0, [x20]
	bl	_inb
	str	w0, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_A_FIFO_DATA0,4,2               ; @A_FIFO_DATA0
	.no_dead_strip	_read_fifo_regio
.subsections_via_symbols
