	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r592_read_fifo_pio
_r592_read_fifo_pio:                    ## @r592_read_fifo_pio
	.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	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_kfifo_is_empty
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpl	$4, %r15d
	jl	LBB0_4
LBB0_5:
	movq	_R592_FIFO_PIO@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_r592_read_reg_raw_be
	movl	%eax, (%r12)
	addq	$4, %r12
	leal	-4(%r15), %ebx
	cmpl	$7, %r15d
	movl	%ebx, %r15d
	ja	LBB0_6
## %bb.7:
	testl	%ebx, %ebx
	je	LBB0_8
LBB0_9:
	movq	_R592_FIFO_PIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_r592_read_reg_raw_be
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_kfifo_in
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_kfifo_out
	subl	%eax, %ebx
	jmp	LBB0_10
LBB0_1:
	movl	$4, %edi
	movl	%r15d, %esi
	callq	_min
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_kfifo_out
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfifo_is_empty
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movslq	%ebx, %rax
	addq	%rax, %r12
	subl	%eax, %r15d
	cmpl	$4, %r15d
	jge	LBB0_5
LBB0_4:
	movl	%r15d, %ebx
	testl	%ebx, %ebx
	jne	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %edi
	callq	_WARN_ON
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_R592_FIFO_PIO,4,2              ## @R592_FIFO_PIO
	.no_dead_strip	_r592_read_fifo_pio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r592_read_fifo_pio
_r592_read_fifo_pio:                    ; @r592_read_fifo_pio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_kfifo_is_empty
	cbnz	w0, LBB0_3
; %bb.1:
	mov	w0, #4
	mov	x1, x21
	bl	_min
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_kfifo_out
	mov	x22, x0
	mov	x0, x20
	bl	_kfifo_is_empty
	cbz	w0, LBB0_10
; %bb.2:
	add	x19, x19, w22, sxtw
	sub	w21, w21, w22
LBB0_3:
Lloh3:
	adrp	x23, _R592_FIFO_PIO@GOTPAGE
Lloh4:
	ldr	x23, [x23, _R592_FIFO_PIO@GOTPAGEOFF]
	cmp	w21, #4
	b.lt	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_r592_read_reg_raw_be
	str	w0, [x19], #4
	sub	w22, w21, #4
	cmp	w21, #7
	mov	x21, x22
	b.hi	LBB0_4
; %bb.5:
	cbz	w22, LBB0_8
LBB0_6:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_r592_read_reg_raw_be
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #4
	bl	_kfifo_in
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_kfifo_out
	sub	w0, w22, w0
	b	LBB0_9
LBB0_7:
	mov	x22, x21
	cbnz	w22, LBB0_6
LBB0_8:
	mov	w0, #0
LBB0_9:
	bl	_WARN_ON
LBB0_10:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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
	add	sp, sp, #96
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_R592_FIFO_PIO,4,2              ; @R592_FIFO_PIO
	.no_dead_strip	_r592_read_fifo_pio
.subsections_via_symbols
