	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __clone_and_map_discard
___clone_and_map_discard:               ## @__clone_and_map_discard
	.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	%rdi, %r14
	movl	(%rdi), %esi
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_max_io_len
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %esi
	movl	%r15d, %edi
	callq	_min
	movq	%rax, %r15
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rcx
	callq	___issue_target_requests
	movl	(%r14), %esi
	addl	%r15d, %esi
	movl	%esi, (%r14)
	subl	%r15d, 4(%r14)
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	callq	_dm_table_find_target
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_dm_target_is_valid
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 4(%rbx)
	movl	(%r14), %edi
	movl	4(%r14), %r15d
	movq	%rbx, %rsi
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_max_io_len_target_boundary
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	___clone_and_map_discard
.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_discard
___clone_and_map_discard:               ; @__clone_and_map_discard
	.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, x0
	ldr	w1, [x0]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_max_io_len
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	mov	x0, x21
	bl	_min
	mov	x21, x0
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	___issue_target_requests
	ldp	w8, w9, [x19]
	add	w1, w8, w21
	subs	w8, w9, w21
	stp	w1, w8, [x19]
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	bl	_dm_table_find_target
	mov	x20, x0
	bl	_dm_target_is_valid
	cbz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #4]
	ldp	w0, w21, [x19]
	mov	x1, x20
	cbnz	w8, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_max_io_len_target_boundary
	b	LBB0_2
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	___clone_and_map_discard
.subsections_via_symbols
