	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehca_init_mrmw_cache           ## -- Begin function ehca_init_mrmw_cache
	.p2align	4, 0x90
_ehca_init_mrmw_cache:                  ## @ehca_init_mrmw_cache
	.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	_SLAB_HWCACHE_ALIGN@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movq	_mr_cache@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%r15), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movq	_mw_cache@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	(%r14), %rdi
	callq	_kmem_cache_destroy
	movq	$0, (%r14)
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ehca_cache_mr"

	.comm	_SLAB_HWCACHE_ALIGN,4,2         ## @SLAB_HWCACHE_ALIGN
	.comm	_mr_cache,8,3                   ## @mr_cache
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"ehca_cache_mw"

	.comm	_mw_cache,8,3                   ## @mw_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehca_init_mrmw_cache           ; -- Begin function ehca_init_mrmw_cache
	.p2align	2
_ehca_init_mrmw_cache:                  ; @ehca_init_mrmw_cache
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _SLAB_HWCACHE_ALIGN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SLAB_HWCACHE_ALIGN@GOTPAGEOFF]
	ldr	w3, [x20]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #4
	mov	w2, #0
	mov	x4, #0
	bl	_kmem_cache_create
Lloh4:
	adrp	x19, _mr_cache@GOTPAGE
Lloh5:
	ldr	x19, [x19, _mr_cache@GOTPAGEOFF]
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w3, [x20]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #4
	mov	w2, #0
	mov	x4, #0
	bl	_kmem_cache_create
	mov	x8, x0
	mov	w0, #0
Lloh8:
	adrp	x9, _mw_cache@GOTPAGE
Lloh9:
	ldr	x9, [x9, _mw_cache@GOTPAGEOFF]
Lloh10:
	str	x8, [x9]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	x0, [x19]
	bl	_kmem_cache_destroy
	str	xzr, [x19]
LBB0_3:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ehca_cache_mr"

	.comm	_SLAB_HWCACHE_ALIGN,4,2         ; @SLAB_HWCACHE_ALIGN
	.comm	_mr_cache,8,3                   ; @mr_cache
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"ehca_cache_mw"

	.comm	_mw_cache,8,3                   ; @mw_cache
.subsections_via_symbols
