	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_hif_exit                ## -- Begin function mantis_hif_exit
	.p2align	4, 0x90
_mantis_hif_exit:                       ## @mantis_hif_exit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_MANTIS_GPIF_IRQCFG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_mmread
	movq	_MANTIS_MASK_BRRDY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movl	(%r14), %esi
	callq	_mmwrite
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_ERROR,4,2               ## @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adapter(%d) Exiting Mantis Host Interface"

	.comm	_MANTIS_GPIF_IRQCFG,4,2         ## @MANTIS_GPIF_IRQCFG
	.comm	_MANTIS_MASK_BRRDY,4,2          ## @MANTIS_MASK_BRRDY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_hif_exit                ; -- Begin function mantis_hif_exit
	.p2align	2
_mantis_hif_exit:                       ; @mantis_hif_exit
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _MANTIS_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MANTIS_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	ldr	w3, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	x0, x19
	bl	_mutex_lock
Lloh5:
	adrp	x20, _MANTIS_GPIF_IRQCFG@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MANTIS_GPIF_IRQCFG@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_mmread
Lloh7:
	adrp	x8, _MANTIS_MASK_BRRDY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MANTIS_MASK_BRRDY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	w1, [x20]
	bl	_mmwrite
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_ERROR,4,2               ; @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adapter(%d) Exiting Mantis Host Interface"

	.comm	_MANTIS_GPIF_IRQCFG,4,2         ; @MANTIS_GPIF_IRQCFG
	.comm	_MANTIS_MASK_BRRDY,4,2          ; @MANTIS_MASK_BRRDY
.subsections_via_symbols
