	.file	"extr_w83792d.c_store_thermal_cruise.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	store_thermal_cruise, @function
store_thermal_cruise:
.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
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	to_sensor_dev_attr@PLT
	mov	rdi, rbp
	mov	ebx, DWORD PTR [rax]
	call	to_i2c_client@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	i2c_get_clientdata@PLT
	lea	rdx, 16[rsp]
	mov	esi, 10
	mov	rdi, r14
	mov	r12, rax
	call	kstrtoul@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 16[rsp]
	lea	r14, 8[r12]
	sub	ebx, 1
	mov	rdi, r14
	movsx	rbx, ebx
	mov	QWORD PTR 8[rsp], rax
	lea	r15, 0[0+rbx*4]
	call	mutex_lock@PLT
	mov	rax, QWORD PTR W83792D_REG_THERMAL[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax+rbx*4]
	call	w83792d_read_value@PLT
	mov	edi, DWORD PTR 8[rsp]
	mov	edx, 255
	xor	esi, esi
	add	r15, QWORD PTR [r12]
	mov	DWORD PTR 4[rsp], eax
	and	edi, 127
	call	clamp_val@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	rdi, rbp
	mov	DWORD PTR [r15], eax
	mov	rax, QWORD PTR [r12]
	and	edx, 128
	or	edx, DWORD PTR [rax+rbx*4]
	mov	rax, QWORD PTR W83792D_REG_THERMAL[rip]
	mov	esi, DWORD PTR [rax+rbx*4]
	call	w83792d_write_value@PLT
	mov	rdi, r14
	call	mutex_unlock@PLT
	mov	eax, r13d
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L6
	add	rsp, 40
	.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
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	store_thermal_cruise, .-store_thermal_cruise
	.comm	W83792D_REG_THERMAL,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_w83792d.c_store_thermal_cruise.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	store_thermal_cruise, %function
store_thermal_cruise:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r3
	ldr	r3, .L7
	sub	sp, sp, #12
	mov	r5, r0
	mov	r0, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	to_sensor_dev_attr
	mov	r3, r0
	mov	r0, r5
	ldr	r8, [r3]
	bl	to_i2c_client
	mov	r7, r0
	bl	i2c_get_clientdata
	mov	r2, sp
	mov	r5, r0
	mov	r1, #10
	mov	r0, r4
	bl	kstrtoul
	subs	r4, r0, #0
	bne	.L1
	ldr	r10, .L7+4
	add	r9, r5, #4
	mov	r0, r9
	ldr	fp, [sp]
	bl	mutex_lock
	ldr	r3, [r10]
	sub	r8, r8, #1
	ldr	r1, [r3, r8, lsl #2]
	mov	r0, r7
	bl	w83792d_read_value
	mov	r3, r0
	mov	r1, r4
	mov	r2, #255
	and	r0, fp, #127
	mov	r4, r3
	ldr	fp, [r5]
	bl	clamp_val
	ldr	r2, [r5]
	str	r0, [fp, r8, lsl #2]
	ldr	r3, [r10]
	ldr	r2, [r2, r8, lsl #2]
	and	r4, r4, #128
	orr	r2, r4, r2
	mov	r0, r7
	ldr	r1, [r3, r8, lsl #2]
	bl	w83792d_write_value
	mov	r0, r9
	mov	r4, r6
	bl	mutex_unlock
.L1:
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	W83792D_REG_THERMAL
	.size	store_thermal_cruise, .-store_thermal_cruise
	.comm	W83792D_REG_THERMAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
