	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehca_mem_notifier
_ehca_mem_notifier:                     ## @ehca_mem_notifier
	.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
	andq	$-2, %rsi
	movq	_NOTIFY_OK@GOTPCREL(%rip), %r15
	cmpq	$130, %rsi
	jne	LBB0_4
## %bb.1:
	movq	_shca_list_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_shca_list@GOTPCREL(%rip), %rdi
	callq	_list_empty
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.2:
	leaq	_ehca_mem_notifier.ehca_dmem_warn_time(%rip), %rdi
	movl	$30000, %esi                    ## imm = 0x7530
	callq	_printk_timed_ratelimit
	movq	_NOTIFY_BAD@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_ehca_gen_err
LBB0_4:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ehca_mem_notifier.ehca_dmem_warn_time,8,3 ## @ehca_mem_notifier.ehca_dmem_warn_time
	.comm	_NOTIFY_OK,4,2                  ## @NOTIFY_OK
	.comm	_shca_list_lock,4,2             ## @shca_list_lock
	.comm	_shca_list,4,2                  ## @shca_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMEM operations are not allowedin conjunction with eHCA"

	.comm	_NOTIFY_BAD,4,2                 ## @NOTIFY_BAD
	.no_dead_strip	_ehca_mem_notifier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehca_mem_notifier
_ehca_mem_notifier:                     ; @ehca_mem_notifier
	.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
	and	x8, x1, #0xfffffffffffffffe
	cmp	x8, #130
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x19, _shca_list_lock@GOTPAGE
Lloh1:
	ldr	x19, [x19, _shca_list_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x0, _shca_list@GOTPAGE
Lloh3:
	ldr	x0, [x0, _shca_list@GOTPAGEOFF]
	bl	_list_empty
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	cbz	w20, LBB0_4
LBB0_2:
Lloh4:
	adrp	x8, _NOTIFY_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NOTIFY_OK@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh6:
	adrp	x0, _ehca_mem_notifier.ehca_dmem_warn_time@PAGE
Lloh7:
	add	x0, x0, _ehca_mem_notifier.ehca_dmem_warn_time@PAGEOFF
	mov	w1, #30000
	bl	_printk_timed_ratelimit
	cbz	w0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ehca_gen_err
LBB0_6:
Lloh10:
	adrp	x8, _NOTIFY_BAD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NOTIFY_BAD@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ehca_mem_notifier.ehca_dmem_warn_time,8,3 ; @ehca_mem_notifier.ehca_dmem_warn_time
	.comm	_NOTIFY_OK,4,2                  ; @NOTIFY_OK
	.comm	_shca_list_lock,4,2             ; @shca_list_lock
	.comm	_shca_list,4,2                  ; @shca_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMEM operations are not allowedin conjunction with eHCA"

	.comm	_NOTIFY_BAD,4,2                 ; @NOTIFY_BAD
	.no_dead_strip	_ehca_mem_notifier
.subsections_via_symbols
