	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid10_add_disk
_raid10_add_disk:                       ## @raid10_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	40(%rdi), %r14
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	16(%r14), %r15d
	movl	12(%rsi), %edi
	callq	_bdev_get_queue
	movq	%rax, %rdx
	movq	(%r12), %rax
	movq	_MaxSector@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_33
LBB0_3:
	movl	%r13d, -64(%rbp)                ## 4-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	jns	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	movq	%rdx, %r14
	movl	$-1, %edx
	callq	__enough
	movq	%r14, %rdx
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	decl	%r15d
	movl	4(%rbx), %eax
	xorl	%r14d, %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	cmovnsl	%eax, %r15d
	cmpq	$0, (%rdx)
	je	LBB0_8
## %bb.7:
	movq	_Unmerged@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_set_bit
	movl	$1, 8(%r12)
LBB0_8:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ebx
	cmpl	%r14d, %ebx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jl	LBB0_10
## %bb.9:
	movslq	%ebx, %rax
	movq	8(%rdx), %rcx
	shlq	$5, %rax
	cmpq	$0, 8(%rcx,%rax)
	je	LBB0_11
LBB0_10:
	movl	%r14d, %ebx
LBB0_11:
	cmpl	%r15d, %ebx
	jle	LBB0_12
LBB0_27:
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_24
## %bb.28:
	negl	%ebx
	jmp	LBB0_29
LBB0_12:
	movslq	%ebx, %r14
	incl	%r15d
	shlq	$5, %r14
	orq	$24, %r14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%ebx
	addq	$32, %r14
	cmpl	%ebx, %r15d
	je	LBB0_27
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %r13
	movq	16(%r12), %rax
	cmpq	%rax, -24(%r13,%r14)
	je	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-16(%r13,%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testq	%rax, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$0, (%r13,%r14)
	jne	LBB0_26
## %bb.17:
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leaq	16(%r15), %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_clear_bit
	movq	_Replacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	movl	%ebx, 4(%r15)
	movq	32(%r12), %rdi
	addq	%r14, %r13
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	shll	$9, %edx
	callq	_disk_stack_limits
	jmp	LBB0_19
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_20:
	movq	32(%r12), %rdi
	testq	%rdi, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_22
## %bb.21:
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	shll	$9, %edx
	callq	_disk_stack_limits
	movq	16(%r12), %rax
LBB0_22:
	leaq	(%r14,%r13), %rcx
	addq	$-16, %rcx
	movq	$0, -8(%r13,%r14)
	decq	%rax
	movq	%rax, -24(%r13,%r14)
	movl	%ebx, 4(%r15)
	movq	%rcx, %r13
	cmpl	%ebx, (%r15)
	je	LBB0_23
LBB0_19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	%r13, %rcx
LBB0_23:
	movq	(%rcx), %rdi
	movq	%r15, %rsi
	callq	_rcu_assign_pointer
LBB0_24:
	movq	_Unmerged@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	16(%r15), %r13
	movq	%r13, %rsi
	callq	_test_bit
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_29
## %bb.25:
	xorl	%eax, %eax
	callq	_synchronize_sched
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_freeze_array
	movq	%r15, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_unfreeze_array
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_clear_bit
LBB0_29:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_md_integrity_add_rdev
	cmpq	$0, 24(%r12)
	je	LBB0_32
## %bb.30:
	movl	12(%r15), %edi
	callq	_bdev_get_queue
	movq	%rax, %rdi
	callq	_blk_queue_discard
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	_QUEUE_FLAG_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r12), %rsi
	callq	_queue_flag_set_unlocked
LBB0_32:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_print_conf
LBB0_33:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_Unmerged,4,2                   ## @Unmerged
	.comm	_WantReplacement,4,2            ## @WantReplacement
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_Replacement,4,2                ## @Replacement
	.comm	_QUEUE_FLAG_DISCARD,4,2         ## @QUEUE_FLAG_DISCARD
	.no_dead_strip	_raid10_add_disk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid10_add_disk
