	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_replication
_check_replication:                     ## @check_replication
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	_ZPOOL_CONFIG_VDEV_TREE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_nvlist_lookup_nvlist
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	-48(%rbp), %rdi
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_replication
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_20
LBB0_1:
	xorl	%r12d, %r12d
LBB0_3:
	movq	_ZPOOL_CONFIG_CHILDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_nvlist_lookup_nvlist_array
	testq	%rax, %rax
	jne	LBB0_18
## %bb.4:
	cmpq	$0, -40(%rbp)
	je	LBB0_18
## %bb.5:
	movq	%rbx, %rdi
	callq	_num_logs
	cmpq	-40(%rbp), %rax
	je	LBB0_18
## %bb.6:
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_replication
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_21
## %bb.9:
	movl	16(%r12), %edi
	movl	16(%r15), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	_gettext
	movslq	16(%r12), %rsi
	movslq	16(%r15), %rdx
	jmp	LBB0_11
LBB0_7:
	movq	%r12, %rdi
	callq	_free
	movl	$-1, %r14d
	jmp	LBB0_20
LBB0_21:
	movq	%r15, %rdi
	jmp	LBB0_19
LBB0_12:
	movq	(%r12), %rax
	cmpq	(%r15), %rax
	jne	LBB0_13
## %bb.14:
	movq	8(%r12), %rax
	xorl	%r14d, %r14d
	cmpq	8(%r15), %rax
	je	LBB0_17
## %bb.15:
	leaq	L_.str.2(%rip), %rdi
	callq	_gettext
	movq	8(%r12), %rsi
	movslq	16(%r12), %rdx
	movq	8(%r15), %rcx
	movl	16(%r15), %r8d
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_vdev_error
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	callq	_gettext
	movq	(%r12), %rsi
	movq	(%r15), %rdx
LBB0_11:
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_vdev_error
LBB0_16:
	movl	$-1, %r14d
LBB0_17:
	movq	%r15, %rdi
	callq	_free
LBB0_18:
	movq	%r12, %rdi
LBB0_19:
	callq	_free
LBB0_20:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPOOL_CONFIG_VDEV_TREE,4,2     ## @ZPOOL_CONFIG_VDEV_TREE
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.comm	_ZPOOL_CONFIG_CHILDREN,4,2      ## @ZPOOL_CONFIG_CHILDREN
	.comm	_B_TRUE,4,2                     ## @B_TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mismatched replication level: pool uses %s and new vdev is %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"mismatched replication level: pool uses %llu device parity and new vdev uses %llu\n"

L_.str.2:                               ## @.str.2
	.asciz	"mismatched replication level: pool uses %llu-way %s and new vdev uses %llu-way %s\n"

	.no_dead_strip	_check_replication
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_replication
_check_replication:                     ; @check_replication
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ZPOOL_CONFIG_VDEV_TREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZPOOL_CONFIG_VDEV_TREE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_nvlist_lookup_nvlist
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	x0, [sp, #24]
Lloh3:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_get_replication
	mov	x19, x0
	cbnz	x0, LBB0_3
	b	LBB0_7
LBB0_2:
	mov	x19, #0
LBB0_3:
Lloh6:
	adrp	x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x20
	bl	_nvlist_lookup_nvlist_array
	ldr	x8, [sp, #16]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_num_logs
	ldr	x8, [sp, #16]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_5:
	mov	x0, x19
LBB0_6:
	bl	_free
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
Lloh9:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_get_replication
	cbz	x0, LBB0_13
; %bb.10:
	mov	x20, x0
	cbz	x19, LBB0_14
; %bb.11:
	ldr	w0, [x19, #16]
	ldr	w1, [x20, #16]
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.12:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gettext
	ldrsw	x1, [x19, #16]
	ldrsw	x2, [x20, #16]
	b	LBB0_20
LBB0_13:
	mov	x0, x19
	bl	_free
	mov	w21, #-1
	b	LBB0_8
LBB0_14:
	mov	x0, x20
	b	LBB0_6
LBB0_15:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.16:
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.17:
	mov	w21, #0
	b	LBB0_21
LBB0_18:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gettext
	ldr	x1, [x19]
	ldr	x2, [x20]
	b	LBB0_20
LBB0_19:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_gettext
	ldr	x1, [x19, #8]
	ldrsw	x2, [x19, #16]
	ldr	x8, [x20, #8]
	ldr	w9, [x20, #16]
	stp	x8, x9, [sp]
LBB0_20:
	bl	_vdev_error
	mov	w21, #-1
LBB0_21:
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_free
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPOOL_CONFIG_VDEV_TREE,4,2     ; @ZPOOL_CONFIG_VDEV_TREE
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.comm	_ZPOOL_CONFIG_CHILDREN,4,2      ; @ZPOOL_CONFIG_CHILDREN
	.comm	_B_TRUE,4,2                     ; @B_TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mismatched replication level: pool uses %s and new vdev is %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"mismatched replication level: pool uses %llu device parity and new vdev uses %llu\n"

l_.str.2:                               ; @.str.2
	.asciz	"mismatched replication level: pool uses %llu-way %s and new vdev uses %llu-way %s\n"

	.no_dead_strip	_check_replication
.subsections_via_symbols
