	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcie_init                      ## -- Begin function pcie_init
	.p2align	4, 0x90
_pcie_init:                             ## @pcie_init
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	24(%r14), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rbx, 32(%r12)
	movq	_PCI_EXP_SLTCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pcie_capability_read_dword
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.2:
	movq	_PCI_EXP_SLTCAP_AIP@GOTPCREL(%rip), %rax
	movq	_PCI_EXP_SLTCAP_PIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, -44(%rbp)
LBB0_3:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.5:
	movq	_PCI_EXP_SLTCAP_NCCS@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %eax
	orl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	jmp	LBB0_6
LBB0_4:
	movl	-44(%rbp), %eax
LBB0_6:
	movl	%eax, (%r12)
	leaq	28(%r12), %rdi
	callq	_mutex_init
	leaq	24(%r12), %rdi
	callq	_mutex_init
	leaq	20(%r12), %rdi
	callq	_init_rwsem
	leaq	16(%r12), %rdi
	callq	_init_waitqueue_head
	leaq	12(%r12), %rdi
	callq	_init_waitqueue_head
	movq	%r12, %rdi
	addq	$8, %rdi
	movq	_pciehp_queue_pushbutton_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%r12, %rdi
	callq	_dbg_ctrl
	movq	_pci_bus_sem@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_down_read
	movq	%r15, %rdi
	callq	_list_empty
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movq	_ON_STATE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_OFF_STATE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	%rbx, %rdi
	callq	_up_read
	movq	_PCI_EXP_LNKCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pcie_capability_read_dword
	movq	_PCI_EXP_SLTSTA_ABP@GOTPCREL(%rip), %rax
	movq	_PCI_EXP_SLTSTA_PFD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_PCI_EXP_SLTSTA_MRLSC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_PCI_EXP_SLTSTA_CC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_PCI_EXP_SLTSTA@GOTPCREL(%rip), %rax
	movq	_PCI_EXP_SLTSTA_DLLSC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_PCI_EXP_SLTSTA_PDC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_pcie_capability_write_word
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_SLTCAP_PSN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%edi, %r15d
	sarl	$19, %r15d
	movq	_PCI_EXP_SLTCAP_ABP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_SLTCAP_PCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_SLTCAP_MRLSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_SLTCAP_AIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_SLTCAP_PIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_SLTCAP_HPC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_SLTCAP_HPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_SLTCAP_EIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi
	movq	_PCI_EXP_SLTCAP_NCCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
	movl	%eax, %r13d
	movl	-60(%rbp), %edi
	movq	_PCI_EXP_LNKCAP_DLLLARC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FLAG
                                        ## kill: def $eax killed $eax def $rax
	cmpq	$0, (%r14)
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rcx, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rbx
	pushq	%rax
	pushq	%r13
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_ctrl_info
	addq	$64, %rsp
	movq	%r12, %rdi
	callq	_POWER_CTRL
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	leaq	-112(%rbp), %rsi
	movq	%r12, %rdi
	callq	_pciehp_get_power_status
	movq	%r12, %rdi
	callq	_pciehp_card_present_or_link_active
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	cmpq	$0, -112(%rbp)
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_pcie_disable_notification
	movq	%r12, %rdi
	callq	_pciehp_power_off_slot
