	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clone_map
_clone_map:                             ## @clone_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	leaq	4(%r15), %rdi
	callq	_atomic_inc
	movq	%r15, %rdi
	callq	_get_clone_mode
	movq	_CM_FAIL@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_DM_MAPIO_KILL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	_REQ_PREFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_remap_and_issue
	jmp	LBB0_10
LBB0_4:
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_dm_target_offset
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_bio_op
	movq	_REQ_OP_DISCARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_process_discard_bio
LBB0_10:
	movq	_DM_MAPIO_SUBMITTED@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bio_to_region
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_dm_clone_is_region_hydrated
	testq	%rax, %rax
	jne	LBB0_3
## %bb.7:
	movq	%r14, %rdi
	callq	_bio_data_dir
	movq	_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_remap_to_source
	movq	_DM_MAPIO_REMAPPED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_remap_to_dest
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_hydrate_bio_region
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_FAIL,8,3                    ## @CM_FAIL
	.comm	_DM_MAPIO_KILL,4,2              ## @DM_MAPIO_KILL
	.comm	_REQ_PREFLUSH,4,2               ## @REQ_PREFLUSH
	.comm	_DM_MAPIO_SUBMITTED,4,2         ## @DM_MAPIO_SUBMITTED
	.comm	_REQ_OP_DISCARD,8,3             ## @REQ_OP_DISCARD
	.comm	_READ,8,3                       ## @READ
	.comm	_DM_MAPIO_REMAPPED,4,2          ## @DM_MAPIO_REMAPPED
	.no_dead_strip	_clone_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clone_map
_clone_map:                             ; @clone_map
	.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	x19, x1
	mov	x21, x0
	ldr	x20, [x0]
	add	x0, x20, #4
	bl	_atomic_inc
	mov	x0, x20
	bl	_get_clone_mode
Lloh0:
	adrp	x8, _CM_FAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_FAIL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DM_MAPIO_KILL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM_MAPIO_KILL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _REQ_PREFLUSH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _REQ_PREFLUSH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_remap_and_issue
	b	LBB0_6
LBB0_4:
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_dm_target_offset
	str	w0, [x19, #4]
	mov	x0, x19
	bl	_bio_op
Lloh8:
	adrp	x8, _REQ_OP_DISCARD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REQ_OP_DISCARD@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_process_discard_bio
LBB0_6:
Lloh11:
	adrp	x8, _DM_MAPIO_SUBMITTED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DM_MAPIO_SUBMITTED@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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_8:
	mov	x0, x20
	mov	x1, x19
	bl	_bio_to_region
	mov	x1, x0
	ldr	w0, [x20]
	bl	_dm_clone_is_region_hydrated
	cbnz	x0, LBB0_3
; %bb.9:
	mov	x0, x19
	bl	_bio_data_dir
Lloh13:
	adrp	x8, _READ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	bl	_remap_to_source
Lloh16:
	adrp	x8, _DM_MAPIO_REMAPPED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DM_MAPIO_REMAPPED@GOTPAGEOFF]
	b	LBB0_7
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_remap_to_dest
	mov	x0, x20
	mov	x1, x19
	bl	_hydrate_bio_region
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_FAIL,8,3                    ; @CM_FAIL
	.comm	_DM_MAPIO_KILL,4,2              ; @DM_MAPIO_KILL
	.comm	_REQ_PREFLUSH,4,2               ; @REQ_PREFLUSH
	.comm	_DM_MAPIO_SUBMITTED,4,2         ; @DM_MAPIO_SUBMITTED
	.comm	_REQ_OP_DISCARD,8,3             ; @REQ_OP_DISCARD
	.comm	_READ,8,3                       ; @READ
	.comm	_DM_MAPIO_REMAPPED,4,2          ; @DM_MAPIO_REMAPPED
	.no_dead_strip	_clone_map
.subsections_via_symbols
