	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __clone_and_map
___clone_and_map:                       ## @__clone_and_map
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movq	_BIO_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___clone_and_map_discard        ## TAILCALL
LBB0_2:
	movl	32(%rbx), %edi
	movq	(%rbx), %rsi
	callq	_dm_table_find_target
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_dm_target_is_valid
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_max_io_len
	cmpq	%rax, 8(%rbx)
	jle	LBB0_11
## %bb.4:
	movq	%rax, %r13
	movq	8(%r14), %rax
	movq	16(%rbx), %rcx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %edi
	callq	_to_sector
	cmpq	%r13, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_12
## %bb.5:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	16(%rbx), %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rax,%rcx), %edi
	callq	_to_sector
	movq	%rax, %r13
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_max_io_len
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_min
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_alloc_tio
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edx
	movl	%r12d, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	(%rax), %r9d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_split_bvec
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	callq	___map_bio
	addq	%r14, (%rbx)
	subq	%r14, 8(%rbx)
	movq	%r14, %rdi
	callq	_to_bytes
	addl	%r12d, %eax
	movl	%eax, %r12d
	subq	%r14, %r13
	je	LBB0_17
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	32(%rbx), %edi
	movq	(%rbx), %rsi
	callq	_dm_table_find_target
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_dm_target_is_valid
	testl	%eax, %eax
	jne	LBB0_6
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_11:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	___clone_and_map_simple
	jmp	LBB0_20
LBB0_12:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r12
	testq	%r13, %r13
	je	LBB0_18
## %bb.13:
	movslq	%r12d, %r12
	movq	%r12, %rbx
	shlq	$4, %rbx
	orq	$8, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movslq	4(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx), %edi
	callq	_to_sector
	cmpq	%rax, %r13
	jl	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	addq	%rax, %r15
	incq	%r12
	addq	$16, %rbx
	subq	%rax, %r13
	jne	LBB0_14
	jmp	LBB0_19
LBB0_17:
	incq	16(%rbx)
	jmp	LBB0_20
LBB0_18:
	xorl	%r15d, %r15d
LBB0_19:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_alloc_tio
	movq	%r14, %rdi
	movq	%rax, %r14
	movq	(%r13), %rsi
	movl	16(%r13), %edx
	movslq	%r12d, %r12
	movl	%r12d, %ecx
	subl	%edx, %ecx
	movq	24(%r13), %rax
	movl	(%rax), %r9d
	movq	%r15, %r8
	callq	_clone_bio
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	___map_bio
	addq	%r15, (%r13)
	subq	%r15, 8(%r13)
	movq	%r12, 16(%r13)
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_DISCARD,4,2                ## @BIO_DISCARD
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	___clone_and_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __clone_and_map
___clone_and_map:                       ; @__clone_and_map
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #40]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _BIO_DISCARD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BIO_DISCARD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	___clone_and_map_discard
LBB0_2:
	ldr	w0, [x19, #32]
	ldr	x1, [x19]
	bl	_dm_table_find_target
	mov	x21, x0
	bl	_dm_target_is_valid
	cbz	w0, LBB0_10
; %bb.3:
	ldr	x0, [x19]
	mov	x1, x21
	bl	_max_io_len
	ldr	x8, [x19, #8]
	cmp	x8, x0
	b.le	LBB0_11
; %bb.4:
	mov	x22, x0
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #16]
	add	x8, x8, x9, lsl #4
	ldr	w0, [x8, #8]
	bl	_to_sector
	cmp	x0, x22
	b.le	LBB0_12
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #16]
	add	x26, x8, x9, lsl #4
	ldr	w0, [x26, #8]
	bl	_to_sector
	mov	x23, x0
	mov	w27, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19]
	mov	x1, x21
	bl	_max_io_len
	mov	x22, x0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_min
	mov	x24, x0
	mov	x0, x19
	mov	x1, x21
	bl	_alloc_tio
	mov	x25, x0
	ldr	x1, [x19]
	ldr	w2, [x19, #16]
	ldr	x8, [x26]
	add	x3, x8, w27, uxtw
	ldr	x8, [x19, #24]
	ldr	w5, [x8]
	mov	x0, x20
	mov	x4, x24
	bl	_split_bvec
	mov	x1, x0
	mov	x0, x21
	mov	x2, x25
	bl	___map_bio
	ldp	x8, x9, [x19]
	add	x8, x8, x24
	sub	x9, x9, x24
	stp	x8, x9, [x19]
	mov	x0, x24
	bl	_to_bytes
	add	w27, w27, w0
	subs	x23, x23, x24
	b.eq	LBB0_18
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w27, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #32]
	ldr	x1, [x19]
	bl	_dm_table_find_target
	mov	x21, x0
	bl	_dm_target_is_valid
	cbnz	w0, LBB0_6
LBB0_10:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	___clone_and_map_simple
	mov	w0, #0
	b	LBB0_19
LBB0_12:
	ldr	x24, [x19, #16]
	mov	x23, #0
	cbz	x22, LBB0_17
; %bb.13:
	sxtw	x24, w24
	mov	w25, #8
	bfi	x25, x24, #4, #60
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x20, #4]
	cmp	x24, x8
	b.ge	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x25]
	bl	_to_sector
	subs	x22, x22, x0
	b.lt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x0, x23
	add	x24, x24, #1
	add	x25, x25, #16
	b.ne	LBB0_14
LBB0_17:
	mov	x0, x19
	mov	x1, x21
	bl	_alloc_tio
	mov	x22, x0
	ldr	x1, [x19]
	ldr	w2, [x19, #16]
	sxtw	x25, w24
	sub	w3, w24, w2
	ldr	x8, [x19, #24]
	ldr	w5, [x8]
	mov	x0, x20
	mov	x4, x23
	bl	_clone_bio
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	___map_bio
	mov	w0, #0
	ldp	x8, x9, [x19]
	add	x8, x8, x23
	sub	x9, x9, x23
	stp	x8, x9, [x19]
	str	x25, [x19, #16]
	b	LBB0_19
LBB0_18:
	mov	w0, #0
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_DISCARD,4,2                ; @BIO_DISCARD
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	___clone_and_map
.subsections_via_symbols
