	.file	"extr_goodix.c_goodix_i2c_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	goodix_i2c_read, @function
goodix_i2c_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	edi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	sub	rsp, 96
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	call	cpu_to_be16@PLT
	lea	rdx, 12[rsp]
	mov	DWORD PTR 48[rsp], ebp
	mov	edi, DWORD PTR [r12]
	mov	QWORD PTR 24[rsp], rdx
	mov	rdx, QWORD PTR I2C_M_RD[rip]
	lea	rbp, 16[rsp]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR 4[r12]
	mov	rsi, rbp
	mov	QWORD PTR 72[rsp], rdx
	mov	edx, 2
	mov	QWORD PTR 40[rsp], 0
	mov	DWORD PTR 32[rsp], eax
	mov	DWORD PTR 16[rsp], 2
	mov	DWORD PTR 64[rsp], eax
	mov	QWORD PTR 56[rsp], rbx
	call	i2c_transfer@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L7
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 96
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	je	.L4
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	xor	r12d, r12d
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	goodix_i2c_read, .-goodix_i2c_read
	.comm	I2C_M_RD,8,8
	.comm	EIO,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_goodix.c_goodix_i2c_read.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	goodix_i2c_read, %function
goodix_i2c_read:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r3
	ldr	r3, .L8
	sub	sp, sp, #44
	mov	r4, r0
	mov	r0, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	cpu_to_be16
	mov	r1, r0
	mov	r2, #2
	mov	r7, #0
	ldr	r3, .L8+4
	str	r1, [sp]
	ldr	ip, [r3]
	add	r1, sp, #4
	ldm	r4, {r0, r3}
	str	r6, [sp, #20]
	str	r5, [sp, #24]
	str	r3, [sp, #12]
	str	r3, [sp, #28]
	str	ip, [sp, #32]
	str	r2, [sp, #4]
	str	r7, [sp, #16]
	str	sp, [sp, #8]
	bl	i2c_transfer
	subs	r4, r0, #0
	blt	.L1
	add	r0, sp, #4
	bl	ARRAY_SIZE
	cmp	r0, r4
	moveq	r4, r7
	ldrne	r3, .L8+8
	ldrne	r0, [r3]
	rsbne	r4, r0, #0
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	I2C_M_RD
	.word	EIO
	.size	goodix_i2c_read, .-goodix_i2c_read
	.comm	I2C_M_RD,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
