	.file	"extr_lm77.c_temp_store.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	temp_store, @function
temp_store:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	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	r12, rax
	call	dev_get_drvdata@PLT
	mov	rdx, rsp
	mov	esi, 10
	mov	rdi, r14
	mov	r13, QWORD PTR 16[rax]
	movsx	r12, DWORD PTR [r12]
	mov	rbx, rax
	call	kstrtol@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR LM77_TEMP_MAX[rip]
	mov	esi, DWORD PTR LM77_TEMP_MIN[rip]
	lea	r14, 8[rbx]
	mov	rdi, QWORD PTR [rsp]
	call	clamp_val@PLT
	mov	rdi, r14
	mov	QWORD PTR [rsp], rax
	call	mutex_lock@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR [rax+r12*8], rdi
	call	LM77_TEMP_TO_REG@PLT
	mov	rdi, r13
	mov	edx, eax
	mov	rax, QWORD PTR temp_regs[rip]
	mov	esi, DWORD PTR [rax+r12*4]
	call	lm77_write_value@PLT
	mov	rdi, r14
	call	mutex_unlock@PLT
	mov	eax, ebp
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L6
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	temp_store, .-temp_store
	.comm	temp_regs,8,8
	.comm	LM77_TEMP_MIN,4,4
	.comm	LM77_TEMP_MAX,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_lm77.c_temp_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_store, %function
temp_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, .L7
	sub	sp, sp, #8
	mov	r4, r0
	mov	r0, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	to_sensor_dev_attr
	mov	r5, r0
	mov	r0, r4
	bl	dev_get_drvdata
	mov	r4, r0
	mov	r2, sp
	mov	r0, r6
	mov	r1, #10
	ldr	r5, [r5]
	ldr	r6, [r4, #8]
	bl	kstrtol
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L7+4
	ldr	r2, .L7+8
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r0, [sp]
	bl	clamp_val
	mov	r3, r0
	add	r8, r4, #4
	mov	r0, r8
	str	r3, [sp]
	bl	mutex_lock
	ldr	r3, .L7+12
	ldr	r2, [r4]
	ldr	r0, [sp]
	ldr	r3, [r3]
	str	r0, [r2, r5, lsl #2]
	ldr	r4, [r3, r5, lsl #2]
	bl	LM77_TEMP_TO_REG
	mov	r1, r4
	mov	r2, r0
	mov	r0, r6
	bl	lm77_write_value
	mov	r0, r8
	bl	mutex_unlock
	mov	r0, r7
.L1:
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	LM77_TEMP_MIN
	.word	LM77_TEMP_MAX
	.word	temp_regs
	.size	temp_store, .-temp_store
	.comm	temp_regs,4,4
	.comm	LM77_TEMP_MIN,4,4
	.comm	LM77_TEMP_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
