	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_merge_bvec
_dm_merge_bvec:                         ## @dm_merge_bvec
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	callq	_dm_get_live_table
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movl	4(%r15), %esi
	movq	%r13, %rdi
	callq	_dm_table_find_target
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_dm_target_is_valid
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %edi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_max_io_len
	movq	_BIO_MAX_SECTORS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_min
	movl	%eax, %r14d
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	subl	(%r15), %r14d
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	cmovlel	%ebx, %r14d
	jle	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movq	%rdx, %r14
	callq	*%rax
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_queue_max_hw_sectors
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	sarq	$9, %rcx
	cmpq	%rcx, %rax
	cmovgl	%r14d, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_7:
	movq	%r13, %rdi
	callq	_dm_table_put
LBB0_8:
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jg	LBB0_10
## %bb.9:
	movl	(%r15), %edx
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	testl	%edx, %edx
	cmovel	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_MAX_SECTORS,8,3            ## @BIO_MAX_SECTORS
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_dm_merge_bvec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_merge_bvec
_dm_merge_bvec:                         ; @dm_merge_bvec
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x0, [x0]
	bl	_dm_get_live_table
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_9
LBB0_2:
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_dm_table_find_target
	mov	x23, x0
	bl	_dm_target_is_valid
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x19, #4]
	mov	x1, x23
	bl	_max_io_len
Lloh0:
	adrp	x8, _BIO_MAX_SECTORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIO_MAX_SECTORS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_min
Lloh3:
	adrp	x8, _SECTOR_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	ldr	w9, [x19]
	sub	w8, w8, w9
	cmp	w8, #0
	csel	w24, w8, wzr, gt
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x23]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x20
	mov	x3, x24
	blr	x8
	mov	x22, x0
	b	LBB0_8
LBB0_6:
	mov	w22, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x22
	bl	_queue_max_hw_sectors
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8, asr #9
	csel	w22, w24, wzr, gt
LBB0_8:
	mov	x0, x21
	bl	_dm_table_put
LBB0_9:
	ldr	w8, [x20]
	cmp	w22, w8
	b.gt	LBB0_11
; %bb.10:
	ldr	w9, [x19]
Lloh9:
	adrp	x10, _SECTOR_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	asr	w9, w9, w10
	cmp	w9, #0
	csel	w22, w8, w22, eq
LBB0_11:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_MAX_SECTORS,8,3            ; @BIO_MAX_SECTORS
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_dm_merge_bvec
.subsections_via_symbols
