	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid10_resize
_raid10_resize:                         ## @raid10_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_MaxSector@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	64(%rdi), %r15
	cmpl	$2, 8(%r15)
	jl	LBB0_6
## %bb.4:
	cmpl	$0, 12(%r15)
	je	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_raid10_size
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_raid10_size
	movq	%rax, %r12
	cmpq	$0, 56(%rbx)
	je	LBB0_8
## %bb.7:
	cmpq	%r12, 8(%rbx)
	jle	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_md_bitmap_resize
	testl	%eax, %eax
	jne	LBB0_14
LBB0_10:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_md_set_array_sectors
	cmpq	%r14, 16(%rbx)
	jge	LBB0_13
## %bb.11:
	cmpq	%r13, 24(%rbx)
	jle	LBB0_13
## %bb.12:
	movq	%r13, 24(%rbx)
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%rbx), %rsi
	callq	_set_bit
LBB0_13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_calc_sectors
	movq	(%r15), %rax
	movq	%rax, 16(%rbx)
	movq	%r12, 32(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
	.no_dead_strip	_raid10_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid10_resize
_raid10_resize:                         ; @raid10_resize
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MaxSector@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MaxSector@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #64]
	ldr	w8, [x21, #8]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.2:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_5
LBB0_3:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_raid10_size
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_raid10_size
	mov	x22, x0
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x8, [x19, #8]
	cmp	x8, x22
	b.le	LBB0_9
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_11
; %bb.10:
	mov	x1, x22
	mov	w2, #0
	mov	w3, #0
	bl	_md_bitmap_resize
	cbnz	w0, LBB0_8
LBB0_11:
	mov	x0, x19
	mov	x1, x22
	bl	_md_set_array_sectors
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.ge	LBB0_14
; %bb.12:
	ldr	x8, [x19, #24]
	cmp	x8, x23
	b.le	LBB0_14
; %bb.13:
	str	x23, [x19, #24]
Lloh7:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x19, #40
	bl	_set_bit
LBB0_14:
	mov	x0, x21
	mov	x1, x20
	bl	_calc_sectors
	mov	w0, #0
	ldr	x8, [x21]
	str	x8, [x19, #16]
	str	x22, [x19, #32]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
	.no_dead_strip	_raid10_resize
.subsections_via_symbols
