	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcie_bw_notification_irq
_pcie_bw_notification_irq:              ## @pcie_bw_notification_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rbx
	movq	_PCI_EXP_LNKSTA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pcie_capability_read_word
	movq	_PCIBIOS_SUCCESSFUL@GOTPCREL(%rip), %rdx
	movq	_IRQ_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rdx), %eax
	jne	LBB0_3
## %bb.1:
	movq	_PCI_EXP_LNKSTA_LBMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	-20(%rbp), %edx
	je	LBB0_3
## %bb.2:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_pcie_capability_write_word
	movl	(%rbx), %edi
	movl	-20(%rbp), %esi
	callq	_pcie_update_link_speed
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_LNKSTA,4,2             ## @PCI_EXP_LNKSTA
	.comm	_PCI_EXP_LNKSTA_LBMS,4,2        ## @PCI_EXP_LNKSTA_LBMS
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ## @PCIBIOS_SUCCESSFUL
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.no_dead_strip	_pcie_bw_notification_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcie_bw_notification_irq
_pcie_bw_notification_irq:              ; @pcie_bw_notification_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x1]
Lloh0:
	adrp	x20, _PCI_EXP_LNKSTA@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCI_EXP_LNKSTA@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pcie_capability_read_word
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _PCI_EXP_LNKSTA_LBMS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCI_EXP_LNKSTA_LBMS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w2, w9, w8
Lloh5:
	adrp	x8, _PCIBIOS_SUCCESSFUL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCIBIOS_SUCCESSFUL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	ccmp	w2, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_pcie_capability_write_word
	ldr	w0, [x19]
	ldr	w1, [sp, #12]
	bl	_pcie_update_link_speed
Lloh10:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_LNKSTA,4,2             ; @PCI_EXP_LNKSTA
	.comm	_PCI_EXP_LNKSTA_LBMS,4,2        ; @PCI_EXP_LNKSTA_LBMS
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ; @PCIBIOS_SUCCESSFUL
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.no_dead_strip	_pcie_bw_notification_irq
.subsections_via_symbols
