	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid1_add_disk
_raid1_add_disk:                        ## @raid1_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
	movq	24(%rdi), %rcx
	xorl	%r13d, %r13d
	cmpq	8(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_2:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_EEXIST@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	(%rcx), %r15d
	movq	%rcx, %rbx
	movq	%rsi, %rdi
	movq	%r14, %rsi
	callq	_md_integrity_add_rdev
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	decl	%r15d
	movl	(%r12), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	movl	4(%r12), %eax
	cmovnsl	%ecx, %r15d
	testl	%eax, %eax
	js	LBB0_14
## %bb.5:
	cmpl	%ebx, %eax
	jl	LBB0_14
## %bb.6:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpl	(%rsi), %eax
	jge	LBB0_7
## %bb.15:
	movq	24(%rsi), %rcx
	movq	%rax, %rdx
	shlq	$4, %rdx
	cmpq	$0, (%rcx,%rdx)
	cmovel	%eax, %ebx
	cmovel	%eax, %r15d
	cmpl	%r15d, %ebx
	jg	LBB0_8
	jmp	LBB0_16
LBB0_7:
	cmpl	%r15d, %ebx
	jle	LBB0_16
LBB0_8:
	cmpq	$0, 8(%r14)
	je	LBB0_11
LBB0_9:
	movl	12(%r12), %edi
	callq	_bdev_get_queue
	movl	%eax, %edi
	callq	_blk_queue_discard
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_QUEUE_FLAG_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rsi
	callq	_blk_queue_flag_set
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_print_conf
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpl	%r15d, %ebx
	jg	LBB0_8
LBB0_16:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r14d
	incl	%r15d
	shlq	$4, %r14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%ebx
	addq	$16, %r14
	cmpl	%ebx, %r15d
	je	LBB0_27
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rsi), %r12
	movq	(%r12,%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testq	%rax, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movslq	(%rsi), %rax
	shlq	$4, %rax
	addq	%r12, %rax
	cmpq	$0, (%r14,%rax)
	jne	LBB0_17
## %bb.21:
	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, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 16(%rax)
	movslq	(%rax), %rax
	shlq	$4, %rax
	addq	%rax, %r12
	movq	(%r14,%r12), %rdi
	movq	%r15, %r12
	movq	%r15, %rsi
	callq	_rcu_assign_pointer
	xorl	%r13d, %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	cmpq	$0, 8(%r14)
	jne	LBB0_9
	jmp	LBB0_11
LBB0_22:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_24
## %bb.23:
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	shll	$9, %edx
	callq	_disk_stack_limits
LBB0_24:
	movq	$0, 8(%r12,%r14)
	movl	%ebx, (%r15)
	cmpl	$0, 4(%r15)
	jns	LBB0_26
## %bb.25:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 16(%rax)
LBB0_26:
	movq	(%r12,%r14), %rdi
	movq	%r15, %rsi
	callq	_rcu_assign_pointer
	xorl	%r13d, %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %r12
	cmpq	$0, 8(%r14)
	jne	LBB0_9
	jmp	LBB0_11
LBB0_27:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	cmpq	$0, 8(%r14)
	jne	LBB0_9
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_EBUSY,4,2                      ## @EBUSY
	.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	_raid1_add_disk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid1_add_disk
_raid1_add_disk:                        ; @raid1_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	x19, [x0, #24]
	ldr	x8, [x0]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x21, x1
	mov	x20, x0
Lloh2:
	adrp	x8, _EEXIST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	ldr	w23, [x19]
	mov	x0, x1
	mov	x1, x20
	bl	_md_integrity_add_rdev
	cbz	x0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	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_6:
	neg	w22, w22
	sub	w8, w23, #1
	ldp	w10, w9, [x21]
	bic	w23, w10, w10, asr #31
	cmp	w10, #0
	csel	w8, w10, w8, ge
	tbnz	w9, #31, LBB0_10
; %bb.7:
	cmp	w9, w23
	b.lt	LBB0_10
; %bb.8:
	ldr	w10, [x19]
	cmp	w9, w10
	b.ge	LBB0_10
; %bb.9:
	ldr	x10, [x19, #24]
	lsl	x11, x9, #4
	ldr	x10, [x10, x11]
	cmp	x10, #0
	csel	w23, w9, w23, eq
	csel	w8, w9, w8, eq
LBB0_10:
	cmp	w23, w8
	b.gt	LBB0_23
; %bb.11:
	mov	w9, w23
	add	w26, w8, #1
	lsl	x24, x9, #4
Lloh7:
	adrp	x27, _WantReplacement@GOTPAGE
Lloh8:
	ldr	x27, [x27, _WantReplacement@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w23, w23, #1
	add	x24, x24, #16
	cmp	w26, w23
	b.eq	LBB0_23
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #24]
	ldr	x1, [x25, x24]
	cbz	x1, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x27]
	bl	_test_bit
	cbz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrsw	x8, [x19]
	add	x8, x25, x8, lsl #4
	ldr	x8, [x8, x24]
	cbnz	x8, LBB0_12
; %bb.16:
Lloh9:
	adrp	x8, _In_sync@GOTPAGE
Lloh10:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x22, x21, #16
	mov	x1, x22
	bl	_clear_bit
Lloh12:
	adrp	x8, _Replacement@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Replacement@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
	str	w23, [x21]
	mov	w8, #1
	str	w8, [x19, #16]
	ldrsw	x8, [x19]
	add	x8, x25, x8, lsl #4
	ldr	x0, [x8, x24]
	b	LBB0_22
LBB0_17:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_19
; %bb.18:
	ldp	w8, w1, [x21, #8]
	lsl	w2, w8, #9
	bl	_disk_stack_limits
LBB0_19:
	add	x8, x25, x24
	str	xzr, [x8, #8]
	str	w23, [x21]
	ldr	w8, [x21, #4]
	tbz	w8, #31, LBB0_21
; %bb.20:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_21:
	ldr	x0, [x25, x24]
LBB0_22:
	mov	x1, x21
	bl	_rcu_assign_pointer
	mov	w22, #0
LBB0_23:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_26
; %bb.24:
	ldr	w0, [x21, #12]
	bl	_bdev_get_queue
	bl	_blk_queue_discard
	cbz	x0, LBB0_26
; %bb.25:
Lloh15:
	adrp	x8, _QUEUE_FLAG_DISCARD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QUEUE_FLAG_DISCARD@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x1, [x20, #8]
	bl	_blk_queue_flag_set
LBB0_26:
	mov	x0, x19
	bl	_print_conf
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_EBUSY,4,2                      ; @EBUSY
	.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	_raid1_add_disk
.subsections_via_symbols
