	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_raid_redundancy
_validate_raid_redundancy:              ## @validate_raid_redundancy
	.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, %r14
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_In_sync@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movl	8(%r14), %eax
	addq	$8, %rbx
	cmpq	%rax, %r13
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	cmpl	$0, 4(%rax,%rbx)
	jne	LBB0_6
	jmp	LBB0_5
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
LBB0_7:
	movl	12(%r14), %r15d
	cmpq	$10, %r15
	ja	LBB0_28
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r15,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_10:
	movq	24(%r14), %rax
	xorl	%r15d, %r15d
	cmpl	(%rax), %r12d
	ja	LBB0_11
	jmp	LBB0_30
LBB0_9:
	xorl	%r15d, %r15d
	cmpl	%eax, %r12d
	jae	LBB0_11
	jmp	LBB0_30
LBB0_28:
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.29:
	xorl	%r15d, %r15d
	jmp	LBB0_30
LBB0_12:
	movl	16(%r14), %edi
	callq	_raid10_md_layout_to_copies
	cmpl	$1, %eax
	ja	LBB0_14
## %bb.13:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_30:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%r15d, %r15d
	cmpl	%eax, %r12d
	jb	LBB0_30
## %bb.15:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%r14), %edi
	callq	___is_raid10_near
	movl	8(%r14), %ecx
	testl	%eax, %eax
	je	LBB0_22
## %bb.16:
	testl	%ecx, %ecx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_30
## %bb.17:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%r13d
	cmpl	%ecx, %r13d
	jae	LBB0_11
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r12
	movl	8(%r14), %eax
	addq	$8, %rbx
	xorl	%r15d, %r15d
	cmpq	%rax, %r12
	jae	LBB0_30
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	testl	%edx, %edx
	cmovel	%edx, %r13d
	movq	(%r14), %rsi
	cmpl	$0, 4(%rsi,%rbx)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	%rbx, %rsi
	callq	_test_bit
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_20
LBB0_22:
	testl	%ecx, %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_30
## %bb.23:
	xorl	%ebx, %ebx
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %esi
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	decl	%eax
	imull	%esi, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	jmp	LBB0_24
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	incl	%r12d
	cmpl	%edi, %r12d
	jae	LBB0_11
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%r13
	movl	8(%r14), %eax
	addq	$8, %rbx
	xorl	%r15d, %r15d
	movl	%r12d, %ecx
	cmpq	%rax, %r13
	jae	LBB0_30
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%edi
	cmpq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	movl	$0, %r12d
	cmoval	%ecx, %r12d
	testl	%edx, %edx
	cmovnel	%ecx, %r12d
	movq	(%r14), %rsi
	cmpl	$0, 4(%rsi,%rbx)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	%rbx, %rsi
	callq	_test_bit
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testl	%eax, %eax
	jne	LBB0_27
	jmp	LBB0_26
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_30
	.long	L0_0_set_9
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_In_sync,4,2                    ## @In_sync
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bogus raid10 data copies < 2!"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_validate_raid_redundancy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_raid_redundancy
_validate_raid_redundancy:              ; @validate_raid_redundancy
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, #0
	mov	x22, #0
	mov	w21, #0
Lloh0:
	adrp	x23, _In_sync@GOTPAGE
Lloh1:
	ldr	x23, [x23, _In_sync@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	w8, [x19, #8]
	add	x20, x20, #8
	cmp	x22, x8
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	x8, [x19]
	add	x1, x8, x20
	bl	_test_bit
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	add	x8, x8, x20
	ldr	w8, [x8, #4]
	cbnz	w8, LBB0_3
	b	LBB0_2
LBB0_6:
	mov	w21, #0
LBB0_7:
	ldr	w0, [x19, #12]
	cmp	w0, #10
	b.hi	LBB0_11
; %bb.8:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x0]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cmp	w21, w8
	b.hi	LBB0_14
	b	LBB0_16
LBB0_10:
	cmp	w21, w8
	b.hs	LBB0_14
	b	LBB0_16
LBB0_11:
	cbnz	w21, LBB0_14
	b	LBB0_16
LBB0_12:
	ldr	w0, [x19, #16]
	bl	_raid10_md_layout_to_copies
	cmp	w0, #1
	b.hi	LBB0_15
; %bb.13:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
LBB0_14:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_15:
	mov	x20, x0
	cmp	w21, w0
	b.hs	LBB0_18
LBB0_16:
	mov	w0, #0
LBB0_17:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	ldr	w0, [x19, #16]
	bl	___is_raid10_near
	ldr	w8, [x19, #8]
	cbz	w0, LBB0_25
; %bb.19:
	cbz	w8, LBB0_16
; %bb.20:
	mov	x21, #0
	mov	w22, #0
	mov	w23, #4
Lloh9:
	adrp	x24, _In_sync@GOTPAGE
Lloh10:
	ldr	x24, [x24, _In_sync@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	add	w22, w22, #1
	cmp	w22, w20
	b.hs	LBB0_14
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	w0, #0
	add	x21, x21, #1
	ldr	w8, [x19, #8]
	add	x23, x23, #8
	cmp	x21, x8
	b.hs	LBB0_17
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	udiv	w8, w21, w20
	msub	w8, w8, w20, w21
	cmp	w8, #0
	csel	w22, wzr, w22, eq
	ldr	x8, [x19]
	ldr	w9, [x8, x23]
	cbz	w9, LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x24]
	add	x8, x8, x23
	sub	x1, x8, #4
	bl	_test_bit
	cbnz	w0, LBB0_22
	b	LBB0_21
LBB0_25:
	cbz	w8, LBB0_16
; %bb.26:
	mov	x21, #0
	mov	w22, #0
	udiv	w9, w8, w20
	udiv	w8, w8, w9
	sub	w8, w8, #1
	mul	w23, w8, w9
	mov	w24, #4
Lloh11:
	adrp	x25, _In_sync@GOTPAGE
Lloh12:
	ldr	x25, [x25, _In_sync@GOTPAGEOFF]
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=1
	add	w22, w22, #1
	cmp	w22, w20
	b.hs	LBB0_14
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	w0, #0
	add	x21, x21, #1
	ldr	w8, [x19, #8]
	add	x24, x24, #8
	cmp	x21, x8
	b.hs	LBB0_17
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	udiv	w8, w21, w20
	msub	w8, w8, w20, w21
	cmp	x21, x23
	ccmp	w8, #0, #0, ls
	csel	w22, w22, wzr, ne
	ldr	x8, [x19]
	ldr	w9, [x8, x24]
	cbz	w9, LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	w0, [x25]
	add	x8, x8, x24
	sub	x1, x8, #4
	bl	_test_bit
	cbnz	w0, LBB0_28
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
                                        ; -- End function
	.comm	_In_sync,4,2                    ; @In_sync
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bogus raid10 data copies < 2!"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_validate_raid_redundancy
.subsections_via_symbols
