	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_hif_init                ## -- Begin function mantis_hif_init
	.p2align	4, 0x90
_mantis_hif_init:                       ## @mantis_hif_init
	.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	16(%rdi), %rcx
	movl	$1886859304, (%rcx)             ## imm = 0x70773028
	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), %rax
	movq	_MANTIS_MASK_WRACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_MANTIS_MASK_EXTIRQ@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MANTIS_MASK_WSTO@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MANTIS_MASK_OTHERR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MANTIS_MASK_OVFLW@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	(%r14), %esi
	callq	_mmwrite
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_ERROR,4,2               ## @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adapter(%d) Initializing Mantis Host Interface"

	.comm	_MANTIS_GPIF_IRQCFG,4,2         ## @MANTIS_GPIF_IRQCFG
	.comm	_MANTIS_MASK_BRRDY,4,2          ## @MANTIS_MASK_BRRDY
	.comm	_MANTIS_MASK_WRACK,4,2          ## @MANTIS_MASK_WRACK
	.comm	_MANTIS_MASK_EXTIRQ,4,2         ## @MANTIS_MASK_EXTIRQ
	.comm	_MANTIS_MASK_WSTO,4,2           ## @MANTIS_MASK_WSTO
	.comm	_MANTIS_MASK_OTHERR,4,2         ## @MANTIS_MASK_OTHERR
	.comm	_MANTIS_MASK_OVFLW,4,2          ## @MANTIS_MASK_OVFLW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_hif_init                ; -- Begin function mantis_hif_init
	.p2align	2
_mantis_hif_init:                       ; @mantis_hif_init
	.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
	ldp	x9, x8, [x0, #8]
	mov	w10, #12328
	movk	w10, #28791, lsl #16
	str	w10, [x8]
Lloh0:
	adrp	x8, _MANTIS_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MANTIS_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w3, [x9]
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]
Lloh10:
	adrp	x9, _MANTIS_MASK_WRACK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MANTIS_MASK_WRACK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _MANTIS_MASK_EXTIRQ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MANTIS_MASK_EXTIRQ@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _MANTIS_MASK_WSTO@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MANTIS_MASK_WSTO@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh18:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _MANTIS_MASK_OTHERR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MANTIS_MASK_OTHERR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _MANTIS_MASK_OVFLW@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MANTIS_MASK_OVFLW@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	w1, [x20]
	bl	_mmwrite
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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) Initializing Mantis Host Interface"

	.comm	_MANTIS_GPIF_IRQCFG,4,2         ; @MANTIS_GPIF_IRQCFG
	.comm	_MANTIS_MASK_BRRDY,4,2          ; @MANTIS_MASK_BRRDY
	.comm	_MANTIS_MASK_WRACK,4,2          ; @MANTIS_MASK_WRACK
	.comm	_MANTIS_MASK_EXTIRQ,4,2         ; @MANTIS_MASK_EXTIRQ
	.comm	_MANTIS_MASK_WSTO,4,2           ; @MANTIS_MASK_WSTO
	.comm	_MANTIS_MASK_OTHERR,4,2         ; @MANTIS_MASK_OTHERR
	.comm	_MANTIS_MASK_OVFLW,4,2          ; @MANTIS_MASK_OVFLW
.subsections_via_symbols
