	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_update_desired_level
_fan_update_desired_level:              ## @fan_update_desired_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TP_EC_FAN_AUTO@GOTPCREL(%rip), %rax
	movq	_TP_EC_FAN_FULLSPEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%edi, %ecx
	je	LBB0_1
## %bb.2:
	popq	%rbp
	retq
LBB0_1:
	cmpl	$7, %edi
	movl	$7, %eax
	cmovll	%edi, %eax
	movq	_fan_control_desired_level@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TP_EC_FAN_AUTO,4,2             ## @TP_EC_FAN_AUTO
	.comm	_TP_EC_FAN_FULLSPEED,4,2        ## @TP_EC_FAN_FULLSPEED
	.comm	_fan_control_desired_level,4,2  ## @fan_control_desired_level
	.no_dead_strip	_fan_update_desired_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan_update_desired_level
_fan_update_desired_level:              ; @fan_update_desired_level
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _TP_EC_FAN_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TP_EC_FAN_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TP_EC_FAN_FULLSPEED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TP_EC_FAN_FULLSPEED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ret
LBB0_2:
	mov	w8, #7
	cmp	w0, #7
	csel	w8, w0, w8, lt
Lloh6:
	adrp	x9, _fan_control_desired_level@GOTPAGE
Lloh7:
	ldr	x9, [x9, _fan_control_desired_level@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TP_EC_FAN_AUTO,4,2             ; @TP_EC_FAN_AUTO
	.comm	_TP_EC_FAN_FULLSPEED,4,2        ; @TP_EC_FAN_FULLSPEED
	.comm	_fan_control_desired_level,4,2  ; @fan_control_desired_level
	.no_dead_strip	_fan_update_desired_level
.subsections_via_symbols
