	.file	"extr_therm_windtunnel.c_tune_fan.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CPU-temp: "
.LC1:
	.string	", Case: "
.LC2:
	.string	",  Fan: %d (tuned %+d)\n"
	.text
	.p2align 4
	.type	tune_fan, @function
tune_fan:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	lea	edx, 7[0+rdi*8]
	mov	ebx, edi
	mov	edi, DWORD PTR x[rip+24]
	mov	ecx, 1
	mov	esi, 37
	call	write_reg@PLT
	mov	edi, DWORD PTR x[rip+24]
	mov	ecx, 1
	xor	edx, edx
	mov	esi, 32
	call	write_reg@PLT
	mov	rsi, QWORD PTR x[rip+16]
	lea	rdi, .LC0[rip]
	call	print_temp@PLT
	mov	rsi, QWORD PTR x[rip+8]
	test	rsi, rsi
	jne	.L8
.L2:
	mov	edx, DWORD PTR x[rip]
	mov	esi, 11
	lea	rdi, .LC2[rip]
	sub	esi, ebx
	sub	edx, ebx
	call	printk@PLT
	mov	DWORD PTR x[rip], ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	print_temp@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	tune_fan, .-tune_fan
	.comm	x,32,32
	.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_therm_windtunnel.c_tune_fan.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CPU-temp: \000"
	.align	2
.LC1:
	.ascii	", Case: \000"
	.align	2
.LC2:
	.ascii	",  Fan: %d (tuned %+d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tune_fan, %function
tune_fan:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L9
	lsl	r2, r0, #3
	mov	r3, #1
	mov	r1, #37
	orr	r2, r2, #7
	mov	r5, r0
	ldr	r0, [r4, #12]
	bl	write_reg
	mov	r3, #1
	mov	r2, #0
	mov	r1, #32
	ldr	r0, [r4, #12]
	bl	write_reg
	ldr	r1, [r4, #8]
	ldr	r0, .L9+4
	bl	print_temp
	ldr	r1, [r4, #4]
	cmp	r1, #0
	bne	.L8
.L2:
	ldr	r2, [r4]
	ldr	r0, .L9+8
	rsb	r1, r5, #11
	sub	r2, r2, r5
	bl	printk
	str	r5, [r4]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r0, .L9+12
	bl	print_temp
	b	.L2
.L10:
	.align	2
.L9:
	.word	x
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	tune_fan, .-tune_fan
	.comm	x,16,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
