	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tulip_set_power_state
_tulip_set_power_state:                 ## @tulip_set_power_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_HAS_ACPI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_CFDD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-36(%rbp), %eax
	movq	_CFDD_Sleep@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_CFDD_Snooze@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	orl	%ecx, %esi
	notl	%esi
	andl	%eax, %esi
	testl	%r15d, %r15d
	cmovel	%r15d, %edx
	testl	%r14d, %r14d
	cmovnel	%ecx, %edx
	orl	%esi, %edx
	cmpl	%edx, %eax
	je	LBB0_3
## %bb.2:
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	callq	_pci_write_config_dword
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HAS_ACPI,4,2                   ## @HAS_ACPI
	.comm	_CFDD,4,2                       ## @CFDD
	.comm	_CFDD_Sleep,4,2                 ## @CFDD_Sleep
	.comm	_CFDD_Snooze,4,2                ## @CFDD_Snooze
	.no_dead_strip	_tulip_set_power_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tulip_set_power_state
_tulip_set_power_state:                 ; @tulip_set_power_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HAS_ACPI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HAS_ACPI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh3:
	adrp	x22, _CFDD@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CFDD@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _CFDD_Sleep@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CFDD_Sleep@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _CFDD_Snooze@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CFDD_Snooze@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w11, w10, w9
	bic	w11, w8, w11
	cmp	w21, #0
	csel	w10, wzr, w10, eq
	cmp	w20, #0
	csel	w9, w10, w9, eq
	orr	w2, w11, w9
	cmp	w8, w2
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
	bl	_pci_write_config_dword
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HAS_ACPI,4,2                   ; @HAS_ACPI
	.comm	_CFDD,4,2                       ; @CFDD
	.comm	_CFDD_Sleep,4,2                 ; @CFDD_Sleep
	.comm	_CFDD_Snooze,4,2                ; @CFDD_Snooze
	.no_dead_strip	_tulip_set_power_state
.subsections_via_symbols
