	.file	"extr_dib8000.c___dib8000_read_word.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"i2c read error on %d\n"
	.text
	.p2align 4
	.type	__dib8000_read_word, @function
__dib8000_read_word:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edx, esi
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sar	edx, 8
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdi]
	mov	rdi, QWORD PTR 16[rdi]
	mov	DWORD PTR [rax], edx
	movzx	edx, sil
	xor	esi, esi
	mov	DWORD PTR 4[rax], edx
	mov	edx, 8
	call	memset@PLT
	mov	eax, DWORD PTR 24[rbx]
	mov	rsi, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	edi, DWORD PTR 28[rbx]
	sar	eax
	mov	QWORD PTR 24[rsi], 0
	mov	DWORD PTR [rsi], eax
	mov	DWORD PTR 32[rsi], eax
	mov	rax, QWORD PTR I2C_M_RD[rip]
	mov	QWORD PTR 8[rsi], rdx
	mov	edx, 2
	mov	QWORD PTR 56[rsi], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR 16[rsi], 2
	mov	QWORD PTR 40[rsi], rax
	mov	DWORD PTR 48[rsi], 2
	call	i2c_transfer@PLT
	cmp	eax, 2
	je	.L2
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	call	dprintk@PLT
.L2:
	mov	rdx, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR [rdx]
	sal	eax, 8
	or	eax, DWORD PTR 4[rdx]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	__dib8000_read_word, .-__dib8000_read_word
	.comm	I2C_M_RD,8,8
	.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_dib8000.c___dib8000_read_word.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"i2c read error on %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__dib8000_read_word, %function
__dib8000_read_word:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	ldr	r3, [r0]
	asr	r1, r1, #8
	and	r2, r5, #255
	stm	r3, {r1, r2}
	ldr	r0, [r0, #8]
	mov	r2, #8
	mov	r1, #0
	bl	memset
	mov	r2, #2
	mov	ip, #0
	ldr	r3, [r4, #12]
	ldr	r1, [r4, #8]
	ldr	r0, .L8
	asr	r3, r3, #1
	ldr	lr, [r4]
	ldr	r0, [r0]
	str	r3, [r1, #16]
	str	r3, [r1]
	ldr	r3, [r4, #4]
	str	lr, [r1, #4]
	str	r0, [r1, #28]
	str	ip, [r1, #12]
	ldr	r0, [r4, #16]
	str	r3, [r1, #20]
	str	r2, [r1, #8]
	str	r2, [r1, #24]
	bl	i2c_transfer
	cmp	r0, #2
	beq	.L2
	mov	r1, r5
	ldr	r0, .L8+4
	bl	dprintk
.L2:
	ldr	r3, [r4, #4]
	ldm	r3, {r0, r3}
	orr	r0, r3, r0, lsl #8
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	I2C_M_RD
	.word	.LC0
	.size	__dib8000_read_word, .-__dib8000_read_word
	.comm	I2C_M_RD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
