	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_mem_cache_shrink            ## -- Begin function dm_mem_cache_shrink
	.p2align	4, 0x90
_dm_mem_cache_shrink:                   ## @dm_mem_cache_shrink
	.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
	pushq	%rax
	.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, %r13
	movl	(%rdi), %ebx
	imull	%esi, %ebx
	imull	4(%rdi), %ebx
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_BUG_ON
	leaq	24(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	32(%r13), %r15
	movq	%r15, %rcx
	movl	%ebx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%edx
	jne	LBB0_2
## %bb.5:
	movq	%rcx, 32(%r13)
	subl	%ebx, 8(%r13)
	subl	%ebx, 12(%r13)
	subl	%r14d, 16(%r13)
	movq	$0, (%rax)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:
	negl	%r14d
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	callq	_free_cache_pages
	movl	16(%r13), %esi
	movl	20(%r13), %edi
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mempool_resize
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_mem_cache_shrink            ; -- Begin function dm_mem_cache_shrink
	.p2align	2
_dm_mem_cache_shrink:                   ; @dm_mem_cache_shrink
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	ldp	w8, w9, [x0]
	mul	w8, w8, w1
	mul	w23, w8, w9
	cmp	w23, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x22, x19, #24
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x20, [x19, #32]
	mov	x9, x20
	mov	x10, x23
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w10, w10, #1
	b.ne	LBB0_1
; %bb.3:
	str	x9, [x19, #32]
	ldr	d0, [x19, #8]
	dup.2s	v1, w23
	sub.2s	v0, v0, v1
	str	d0, [x19, #8]
	ldr	w9, [x19, #16]
	sub	w9, w9, w21
	str	w9, [x19, #16]
	str	xzr, [x8]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbz	w21, LBB0_6
; %bb.5:
	neg	w0, w21
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_free_cache_pages
	ldp	w1, w0, [x19, #16]
Lloh3:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_mempool_resize
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
.subsections_via_symbols
