	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_cache_resize                ## -- Begin function dm_cache_resize
	.p2align	4, 0x90
_dm_cache_resize:                       ## @dm_cache_resize
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_pack_value
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	callq	_WRITE_LOCK
	leaq	-44(%rbp), %rdi
	callq	___dm_bless_for_disk
	movl	%r14d, %edi
	callq	_from_cblock
	movq	%rax, %rbx
	movl	4(%r15), %edi
	callq	_from_cblock
	cmpq	%rax, %rbx
	jge	LBB0_6
## %bb.1:
	movl	4(%r15), %edx
	leaq	-52(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_blocks_are_unmapped_or_clean
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
LBB0_3:
	leaq	-44(%rbp), %rdi
	callq	___dm_unbless_for_disk
	jmp	LBB0_10
LBB0_4:
	cmpl	$0, -52(%rbp)
	je	LBB0_5
LBB0_6:
	leaq	20(%r15), %r13
	leaq	16(%r15), %r12
	movl	4(%r15), %edi
	movl	16(%r15), %ebx
	callq	_from_cblock
	movl	%r14d, %edi
	movq	%rax, %r14
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	callq	_from_cblock
	leaq	-44(%rbp), %r8
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movq	%rax, %rcx
	movq	%r12, %r9
	callq	_dm_array_resize
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	%r15, %rdi
	callq	_separate_dirty_bits
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	12(%r15), %r12
	leaq	8(%r15), %r14
	movl	4(%r15), %edi
	movl	8(%r15), %r13d
	callq	_from_cblock
	movq	%rax, %rbx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_from_cblock
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_dm_bitset_resize
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r15)
	movl	$1, (%r15)
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r15, %rdi
	callq	_WRITE_UNLOCK
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to shrink cache due to dirty blocks"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_cache_resize                ; -- Begin function dm_cache_resize
	.p2align	2
_dm_cache_resize:                       ; @dm_cache_resize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
	mov	w0, #0
	mov	w1, #0
	bl	_pack_value
	str	w0, [sp, #8]
	mov	x0, x19
	bl	_WRITE_LOCK
	add	x0, sp, #8
	bl	___dm_bless_for_disk
	mov	x0, x20
	bl	_from_cblock
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_from_cblock
	cmp	x21, x0
	b.ge	LBB0_5
; %bb.1:
	ldr	w2, [x19, #4]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_blocks_are_unmapped_or_clean
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
LBB0_3:
	add	x0, sp, #8
	bl	___dm_unbless_for_disk
	b	LBB0_9
LBB0_4:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_10
LBB0_5:
	mov	x21, x19
	ldr	w22, [x21, #16]!
	add	x23, x21, #4
	ldur	w0, [x21, #-12]
	bl	_from_cblock
	mov	x24, x0
	mov	x0, x20
	bl	_from_cblock
	mov	x3, x0
	add	x4, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	x5, x21
	bl	_dm_array_resize
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_separate_dirty_bits
	cbz	x0, LBB0_8
; %bb.7:
	mov	x21, x19
	ldr	w22, [x21, #8]!
	add	x23, x21, #4
	ldur	w0, [x21, #-4]
	bl	_from_cblock
	mov	x24, x0
	mov	x0, x20
	bl	_from_cblock
	mov	x3, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	w4, #0
	mov	x5, x21
	bl	_dm_bitset_resize
	mov	x21, x0
	cbnz	w0, LBB0_9
LBB0_8:
	mov	w21, #0
	mov	w8, #1
	stp	w8, w20, [x19]
LBB0_9:
	mov	x0, x19
	bl	_WRITE_UNLOCK
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to shrink cache due to dirty blocks"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
