	.file	"extr_mantis_hif.c_mantis_hif_read_mem.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Adapter(%d) Slot(0): Request HIF Mem Read"
	.align 8
.LC1:
	.string	"Adapter(%d) Slot(0): GPIF Smart Buffer operation failed"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Mem Read: 0x%02x"
	.text
	.p2align 4
	.globl	mantis_hif_read_mem
	.type	mantis_hif_read_mem, @function
mantis_hif_read_mem:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdx, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 8[rdi]
	mov	ebx, esi
	mov	esi, 1
	mov	edi, DWORD PTR MANTIS_DEBUG[rip]
	mov	ecx, DWORD PTR [r12]
	call	dprintk@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	or	ebx, DWORD PTR MANTIS_HIF_STATUS[rip]
	mov	esi, DWORD PTR MANTIS_GPIF_BRADDR[rip]
	mov	edi, ebx
	call	mmwrite@PLT
	mov	esi, DWORD PTR MANTIS_GPIF_BRBYTES[rip]
	mov	edi, 4
	call	mmwrite@PLT
	mov	edi, 20
	call	udelay@PLT
	or	ebx, DWORD PTR MANTIS_GPIF_HIFRDWRN[rip]
	mov	esi, DWORD PTR MANTIS_GPIF_ADDR[rip]
	mov	edi, ebx
	call	mmwrite@PLT
	mov	rdi, rbp
	call	mantis_hif_sbuf_opdone_wait@PLT
	test	rax, rax
	jne	.L6
	mov	edi, DWORD PTR MANTIS_GPIF_DIN[rip]
	call	mmread@PLT
	mov	rdi, rbp
	mov	ebx, eax
	call	mutex_unlock@PLT
	mov	edi, DWORD PTR MANTIS_DEBUG[rip]
	mov	ecx, ebx
	lea	rdx, .LC2[rip]
	mov	esi, 1
	call	dprintk@PLT
	mov	eax, ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	shr	eax, 24
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	ecx, DWORD PTR [r12]
	mov	edi, DWORD PTR MANTIS_ERROR[rip]
	mov	esi, 1
	lea	rdx, .LC1[rip]
	call	dprintk@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR EREMOTEIO[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	mantis_hif_read_mem, .-mantis_hif_read_mem
	.comm	MANTIS_HIF_STATUS,4,4
	.comm	MANTIS_GPIF_PCMCIAREG,4,4
	.comm	MANTIS_GPIF_PCMCIAIOM,4,4
	.comm	MANTIS_GPIF_HIFRDWRN,4,4
	.comm	MANTIS_GPIF_DIN,4,4
	.comm	MANTIS_GPIF_BRBYTES,4,4
	.comm	MANTIS_GPIF_BRADDR,4,4
	.comm	MANTIS_GPIF_ADDR,4,4
	.comm	MANTIS_ERROR,4,4
	.comm	MANTIS_DEBUG,4,4
	.comm	EREMOTEIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mantis_hif.c_mantis_hif_read_mem.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Adapter(%d) Slot(0): Request HIF Mem Read\000"
	.align	2
.LC1:
	.ascii	"Adapter(%d) Slot(0): GPIF Smart Buffer operation fa"
	.ascii	"iled\000"
	.align	2
.LC2:
	.ascii	"Mem Read: 0x%02x\000"
	.text
	.align	2
	.global	mantis_hif_read_mem
	.syntax unified
	.arm
	.fpu softvfp
	.type	mantis_hif_read_mem, %function
mantis_hif_read_mem:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r7, [r0, #4]
	ldr	r6, .L7
	mov	r1, #1
	ldr	r3, [r7]
	ldr	r2, .L7+4
	ldr	r0, [r6]
	bl	dprintk
	mov	r0, r4
	bl	mutex_lock
	ldr	r3, .L7+8
	ldr	r2, .L7+12
	ldr	r3, [r3]
	ldr	r1, [r2]
	orr	r5, r5, r3
	mov	r0, r5
	bl	mmwrite
	ldr	r3, .L7+16
	mov	r0, #4
	ldr	r1, [r3]
	bl	mmwrite
	mov	r0, #20
	bl	udelay
	ldr	r2, .L7+20
	ldr	r3, .L7+24
	ldr	r0, [r2]
	ldr	r1, [r3]
	orr	r0, r5, r0
	bl	mmwrite
	mov	r0, r4
	bl	mantis_hif_sbuf_opdone_wait
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L7+28
	ldr	r0, [r3]
	bl	mmread
	mov	r5, r0
	mov	r0, r4
	bl	mutex_unlock
	mov	r3, r5
	mov	r1, #1
	ldr	r0, [r6]
	ldr	r2, .L7+32
	bl	dprintk
	lsr	r0, r5, #24
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r2, .L7+36
	ldr	r3, [r7]
	mov	r1, #1
	ldr	r0, [r2]
	ldr	r2, .L7+40
	bl	dprintk
	mov	r0, r4
	bl	mutex_unlock
	ldr	r3, .L7+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	MANTIS_DEBUG
	.word	.LC0
	.word	MANTIS_HIF_STATUS
	.word	MANTIS_GPIF_BRADDR
	.word	MANTIS_GPIF_BRBYTES
	.word	MANTIS_GPIF_HIFRDWRN
	.word	MANTIS_GPIF_ADDR
	.word	MANTIS_GPIF_DIN
	.word	.LC2
	.word	MANTIS_ERROR
	.word	.LC1
	.word	EREMOTEIO
	.size	mantis_hif_read_mem, .-mantis_hif_read_mem
	.comm	MANTIS_HIF_STATUS,4,4
	.comm	MANTIS_GPIF_PCMCIAREG,4,4
	.comm	MANTIS_GPIF_PCMCIAIOM,4,4
	.comm	MANTIS_GPIF_HIFRDWRN,4,4
	.comm	MANTIS_GPIF_DIN,4,4
	.comm	MANTIS_GPIF_BRBYTES,4,4
	.comm	MANTIS_GPIF_BRADDR,4,4
	.comm	MANTIS_GPIF_ADDR,4,4
	.comm	MANTIS_ERROR,4,4
	.comm	MANTIS_DEBUG,4,4
	.comm	EREMOTEIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
