	.file	"extr_adt7470.c_temp_max_store.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	temp_max_store, @function
temp_max_store:
.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
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	to_sensor_dev_attr@PLT
	mov	rdi, r13
	mov	r14, rax
	call	dev_get_drvdata@PLT
	mov	rdx, rsp
	mov	esi, 10
	mov	rdi, r12
	mov	r13, QWORD PTR 16[rax]
	mov	rbx, rax
	call	kstrtol@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR EINVAL[rip]
	neg	rax
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rsp]
	mov	edx, 127000
	mov	esi, -128000
	lea	r12, 8[rbx]
	call	clamp_val@PLT
	mov	esi, 1000
	mov	rdi, rax
	mov	QWORD PTR [rsp], rax
	call	DIV_ROUND_CLOSEST@PLT
	mov	rdi, r12
	mov	QWORD PTR [rsp], rax
	call	mutex_lock@PLT
	mov	r15, QWORD PTR [rsp]
	mov	rdx, QWORD PTR [r14]
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR [rax+rdx*8], r15
	mov	rdi, QWORD PTR [r14]
	call	ADT7470_TEMP_MAX_REG@PLT
	mov	rdx, r15
	mov	rdi, r13
	mov	esi, eax
	call	i2c_smbus_write_byte_data@PLT
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	rax, rbp
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	temp_max_store, .-temp_max_store
	.comm	EINVAL,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_adt7470.c_temp_max_store.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	temp_max_store, %function
temp_max_store:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r3
	ldr	r3, .L8
	sub	sp, sp, #8
	mov	r4, r0
	mov	r0, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	to_sensor_dev_attr
	mov	r6, r0
	mov	r0, r4
	bl	dev_get_drvdata
	mov	r4, r0
	mov	r2, sp
	mov	r0, r5
	mov	r1, #10
	ldr	r5, [r4, #8]
	bl	kstrtol
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L8+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, .L8+8
	ldr	r1, .L8+12
	ldr	r0, [sp]
	bl	clamp_val
	mov	r1, #1000
	str	r0, [sp]
	bl	DIV_ROUND_CLOSEST
	mov	r3, r0
	add	r8, r4, #4
	mov	r0, r8
	str	r3, [sp]
	bl	mutex_lock
	ldr	r3, [r4]
	ldr	r1, [sp]
	ldr	r2, [r6]
	str	r1, [r3, r2, lsl #2]
	ldr	r0, [r6]
	bl	ADT7470_TEMP_MAX_REG
	ldr	r2, [sp]
	mov	r1, r0
	mov	r0, r5
	bl	i2c_smbus_write_byte_data
	mov	r0, r8
	bl	mutex_unlock
	mov	r0, r7
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	EINVAL
	.word	127000
	.word	-128000
	.size	temp_max_store, .-temp_max_store
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
