	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid45_takeover_raid0
_raid45_takeover_raid0:                 ## @raid45_takeover_raid0
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_mdname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movl	%esi, %r14d
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movl	4(%rax), %r15d
	movl	%r15d, %edi
	callq	_sector_div
	movl	%r15d, 28(%rbx)
	movl	%r14d, (%rbx)
	movq	_ALGORITHM_PARITY_N@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	16(%rbx), %eax
	movl	%eax, 20(%rbx)
	incl	4(%rbx)
	movl	$1, 8(%rbx)
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_setup_conf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md/raid:%s: cannot takeover raid0 with more than one zone.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ALGORITHM_PARITY_N,4,2         ## @ALGORITHM_PARITY_N
	.comm	_MaxSector,4,2                  ## @MaxSector
	.no_dead_strip	_raid45_takeover_raid0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid45_takeover_raid0
_raid45_takeover_raid0:                 ; @raid45_takeover_raid0
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mdname
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_2:
	mov	x20, x1
	ldr	x8, [x8, #8]
	ldp	w1, w21, [x8]
	mov	x0, x21
	bl	_sector_div
	str	w21, [x19, #28]
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w20, [x19]
Lloh5:
	adrp	x9, _ALGORITHM_PARITY_N@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ALGORITHM_PARITY_N@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w10, [x19, #16]
	stp	w10, w9, [x19, #20]
	str	w8, [x19, #4]
	mov	w8, #1
Lloh8:
	adrp	x9, _MaxSector@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MaxSector@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_setup_conf
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md/raid:%s: cannot takeover raid0 with more than one zone.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ALGORITHM_PARITY_N,4,2         ; @ALGORITHM_PARITY_N
	.comm	_MaxSector,4,2                  ; @MaxSector
	.no_dead_strip	_raid45_takeover_raid0
.subsections_via_symbols
