	.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	(%rdi), %rax
	xorl	%r13d, %r13d
	movq	_MaxSector@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_33
LBB0_2:
	movq	%rsi, %r12
	movq	%rdi, %rsi
	movq	_EEXIST@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	32(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rax), %r15d
	cmpl	$0, (%r12)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jns	LBB0_6
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	movl	$-1, %edx
	callq	__enough
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movq	%r12, %rdi
	callq	_md_integrity_add_rdev
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	decl	%r15d
	movl	4(%r12), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movl	(%r12), %ebx
	cmovnsl	%ecx, %r15d
	cmpl	%eax, %ebx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jl	LBB0_11
## %bb.9:
	cmpl	16(%rsi), %ebx
	jge	LBB0_11
## %bb.10:
	movslq	%ebx, %rcx
	movq	8(%rsi), %rdx
	shlq	$5, %rcx
	cmpq	$0, 8(%rdx,%rcx)
	je	LBB0_12
LBB0_11:
	movl	%eax, %ebx
LBB0_12:
	cmpl	%r15d, %ebx
	jg	LBB0_26
## %bb.13:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %r12
	incl	%r15d
	shlq	$5, %r12
	orq	$24, %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	addq	$32, %r12
	cmpl	%ebx, %r15d
	je	LBB0_28
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %r14
	movq	8(%rcx), %rax
	cmpq	%rax, -24(%r14,%r12)
	je	LBB0_27
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-16(%r14,%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_27
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	$0, (%r14,%r12)
	jne	LBB0_27
## %bb.18:
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leaq	16(%r15), %r13
	movq	%r13, %rsi
	callq	_clear_bit
	movq	_Replacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_set_bit
	movl	%ebx, 4(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rdi
	addq	%r12, %r14
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	shll	$9, %edx
	callq	_disk_stack_limits
LBB0_20:
	movq	%r15, %r12
	jmp	LBB0_24
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_33
LBB0_28:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_21:
	movq	24(%rcx), %rdi
	testq	%rdi, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_23
## %bb.22:
	movq	%rcx, %r15
	movl	8(%r13), %edx
	movl	12(%r13), %esi
	shll	$9, %edx
	callq	_disk_stack_limits
	movq	8(%r15), %rax
LBB0_23:
	leaq	(%r14,%r12), %rcx
	addq	$-16, %rcx
	movq	$0, -8(%r14,%r12)
	decq	%rax
	movq	%rax, -24(%r14,%r12)
	movl	%ebx, 4(%r13)
	movq	%rcx, %r14
	cmpl	%ebx, (%r13)
	movq	%r13, %r12
	je	LBB0_25
LBB0_24:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	%r14, %rcx
LBB0_25:
	movq	(%rcx), %rdi
	movq	%r12, %rsi
	callq	_rcu_assign_pointer
	xorl	%r13d, %r13d
LBB0_26:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_29:
	cmpq	$0, 16(%rcx)
	je	LBB0_32
## %bb.30:
	movl	12(%r12), %edi
	callq	_bdev_get_queue
	movl	%eax, %edi
	callq	_blk_queue_discard
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	_QUEUE_FLAG_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rcx), %rsi
	callq	_blk_queue_flag_set
LBB0_32:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_print_conf
LBB0_33:
	movl	%r13d, %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	_ENXIO,4,2                      ## @ENXIO
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MaxSector@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MaxSector@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_20
LBB0_2:
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #32]
Lloh5:
	adrp	x8, _EEXIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	ldr	w23, [x19, #16]
	ldr	w8, [x1]
	tbz	w8, #31, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #-1
	bl	__enough
	cbz	w0, LBB0_19
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	bl	_md_integrity_add_rdev
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_20
LBB0_6:
	neg	w22, w22
	sub	w8, w23, #1
	ldp	w9, w10, [x21]
	bic	w23, w10, w10, asr #31
	cmp	w10, #0
	csel	w8, w10, w8, ge
	cmp	w9, w23
	b.lt	LBB0_10
; %bb.7:
	ldr	w10, [x19, #16]
	cmp	w9, w10
	b.ge	LBB0_10
; %bb.8:
	sxtw	x10, w9
	ldr	x11, [x19, #8]
	add	x10, x11, x10, lsl #5
	ldr	x10, [x10, #8]
	cbnz	x10, LBB0_10
; %bb.9:
	mov	x23, x9
LBB0_10:
	cmp	w23, w8
	b.gt	LBB0_27
; %bb.11:
	sxtw	x9, w23
	add	w26, w8, #1
	mov	w24, #16
	bfi	x24, x9, #5, #59
Lloh10:
	adrp	x27, _WantReplacement@GOTPAGE
Lloh11:
	ldr	x27, [x27, _WantReplacement@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w23, w23, #1
	add	x24, x24, #32
	cmp	w26, w23
	b.eq	LBB0_27
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #8]
	add	x9, x25, x24
	ldur	x10, [x9, #-16]
	ldr	x8, [x20, #8]
	cmp	x10, x8
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldur	x1, [x9, #-8]
	cbz	x1, LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x27]
	bl	_test_bit
	cbz	w0, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x25, x25, x24
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_12
; %bb.17:
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	w23, [x21, #4]
	ldr	x0, [x20, #24]
	add	x22, x25, #8
	cbz	x0, LBB0_25
; %bb.18:
	ldp	w8, w1, [x21, #8]
	lsl	w2, w8, #9
	bl	_disk_stack_limits
	b	LBB0_25
LBB0_19:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_21:
	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_22:
	ldr	x0, [x20, #24]
	add	x26, x25, x24
	sub	x22, x26, #8
	cbz	x0, LBB0_24
; %bb.23:
	ldp	w8, w1, [x21, #8]
	lsl	w2, w8, #9
	bl	_disk_stack_limits
	ldr	x8, [x20, #8]
LBB0_24:
	str	xzr, [x25, x24]
	sub	x8, x8, #1
	stur	x8, [x26, #-16]
	str	w23, [x21, #4]
	ldr	w8, [x21]
	cmp	w8, w23
	b.eq	LBB0_26
LBB0_25:
	mov	w8, #1
	str	w8, [x19]
LBB0_26:
	ldr	x0, [x22]
	mov	x1, x21
	bl	_rcu_assign_pointer
	mov	w22, #0
LBB0_27:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_30
; %bb.28:
	ldr	w0, [x21, #12]
	bl	_bdev_get_queue
	bl	_blk_queue_discard
	cbz	x0, LBB0_30
; %bb.29:
Lloh20:
	adrp	x8, _QUEUE_FLAG_DISCARD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _QUEUE_FLAG_DISCARD@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x1, [x20, #16]
	bl	_blk_queue_flag_set
LBB0_30:
	mov	x0, x19
	bl	_print_conf
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, 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	_ENXIO,4,2                      ; @ENXIO
	.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
