	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid0_takeover_raid10
_raid0_takeover_raid10:                 ## @raid0_takeover_raid10
	.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
	cmpl	$258, (%rdi)                    ## imm = 0x102
	jne	LBB0_1
## %bb.2:
	movl	4(%rbx), %eax
	testb	$1, %al
	jne	LBB0_3
## %bb.6:
	movl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, 8(%rbx)
	jne	LBB0_7
## %bb.8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movl	20(%rbx), %ecx
	movl	%ecx, 24(%rbx)
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %eax
	negl	%ecx
	movl	%ecx, 12(%rbx)
	movl	%eax, 4(%rbx)
	movl	$0, 8(%rbx)
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%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
LBB0_1:
	movq	%rbx, %rdi
	callq	_mdname
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_mdname
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_7:
	movq	%rbx, %rdi
	callq	_mdname
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_warn
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md/raid0:%s:: Raid0 cannot takeover layout: 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"md/raid0:%s: Raid0 cannot takeover Raid10 with odd disk number.\n"

L_.str.2:                               ## @.str.2
	.asciz	"md/raid0:%s: All mirrors must be already degraded!\n"

	.comm	_MaxSector,4,2                  ## @MaxSector
	.comm	_UNSUPPORTED_MDDEV_FLAGS,4,2    ## @UNSUPPORTED_MDDEV_FLAGS
	.no_dead_strip	_raid0_takeover_raid10
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid0_takeover_raid10
_raid0_takeover_raid10:                 ; @raid0_takeover_raid10
	.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
	ldr	w8, [x0]
	cmp	w8, #258
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19, #4]
	tbnz	w8, #0, LBB0_5
; %bb.2:
	ldr	w9, [x19, #8]
	cmp	w9, w8, asr #1
	b.ne	LBB0_6
; %bb.3:
	stp	xzr, xzr, [x19, #32]
	ldr	w9, [x19, #20]
	str	w9, [x19, #24]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	neg	w10, w9
	sub	w8, w8, w9
	stp	w8, wzr, [x19, #4]
Lloh0:
	adrp	x8, _MaxSector@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MaxSector@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w10, w8, [x19, #12]
Lloh3:
	adrp	x8, _UNSUPPORTED_MDDEV_FLAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNSUPPORTED_MDDEV_FLAGS@GOTPAGEOFF]
Lloh5:
	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_4:
	mov	x0, x19
	bl	_mdname
	mov	x1, x0
	ldr	w8, [x19]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_mdname
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_mdname
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_pr_warn
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md/raid0:%s:: Raid0 cannot takeover layout: 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"md/raid0:%s: Raid0 cannot takeover Raid10 with odd disk number.\n"

l_.str.2:                               ; @.str.2
	.asciz	"md/raid0:%s: All mirrors must be already degraded!\n"

	.comm	_MaxSector,4,2                  ; @MaxSector
	.comm	_UNSUPPORTED_MDDEV_FLAGS,4,2    ; @UNSUPPORTED_MDDEV_FLAGS
	.no_dead_strip	_raid0_takeover_raid10
.subsections_via_symbols
