	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid10_find_virt
_raid10_find_virt:                      ## @raid10_find_virt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r8
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	movl	4(%rdi), %edi
	movl	%edx, %eax
	cltd
	idivl	%r15d
	movl	%edx, %ecx
	movl	%edi, %eax
	cltd
	idivl	%r15d
	movl	%ebx, %r13d
	subl	%ecx, %r13d
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	decl	%eax
	imull	%r15d, %eax
	xorl	%ecx, %ecx
	cmpl	%ebx, %eax
	cmovlel	%eax, %r13d
	cmovgl	%ecx, %edx
	addl	%edx, %r15d
LBB0_2:
	movq	8(%r14), %rax
	cmpq	$0, 40(%r14)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.5:
	movb	16(%r14), %cl
	movq	%r8, %r12
	sarq	%cl, %r12
	movl	24(%r14), %esi
	movq	%r12, %rdi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_sector_div
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	4(%r14), %edi
	movl	28(%r14), %esi
	imull	%esi, %eax
	subl	%eax, %ebx
	xorl	%eax, %eax
	cmpl	%r13d, %ebx
	cmovll	%r15d, %eax
	addl	%eax, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	32(%r14), %rax
	movl	28(%r14), %esi
	cmpq	%r8, %rax
	jle	LBB0_6
## %bb.4:
	movq	%r8, %r12
	jmp	LBB0_8
LBB0_6:
	addl	%esi, %r13d
	movq	%r8, %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	subq	%rax, %r12
	cmpl	%r13d, %ebx
	movl	$0, %ecx
	cmovll	%r15d, %ecx
	subl	%esi, %ebx
	addl	%ecx, %ebx
	cmpq	%rax, %r12
	jge	LBB0_7
LBB0_8:
	movb	16(%r14), %cl
	sarq	%cl, %r12
LBB0_9:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	andq	%r8, %r15
	movslq	%edi, %rax
	imulq	%r12, %rax
	movslq	%ebx, %rbx
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_sector_div
	movb	16(%r14), %cl
	shlq	%cl, %rbx
	addq	%r15, %rbx
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_raid10_find_virt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid10_find_virt
_raid10_find_virt:                      ; @raid10_find_virt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldp	w9, w8, [x0]
	sdiv	w10, w2, w9
	mul	w10, w10, w9
	sdiv	w11, w8, w9
	msub	w12, w11, w9, w8
	sub	w11, w11, #1
	mul	w11, w11, w9
	cmp	w11, w2
	csel	w11, w10, w11, gt
	csel	w13, wzr, w12, gt
	add	w13, w13, w9
	cmp	w12, #0
	csel	w25, w10, w11, eq
	csel	w24, w9, w13, eq
	ldr	x23, [x0, #8]
	ldr	x9, [x0, #40]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	asr	x22, x20, x8
	ldr	w1, [x19, #24]
	mov	x0, x22
	bl	_sector_div
	ldr	w1, [x19, #28]
	msub	w8, w1, w0, w21
	cmp	w8, w25
	csel	w9, w24, wzr, lt
	add	w21, w9, w8
	ldr	w8, [x19, #4]
	b	LBB0_7
LBB0_2:
	ldr	x10, [x19, #32]
	ldr	w1, [x19, #28]
	cmp	x10, x20
	b.le	LBB0_4
; %bb.3:
	mov	x9, x20
	b	LBB0_6
LBB0_4:
	add	w11, w1, w25
	mov	x9, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, w11
	csel	w12, w24, wzr, lt
	sub	w13, w21, w1
	add	w21, w13, w12
	sub	x9, x9, x10
	cmp	x9, x10
	b.ge	LBB0_5
LBB0_6:
	ldr	x10, [x19, #16]
	asr	x22, x9, x10
LBB0_7:
	and	x23, x23, x20
	sxtw	x8, w8
	mul	x8, x22, x8
	add	x20, x8, w21, sxtw
	mov	x0, x20
	bl	_sector_div
	ldr	x8, [x19, #16]
	lsl	x8, x20, x8
	add	x0, x8, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_raid10_find_virt
.subsections_via_symbols