LBB0_13:
	movq	%r12, %rax
	addq	$72, %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	_PCI_EXP_SLTCAP,4,2             ## @PCI_EXP_SLTCAP
	.comm	_PCI_EXP_SLTCAP_AIP,4,2         ## @PCI_EXP_SLTCAP_AIP
	.comm	_PCI_EXP_SLTCAP_PIP,4,2         ## @PCI_EXP_SLTCAP_PIP
	.comm	_PCI_EXP_SLTCAP_NCCS,4,2        ## @PCI_EXP_SLTCAP_NCCS
	.comm	_pciehp_queue_pushbutton_work,4,2 ## @pciehp_queue_pushbutton_work
	.comm	_pci_bus_sem,4,2                ## @pci_bus_sem
	.comm	_OFF_STATE,4,2                  ## @OFF_STATE
	.comm	_ON_STATE,4,2                   ## @ON_STATE
	.comm	_PCI_EXP_LNKCAP,4,2             ## @PCI_EXP_LNKCAP
	.comm	_PCI_EXP_SLTSTA,4,2             ## @PCI_EXP_SLTSTA
	.comm	_PCI_EXP_SLTSTA_ABP,4,2         ## @PCI_EXP_SLTSTA_ABP
	.comm	_PCI_EXP_SLTSTA_PFD,4,2         ## @PCI_EXP_SLTSTA_PFD
	.comm	_PCI_EXP_SLTSTA_MRLSC,4,2       ## @PCI_EXP_SLTSTA_MRLSC
	.comm	_PCI_EXP_SLTSTA_CC,4,2          ## @PCI_EXP_SLTSTA_CC
	.comm	_PCI_EXP_SLTSTA_DLLSC,4,2       ## @PCI_EXP_SLTSTA_DLLSC
	.comm	_PCI_EXP_SLTSTA_PDC,4,2         ## @PCI_EXP_SLTSTA_PDC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Slot #%d AttnBtn%c PwrCtrl%c MRL%c AttnInd%c PwrInd%c HotPlug%c Surprise%c Interlock%c NoCompl%c LLActRep%c%s\n"

	.comm	_PCI_EXP_SLTCAP_PSN,4,2         ## @PCI_EXP_SLTCAP_PSN
	.comm	_PCI_EXP_SLTCAP_ABP,4,2         ## @PCI_EXP_SLTCAP_ABP
	.comm	_PCI_EXP_SLTCAP_PCP,4,2         ## @PCI_EXP_SLTCAP_PCP
	.comm	_PCI_EXP_SLTCAP_MRLSP,4,2       ## @PCI_EXP_SLTCAP_MRLSP
	.comm	_PCI_EXP_SLTCAP_HPC,4,2         ## @PCI_EXP_SLTCAP_HPC
	.comm	_PCI_EXP_SLTCAP_HPS,4,2         ## @PCI_EXP_SLTCAP_HPS
	.comm	_PCI_EXP_SLTCAP_EIP,4,2         ## @PCI_EXP_SLTCAP_EIP
	.comm	_PCI_EXP_LNKCAP_DLLLARC,4,2     ## @PCI_EXP_LNKCAP_DLLLARC
L_.str.1:                               ## @.str.1
	.asciz	" (with Cmd Compl erratum)"

L_.str.2:                               ## @.str.2
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcie_init                      ; -- Begin function pcie_init
	.p2align	2
_pcie_init:                             ; @pcie_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
	ldr	x20, [x0]
	ldr	x21, [x20, #24]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	str	x22, [x19, #32]
Lloh3:
	adrp	x8, _PCI_EXP_SLTCAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_EXP_SLTCAP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #60
	mov	x0, x20
	bl	_pcie_capability_read_dword
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x25, _PCI_EXP_SLTCAP_AIP@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PCI_EXP_SLTCAP_AIP@GOTPAGEOFF]
Lloh8:
	adrp	x26, _PCI_EXP_SLTCAP_PIP@GOTPAGE
