	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_preresume
_cache_preresume:                       ## @cache_preresume
	.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), %r15
	movq	%r15, %rdi
	callq	_get_cache_dev_size
	movq	%rax, %rbx
	cmpl	$0, (%r15)
	je	LBB0_1
## %bb.3:
	cmpq	8(%r15), %rbx
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_can_resize
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_resize_cache_dev
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_16
LBB0_7:
	cmpl	$0, 16(%r15)
	je	LBB0_8
LBB0_11:
	xorl	%r14d, %r14d
	cmpl	$0, 20(%r15)
	jne	LBB0_16
## %bb.12:
	movl	28(%r15), %edi
	movl	32(%r15), %ebx
	callq	_from_dblock
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_clear_bitset
	leaq	-32(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_discard_load_info_init
	movl	24(%r15), %edi
	movq	_load_discard@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_dm_cache_load_discards
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	callq	_cache_device_name
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_DMERR
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_14
LBB0_1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_resize_cache_dev
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.2:
	movl	$1, (%r15)
	cmpl	$0, 16(%r15)
	jne	LBB0_11
LBB0_8:
	movl	24(%r15), %edi
	movl	36(%r15), %esi
	movq	_load_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rcx
	callq	_dm_cache_load_mappings
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_cache_device_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DMERR
	leaq	L_.str.1(%rip), %rsi
LBB0_14:
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_metadata_operation_failed
	jmp	LBB0_16
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_16
LBB0_10:
	movl	$1, 16(%r15)
	jmp	LBB0_11
LBB0_15:
	leaq	-32(%rbp), %rdi
	callq	_set_discard_range
	movl	$1, 20(%r15)
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_load_mapping,4,2               ## @load_mapping
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: could not load cache mappings"

L_.str.1:                               ## @.str.1
	.asciz	"dm_cache_load_mappings"

	.comm	_load_discard,4,2               ## @load_discard
L_.str.2:                               ## @.str.2
	.asciz	"%s: could not load origin discards"

L_.str.3:                               ## @.str.3
	.asciz	"dm_cache_load_discards"

	.no_dead_strip	_cache_preresume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_preresume
_cache_preresume:                       ; @cache_preresume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0]
	mov	x0, x19
	bl	_get_cache_dev_size
	mov	x20, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_can_resize
	cbz	w0, LBB0_11
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_resize_cache_dev
	mov	x20, x0
	cbnz	w0, LBB0_17
LBB0_4:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_9
LBB0_5:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_13
LBB0_6:
	mov	w20, #0
	b	LBB0_17
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_resize_cache_dev
	mov	x20, x0
	cbnz	w0, LBB0_17
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_5
LBB0_9:
	ldr	w0, [x19, #24]
	ldr	w1, [x19, #36]
Lloh0:
	adrp	x8, _load_mapping@GOTPAGE
Lloh1:
	ldr	x8, [x8, _load_mapping@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_dm_cache_load_mappings
	cbz	w0, LBB0_12
; %bb.10:
	mov	x20, x0
	mov	x0, x19
	bl	_cache_device_name
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_11:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_17
LBB0_12:
	mov	w8, #1
	str	w8, [x19, #16]
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_6
LBB0_13:
	ldp	w0, w20, [x19, #28]
	bl	_from_dblock
	mov	x1, x0
	mov	x0, x20
	bl	_clear_bitset
	add	x1, sp, #8
	mov	x0, x19
	bl	_discard_load_info_init
	ldr	w0, [x19, #24]
Lloh10:
	adrp	x8, _load_discard@GOTPAGE
Lloh11:
	ldr	x8, [x8, _load_discard@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_dm_cache_load_discards
	mov	x20, x0
	cbz	w0, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_cache_device_name
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DMERR
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	mov	x0, x19
	mov	x2, x20
	bl	_metadata_operation_failed
	b	LBB0_17
LBB0_16:
	add	x0, sp, #8
	bl	_set_discard_range
	mov	w8, #1
	str	w8, [x19, #20]
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_load_mapping,4,2               ; @load_mapping
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: could not load cache mappings"

l_.str.1:                               ; @.str.1
	.asciz	"dm_cache_load_mappings"

	.comm	_load_discard,4,2               ; @load_discard
l_.str.2:                               ; @.str.2
	.asciz	"%s: could not load origin discards"

l_.str.3:                               ; @.str.3
	.asciz	"dm_cache_load_discards"

	.no_dead_strip	_cache_preresume
.subsections_via_symbols
