	.file	"extr_s921_module.c_s921_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	s921_read, @function
s921_read:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 104
	.cfi_def_cfa_offset 112
	mov	DWORD PTR 12[rsp], esi
	lea	rdx, 28[rsp]
	lea	rsi, 32[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 56[rsp], rdx
	lea	rax, 12[rsp]
	mov	edx, DWORD PTR I2C_M_RD[rip]
	mov	QWORD PTR 32[rsp], rax
	mov	eax, DWORD PTR 4[rdi]
	mov	edi, DWORD PTR [rdi]
	mov	DWORD PTR 68[rsp], edx
	mov	edx, 2
	mov	QWORD PTR 40[rsp], 1
	mov	DWORD PTR 48[rsp], eax
	mov	DWORD PTR 64[rsp], 1
	mov	DWORD PTR 72[rsp], eax
	call	i2c_transfer@PLT
	cmp	eax, 2
	cmove	eax, DWORD PTR 28[rsp]
	mov	rcx, QWORD PTR 88[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L6
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	s921_read, .-s921_read
	.comm	I2C_M_RD,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_s921_module.c_s921_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	s921_read, %function
s921_read:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r3, #1
	mov	r4, #0
	sub	sp, sp, #52
	ldr	ip, .L7
	ldr	r2, [r0, #4]
	str	r1, [sp, #4]
	ldr	r1, .L7+4
	ldr	r5, [ip]
	ldr	r1, [r1]
	str	r1, [sp, #44]
	mov	r1,#0
	add	lr, sp, #4
	str	r2, [sp, #24]
	str	r2, [sp, #40]
	add	ip, sp, #8
	mov	r2, #2
	ldr	r0, [r0]
	add	r1, sp, #12
	str	r3, [sp, #16]
	str	r3, [sp, #32]
	str	r5, [sp, #36]
	str	r4, [sp, #20]
	str	lr, [sp, #12]
	str	ip, [sp, #28]
	bl	i2c_transfer
	ldr	r3, .L7+4
	cmp	r0, #2
	ldreq	r0, [sp, #8]
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	I2C_M_RD
	.word	.LC0
	.size	s921_read, .-s921_read
	.comm	I2C_M_RD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
