	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_set_cur_state
_fan_set_cur_state:                     ## @fan_set_cur_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$1, %rsi
	ja	LBB0_6
## %bb.1:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	(%rax), %edi
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.4:
	movq	_ACPI_STATE_D3@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_ACPI_STATE_D0@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	popq	%rbp
	jmp	_acpi_bus_set_power             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_STATE_D0,4,2              ## @ACPI_STATE_D0
	.comm	_ACPI_STATE_D3,4,2              ## @ACPI_STATE_D3
	.no_dead_strip	_fan_set_cur_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan_set_cur_state
_fan_set_cur_state:                     ; @fan_set_cur_state
	.cfi_startproc
; %bb.0:
	cmp	x1, #1
	b.hi	LBB0_3
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, _ACPI_STATE_D0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_STATE_D0@GOTPAGEOFF]
Lloh2:
	adrp	x10, _ACPI_STATE_D3@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ACPI_STATE_D3@GOTPAGEOFF]
	ldr	w0, [x8]
	cmp	x1, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	b	_acpi_bus_set_power
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_STATE_D0,4,2              ; @ACPI_STATE_D0
	.comm	_ACPI_STATE_D3,4,2              ; @ACPI_STATE_D3
	.no_dead_strip	_fan_set_cur_state
.subsections_via_symbols