Lloh9:
	ldr	x26, [x26, _PCI_EXP_SLTCAP_PIP@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [sp, #60]
	bic	w8, w9, w8
	str	w8, [sp, #60]
LBB0_3:
	ldr	x8, [x20, #8]
Lloh10:
	adrp	x9, _PCI_EXP_SLTCAP_NCCS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PCI_EXP_SLTCAP_NCCS@GOTPAGEOFF]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x9]
	ldr	w9, [sp, #60]
	orr	w8, w9, w8
	str	w8, [sp, #60]
	b	LBB0_6
LBB0_5:
	ldr	w8, [sp, #60]
LBB0_6:
	str	w8, [x19]
	add	x0, x19, #28
	bl	_mutex_init
	add	x0, x19, #24
	bl	_mutex_init
	add	x0, x19, #20
	bl	_init_rwsem
	add	x0, x19, #16
	bl	_init_waitqueue_head
	add	x0, x19, #12
	bl	_init_waitqueue_head
	add	x0, x19, #8
Lloh12:
	adrp	x8, _pciehp_queue_pushbutton_work@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pciehp_queue_pushbutton_work@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	mov	x0, x19
	bl	_dbg_ctrl
Lloh15:
	adrp	x22, _pci_bus_sem@GOTPAGE
Lloh16:
	ldr	x22, [x22, _pci_bus_sem@GOTPAGEOFF]
	mov	x0, x22
	bl	_down_read
	mov	x0, x21
	bl	_list_empty
Lloh17:
	adrp	x8, _OFF_STATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OFF_STATE@GOTPAGEOFF]
Lloh19:
	adrp	x9, _ON_STATE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ON_STATE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x22
	bl	_up_read
Lloh21:
	adrp	x8, _PCI_EXP_LNKCAP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCI_EXP_LNKCAP@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #56
	mov	x0, x20
	bl	_pcie_capability_read_dword
Lloh24:
	adrp	x8, _PCI_EXP_SLTSTA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PCI_EXP_SLTSTA@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _PCI_EXP_SLTSTA_ABP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PCI_EXP_SLTSTA_ABP@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _PCI_EXP_SLTSTA_PFD@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PCI_EXP_SLTSTA_PFD@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh33:
	adrp	x9, _PCI_EXP_SLTSTA_MRLSC@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PCI_EXP_SLTSTA_MRLSC@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _PCI_EXP_SLTSTA_CC@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PCI_EXP_SLTSTA_CC@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh39:
	adrp	x9, _PCI_EXP_SLTSTA_DLLSC@GOTPAGE
Lloh40:
	ldr	x9, [x9, _PCI_EXP_SLTSTA_DLLSC@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh42:
	adrp	x9, _PCI_EXP_SLTSTA_PDC@GOTPAGE
Lloh43:
	ldr	x9, [x9, _PCI_EXP_SLTSTA_PDC@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_pcie_capability_write_word
	ldr	w0, [sp, #60]
Lloh45:
	adrp	x8, _PCI_EXP_SLTCAP_PSN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PCI_EXP_SLTCAP_PSN@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	and	w8, w8, w0
	asr	w8, w8, #19
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
Lloh48:
	adrp	x8, _PCI_EXP_SLTCAP_ABP@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PCI_EXP_SLTCAP_ABP@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	bl	_FLAG
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	ldr	w0, [sp, #60]
Lloh51:
	adrp	x8, _PCI_EXP_SLTCAP_PCP@GOTPAGE
Lloh52:
	ldr	x8, [x8, _PCI_EXP_SLTCAP_PCP@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	bl	_FLAG
	mov	x23, x0
	ldr	w0, [sp, #60]
Lloh54:
	adrp	x8, _PCI_EXP_SLTCAP_MRLSP@GOTPAGE
Lloh55:
	ldr	x8, [x8, _PCI_EXP_SLTCAP_MRLSP@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	bl	_FLAG
	mov	x24, x0
	ldr	w0, [sp, #60]
	ldr	w1, [x25]
	bl	_FLAG
	mov	x25, x0
	ldr	w0, [sp, #60]
	ldr	w1, [x26]
	bl	_FLAG
	mov	x26, x0
	ldr	w0, [sp, #60]
Lloh57:
	adrp	x8, _PCI_EXP_SLTCAP_HPC@GOTPAGE
Lloh58:
	ldr	x8, [x8, _PCI_EXP_SLTCAP_HPC@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	bl	_FLAG
	mov	x27, x0
	ldr	w0, [sp, #60]
Lloh60:
	adrp	x8, _PCI_EXP_SLTCAP_HPS@GOTPAGE
Lloh61:
	ldr	x8, [x8, _PCI_EXP_SLTCAP_HPS@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	bl	_FLAG
	mov	x28, x0
	ldr	w0, [sp, #60]
Lloh63:
	adrp	x8, _PCI_EXP_SLTCAP_EIP@GOTPAGE
Lloh64:
	ldr	x8, [x8, _PCI_EXP_SLTCAP_EIP@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	bl	_FLAG
	mov	x21, x0
	ldr	w0, [sp, #60]
Lloh66:
	adrp	x8, _PCI_EXP_SLTCAP_NCCS@GOTPAGE
Lloh67:
	ldr	x8, [x8, _PCI_EXP_SLTCAP_NCCS@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	bl	_FLAG
	mov	x22, x0
	ldr	w0, [sp, #56]
Lloh69:
	adrp	x8, _PCI_EXP_LNKCAP_DLLLARC@GOTPAGE
Lloh70:
	ldr	x8, [x8, _PCI_EXP_LNKCAP_DLLLARC@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	bl	_FLAG
	ldr	x8, [x20]
Lloh72:
	adrp	x9, l_.str.1@PAGE
Lloh73:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh74:
	adrp	x10, l_.str.2@PAGE
Lloh75:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp, #24]
	stp	w22, w0, [sp, #12]
	stp	w28, w21, [sp, #4]
	str	w27, [sp]
Lloh76:
	adrp	x1, l_.str@PAGE
Lloh77:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	w3, w2, [sp, #40]               ; 8-byte Folded Reload
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	mov	x7, x26
	bl	_ctrl_info
	mov	x0, x19
	bl	_POWER_CTRL
	cbz	x0, LBB0_10
; %bb.7:
	add	x1, sp, #48
	mov	x0, x19
	bl	_pciehp_get_power_status
	mov	x0, x19
	bl	_pciehp_card_present_or_link_active
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_pcie_disable_notification
	mov	x0, x19
	bl	_pciehp_power_off_slot
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PCI_EXP_SLTCAP,4,2             ; @PCI_EXP_SLTCAP
	.comm	_PCI_EXP_SLTCAP_AIP,4,2         ; @PCI_EXP_SLTCAP_AIP
	.comm	_PCI_EXP_SLTCAP_PIP,4,2         ; @PCI_EXP_SLTCAP_PIP
	.comm	_PCI_EXP_SLTCAP_NCCS,4,2        ; @PCI_EXP_SLTCAP_NCCS
	.comm	_pciehp_queue_pushbutton_work,4,2 ; @pciehp_queue_pushbutton_work
	.comm	_pci_bus_sem,4,2                ; @pci_bus_sem
	.comm	_OFF_STATE,4,2                  ; @OFF_STATE
	.comm	_ON_STATE,4,2                   ; @ON_STATE
	.comm	_PCI_EXP_LNKCAP,4,2             ; @PCI_EXP_LNKCAP
	.comm	_PCI_EXP_SLTSTA,4,2             ; @PCI_EXP_SLTSTA
	.comm	_PCI_EXP_SLTSTA_ABP,4,2         ; @PCI_EXP_SLTSTA_ABP
	.comm	_PCI_EXP_SLTSTA_PFD,4,2         ; @PCI_EXP_SLTSTA_PFD
	.comm	_PCI_EXP_SLTSTA_MRLSC,4,2       ; @PCI_EXP_SLTSTA_MRLSC
	.comm	_PCI_EXP_SLTSTA_CC,4,2          ; @PCI_EXP_SLTSTA_CC
	.comm	_PCI_EXP_SLTSTA_DLLSC,4,2       ; @PCI_EXP_SLTSTA_DLLSC
	.comm	_PCI_EXP_SLTSTA_PDC,4,2         ; @PCI_EXP_SLTSTA_PDC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Slot #%d AttnBtn%c PwrCtrl%c MRL%c AttnInd%c PwrInd%c HotPlug%c Surprise%c Interlock%c NoCompl%c LLActRep%c%s\n"

	.comm	_PCI_EXP_SLTCAP_PSN,4,2         ; @PCI_EXP_SLTCAP_PSN
	.comm	_PCI_EXP_SLTCAP_ABP,4,2         ; @PCI_EXP_SLTCAP_ABP
	.comm	_PCI_EXP_SLTCAP_PCP,4,2         ; @PCI_EXP_SLTCAP_PCP
	.comm	_PCI_EXP_SLTCAP_MRLSP,4,2       ; @PCI_EXP_SLTCAP_MRLSP
	.comm	_PCI_EXP_SLTCAP_HPC,4,2         ; @PCI_EXP_SLTCAP_HPC
	.comm	_PCI_EXP_SLTCAP_HPS,4,2         ; @PCI_EXP_SLTCAP_HPS
	.comm	_PCI_EXP_SLTCAP_EIP,4,2         ; @PCI_EXP_SLTCAP_EIP
	.comm	_PCI_EXP_LNKCAP_DLLLARC,4,2     ; @PCI_EXP_LNKCAP_DLLLARC
l_.str.1:                               ; @.str.1
	.asciz	" (with Cmd Compl erratum)"

l_.str.2:                               ; @.str.2
	.space	1

.subsections_via_symbols
