	.file	"extr_i2c-xgene-slimpro.c_slimpro_i2c_blkrd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error in mapping dma buffer %p\n"
	.text
	.p2align 4
	.type	slimpro_i2c_blkrd, @function
slimpro_i2c_blkrd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	mov	edx, r9d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR 4[rdi]
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR 120[rsp]
	mov	DWORD PTR 4[rsp], ecx
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	dma_map_single@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rax
	mov	r12, rax
	call	dma_mapping_error@PLT
	mov	r10d, DWORD PTR 4[rsp]
	test	rax, rax
	jne	.L7
	mov	edx, DWORD PTR SLIMPRO_IIC_READ[rip]
	mov	ecx, r15d
	mov	r9d, r14d
	mov	r8d, r10d
	mov	edi, DWORD PTR SLIMPRO_IIC_BUS[rip]
	mov	esi, ebp
	call	SLIMPRO_IIC_ENCODE_MSG@PLT
	mov	edi, DWORD PTR 112[rsp]
	mov	DWORD PTR 28[rsp], eax
	call	SLIMPRO_IIC_ENCODE_FLAG_WITH_DATA_LEN@PLT
	mov	rdi, r12
	mov	r15d, DWORD PTR SLIMPRO_IIC_ENCODE_FLAG_BUFADDR[rip]
	mov	ebp, eax
	call	SLIMPRO_IIC_ENCODE_UPPER_BUFADDR@PLT
	mov	edi, r13d
	or	ebp, eax
	call	SLIMPRO_IIC_ENCODE_ADDR@PLT
	or	r15d, ebp
	lea	rsi, 28[rsp]
	mov	rdi, rbx
	mov	rdx, rsi
	or	r15d, eax
	mov	DWORD PTR 36[rsp], r12d
	mov	DWORD PTR 32[rsp], r15d
	call	slimpro_i2c_send_msg@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, QWORD PTR 8[rsp]
	mov	edx, r14d
	mov	r13d, eax
	call	memcpy@PLT
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	edi, DWORD PTR [rbx]
	mov	edx, r14d
	mov	rsi, r12
	call	dma_unmap_single@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[rbx]
	lea	rdi, 8[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	slimpro_i2c_blkrd, .-slimpro_i2c_blkrd
	.comm	SLIMPRO_IIC_READ,4,4
	.comm	SLIMPRO_IIC_ENCODE_FLAG_BUFADDR,4,4
	.comm	SLIMPRO_IIC_BUS,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_FROM_DEVICE,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_i2c-xgene-slimpro.c_slimpro_i2c_blkrd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error in mapping dma buffer %p\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	slimpro_i2c_blkrd, %function
slimpro_i2c_blkrd:
	@ args = 16, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	ldr	r7, [sp, #68]
	ldr	r8, .L9
	ldr	ip, .L9+4
	mov	r4, r0
	mov	r5, r1
	ldm	r0, {r0, r1}
	mov	r10, r2
	mov	fp, r3
	mov	r2, r7
	ldr	r3, [r8]
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	ldr	r9, [sp, #76]
	bl	dma_map_single
	mov	r6, r0
	ldr	r0, [r4]
	mov	r1, r6
	bl	dma_mapping_error
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L9+8
	ldr	r2, .L9+12
	str	fp, [sp]
	str	r7, [sp, #4]
	mov	r1, r5
	ldr	r2, [r2]
	ldr	r0, [r3]
	ldr	r3, [sp, #64]
	bl	SLIMPRO_IIC_ENCODE_MSG
	mov	r3, r0
	ldr	r0, [sp, #72]
	str	r3, [sp, #8]
	bl	SLIMPRO_IIC_ENCODE_FLAG_WITH_DATA_LEN
	ldr	r3, .L9+16
	mov	r5, r0
	mov	r0, r6
	ldr	fp, [r3]
	bl	SLIMPRO_IIC_ENCODE_UPPER_BUFADDR
	mov	r3, r0
	mov	r0, r10
	orr	r5, r5, r3
	bl	SLIMPRO_IIC_ENCODE_ADDR
	orr	r5, r5, fp
	add	r2, sp, #8
	mov	r1, r2
	orr	r5, r5, r0
	mov	r0, r4
	str	r5, [sp, #12]
	str	r6, [sp, #16]
	bl	slimpro_i2c_send_msg
	mov	r2, r7
	ldr	r1, [r4, #4]
	mov	r5, r0
	mov	r0, r9
	bl	memcpy
	mov	r2, r7
	mov	r1, r6
	ldr	r3, [r8]
	ldr	r0, [r4]
	bl	dma_unmap_single
.L1:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r2, [r4, #4]
	ldr	r1, .L9+20
	add	r0, r4, #8
	bl	dev_err
	ldr	r3, .L9+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	DMA_FROM_DEVICE
	.word	.LC1
	.word	SLIMPRO_IIC_BUS
	.word	SLIMPRO_IIC_READ
	.word	SLIMPRO_IIC_ENCODE_FLAG_BUFADDR
	.word	.LC0
	.word	ENOMEM
	.size	slimpro_i2c_blkrd, .-slimpro_i2c_blkrd
	.comm	SLIMPRO_IIC_READ,4,4
	.comm	SLIMPRO_IIC_ENCODE_FLAG_BUFADDR,4,4
	.comm	SLIMPRO_IIC_BUS,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
