	.file	"extr_tmp421.c_tmp421_update_device.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tmp421_update_device, @function
tmp421_update_device:
.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
	call	to_i2c_client@PLT
	mov	rdi, rax
	mov	r13, rax
	call	i2c_get_clientdata@PLT
	lea	r14, 24[rax]
	mov	r12, rax
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	eax, DWORD PTR HZ[rip]
	mov	rdi, QWORD PTR jiffies[rip]
	lea	esi, [rax+rax]
	movsx	rsi, esi
	add	rsi, QWORD PTR 32[r12]
	call	time_after@PLT
	test	rax, rax
	jne	.L2
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	jne	.L3
.L2:
	mov	esi, DWORD PTR TMP421_CONFIG_REG_1[rip]
	mov	rdi, r13
	call	i2c_smbus_read_byte_data@PLT
	mov	DWORD PTR 4[r12], eax
	mov	eax, DWORD PTR 8[r12]
	test	eax, eax
	jle	.L4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR TMP421_TEMP_MSB[rip]
	mov	rdi, r13
	lea	rbp, 0[0+rbx*4]
	mov	esi, DWORD PTR [rax+rbx*4]
	call	i2c_smbus_read_byte_data@PLT
	mov	rdx, QWORD PTR 16[r12]
	mov	rdi, r13
	sal	eax, 8
	mov	DWORD PTR [rdx+rbx*4], eax
	mov	rax, QWORD PTR TMP421_TEMP_LSB[rip]
	mov	esi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	i2c_smbus_read_byte_data@PLT
	mov	r8d, eax
	mov	rax, QWORD PTR 16[r12]
	add	rax, rbp
	or	DWORD PTR [rax], r8d
	cmp	DWORD PTR 8[r12], ebx
	jg	.L5
.L4:
	mov	rax, QWORD PTR jiffies[rip]
	mov	DWORD PTR [r12], 1
	mov	QWORD PTR 32[r12], rax
.L3:
	mov	rdi, r14
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
	.cfi_endproc
.LFE0:
	.size	tmp421_update_device, .-tmp421_update_device
	.comm	jiffies,8,8
	.comm	TMP421_TEMP_MSB,8,8
	.comm	TMP421_TEMP_LSB,8,8
	.comm	TMP421_CONFIG_REG_1,4,4
	.comm	HZ,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_tmp421.c_tmp421_update_device.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tmp421_update_device, %function
tmp421_update_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	bl	to_i2c_client
	mov	r6, r0
	bl	i2c_get_clientdata
	mov	r5, r0
	add	r8, r0, #16
	mov	r0, r8
	bl	mutex_lock
	ldr	r2, .L9
	ldr	r3, [r5, #20]
	ldr	r1, [r2]
	ldr	r9, .L9+4
	add	r1, r3, r1, lsl #1
	ldr	r0, [r9]
	bl	time_after
	cmp	r0, #0
	bne	.L2
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L9+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	i2c_smbus_read_byte_data
	ldr	r3, [r5, #8]
	str	r0, [r5, #4]
	cmp	r3, #0
	ble	.L4
	mov	r4, #0
	ldr	r10, .L9+12
	ldr	r7, .L9+16
.L5:
	ldr	r3, [r10]
	mov	r0, r6
	ldr	r1, [r3, r4, lsl #2]
	bl	i2c_smbus_read_byte_data
	ldr	r2, [r5, #12]
	ldr	r3, [r7]
	lsl	r0, r0, #8
	str	r0, [r2, r4, lsl #2]
	ldr	r1, [r3, r4, lsl #2]
	mov	r0, r6
	bl	i2c_smbus_read_byte_data
	ldr	r2, [r5, #12]
	ldr	r3, [r2, r4, lsl #2]
	orr	r3, r3, r0
	str	r3, [r2, r4, lsl #2]
	ldr	r3, [r5, #8]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L4:
	mov	r2, #1
	ldr	r3, [r9]
	str	r2, [r5]
	str	r3, [r5, #20]
.L3:
	mov	r0, r8
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	.align	2
.L9:
	.word	HZ
	.word	jiffies
	.word	TMP421_CONFIG_REG_1
	.word	TMP421_TEMP_MSB
	.word	TMP421_TEMP_LSB
	.size	tmp421_update_device, .-tmp421_update_device
	.comm	jiffies,4,4
	.comm	TMP421_TEMP_MSB,4,4
	.comm	TMP421_TEMP_LSB,4,4
	.comm	TMP421_CONFIG_REG_1,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
