	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5l_flush_stripe_to_raid       ## -- Begin function r5l_flush_stripe_to_raid
	.p2align	4, 0x90
_r5l_flush_stripe_to_raid:              ## @r5l_flush_stripe_to_raid
	.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
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 28(%rdi)
	je	LBB0_4
## %bb.2:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	leaq	20(%rbx), %r15
	movq	%r15, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	24(%rbx), %rdi
	movq	%r15, %rsi
	callq	_list_splice_tail_init
	movq	%r15, %rdi
	callq	_list_empty
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	testl	%r15d, %r15d
	je	LBB0_6
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	callq	_bio_reset
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bio_set_dev
	movq	_r5l_log_flush_endio@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movq	_REQ_PREFLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_submit_bio                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_r5l_log_flush_endio,4,2        ## @r5l_log_flush_endio
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.comm	_REQ_PREFLUSH,4,2               ## @REQ_PREFLUSH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5l_flush_stripe_to_raid       ; -- Begin function r5l_flush_stripe_to_raid
	.p2align	2
_r5l_flush_stripe_to_raid:              ; @r5l_flush_stripe_to_raid
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_4
; %bb.2:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irq
	add	x21, x19, #20
	mov	x0, x21
	bl	_list_empty
	cbz	w0, LBB0_5
; %bb.3:
	add	x0, x19, #24
	mov	x1, x21
	bl	_list_splice_tail_init
	mov	x0, x21
	bl	_list_empty
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock_irq
	cbz	w21, LBB0_6
LBB0_4:
	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
LBB0_5:
	mov	x0, x20
	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
	b	_spin_unlock_irq
LBB0_6:
	mov	x0, x19
	bl	_bio_reset
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bio_set_dev
Lloh0:
	adrp	x8, _r5l_log_flush_endio@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r5l_log_flush_endio@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _REQ_OP_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh5:
	adrp	x10, _REQ_PREFLUSH@GOTPAGE
Lloh6:
	ldr	x10, [x10, _REQ_PREFLUSH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w9, w8, [x19]
	mov	x0, x19
	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
	b	_submit_bio
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_r5l_log_flush_endio,4,2        ; @r5l_log_flush_endio
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.comm	_REQ_PREFLUSH,4,2               ; @REQ_PREFLUSH
.subsections_via_symbols
