	.file	"extr_w83l785ts.c_w83l785ts_update_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Updating w83l785ts data.\n"
	.text
	.p2align 4
	.type	w83l785ts_update_device, @function
w83l785ts_update_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	to_i2c_client@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	i2c_get_clientdata@PLT
	lea	r13, 4[rax]
	mov	r12, rax
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR HZ[rip]
	mov	rdi, QWORD PTR jiffies[rip]
	lea	esi, [rax+rax]
	movsx	rsi, esi
	add	rsi, QWORD PTR 8[r12]
	call	time_after@PLT
	test	rax, rax
	je	.L3
.L4:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_dbg@PLT
	mov	rbx, QWORD PTR 16[r12]
	mov	esi, DWORD PTR W83L785TS_REG_TEMP[rip]
	mov	rdi, rbp
	mov	rdx, QWORD PTR [rbx]
	call	w83l785ts_read_value@PLT
	mov	esi, DWORD PTR W83L785TS_REG_TEMP_OVER[rip]
	mov	rdi, rbp
	mov	QWORD PTR [rbx], rax
	mov	rbx, QWORD PTR 16[r12]
	mov	rdx, QWORD PTR 8[rbx]
	call	w83l785ts_read_value@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR jiffies[rip]
	mov	DWORD PTR [r12], 1
	mov	QWORD PTR 8[r12], rax
.L3:
	mov	rdi, r13
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	w83l785ts_update_device, .-w83l785ts_update_device
	.comm	jiffies,8,8
	.comm	W83L785TS_REG_TEMP_OVER,4,4
	.comm	W83L785TS_REG_TEMP,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_w83l785ts.c_w83l785ts_update_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Updating w83l785ts data.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	w83l785ts_update_device, %function
w83l785ts_update_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	to_i2c_client
	mov	r5, r0
	bl	i2c_get_clientdata
	mov	r4, r0
	add	r8, r0, #4
	mov	r0, r8
	bl	mutex_lock
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L2
	ldr	r6, .L7
.L4:
	ldr	r1, .L7+4
	mov	r0, r5
	bl	dev_dbg
	ldr	r7, [r4, #12]
	ldr	r3, .L7+8
	ldr	r2, [r7]
	ldr	r1, [r3]
	mov	r0, r5
	bl	w83l785ts_read_value
	str	r0, [r7]
	ldr	r7, [r4, #12]
	ldr	r3, .L7+12
	ldr	r2, [r7, #4]
	ldr	r1, [r3]
	mov	r0, r5
	bl	w83l785ts_read_value
	mov	r3, #1
	ldr	r2, [r6]
	str	r0, [r7, #4]
	str	r2, [r4, #8]
	str	r3, [r4]
.L3:
	mov	r0, r8
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, .L7+16
	ldr	r3, [r4, #8]
	ldr	r1, [r2]
	ldr	r6, .L7
	add	r1, r3, r1, lsl #1
	ldr	r0, [r6]
	bl	time_after
	cmp	r0, #0
	bne	.L4
	b	.L3
.L8:
	.align	2
.L7:
	.word	jiffies
	.word	.LC0
	.word	W83L785TS_REG_TEMP
	.word	W83L785TS_REG_TEMP_OVER
	.word	HZ
	.size	w83l785ts_update_device, .-w83l785ts_update_device
	.comm	jiffies,4,4
	.comm	W83L785TS_REG_TEMP_OVER,4,4
	.comm	W83L785TS_REG_TEMP,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
