	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	32(%rdi), %r13
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	(%r13), %r15d
	movl	16(%rsi), %edi
	callq	_bdev_get_queue
	movq	(%r14), %rcx
	cmpq	8(%r13), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_2:
	decl	%r15d
	movl	(%r12), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	cmovnsl	%ecx, %r15d
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_Unmerged@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r12), %rsi
	callq	_set_bit
	movl	$1, 8(%r14)
LBB0_4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpl	%r15d, %ebx
	jle	LBB0_5
LBB0_19:
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_13
## %bb.20:
	negl	%ebx
	jmp	LBB0_21
LBB0_5:
	movl	%ebx, %r14d
	incl	%r15d
	shlq	$4, %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	addq	$16, %r14
	cmpl	%ebx, %r15d
	je	LBB0_19
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %r12
	movq	(%r12,%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%r13), %rax
	shlq	$4, %rax
	addq	%r12, %rax
	cmpq	$0, (%r14,%rax)
	jne	LBB0_18
## %bb.17:
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leaq	20(%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, (%r15)
	movl	$1, 16(%r13)
	movslq	(%r13), %rax
	shlq	$4, %rax
	addq	%rax, %r12
	movq	(%r14,%r12), %rdi
	jmp	LBB0_12
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rdi
	testq	%rdi, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movl	4(%r15), %edx
	movl	16(%r15), %esi
	shll	$9, %edx
	callq	_disk_stack_limits
LBB0_9:
	movq	$0, 8(%r12,%r14)
	movl	%ebx, (%r15)
	cmpq	$0, 8(%r15)
	jns	LBB0_11
## %bb.10:
	movl	$1, 16(%r13)
LBB0_11:
	movq	(%r12,%r14), %rdi
LBB0_12:
	movq	%r15, %rsi
	callq	_rcu_assign_pointer
LBB0_13:
	movq	_Unmerged@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	20(%r15), %r12
	movq	%r12, %rsi
	callq	_test_bit
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	xorl	%eax, %eax
	callq	_synchronize_sched
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_freeze_array
	movq	%r13, %rdi
	callq	_unfreeze_array
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_clear_bit
LBB0_21:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_md_integrity_add_rdev
	cmpq	$0, 16(%r14)
	je	LBB0_24
## %bb.22:
	movl	16(%r15), %edi
	callq	_bdev_get_queue
	movq	%rax, %rdi
	callq	_blk_queue_discard
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	_QUEUE_FLAG_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rsi
	callq	_queue_flag_set_unlocked
LBB0_24:
	movq	%r13, %rdi
	callq	_print_conf
LBB0_25:
	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	_EBUSY,4,2                      ## @EBUSY
	.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	_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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #32]
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w23, [x19]
	ldr	w0, [x1, #16]
	bl	_bdev_get_queue
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_26
LBB0_2:
	sub	w8, w23, #1
	ldr	w9, [x21]
	bic	w24, w9, w9, asr #31
	cmp	w9, #0
	csel	w25, w9, w8, ge
	ldr	x8, [x0]
Lloh6:
	adrp	x23, _Unmerged@GOTPAGE
Lloh7:
	ldr	x23, [x23, _Unmerged@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x23]
	add	x1, x21, #20
	bl	_set_bit
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_4:
	cmp	w24, w25
	b.le	LBB0_7
LBB0_5:
	cbz	w22, LBB0_19
; %bb.6:
	neg	w22, w22
	b	LBB0_22
LBB0_7:
	add	w27, w25, #1
	lsl	x25, x24, #4
Lloh8:
	adrp	x28, _WantReplacement@GOTPAGE
Lloh9:
	ldr	x28, [x28, _WantReplacement@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w24, w24, #1
	add	x25, x25, #16
	cmp	w27, w24
	b.eq	LBB0_5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #24]
	ldr	x1, [x26, x25]
	cbz	x1, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x28]
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsw	x8, [x19]
	add	x8, x26, x8, lsl #4
	ldr	x8, [x8, x25]
	cbnz	x8, LBB0_8
; %bb.12:
Lloh10:
	adrp	x8, _In_sync@GOTPAGE
Lloh11:
	ldr	x8, [x8, _In_sync@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x22, x21, #20
	mov	x1, x22
	bl	_clear_bit
Lloh13:
	adrp	x8, _Replacement@GOTPAGE
Lloh14:
	ldr	x8, [x8, _Replacement@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
	str	w24, [x21]
	mov	w8, #1
	str	w8, [x19, #16]
	ldrsw	x8, [x19]
	add	x8, x26, x8, lsl #4
	ldr	x0, [x8, x25]
	b	LBB0_18
LBB0_13:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w1, [x21, #16]
	ldr	w8, [x21, #4]
	lsl	w2, w8, #9
	bl	_disk_stack_limits
LBB0_15:
	add	x8, x26, x25
	str	xzr, [x8, #8]
	str	w24, [x21]
	ldr	x8, [x21, #8]
	tbz	x8, #63, LBB0_17
; %bb.16:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_17:
	ldr	x0, [x26, x25]
LBB0_18:
	mov	x1, x21
	bl	_rcu_assign_pointer
LBB0_19:
	ldr	w0, [x23]
	add	x22, x21, #20
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_21
; %bb.20:
	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_21:
	mov	w22, #0
LBB0_22:
	mov	x0, x21
	mov	x1, x20
	bl	_md_integrity_add_rdev
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_25
; %bb.23:
	ldr	w0, [x21, #16]
	bl	_bdev_get_queue
	bl	_blk_queue_discard
	cbz	x0, LBB0_25
; %bb.24:
Lloh16:
	adrp	x8, _QUEUE_FLAG_DISCARD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _QUEUE_FLAG_DISCARD@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x1, [x20, #16]
	bl	_queue_flag_set_unlocked
LBB0_25:
	mov	x0, x19
	bl	_print_conf
LBB0_26:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_EBUSY,4,2                      ; @EBUSY
	.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	_raid1_add_disk
.subsections_via_symbols
