	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid5_add_disk
_raid5_add_disk:                        ## @raid5_add_disk
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_Journal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rsi), %r12
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpq	$0, 32(%rbx)
	jne	LBB0_2
## %bb.4:
	movq	%rbx, %r14
	movl	$0, (%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_log_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.5:
	movq	32(%r14), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r5l_start                      ## TAILCALL
LBB0_6:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_7
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %r14
	movl	4(%r15), %eax
	testl	%eax, %eax
	js	LBB0_8
LBB0_10:
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	decl	%r12d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ecx
	xorl	%r15d, %r15d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r15d
	cmovnsl	%ecx, %r12d
	testl	%eax, %eax
	js	LBB0_13
## %bb.11:
	cmpl	%r15d, %eax
	jl	LBB0_13
## %bb.12:
	movq	24(%r14), %rcx
	movl	%eax, %edx
	shlq	$4, %rdx
	cmpq	$0, 8(%rcx,%rdx)
	cmovel	%eax, %r15d
LBB0_13:
	cmpl	%r12d, %r15d
	jg	LBB0_26
## %bb.14:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	24(%r14), %rax
	movl	%r15d, %ecx
	incl	%r12d
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r14
	addq	$8, %r14
	movl	%r15d, %ebx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	je	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	addq	$16, %r14
	cmpl	%ebx, %r12d
	jne	LBB0_15
## %bb.20:
	movslq	%r15d, %r14
	shlq	$4, %r14
	movq	_WantReplacement@GOTPCREL(%rip), %r13
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	incl	%r15d
	addq	$16, %r14
	cmpl	%r15d, %r12d
	je	LBB0_25
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rbx
	movl	(%r13), %edi
	movq	8(%rbx,%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpq	$0, (%rbx,%r14)
	jne	LBB0_24
## %bb.23:
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_clear_bit
	movq	_Replacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, (%rsi)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 16(%rax)
	movq	(%rbx,%r14), %rdi
	movq	%rax, %r14
	callq	_rcu_assign_pointer
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_8:
	movq	%r14, %rdi
	callq	_has_failed
	testq	%rax, %rax
	je	LBB0_9
## %bb.29:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_16:
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_clear_bit
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%ebx, (%r15)
	cmpl	%ebx, 4(%r15)
	je	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 16(%rax)
LBB0_18:
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_rcu_assign_pointer
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_log_modify
	movl	%eax, %ebx
	jmp	LBB0_27
LBB0_9:
	movl	4(%r15), %eax
	jmp	LBB0_10
LBB0_25:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_26:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_27:
	movq	%r14, %rdi
	callq	_print_raid5_conf
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_Journal,4,2                    ## @Journal
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_WantReplacement,4,2            ## @WantReplacement
	.comm	_Replacement,4,2                ## @Replacement
	.no_dead_strip	_raid5_add_disk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid5_add_disk
_raid5_add_disk:                        ; @raid5_add_disk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	w24, [x19]
Lloh3:
	adrp	x8, _Journal@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Journal@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x21, x1, #8
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_5
; %bb.2:
	str	wzr, [x20]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_log_init
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #32]
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_r5l_start
LBB0_4:
	ldr	x8, [x22]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w8, [x20, #4]
	tbnz	w8, #31, LBB0_21
LBB0_9:
	neg	w22, w23
	sub	w9, w24, #1
	ldr	w10, [x20]
	bic	w23, w10, w10, asr #31
	cmp	w10, #0
	csel	w9, w10, w9, ge
	tbnz	w8, #31, LBB0_12
; %bb.10:
	cmp	w8, w23
	b.lt	LBB0_12
; %bb.11:
	ldr	x10, [x19, #24]
	add	x10, x10, w8, uxtw #4
	ldr	x10, [x10, #8]
	cmp	x10, #0
	csel	w23, w8, w23, eq
LBB0_12:
	cmp	w23, w9
	b.gt	LBB0_26
; %bb.13:
	ldr	x8, [x19, #24]
	add	w24, w9, #1
	add	x8, x8, w23, uxtw #4
	add	x25, x8, #8
	mov	x26, x23
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	cbz	x8, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w26, w26, #1
	add	x25, x25, #16
	cmp	w24, w26
	b.ne	LBB0_14
; %bb.16:
	sbfiz	x25, x23, #4, #32
Lloh8:
	adrp	x27, _WantReplacement@GOTPAGE
Lloh9:
	ldr	x27, [x27, _WantReplacement@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w23, w23, #1
	add	x25, x25, #16
	cmp	w24, w23
	b.eq	LBB0_26
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #24]
	ldr	w0, [x27]
	add	x8, x26, x25
	ldr	x1, [x8, #8]
	bl	_test_bit
	cbz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x26, x25]
	cbnz	x8, LBB0_17
; %bb.20:
Lloh10:
	adrp	x8, _In_sync@GOTPAGE
Lloh11:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
Lloh13:
	adrp	x8, _Replacement@GOTPAGE
Lloh14:
	ldr	x8, [x8, _Replacement@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	str	w23, [x20]
	mov	w8, #1
	str	w8, [x19, #16]
	ldr	x0, [x26, x25]
	mov	x1, x20
	bl	_rcu_assign_pointer
	mov	w22, #0
	b	LBB0_26
LBB0_21:
	mov	x0, x19
	bl	_has_failed
	cbz	x0, LBB0_27
; %bb.22:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_23:
Lloh18:
	adrp	x8, _In_sync@GOTPAGE
Lloh19:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	str	w26, [x20]
	ldr	w8, [x20, #4]
	cmp	w8, w26
	b.eq	LBB0_25
; %bb.24:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_25:
	ldr	x0, [x25]
	mov	x1, x20
	bl	_rcu_assign_pointer
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_log_modify
	mov	x22, x0
LBB0_26:
	mov	x0, x19
	bl	_print_raid5_conf
	b	LBB0_7
LBB0_27:
	ldr	w8, [x20, #4]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_Journal,4,2                    ; @Journal
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_WantReplacement,4,2            ; @WantReplacement
	.comm	_Replacement,4,2                ; @Replacement
	.no_dead_strip	_raid5_add_disk
.subsections_via_symbols
