	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r5c_journal_mode_store
_r5c_journal_mode_store:                ## @r5c_journal_mode_store
	.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
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_r5c_journal_mode_str@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpq	$1, %r12
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_2:
	leaq	-1(%r12), %rbx
	cmpb	$10, -1(%r13,%r12)
	cmovneq	%r12, %rbx
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	decl	%eax
	movslq	%eax, %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$-1, %r14
	jae	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%r14,4), %edi
	callq	_strlen
	cmpq	%rbx, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_3:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_10:
	movq	%r14, %rdi
	callq	_mddev_lock
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_r5c_journal_mode_set
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mddev_unlock
	testl	%ebx, %ebx
	cmovnel	%ebx, %r12d
	movl	%r12d, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r5c_journal_mode_str,8,3       ## @r5c_journal_mode_str
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_r5c_journal_mode_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r5c_journal_mode_store
_r5c_journal_mode_store:                ; @r5c_journal_mode_store
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _r5c_journal_mode_str@GOTPAGE
Lloh1:
	ldr	x24, [x24, _r5c_journal_mode_str@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	subs	x8, x19, #1
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	ldrb	w9, [x22, x8]
	cmp	w9, #10
	csel	x23, x8, x19, eq
	cbz	w0, LBB0_7
; %bb.3:
	sub	w8, w0, #1
	sxtw	x21, w8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x21, x21, #1
	cmn	x21, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8, x21, lsl #2]
	bl	_strlen
	cmp	x0, x23
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x22
	mov	x2, x23
	bl	_strncmp
	cbnz	w0, LBB0_4
	b	LBB0_8
LBB0_7:
	mov	w21, #-1
LBB0_8:
	mov	x0, x20
	bl	_mddev_lock
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x21
	bl	_r5c_journal_mode_set
	mov	x21, x0
	mov	x0, x20
	bl	_mddev_unlock
	cmp	w21, #0
	csel	w0, w19, w21, eq
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_r5c_journal_mode_str,8,3       ; @r5c_journal_mode_str
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_r5c_journal_mode_store
.subsections_via_symbols
