	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid5_takeover_raid1
_raid5_takeover_raid1:                  ## @raid5_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$2, (%rdi)
	jne	LBB0_19
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$1, 4(%rdi)
	jg	LBB0_19
## %bb.2:
	movl	8(%rbx), %ecx
	testb	$127, %cl
	je	LBB0_3
## %bb.4:
	testb	$63, %cl
	je	LBB0_5
## %bb.6:
	testb	$31, %cl
	je	LBB0_7
## %bb.8:
	testb	$15, %cl
	je	LBB0_9
## %bb.10:
	testb	$7, %cl
	je	LBB0_11
## %bb.12:
	testb	$3, %cl
	je	LBB0_13
## %bb.14:
	andl	$1, %ecx
	movl	$2, %eax
	subl	%ecx, %eax
	jmp	LBB0_15
LBB0_3:
	movl	$128, %eax
	jmp	LBB0_15
LBB0_5:
	movl	$64, %eax
	jmp	LBB0_15
LBB0_7:
	movl	$32, %eax
	jmp	LBB0_15
LBB0_9:
	movl	$16, %eax
	jmp	LBB0_15
LBB0_11:
	movl	$8, %eax
	jmp	LBB0_15
LBB0_13:
	movl	$4, %eax
LBB0_15:
	movl	%eax, %ecx
	shll	$9, %ecx
	movq	_STRIPE_SIZE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_16
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_16:
	movl	$5, 12(%rbx)
	movq	_ALGORITHM_LEFT_SYMMETRIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rbx)
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_setup_conf
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	_UNSUPPORTED_MDDEV_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mddev_clear_unsupported_flags
LBB0_18:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_STRIPE_SIZE,4,2                ## @STRIPE_SIZE
	.comm	_ALGORITHM_LEFT_SYMMETRIC,4,2   ## @ALGORITHM_LEFT_SYMMETRIC
	.comm	_UNSUPPORTED_MDDEV_FLAGS,4,2    ## @UNSUPPORTED_MDDEV_FLAGS
	.no_dead_strip	_raid5_takeover_raid1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid5_takeover_raid1
_raid5_takeover_raid1:                  ; @raid5_takeover_raid1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.gt	LBB0_3
; %bb.2:
	ldr	w8, [x19, #8]
	tst	w8, #0x1
	mov	w9, #1
	cinc	w9, w9, eq
	tst	w8, #0x3
	mov	w10, #4
	csel	w9, w10, w9, eq
	tst	w8, #0x7
	mov	w10, #8
	csel	w9, w10, w9, eq
	tst	w8, #0xf
	mov	w10, #16
	csel	w9, w10, w9, eq
	tst	w8, #0x1f
	mov	w10, #32
	csel	w9, w10, w9, eq
	tst	w8, #0x3f
	mov	w10, #64
	csel	w9, w10, w9, eq
	tst	w8, #0x7f
	mov	w8, #128
	csel	w8, w8, w9, eq
Lloh0:
	adrp	x9, _STRIPE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STRIPE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8, lsl #9
	b.le	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_4:
	mov	w9, #5
Lloh6:
	adrp	x10, _ALGORITHM_LEFT_SYMMETRIC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ALGORITHM_LEFT_SYMMETRIC@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w8, w10, [x19, #16]
	str	w9, [x19, #12]
	mov	x0, x19
	bl	_setup_conf
	mov	x20, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _UNSUPPORTED_MDDEV_FLAGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UNSUPPORTED_MDDEV_FLAGS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mddev_clear_unsupported_flags
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_STRIPE_SIZE,4,2                ; @STRIPE_SIZE
	.comm	_ALGORITHM_LEFT_SYMMETRIC,4,2   ; @ALGORITHM_LEFT_SYMMETRIC
	.comm	_UNSUPPORTED_MDDEV_FLAGS,4,2    ; @UNSUPPORTED_MDDEV_FLAGS
	.no_dead_strip	_raid5_takeover_raid1
.subsections_via_symbols