_raid10_add_disk:                       ; @raid10_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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #40]
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	ldr	w23, [x19, #16]
	ldr	w0, [x1, #12]
	bl	_bdev_get_queue
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _MaxSector@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MaxSector@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_34
LBB0_3:
	mov	x22, x0
	ldr	w8, [x21]
	tbz	w8, #31, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #-1
	bl	__enough
	cbz	w0, LBB0_21
LBB0_5:
	sub	w8, w23, #1
	ldr	w9, [x21, #4]
	bic	w24, w9, w9, asr #31
	cmp	w9, #0
	csel	w26, w9, w8, ge
	ldr	x8, [x22]
Lloh8:
	adrp	x23, _Unmerged@GOTPAGE
Lloh9:
	ldr	x23, [x23, _Unmerged@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x23]
	add	x1, x21, #16
	bl	_set_bit
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_7:
	ldr	w8, [x21]
	cmp	w8, w24
	b.lt	LBB0_9
; %bb.8:
	sxtw	x9, w8
	ldr	x10, [x19, #8]
	add	x9, x10, x9, lsl #5
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_12
LBB0_9:
	cmp	w24, w26
	b.le	LBB0_13
LBB0_10:
	cbz	w25, LBB0_27
; %bb.11:
	neg	w22, w25
	b	LBB0_30
LBB0_12:
	mov	x24, x8
	cmp	w24, w26
	b.gt	LBB0_10
LBB0_13:
	sxtw	x8, w24
	add	w27, w26, #1
	mov	w22, #16
	bfi	x22, x8, #5, #59
Lloh10:
	adrp	x28, _WantReplacement@GOTPAGE
Lloh11:
	ldr	x28, [x28, _WantReplacement@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w24, w24, #1
	add	x22, x22, #32
	cmp	w27, w24
	b.eq	LBB0_10
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #8]
	add	x9, x26, x22
	ldur	x10, [x9, #-16]
	ldr	x8, [x20, #16]
	cmp	x10, x8
	b.eq	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldur	x1, [x9, #-8]
	cbz	x1, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x28]
	bl	_test_bit
	cbz	x0, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x26, x26, x22
	ldr	x8, [x26, #8]
	cbnz	x8, LBB0_14
; %bb.19:
Lloh12:
	adrp	x8, _In_sync@GOTPAGE
Lloh13:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x22, x21, #16
	mov	x1, x22
	bl	_clear_bit
Lloh15:
	adrp	x8, _Replacement@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Replacement@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
	str	w24, [x21, #4]
	ldr	x0, [x20, #32]
	add	x25, x26, #8
	cbz	x0, LBB0_25
; %bb.20:
	ldp	w8, w1, [x21, #8]
	lsl	w2, w8, #9
	bl	_disk_stack_limits
	b	LBB0_25
LBB0_21:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_22:
	ldr	x0, [x20, #32]
	add	x27, x26, x22
	sub	x25, x27, #8
	cbz	x0, LBB0_24
; %bb.23:
	ldp	w8, w1, [x21, #8]
	lsl	w2, w8, #9
	bl	_disk_stack_limits
	ldr	x8, [x20, #16]
LBB0_24:
	str	xzr, [x26, x22]
	sub	x8, x8, #1
	stur	x8, [x27, #-16]
	str	w24, [x21, #4]
	ldr	w8, [x21]
	cmp	w8, w24
	b.eq	LBB0_26
LBB0_25:
	mov	w8, #1
	str	w8, [x19]
LBB0_26:
	ldr	x0, [x25]
	mov	x1, x21
	bl	_rcu_assign_pointer
LBB0_27:
	ldr	w0, [x23]
	add	x22, x21, #16
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_29
; %bb.28:
	bl	_synchronize_sched
	mov	x0, x19
	mov	w1, #0
	bl	_freeze_array
	mov	x0, x19
	bl	_unfreeze_array
	ldr	w0, [x23]
	mov	x1, x22
	bl	_clear_bit
LBB0_29:
	mov	w22, #0
LBB0_30:
	mov	x0, x21
	mov	x1, x20
	bl	_md_integrity_add_rdev
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_33
; %bb.31:
	ldr	w0, [x21, #12]
	bl	_bdev_get_queue
	bl	_blk_queue_discard
	cbz	x0, LBB0_33
; %bb.32:
Lloh20:
	adrp	x8, _QUEUE_FLAG_DISCARD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _QUEUE_FLAG_DISCARD@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x1, [x20, #24]
	bl	_queue_flag_set_unlocked
LBB0_33:
	mov	x0, x19
	bl	_print_conf
LBB0_34:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_Unmerged,4,2                   ; @Unmerged
	.comm	_WantReplacement,4,2            ; @WantReplacement
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_Replacement,4,2                ; @Replacement
	.comm	_QUEUE_FLAG_DISCARD,4,2         ; @QUEUE_FLAG_DISCARD
	.no_dead_strip	_raid10_add_disk
.subsections_via_symbols
