	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcie_pme_irq
_pcie_pme_irq:                          ## @pcie_pme_irq
	.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
	movq	%rsi, %rdi
	movq	(%rsi), %r15
	callq	_get_service_data
	movq	%rax, %r14
	leaq	4(%rax), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_PCI_EXP_RTSTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pcie_capability_read_dword
	movl	-28(%rbp), %eax
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	movq	_PCI_EXP_RTSTA_PME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pcie_pme_interrupt_enable
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_schedule_work
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_RTSTA,4,2              ## @PCI_EXP_RTSTA
	.comm	_PCI_EXP_RTSTA_PME,4,2          ## @PCI_EXP_RTSTA_PME
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_pcie_pme_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcie_pme_irq
_pcie_pme_irq:                          ; @pcie_pme_irq
	.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
	mov	x0, x1
	ldr	x21, [x1]
	bl	_get_service_data
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _PCI_EXP_RTSTA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXP_RTSTA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_pcie_capability_read_dword
	ldr	w8, [sp, #12]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _PCI_EXP_RTSTA_PME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_EXP_RTSTA_PME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	w1, #0
	bl	_pcie_pme_interrupt_enable
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_schedule_work
Lloh6:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh8:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_RTSTA,4,2              ; @PCI_EXP_RTSTA
	.comm	_PCI_EXP_RTSTA_PME,4,2          ; @PCI_EXP_RTSTA_PME
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_pcie_pme_irq
.subsections_via_symbols
