	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid5_resize
_raid5_resize:                          ## @raid5_resize
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	64(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_raid5_has_log
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_raid5_has_ppl
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%r14d, %r14d
	subq	(%rbx), %r14
	andq	%r15, %r14
	movl	56(%r12), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_raid5_size
	movq	%rax, %r15
	cmpq	$0, 48(%r12)
	je	LBB0_5
## %bb.4:
	cmpq	%r15, (%r12)
	jg	LBB0_2
LBB0_5:
	movq	40(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_md_bitmap_resize
	testl	%eax, %eax
	jne	LBB0_11
LBB0_7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_md_set_array_sectors
	movq	8(%r12), %rax
	cmpq	%rax, %r14
	jle	LBB0_10
## %bb.8:
	cmpq	%rax, 16(%r12)
	jle	LBB0_10
## %bb.9:
	movq	%rax, 16(%r12)
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r12), %rsi
	callq	_set_bit
LBB0_10:
	movq	%r14, 8(%r12)
	movq	%r14, 24(%r12)
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
	.no_dead_strip	_raid5_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid5_resize
_raid5_resize:                          ; @raid5_resize
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #64]
	mov	x0, x21
	bl	_raid5_has_log
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_raid5_has_ppl
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ret
LBB0_4:
	ldr	x8, [x21]
	neg	x8, x8
	and	x20, x8, x20
	ldr	w2, [x19, #56]
	mov	x0, x19
	mov	x1, x20
	bl	_raid5_size
	mov	x21, x0
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	cmp	x8, x21
	b.gt	LBB0_2
LBB0_6:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_md_bitmap_resize
	cbnz	w0, LBB0_3
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	bl	_md_set_array_sectors
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.le	LBB0_11
; %bb.9:
	ldr	x9, [x19, #16]
	cmp	x9, x8
	b.le	LBB0_11
; %bb.10:
	str	x8, [x19, #16]
Lloh3:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_set_bit
LBB0_11:
	mov	w0, #0
	str	x20, [x19, #8]
	str	x20, [x19, #24]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
	.no_dead_strip	_raid5_resize
.subsections_via_symbols
