	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid0_takeover_raid1
_raid0_takeover_raid1:                  ## @raid0_takeover_raid1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	-1(%rax), %ecx
	cmpl	4(%rdi), %ecx
	jne	LBB0_3
## %bb.1:
	movl	8(%rbx), %edx
	testb	$127, %dl
	je	LBB0_2
## %bb.5:
	testb	$63, %dl
	je	LBB0_6
## %bb.7:
	testb	$31, %dl
	je	LBB0_8
## %bb.9:
	testb	$15, %dl
	je	LBB0_10
## %bb.11:
	testb	$7, %dl
	je	LBB0_12
## %bb.13:
	testb	$3, %dl
	je	LBB0_14
## %bb.15:
	andl	$1, %edx
	movl	$2, %ecx
	subl	%edx, %ecx
	jmp	LBB0_16
LBB0_3:
	movq	%rbx, %rdi
	callq	_mdname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	jmp	LBB0_4
LBB0_2:
	movl	$128, %ecx
	jmp	LBB0_16
LBB0_6:
	movl	$64, %ecx
	jmp	LBB0_16
LBB0_8:
	movl	$32, %ecx
	jmp	LBB0_16
LBB0_10:
	movl	$16, %ecx
	jmp	LBB0_16
LBB0_12:
	movl	$8, %ecx
	jmp	LBB0_16
LBB0_14:
	movl	$4, %ecx
LBB0_16:
	movl	%ecx, %edx
	shll	$9, %edx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jge	LBB0_17
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_17:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movl	%ecx, 12(%rbx)
	movl	%ecx, 16(%rbx)
	movl	$1, %ecx
	subl	%eax, %ecx
	movl	%ecx, 20(%rbx)
	movl	$1, (%rbx)
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_UNSUPPORTED_MDDEV_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mddev_clear_unsupported_flags
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_create_strip_zones
	movq	-16(%rbp), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md/raid0:%s: (N - 1) mirrors drives must be already faulty!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_MaxSector,4,2                  ## @MaxSector
	.comm	_UNSUPPORTED_MDDEV_FLAGS,4,2    ## @UNSUPPORTED_MDDEV_FLAGS
	.no_dead_strip	_raid0_takeover_raid1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid0_takeover_raid1
_raid0_takeover_raid1:                  ; @raid0_takeover_raid1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w8, w9, [x0]
	sub	w10, w8, #1
	cmp	w10, w9
	b.ne	LBB0_3
; %bb.1:
	ldr	w9, [x19, #8]
	tst	w9, #0x1
	mov	w10, #1
	cinc	w10, w10, eq
	tst	w9, #0x3
	mov	w11, #4
	csel	w10, w11, w10, eq
	tst	w9, #0x7
	mov	w11, #8
	csel	w10, w11, w10, eq
	tst	w9, #0xf
	mov	w11, #16
	csel	w10, w11, w10, eq
	tst	w9, #0x1f
	mov	w11, #32
	csel	w10, w11, w10, eq
	tst	w9, #0x3f
	mov	w11, #64
	csel	w10, w11, w10, eq
	tst	w9, #0x7f
	mov	w9, #128
	csel	w9, w9, w10, eq
Lloh0:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w10, w9, lsl #9
	b.gt	LBB0_4
; %bb.2:
	stp	xzr, xzr, [x19, #32]
	stp	w9, w9, [x19, #12]
	mov	w9, #1
	sub	w8, w9, w8
	str	w9, [x19]
Lloh3:
	adrp	x9, _MaxSector@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MaxSector@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #20]
Lloh6:
	adrp	x8, _UNSUPPORTED_MDDEV_FLAGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNSUPPORTED_MDDEV_FLAGS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mddev_clear_unsupported_flags
	add	x1, sp, #8
	mov	x0, x19
	bl	_create_strip_zones
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	mov	x0, x19
	bl	_mdname
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_4:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md/raid0:%s: (N - 1) mirrors drives must be already faulty!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_MaxSector,4,2                  ; @MaxSector
	.comm	_UNSUPPORTED_MDDEV_FLAGS,4,2    ; @UNSUPPORTED_MDDEV_FLAGS
	.no_dead_strip	_raid0_takeover_raid1
.subsections_via_symbols
