	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_hif_write_iom           ## -- Begin function mantis_hif_write_iom
	.p2align	4, 0x90
_mantis_hif_write_iom:                  ## @mantis_hif_write_iom
	.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	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movq	_MANTIS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_MANTIS_GPIF_PCMCIAIOM@GOTPCREL(%rip), %rax
	movq	_MANTIS_HIF_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rax), %edi
	orl	%r15d, %edi
	orl	(%rcx), %edi
	movq	_MANTIS_GPIF_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmwrite
	movq	_MANTIS_GPIF_DOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_mmwrite
	movq	%rbx, %rdi
	callq	_mantis_hif_write_wait
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_MANTIS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %esi
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	$50, %edi
	callq	_udelay
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_DEBUG,4,2               ## @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adapter(%d) Slot(0): Request HIF I/O Write"

	.comm	_MANTIS_GPIF_PCMCIAREG,4,2      ## @MANTIS_GPIF_PCMCIAREG
	.comm	_MANTIS_GPIF_HIFRDWRN,4,2       ## @MANTIS_GPIF_HIFRDWRN
	.comm	_MANTIS_GPIF_PCMCIAIOM,4,2      ## @MANTIS_GPIF_PCMCIAIOM
	.comm	_MANTIS_HIF_STATUS,4,2          ## @MANTIS_HIF_STATUS
	.comm	_MANTIS_GPIF_ADDR,4,2           ## @MANTIS_GPIF_ADDR
	.comm	_MANTIS_GPIF_DOUT,4,2           ## @MANTIS_GPIF_DOUT
	.comm	_MANTIS_ERROR,4,2               ## @MANTIS_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Adapter(%d) Slot(0): HIF Smart Buffer operation failed"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
L_.str.2:                               ## @.str.2
	.asciz	"I/O Write: (0x%02x to 0x%02x)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mantis_hif_write_iom           ; -- Begin function mantis_hif_write_iom
	.p2align	2
_mantis_hif_write_iom:                  ; @mantis_hif_write_iom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x23, _MANTIS_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MANTIS_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w3, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	x0, x19
	bl	_mutex_lock
Lloh4:
	adrp	x8, _MANTIS_GPIF_PCMCIAIOM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MANTIS_GPIF_PCMCIAIOM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _MANTIS_HIF_STATUS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MANTIS_HIF_STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w21
	orr	w0, w8, w9
Lloh10:
	adrp	x8, _MANTIS_GPIF_ADDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MANTIS_GPIF_ADDR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_mmwrite
Lloh13:
	adrp	x8, _MANTIS_GPIF_DOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MANTIS_GPIF_DOUT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mmwrite
	mov	x0, x19
	bl	_mantis_hif_write_wait
	cbz	x0, LBB0_2
; %bb.1:
Lloh16:
	adrp	x8, _MANTIS_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MANTIS_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w3, [x22]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	x0, x19
	bl	_mutex_unlock
Lloh21:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	w0, [x23]
	str	x21, [sp]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #1
	mov	x3, x20
	bl	_dprintk
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #50
	bl	_udelay
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_DEBUG,4,2               ; @MANTIS_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adapter(%d) Slot(0): Request HIF I/O Write"

	.comm	_MANTIS_GPIF_PCMCIAREG,4,2      ; @MANTIS_GPIF_PCMCIAREG
	.comm	_MANTIS_GPIF_HIFRDWRN,4,2       ; @MANTIS_GPIF_HIFRDWRN
	.comm	_MANTIS_GPIF_PCMCIAIOM,4,2      ; @MANTIS_GPIF_PCMCIAIOM
	.comm	_MANTIS_HIF_STATUS,4,2          ; @MANTIS_HIF_STATUS
	.comm	_MANTIS_GPIF_ADDR,4,2           ; @MANTIS_GPIF_ADDR
	.comm	_MANTIS_GPIF_DOUT,4,2           ; @MANTIS_GPIF_DOUT
	.comm	_MANTIS_ERROR,4,2               ; @MANTIS_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Adapter(%d) Slot(0): HIF Smart Buffer operation failed"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
l_.str.2:                               ; @.str.2
	.asciz	"I/O Write: (0x%02x to 0x%02x)"

.subsections_via_symbols
