	.file	"extr_ltc4245.c_ltc4245_update_device.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ltc4245_update_device, @function
ltc4245_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
	mov	r13, rdi
	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	r14, 4[rax]
	mov	r12, rax
	mov	rbp, QWORD PTR 32[rax]
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, QWORD PTR HZ[rip]
	add	rsi, QWORD PTR 8[r12]
	call	time_after@PLT
	test	rax, rax
	jne	.L4
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jne	.L5
.L4:
	mov	rdi, QWORD PTR 24[r12]
	xor	ebx, ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	QWORD PTR [rdi+rbx*8], 0
.L7:
	add	rbx, 1
.L3:
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jle	.L15
	mov	esi, ebx
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	mov	rdi, rax
	mov	r15, rax
	shr	rdi, 63
	call	unlikely@PLT
	mov	rdi, QWORD PTR 24[r12]
	test	rax, rax
	jne	.L16
	mov	QWORD PTR [rdi+rbx*8], r15
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r13
	call	ltc4245_update_gpios@PLT
	mov	rax, QWORD PTR jiffies[rip]
	mov	DWORD PTR [r12], 1
	mov	QWORD PTR 8[r12], rax
.L5:
	mov	rdi, r14
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L15:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[r12]
	xor	ebx, ebx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L18:
	mov	QWORD PTR [rdi+rbx*8], 0
.L11:
	add	rbx, 1
.L9:
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jle	.L17
	lea	esi, 16[rbx]
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	mov	rdi, rax
	mov	r15, rax
	shr	rdi, 63
	call	unlikely@PLT
	mov	rdi, QWORD PTR 16[r12]
	test	rax, rax
	jne	.L18
	mov	QWORD PTR [rdi+rbx*8], r15
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	ltc4245_update_device, .-ltc4245_update_device
	.comm	jiffies,8,8
	.comm	HZ,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_ltc4245.c_ltc4245_update_device.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ltc4245_update_device, %function
ltc4245_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}
	mov	r8, r0
	bl	dev_get_drvdata
	mov	r6, r0
	add	r9, r0, #4
	mov	r0, r9
	ldr	r7, [r6, #20]
	bl	mutex_lock
	ldr	r3, .L18
	ldr	r1, [r6, #8]
	ldr	r3, [r3]
	ldr	r10, .L18+4
	add	r1, r1, r3
	ldr	r0, [r10]
	bl	time_after
	cmp	r0, #0
	bne	.L4
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L5
.L4:
	mov	r4, #0
	ldr	r0, [r6, #16]
	mov	fp, r4
	b	.L3
.L8:
	mov	r1, r4
	mov	r0, r7
	bl	i2c_smbus_read_byte_data
	mov	r5, r0
	lsr	r0, r0, #31
	bl	unlikely
	cmp	r0, #0
	ldr	r0, [r6, #16]
	strne	fp, [r0, r4, lsl #2]
	streq	r5, [r0, r4, lsl #2]
	add	r4, r4, #1
.L3:
	bl	ARRAY_SIZE
	cmp	r0, r4
	bgt	.L8
	mov	r4, #0
	ldr	r0, [r6, #12]
	mov	fp, r4
	b	.L9
.L12:
	mov	r0, r7
	bl	i2c_smbus_read_byte_data
	mov	r5, r0
	lsr	r0, r0, #31
	bl	unlikely
	cmp	r0, #0
	ldr	r0, [r6, #12]
	strne	fp, [r0, r4, lsl #2]
	streq	r5, [r0, r4, lsl #2]
	add	r4, r4, #1
.L9:
	bl	ARRAY_SIZE
	cmp	r0, r4
	add	r1, r4, #16
	bgt	.L12
	mov	r0, r8
	bl	ltc4245_update_gpios
	mov	r2, #1
	ldr	r3, [r10]
	str	r2, [r6]
	str	r3, [r6, #8]
.L5:
	mov	r0, r9
	bl	mutex_unlock
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	HZ
	.word	jiffies
	.size	ltc4245_update_device, .-ltc4245_update_device
	.comm	jiffies,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
