	.file	"extr_ad7418.c_ad7418_update_device.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ad7418_update_device, @function
ad7418_update_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	dev_get_drvdata@PLT
	lea	r13, 32[rax]
	mov	rbx, rax
	mov	rbp, QWORD PTR 48[rax]
	mov	rdi, r13
	call	mutex_lock@PLT
	movsx	rsi, DWORD PTR HZ[rip]
	mov	rax, QWORD PTR 40[rbx]
	mov	rdi, QWORD PTR jiffies[rip]
	add	rax, rsi
	mov	rdx, rsi
	shr	esi, 31
	add	esi, edx
	sar	esi
	movsx	rsi, esi
	add	rsi, rax
	call	time_after@PLT
	test	rax, rax
	jne	.L2
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jne	.L3
.L2:
	mov	esi, DWORD PTR AD7418_REG_CONF[rip]
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
	mov	edx, DWORD PTR AD7418_CH_TEMP[rip]
	mov	r14d, eax
	mov	esi, DWORD PTR AD7418_REG_CONF[rip]
	mov	rdi, rbp
	and	r14d, 31
	or	edx, r14d
	call	i2c_smbus_write_byte_data@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
	mov	edi, 30
	xor	r15d, r15d
	call	udelay@PLT
.L5:
	mov	rax, QWORD PTR AD7418_REG_TEMP[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+r15]
	call	i2c_smbus_read_word_swapped@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR [rax+r15], r12d
	add	r15, 4
	cmp	r15, 12
	jne	.L5
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	jle	.L6
	xor	r15d, r15d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, 15
	call	udelay@PLT
	mov	esi, DWORD PTR AD7418_REG_ADC[rip]
	mov	rdi, rbp
	call	i2c_smbus_read_word_swapped@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
	mov	eax, r15d
	mov	rdx, QWORD PTR 24[rbx]
	add	r15d, 1
	not	eax
	add	eax, DWORD PTR 16[rbx]
	cdqe
	mov	DWORD PTR [rdx+rax*4], r12d
	cmp	DWORD PTR 16[rbx], r15d
	jle	.L6
.L7:
	mov	edi, 4
	sub	edi, r15d
	call	AD7418_REG_ADC_CH@PLT
	mov	esi, DWORD PTR AD7418_REG_CONF[rip]
	mov	rdi, rbp
	or	eax, r14d
	mov	edx, eax
	call	i2c_smbus_write_byte_data@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L13
	.p2align 4,,10
	.p2align 3
.L4:
	mov	DWORD PTR [rbx], 0
	mov	rdi, r13
	call	mutex_unlock@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR AD7418_REG_CONF[rip]
	mov	edx, r14d
	mov	rdi, rbp
	call	i2c_smbus_write_word_swapped@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
	mov	rax, QWORD PTR jiffies[rip]
	mov	DWORD PTR [rbx], 1
	mov	QWORD PTR 40[rbx], rax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r13
	xor	r12d, r12d
	call	mutex_unlock@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ad7418_update_device, .-ad7418_update_device
	.comm	jiffies,8,8
	.comm	HZ,4,4
	.comm	AD7418_REG_TEMP,8,8
	.comm	AD7418_REG_CONF,4,4
	.comm	AD7418_REG_ADC,4,4
	.comm	AD7418_CH_TEMP,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_ad7418.c_ad7418_update_device.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad7418_update_device, %function
ad7418_update_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	bl	dev_get_drvdata
	mov	r5, r0
	add	r8, r0, #16
	mov	r0, r8
	ldr	r6, [r5, #24]
	bl	mutex_lock
	ldr	r3, .L14
	ldr	r1, [r5, #20]
	ldr	r3, [r3]
	ldr	r10, .L14+4
	add	r1, r3, r1
	add	r3, r3, r3, lsr #31
	ldr	r0, [r10]
	add	r1, r1, r3, asr #1
	bl	time_after
	cmp	r0, #0
	bne	.L2
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r7, .L14+8
	mov	r0, r6
	ldr	r1, [r7]
	bl	i2c_smbus_read_byte_data
	subs	r4, r0, #0
	blt	.L4
	ldr	r3, .L14+12
	and	r9, r4, #31
	ldr	r2, [r3]
	mov	r0, r6
	ldr	r1, [r7]
	orr	r2, r9, r2
	bl	i2c_smbus_write_byte_data
	subs	r4, r0, #0
	blt	.L4
	mov	fp, #0
	mov	r0, #30
	bl	udelay
	ldr	r3, .L14+16
.L5:
	ldr	r2, [r3]
	mov	r0, r6
	ldr	r1, [r2, fp]
	bl	i2c_smbus_read_word_swapped
	subs	r4, r0, #0
	blt	.L4
	ldr	r2, [r5, #4]
	ldr	r3, .L14+16
	str	r4, [r2, fp]
	add	fp, fp, #4
	cmp	fp, #12
	bne	.L5
	ldr	r3, [r5, #8]
	cmp	r3, #0
	ble	.L6
	mov	fp, #0
	b	.L7
.L13:
	mov	r0, #15
	bl	udelay
	ldr	r3, .L14+20
	mov	r0, r6
	ldr	r1, [r3]
	bl	i2c_smbus_read_word_swapped
	subs	r4, r0, #0
	blt	.L4
	ldr	r2, [r5, #8]
	ldr	r1, [r5, #12]
	sub	r2, r2, #1
	sub	r2, r2, fp
	str	r4, [r1, r2, lsl #2]
	ldr	r2, [r5, #8]
	add	fp, fp, #1
	cmp	r2, fp
	ble	.L6
.L7:
	rsb	r0, fp, #4
	ldr	r4, [r7]
	bl	AD7418_REG_ADC_CH
	mov	r1, r4
	orr	r2, r0, r9
	mov	r0, r6
	bl	i2c_smbus_write_byte_data
	subs	r4, r0, #0
	bge	.L13
.L4:
	mov	r3, #0
	mov	r0, r8
	str	r3, [r5]
	bl	mutex_unlock
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r2, r9
	mov	r0, r6
	ldr	r1, [r7]
	bl	i2c_smbus_write_word_swapped
	subs	r4, r0, #0
	blt	.L4
	mov	r2, #1
	ldr	r3, [r10]
	str	r2, [r5]
	str	r3, [r5, #20]
.L3:
	mov	r4, #0
	mov	r0, r8
	bl	mutex_unlock
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	HZ
	.word	jiffies
	.word	AD7418_REG_CONF
	.word	AD7418_CH_TEMP
	.word	AD7418_REG_TEMP
	.word	AD7418_REG_ADC
	.size	ad7418_update_device, .-ad7418_update_device
	.comm	jiffies,4,4
	.comm	HZ,4,4
	.comm	AD7418_REG_TEMP,4,4
	.comm	AD7418_REG_CONF,4,4
	.comm	AD7418_REG_ADC,4,4
	.comm	AD7418_CH_TEMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
