	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_check_pme_status           ## -- Begin function pci_check_pme_status
	.p2align	4, 0x90
_pci_check_pme_status:                  ## @pci_check_pme_status
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ebx
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movq	_PCI_PM_CTRL@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	leaq	-28(%rbp), %rdx
	movl	%ebx, %esi
	callq	_pci_read_config_word
	movl	-28(%rbp), %eax
	movq	_PCI_PM_CTRL_PME_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_6
## %bb.2:
	orl	%eax, %edx
	movl	%edx, -28(%rbp)
	movq	_PCI_PM_CTRL_PME_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edx, %eax
	je	LBB0_3
## %bb.4:
	notl	%eax
	andl	%eax, %edx
	movl	%edx, -28(%rbp)
	movl	$1, %r15d
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pci_write_config_word
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_PM_CTRL,4,2                ## @PCI_PM_CTRL
	.comm	_PCI_PM_CTRL_PME_STATUS,4,2     ## @PCI_PM_CTRL_PME_STATUS
	.comm	_PCI_PM_CTRL_PME_ENABLE,4,2     ## @PCI_PM_CTRL_PME_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_check_pme_status           ; -- Begin function pci_check_pme_status
	.p2align	2
_pci_check_pme_status:                  ; @pci_check_pme_status
	.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]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, _PCI_PM_CTRL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_PM_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w20, w9, w8
	add	x2, sp, #12
	mov	x1, x20
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _PCI_PM_CTRL_PME_STATUS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_PM_CTRL_PME_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	orr	w2, w9, w8
	str	w2, [sp, #12]
Lloh6:
	adrp	x8, _PCI_PM_CTRL_PME_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_PM_CTRL_PME_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_5
; %bb.3:
	bic	w2, w2, w8
	str	w2, [sp, #12]
	mov	w21, #1
	b	LBB0_6
LBB0_4:
	mov	w21, #0
	b	LBB0_7
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_write_config_word
LBB0_7:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_PM_CTRL,4,2                ; @PCI_PM_CTRL
	.comm	_PCI_PM_CTRL_PME_STATUS,4,2     ; @PCI_PM_CTRL_PME_STATUS
	.comm	_PCI_PM_CTRL_PME_ENABLE,4,2     ; @PCI_PM_CTRL_PME_ENABLE
.subsections_via_symbols
