	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcie_pme_probe
_pcie_pme_probe:                        ## @pcie_pme_probe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	12(%rax), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	_pcie_pme_work_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r14, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_set_service_data
	movq	8(%r14), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_pcie_pme_interrupt_enable
	movq	%r12, %rdi
	callq	_pcie_clear_root_pme_status
	movl	(%r14), %edi
	movq	_pcie_pme_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r13d, %r15d
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_4:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_pci_info
	movq	%r12, %rdi
	callq	_pcie_pme_mark_devices
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_pcie_pme_interrupt_enable
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pcie_pme_work_fn,4,2           ## @pcie_pme_work_fn
	.comm	_pcie_pme_irq,4,2               ## @pcie_pme_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCIe PME"

L_.str.1:                               ## @.str.1
	.asciz	"Signaling with IRQ %d\n"

	.no_dead_strip	_pcie_pme_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcie_pme_probe
_pcie_pme_probe:                        ; @pcie_pme_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x0, x0, #12
	bl	_spin_lock_init
	add	x0, x20, #8
Lloh3:
	adrp	x8, _pcie_pme_work_fn@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pcie_pme_work_fn@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
	str	x19, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_set_service_data
	ldr	x21, [x19, #8]
	mov	x0, x21
	mov	w1, #0
	bl	_pcie_pme_interrupt_enable
	mov	x0, x21
	bl	_pcie_clear_root_pme_status
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _pcie_pme_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pcie_pme_irq@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x19
	bl	_request_irq
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_kfree
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_4:
	ldr	w2, [x19]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_pci_info
	mov	x0, x21
	bl	_pcie_pme_mark_devices
	mov	x0, x21
	mov	w1, #1
	bl	_pcie_pme_interrupt_enable
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pcie_pme_work_fn,4,2           ; @pcie_pme_work_fn
	.comm	_pcie_pme_irq,4,2               ; @pcie_pme_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCIe PME"

l_.str.1:                               ; @.str.1
	.asciz	"Signaling with IRQ %d\n"

	.no_dead_strip	_pcie_pme_probe
.subsections_via_symbols
