	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_journal_mode_set           ## -- Begin function r5c_journal_mode_set
	.p2align	4, 0x90
_r5c_journal_mode_set:                  ## @r5c_journal_mode_set
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jg	LBB0_2
## %bb.1:
	movl	%esi, %ebx
	movq	_R5C_JOURNAL_MODE_WRITE_BACK@GOTPCREL(%rip), %r12
	cmpl	%esi, (%r12)
	jl	LBB0_2
## %bb.4:
	movq	%rdi, %r14
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_raid5_calc_degraded
	testq	%rax, %rax
	jle	LBB0_9
## %bb.8:
	cmpl	%ebx, (%r12)
	jne	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	callq	_mddev_suspend
	movq	(%r15), %rax
	movl	%ebx, (%rax)
	movq	%r14, %rdi
	callq	_mddev_resume
	movq	%r14, %rdi
	callq	_mdname
	movq	_r5c_journal_mode_str@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %rdx
	movl	(%rcx,%rdx,4), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pr_debug
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_R5C_JOURNAL_MODE_WRITE_THROUGH,4,2 ## @R5C_JOURNAL_MODE_WRITE_THROUGH
	.comm	_R5C_JOURNAL_MODE_WRITE_BACK,4,2 ## @R5C_JOURNAL_MODE_WRITE_BACK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md/raid:%s: setting r5c cache mode to %d: %s\n"

	.comm	_r5c_journal_mode_str,8,3       ## @r5c_journal_mode_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_journal_mode_set           ; -- Begin function r5c_journal_mode_set
	.p2align	2
_r5c_journal_mode_set:                  ; @r5c_journal_mode_set
	.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
Lloh0:
	adrp	x8, _R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x22, _R5C_JOURNAL_MODE_WRITE_BACK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _R5C_JOURNAL_MODE_WRITE_BACK@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w1
	ccmp	w9, w1, #8, le
	b.ge	LBB0_2
LBB0_1:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x20, x0
	ldr	x21, [x0]
	cbz	x21, LBB0_6
; %bb.3:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x19, x1
	mov	x0, x21
	bl	_raid5_calc_degraded
	ldr	w8, [x22]
	cmp	x0, #1
	ccmp	w8, w19, #0, ge
	b.eq	LBB0_1
; %bb.5:
	mov	x0, x20
	bl	_mddev_suspend
	ldr	x8, [x21]
	str	w19, [x8]
	mov	x0, x20
	bl	_mddev_resume
	mov	x0, x20
	bl	_mdname
	mov	x1, x0
Lloh7:
	adrp	x8, _r5c_journal_mode_str@GOTPAGE
Lloh8:
	ldr	x8, [x8, _r5c_journal_mode_str@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w3, [x8, w19, sxtw #2]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_R5C_JOURNAL_MODE_WRITE_THROUGH,4,2 ; @R5C_JOURNAL_MODE_WRITE_THROUGH
	.comm	_R5C_JOURNAL_MODE_WRITE_BACK,4,2 ; @R5C_JOURNAL_MODE_WRITE_BACK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md/raid:%s: setting r5c cache mode to %d: %s\n"

	.comm	_r5c_journal_mode_str,8,3       ; @r5c_journal_mode_str
.subsections_via_symbols
