	.file	"extr_drv_mei_cpe.c_IFX_MEI_DMARead.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	IFX_MEI_DMARead, @function
IFX_MEI_DMARead:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR DSL_DEV_MEI_ERR_FAILURE[rip]
	test	sil, 3
	je	.L14
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r12, rdx
	mov	edx, esi
	mov	esi, DWORD PTR ME_DX_AD[rip]
	mov	ebx, ecx
	mov	rbp, rdi
	call	IFX_MEI_LongWordWriteOffset@PLT
	test	ebx, ebx
	je	.L4
	lea	eax, -1[rbx]
	lea	r13, 4[rsp]
	mov	rbx, r12
	lea	r14, 4[r12+rax*4]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR 4[rsp]
	add	rbx, 4
	mov	DWORD PTR -4[rbx], eax
	cmp	rbx, r14
	je	.L4
.L6:
	mov	esi, DWORD PTR ME_DX_DATA[rip]
	mov	rdi, rbp
	mov	rdx, r13
	call	IFX_MEI_LongWordReadOffset@PLT
	mov	rdi, rbp
	call	DSL_DEV_PRIVATE@PLT
	cmp	r12, QWORD PTR [rax]
	jne	.L5
	mov	edi, DWORD PTR 4[rsp]
	add	rbx, 4
	call	MEI_HALF_WORD_SWAP@PLT
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR -4[rbx], eax
	cmp	rbx, r14
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR DSL_DEV_MEI_ERR_SUCCESS[rip]
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	IFX_MEI_DMARead, .-IFX_MEI_DMARead
	.comm	ME_DX_DATA,8,8
	.comm	ME_DX_AD,8,8
	.comm	DSL_DEV_MEI_ERR_SUCCESS,4,4
	.comm	DSL_DEV_MEI_ERR_FAILURE,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_drv_mei_cpe.c_IFX_MEI_DMARead.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	IFX_MEI_DMARead, %function
IFX_MEI_DMARead:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r3
	ldr	r3, .L15
	sub	sp, sp, #8
	tst	r1, #3
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L15+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L15+8
	mov	r7, r2
	mov	r2, r1
	ldr	r1, [r3]
	mov	r5, r0
	bl	IFX_MEI_LongWordWriteOffset
	cmp	r4, #0
	sub	r4, r4, #1
	beq	.L4
	mov	r6, r7
	ldr	r8, .L15+12
	b	.L6
.L5:
	ldr	r3, [sp]
	sub	r4, r4, #1
	cmn	r4, #1
	str	r3, [r6], #4
	beq	.L4
.L6:
	mov	r2, sp
	ldr	r1, [r8]
	mov	r0, r5
	bl	IFX_MEI_LongWordReadOffset
	mov	r0, r5
	bl	DSL_DEV_PRIVATE
	ldr	r3, [r0]
	cmp	r7, r3
	bne	.L5
	ldr	r0, [sp]
	bl	MEI_HALF_WORD_SWAP
	b	.L5
.L4:
	ldr	r3, .L15+16
	ldr	r0, [r3]
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	DSL_DEV_MEI_ERR_FAILURE
	.word	ME_DX_AD
	.word	ME_DX_DATA
	.word	DSL_DEV_MEI_ERR_SUCCESS
	.size	IFX_MEI_DMARead, .-IFX_MEI_DMARead
	.comm	ME_DX_DATA,4,4
	.comm	ME_DX_AD,4,4
	.comm	DSL_DEV_MEI_ERR_SUCCESS,4,4
	.comm	DSL_DEV_MEI_ERR_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
