	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeepc_set_fan_ctrl
_eeepc_set_fan_ctrl:                    ## @eeepc_set_fan_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movl	$0, -20(%rbp)
	movq	_EEEPC_EC_FAN_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	-20(%rbp), %rsi
	callq	_ec_read
	movq	_EEEPC_FAN_CTRL_MANUAL@GOTPCREL(%rip), %rax
	movq	_EEEPC_EC_FAN_CTRL_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	orl	-20(%rbp), %esi
	jmp	LBB0_3
LBB0_2:
	notl	%esi
	andl	-20(%rbp), %esi
LBB0_3:
	movl	%esi, -20(%rbp)
	movl	(%r14), %edi
	callq	_ec_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEEPC_EC_FAN_CTRL,4,2          ## @EEEPC_EC_FAN_CTRL
	.comm	_EEEPC_FAN_CTRL_MANUAL,4,2      ## @EEEPC_FAN_CTRL_MANUAL
	.comm	_EEEPC_EC_FAN_CTRL_BIT,4,2      ## @EEEPC_EC_FAN_CTRL_BIT
	.no_dead_strip	_eeepc_set_fan_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeepc_set_fan_ctrl
_eeepc_set_fan_ctrl:                    ; @eeepc_set_fan_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x20, _EEEPC_EC_FAN_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EEEPC_EC_FAN_CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
	add	x1, sp, #12
	bl	_ec_read
Lloh2:
	adrp	x8, _EEEPC_FAN_CTRL_MANUAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EEEPC_FAN_CTRL_MANUAL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
Lloh5:
	adrp	x8, _EEEPC_EC_FAN_CTRL_BIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEEPC_EC_FAN_CTRL_BIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w9, w19
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [sp, #12]
	orr	w1, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w9, [sp, #12]
	bic	w1, w9, w8
LBB0_3:
	str	w1, [sp, #12]
	ldr	w0, [x20]
	bl	_ec_write
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EEEPC_EC_FAN_CTRL,4,2          ; @EEEPC_EC_FAN_CTRL
	.comm	_EEEPC_FAN_CTRL_MANUAL,4,2      ; @EEEPC_FAN_CTRL_MANUAL
	.comm	_EEEPC_EC_FAN_CTRL_BIT,4,2      ; @EEEPC_EC_FAN_CTRL_BIT
	.no_dead_strip	_eeepc_set_fan_ctrl
.subsections_via_symbols
