	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_select_fan1
_fan_select_fan1:                       ## @fan_select_fan1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_tp_features@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_fan_select_offset@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-12(%rbp), %rsi
	callq	_ec_read
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movl	$254, %esi
	andl	-12(%rbp), %esi
	movl	%esi, -12(%rbp)
	movl	(%rbx), %edi
	callq	_ec_write
	testq	%rax, %rax
	js	LBB0_5
LBB0_3:
	movl	$1, %eax
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tp_features,8,3                ## @tp_features
	.comm	_fan_select_offset,4,2          ## @fan_select_offset
	.no_dead_strip	_fan_select_fan1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan_select_fan1
_fan_select_fan1:                       ; @fan_select_fan1
	.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
Lloh0:
	adrp	x8, _tp_features@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tp_features@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x19, _fan_select_offset@GOTPAGE
Lloh4:
	ldr	x19, [x19, _fan_select_offset@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_ec_read
	tbnz	x0, #63, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	and	w1, w8, #0xfe
	str	w1, [sp, #12]
	ldr	w0, [x19]
	bl	_ec_write
	tbnz	x0, #63, LBB0_4
LBB0_3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_tp_features,8,3                ; @tp_features
	.comm	_fan_select_offset,4,2          ; @fan_select_offset
	.no_dead_strip	_fan_select_fan1
.subsections_via_symbols
