	.file	"extr_acerhdf.c_acerhdf_change_fanstate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"OFF"
.LC1:
	.string	"ON"
.LC2:
	.string	"fan %s\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"invalid fan state %d requested, setting to auto!\n"
	.text
	.p2align 4
	.type	acerhdf_change_fanstate, @function
acerhdf_change_fanstate:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR verbose[rip], 0
	mov	eax, DWORD PTR ACERHDF_FAN_OFF[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	je	.L2
	cmp	eax, edi
	lea	rsi, .LC0[rip]
	lea	rax, .LC1[rip]
	cmovne	rsi, rax
	lea	rdi, .LC2[rip]
	call	pr_notice@PLT
	mov	eax, DWORD PTR ACERHDF_FAN_OFF[rip]
.L2:
	cmp	ebp, eax
	je	.L4
	cmp	DWORD PTR ACERHDF_FAN_AUTO[rip], ebp
	jne	.L10
.L5:
	mov	rdx, QWORD PTR bios_cfg[rip]
	mov	DWORD PTR fanstate[rip], ebp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	movzx	esi, BYTE PTR 5[rdx]
	mov	edi, DWORD PTR [rdx]
	jmp	ec_write@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, ebp
	lea	rdi, .LC3[rip]
	call	pr_err@PLT
	mov	ebp, DWORD PTR ACERHDF_FAN_AUTO[rip]
	cmp	DWORD PTR ACERHDF_FAN_OFF[rip], ebp
	jne	.L5
	mov	eax, ebp
.L4:
	mov	rdx, QWORD PTR bios_cfg[rip]
	mov	ebp, eax
	mov	DWORD PTR fanstate[rip], ebp
	pop	rbp
	.cfi_def_cfa_offset 8
	movzx	esi, BYTE PTR 4[rdx]
	mov	edi, DWORD PTR [rdx]
	jmp	ec_write@PLT
	.cfi_endproc
.LFE0:
	.size	acerhdf_change_fanstate, .-acerhdf_change_fanstate
	.comm	verbose,8,8
	.comm	fanstate,4,4
	.comm	bios_cfg,8,8
	.comm	ACERHDF_FAN_OFF,4,4
	.comm	ACERHDF_FAN_AUTO,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_acerhdf.c_acerhdf_change_fanstate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"OFF\000"
	.align	2
.LC1:
	.ascii	"ON\000"
	.align	2
.LC2:
	.ascii	"fan %s\012\000"
	.align	2
.LC3:
	.ascii	"invalid fan state %d requested, setting to auto!\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	acerhdf_change_fanstate, %function
acerhdf_change_fanstate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	ldr	r5, .L14+4
	cmp	r3, #0
	mov	r4, r0
	ldr	r3, [r5]
	beq	.L2
	ldr	r2, .L14+8
	cmp	r4, r3
	ldr	r1, .L14+12
	ldr	r0, .L14+16
	movne	r1, r2
	bl	pr_notice
	ldr	r3, [r5]
.L2:
	cmp	r4, r3
	beq	.L4
	ldr	r6, .L14+20
	ldr	r3, [r6]
	cmp	r3, r4
	bne	.L13
.L5:
	ldr	r3, .L14+24
	ldr	r3, [r3]
	ldrb	r1, [r3, #5]	@ zero_extendqisi2
.L6:
	ldr	r2, .L14+28
	ldr	r0, [r3]
	str	r4, [r2]
	pop	{r4, r5, r6, lr}
	b	ec_write
.L13:
	mov	r1, r4
	ldr	r0, .L14+32
	bl	pr_err
	ldr	r4, [r6]
	ldr	r3, [r5]
	cmp	r3, r4
	bne	.L5
	mov	r3, r4
.L4:
	ldr	r2, .L14+24
	mov	r4, r3
	ldr	r3, [r2]
	ldrb	r1, [r3, #4]	@ zero_extendqisi2
	b	.L6
.L15:
	.align	2
.L14:
	.word	verbose
	.word	ACERHDF_FAN_OFF
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	ACERHDF_FAN_AUTO
	.word	bios_cfg
	.word	fanstate
	.word	.LC3
	.size	acerhdf_change_fanstate, .-acerhdf_change_fanstate
	.comm	verbose,4,4
	.comm	fanstate,4,4
	.comm	bios_cfg,4,4
	.comm	ACERHDF_FAN_OFF,4,4
	.comm	ACERHDF_FAN_AUTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
