	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_mem_cache_grow              ## -- Begin function dm_mem_cache_grow
	.p2align	4, 0x90
_dm_mem_cache_grow:                     ## @dm_mem_cache_grow
	.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, %r15
	movl	(%rdi), %ebx
	imull	%esi, %ebx
	imull	4(%rdi), %ebx
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_BUG_ON
	movl	%ebx, %edi
	callq	_alloc_cache_pages
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r14
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	leaq	24(%r15), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irq
	movq	32(%r15), %rax
	movq	%rax, (%r14)
	movq	%r12, 32(%r15)
	addl	%ebx, 8(%r15)
	addl	%ebx, 12(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 16(%r15)
	movq	%r13, %rdi
	callq	_spin_unlock_irq
	movl	16(%r15), %esi
	movl	20(%r15), %edi
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mempool_resize
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	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_grow              ; -- Begin function dm_mem_cache_grow
	.p2align	2
_dm_mem_cache_grow:                     ; @dm_mem_cache_grow
	.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	x20, x1
	mov	x19, x0
	ldp	w8, w9, [x0]
	mul	w8, w8, w1
	mul	w21, w8, w9
	cmp	w21, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x21
	bl	_alloc_cache_pages
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	mov	x8, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.3:
	add	x23, x19, #24
	mov	x0, x23
	bl	_spin_lock_irq
	ldr	x8, [x19, #32]
	str	x8, [x24]
	str	x22, [x19, #32]
	dup.2s	v0, w21
	ldr	d1, [x19, #8]
	add.2s	v0, v1, v0
	str	d0, [x19, #8]
	ldr	w8, [x19, #16]
	add	w8, w8, w20
	str	w8, [x19, #16]
	mov	x0, x23
	bl	_spin_unlock_irq
	ldp	w1, w0, [x19, #16]
Lloh0:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_mempool_resize
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
