	.file	"extr_ds1621.c_ds1621_update_client.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Starting ds1621 update\n"
	.text
	.p2align 4
	.type	ds1621_update_client, @function
ds1621_update_client:
.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	rbp, rax
	call	i2c_get_clientdata@PLT
	lea	r13, 4[rax]
	mov	r12, rax
	mov	rdi, r13
	call	mutex_lock@PLT
	movsx	rsi, DWORD PTR HZ[rip]
	mov	rax, QWORD PTR 8[r12]
	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	eax, DWORD PTR [r12]
	test	eax, eax
	jne	.L3
.L2:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	ebx, ebx
	call	dev_dbg@PLT
	mov	esi, DWORD PTR DS1621_REG_CONF[rip]
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	mov	DWORD PTR 16[r12], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 24[r12]
	mov	rdi, rbp
	lea	r14, [rax+rbx*4]
	mov	rax, QWORD PTR DS1621_REG_TEMP[rip]
	mov	esi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	ds1621_read_temp@PLT
	mov	DWORD PTR [r14], eax
.L4:
	mov	rdi, QWORD PTR 24[r12]
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jg	.L5
	mov	rax, QWORD PTR 24[r12]
	mov	esi, DWORD PTR 16[r12]
	mov	ecx, DWORD PTR [rax]
	mov	edi, DWORD PTR 8[rax]
	cmp	ecx, DWORD PTR 4[rax]
	jle	.L6
	mov	edx, DWORD PTR DS1621_ALARM_TEMP_LOW[rip]
	not	edx
	and	edx, esi
	cmp	ecx, edi
	jl	.L9
.L7:
	cmp	edx, esi
	je	.L8
	mov	esi, DWORD PTR DS1621_REG_CONF[rip]
	mov	rdi, rbp
	call	i2c_smbus_write_byte_data@PLT
.L8:
	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
	pop	rbx
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	cmp	ecx, edi
	jge	.L8
	mov	edx, esi
.L9:
	mov	eax, DWORD PTR DS1621_ALARM_TEMP_HIGH[rip]
	not	eax
	and	edx, eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	ds1621_update_client, .-ds1621_update_client
	.comm	jiffies,8,8
	.comm	HZ,4,4
	.comm	DS1621_REG_TEMP,8,8
	.comm	DS1621_REG_CONF,4,4
	.comm	DS1621_ALARM_TEMP_LOW,4,4
	.comm	DS1621_ALARM_TEMP_HIGH,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_ds1621.c_ds1621_update_client.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Starting ds1621 update\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ds1621_update_client, %function
ds1621_update_client:
	@ 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	to_i2c_client
	mov	r6, r0
	bl	i2c_get_clientdata
	mov	r5, r0
	add	r8, r0, #4
	mov	r0, r8
	bl	mutex_lock
	ldr	r3, .L14
	ldr	r1, [r5, #8]
	ldr	r3, [r3]
	ldr	r9, .L14+4
	add	r1, r3, r1
	add	r3, r3, r3, lsr #31
	ldr	r0, [r9]
	add	r1, r1, r3, asr #1
	bl	time_after
	cmp	r0, #0
	bne	.L2
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r10, .L14+8
	ldr	r1, .L14+12
	mov	r0, r6
	bl	dev_dbg
	mov	r0, r6
	ldr	r1, [r10]
	bl	i2c_smbus_read_byte_data
	mov	r4, #0
	ldr	r7, .L14+16
	str	r0, [r5, #12]
	b	.L4
.L5:
	ldr	r3, [r7]
	mov	r0, r6
	ldr	r1, [r3, r4, lsl #2]
	ldr	fp, [r5, #16]
	bl	ds1621_read_temp
	str	r0, [fp, r4, lsl #2]
	add	r4, r4, #1
.L4:
	ldr	r0, [r5, #16]
	bl	ARRAY_SIZE
	cmp	r0, r4
	bgt	.L5
	ldr	r3, [r5, #16]
	ldr	r1, [r5, #12]
	ldr	r2, [r3]
	ldmib	r3, {r0, r3}
	cmp	r2, r0
	ble	.L6
	ldr	r0, .L14+20
	cmp	r2, r3
	ldr	r2, [r0]
	bic	r2, r1, r2
	blt	.L9
.L7:
	cmp	r2, r1
	beq	.L8
	mov	r0, r6
	ldr	r1, [r10]
	bl	i2c_smbus_write_byte_data
.L8:
	mov	r2, #1
	ldr	r3, [r9]
	str	r2, [r5]
	str	r3, [r5, #8]
.L3:
	mov	r0, r8
	bl	mutex_unlock
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	cmp	r2, r3
	bge	.L8
	mov	r2, r1
.L9:
	ldr	r3, .L14+24
	ldr	r3, [r3]
	bic	r2, r2, r3
	b	.L7
.L15:
	.align	2
.L14:
	.word	HZ
	.word	jiffies
	.word	DS1621_REG_CONF
	.word	.LC0
	.word	DS1621_REG_TEMP
	.word	DS1621_ALARM_TEMP_LOW
	.word	DS1621_ALARM_TEMP_HIGH
	.size	ds1621_update_client, .-ds1621_update_client
	.comm	jiffies,4,4
	.comm	HZ,4,4
	.comm	DS1621_REG_TEMP,4,4
	.comm	DS1621_REG_CONF,4,4
	.comm	DS1621_ALARM_TEMP_LOW,4,4
	.comm	DS1621_ALARM_TEMP_HIGH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
