	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_In_sync@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movl	8(%r12), %ecx
	addq	$8, %rbx
	cmpq	%rcx, %r13
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	cmpl	$0, 4(%rax,%rbx)
	jne	LBB0_6
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
LBB0_7:
	movq	16(%r12), %rdx
	movl	(%rdx), %eax
	leal	-4(%rax), %esi
	cmpl	$3, %esi
	jae	LBB0_8
## %bb.11:
	xorl	%eax, %eax
	cmpl	4(%rdx), %r15d
	ja	LBB0_12
	jmp	LBB0_22
LBB0_8:
	cmpl	$10, %eax
	je	LBB0_13
## %bb.9:
	cmpl	$1, %eax
	jne	LBB0_20
## %bb.10:
	xorl	%eax, %eax
	cmpl	%ecx, %r15d
	jae	LBB0_12
	jmp	LBB0_22
LBB0_13:
	movl	12(%r12), %edi
	callq	_raid10_md_layout_to_copies
	movl	%eax, %r14d
	xorl	%eax, %eax
	cmpl	%r14d, %r15d
	jb	LBB0_22
## %bb.14:
	movl	8(%r12), %ecx
	movl	%ecx, %edx
	imull	%r14d, %edx
	testl	%edx, %edx
	je	LBB0_22
## %bb.15:
	xorl	%r15d, %r15d
	movq	_In_sync@GOTPCREL(%rip), %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%r13d
	cmpl	%r14d, %r13d
	jae	LBB0_12
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%r15d
	movl	8(%r12), %ecx
	movl	%ecx, %eax
	imull	%r14d, %eax
	cmpl	%eax, %r15d
	jae	LBB0_21
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r14d
	testl	%edx, %edx
	cmovel	%edx, %r13d
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%r12), %rax
	cmpl	$0, 4(%rax,%rdx,8)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%rbx), %edi
	leaq	(%rax,%rdx,8), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_18
LBB0_20:
	testl	%r15d, %r15d
	je	LBB0_21
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_In_sync,4,2                    ## @In_sync
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	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	x10, [x19, #16]
	ldr	w9, [x10]
	sub	w11, w9, #4
	cmp	w11, #3
	b.hs	LBB0_9
; %bb.8:
	ldr	w8, [x10, #4]
	cmp	w21, w8
	b.ls	LBB0_21
	b	LBB0_20
LBB0_9:
	cmp	w9, #10
	b.eq	LBB0_12
; %bb.10:
	cmp	w9, #1
	b.ne	LBB0_19
; %bb.11:
	cmp	w21, w8
	b.hs	LBB0_20
	b	LBB0_21
LBB0_12:
	ldr	w0, [x19, #12]
	bl	_raid10_md_layout_to_copies
	cmp	w21, w0
	b.lo	LBB0_21
; %bb.13:
	mov	x20, x0
	ldr	w8, [x19, #8]
	mul	w9, w8, w0
	cbz	w9, LBB0_21
; %bb.14:
	mov	w21, #0
	mov	w22, #0
Lloh2:
	adrp	x23, _In_sync@GOTPAGE
Lloh3:
	ldr	x23, [x23, _In_sync@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w22, w22, #1
	cmp	w22, w20
	b.hs	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19, #8]
	mul	w9, w8, w20
	cmp	w21, w9
	b.hs	LBB0_21
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	udiv	w9, w21, w20
	msub	w9, w9, w20, w21
	cmp	w9, #0
	csel	w22, wzr, w22, eq
	udiv	w9, w21, w8
	msub	w8, w9, w8, w21
	ldr	x9, [x19]
	add	x10, x9, w8, uxtw #3
	ldr	w10, [x10, #4]
	cbz	w10, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x23]
	add	x1, x9, x8, lsl #3
	bl	_test_bit
	cbnz	w0, LBB0_16
	b	LBB0_15
LBB0_19:
	cbz	w21, LBB0_21
LBB0_20:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_validate_raid_redundancy
.subsections_via_symbols
