	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r592_write_fifo_pio
_r592_write_fifo_pio:                   ## @r592_write_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_kfifo_is_empty
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_kfifo_in
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_kfifo_is_full
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	subl	%r12d, %r15d
	movslq	%r12d, %rax
	addq	%rax, %rbx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_kfifo_out
	xorl	%edi, %edi
	cmpl	$4, %eax
	setne	%dil
	callq	_WARN_ON
	movq	_R592_FIFO_PIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-64(%rbp), %edx
	movq	%r14, %rdi
	callq	_r592_write_reg_raw_be
LBB0_3:
	movq	%r14, %rdi
	callq	_kfifo_is_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	cmpl	$4, %r15d
	jl	LBB0_4
## %bb.5:
	movq	_R592_FIFO_PIO@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_r592_write_reg_raw_be
	addq	$4, %rbx
	leal	-4(%r15), %edx
	cmpl	$7, %r15d
	movl	%edx, %r15d
	ja	LBB0_6
## %bb.7:
	testl	%edx, %edx
	je	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_kfifo_in
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r15d, %edx
	testl	%edx, %edx
	jne	LBB0_8
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_R592_FIFO_PIO,4,2              ## @R592_FIFO_PIO
	.no_dead_strip	_r592_write_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_write_fifo_pio
_r592_write_fifo_pio:                   ; @r592_write_fifo_pio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	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:
	stp	xzr, xzr, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_kfifo_in
	mov	x22, x0
	mov	x0, x20
	bl	_kfifo_is_full
	cbz	w0, LBB0_8
; %bb.2:
	sub	w21, w21, w22
	add	x19, x19, w22, sxtw
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #4
	bl	_kfifo_out
	cmp	w0, #4
	cset	w0, ne
	bl	_WARN_ON
Lloh3:
	adrp	x8, _R592_FIFO_PIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R592_FIFO_PIO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x20
	bl	_r592_write_reg_raw_be
LBB0_3:
	mov	x0, x20
	bl	_kfifo_is_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cmp	w21, #4
	b.lt	LBB0_10
; %bb.4:
Lloh6:
	adrp	x22, _R592_FIFO_PIO@GOTPAGE
Lloh7:
	ldr	x22, [x22, _R592_FIFO_PIO@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	ldr	w2, [x19], #4
	mov	x0, x20
	bl	_r592_write_reg_raw_be
	sub	w2, w21, #4
	cmp	w21, #7
	mov	x21, x2
	b.hi	LBB0_5
; %bb.6:
	cbz	w2, LBB0_8
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_kfifo_in
LBB0_8:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	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
	add	sp, sp, #80
	ret
LBB0_10:
	mov	x2, x21
	cbnz	w2, LBB0_7
	b	LBB0_8
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_R592_FIFO_PIO,4,2              ; @R592_FIFO_PIO
	.no_dead_strip	_r592_write_fifo_pio
.subsections_via_symbols
