	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_restore_pcie_state
_pci_restore_pcie_state:                ## @pci_restore_pcie_state
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_PCI_CAP_ID_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_saved_cap
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %r14
	movq	_PCI_EXP_DEVCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_pcie_capability_write_word
	movq	_PCI_EXP_LNKCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	callq	_pcie_capability_write_word
	movq	_PCI_EXP_SLTCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movq	%rbx, %rdi
	callq	_pcie_capability_write_word
	movq	_PCI_EXP_RTCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r14), %edx
	movq	%rbx, %rdi
	callq	_pcie_capability_write_word
	movq	_PCI_EXP_DEVCTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	callq	_pcie_capability_write_word
	movq	_PCI_EXP_LNKCTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r14), %edx
	movq	%rbx, %rdi
	callq	_pcie_capability_write_word
	movq	_PCI_EXP_SLTCTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r14), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pcie_capability_write_word     ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CAP_ID_EXP,4,2             ## @PCI_CAP_ID_EXP
	.comm	_PCI_EXP_DEVCTL,4,2             ## @PCI_EXP_DEVCTL
	.comm	_PCI_EXP_LNKCTL,4,2             ## @PCI_EXP_LNKCTL
	.comm	_PCI_EXP_SLTCTL,4,2             ## @PCI_EXP_SLTCTL
	.comm	_PCI_EXP_RTCTL,4,2              ## @PCI_EXP_RTCTL
	.comm	_PCI_EXP_DEVCTL2,4,2            ## @PCI_EXP_DEVCTL2
	.comm	_PCI_EXP_LNKCTL2,4,2            ## @PCI_EXP_LNKCTL2
	.comm	_PCI_EXP_SLTCTL2,4,2            ## @PCI_EXP_SLTCTL2
	.no_dead_strip	_pci_restore_pcie_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_restore_pcie_state
_pci_restore_pcie_state:                ; @pci_restore_pcie_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _PCI_CAP_ID_EXP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_CAP_ID_EXP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pci_find_saved_cap
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x20, [x0]
Lloh3:
	adrp	x8, _PCI_EXP_DEVCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_EXP_DEVCTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_pcie_capability_write_word
Lloh6:
	adrp	x8, _PCI_EXP_LNKCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_EXP_LNKCTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_pcie_capability_write_word
Lloh9:
	adrp	x8, _PCI_EXP_SLTCTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_EXP_SLTCTL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_pcie_capability_write_word
Lloh12:
	adrp	x8, _PCI_EXP_RTCTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_EXP_RTCTL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_pcie_capability_write_word
Lloh15:
	adrp	x8, _PCI_EXP_DEVCTL2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCI_EXP_DEVCTL2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_pcie_capability_write_word
Lloh18:
	adrp	x8, _PCI_EXP_LNKCTL2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCI_EXP_LNKCTL2@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x20, #20]
	mov	x0, x19
	bl	_pcie_capability_write_word
Lloh21:
	adrp	x8, _PCI_EXP_SLTCTL2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCI_EXP_SLTCTL2@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x20, #24]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pcie_capability_write_word
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CAP_ID_EXP,4,2             ; @PCI_CAP_ID_EXP
	.comm	_PCI_EXP_DEVCTL,4,2             ; @PCI_EXP_DEVCTL
	.comm	_PCI_EXP_LNKCTL,4,2             ; @PCI_EXP_LNKCTL
	.comm	_PCI_EXP_SLTCTL,4,2             ; @PCI_EXP_SLTCTL
	.comm	_PCI_EXP_RTCTL,4,2              ; @PCI_EXP_RTCTL
	.comm	_PCI_EXP_DEVCTL2,4,2            ; @PCI_EXP_DEVCTL2
	.comm	_PCI_EXP_LNKCTL2,4,2            ; @PCI_EXP_LNKCTL2
	.comm	_PCI_EXP_SLTCTL2,4,2            ; @PCI_EXP_SLTCTL2
	.no_dead_strip	_pci_restore_pcie_state
.subsections_via_symbols
