	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_pci_parse_configuration
_rtl_pci_parse_configuration:           ## @rtl_pci_parse_configuration
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_pcipriv
	movq	%rax, %rbx
	movq	_PCI_EXP_LNKCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pcie_capability_read_word
	movl	-40(%rbp), %r8d
	movl	%r8d, (%rbx)
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_RT_TRACE
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$152, %esi
	callq	_pci_read_config_byte
	movl	$4, %edi
	callq	_BIT
	orl	-28(%rbp), %eax
	movl	%eax, -28(%rbp)
	movq	%r14, %rdi
	movl	$152, %esi
	movl	%eax, %edx
	callq	_pci_write_config_byte
	movl	$23, -28(%rbp)
	movq	%r14, %rdi
	movl	$1807, %esi                     ## imm = 0x70F
	movl	$23, %edx
	callq	_pci_write_config_byte
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_LNKCTL,4,2             ## @PCI_EXP_LNKCTL
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link Control Register =%x\n"

	.no_dead_strip	_rtl_pci_parse_configuration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_pci_parse_configuration
_rtl_pci_parse_configuration:           ; @rtl_pci_parse_configuration
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_rtl_priv
	mov	x21, x0
	mov	x0, x20
	bl	_rtl_pcipriv
	mov	x20, x0
Lloh0:
	adrp	x8, _PCI_EXP_LNKCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXP_LNKCTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_pcie_capability_read_word
	ldr	w4, [sp]
	str	w4, [x20]
Lloh3:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_RT_TRACE
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #152
	bl	_pci_read_config_byte
	mov	w0, #4
	bl	_BIT
	ldr	w8, [sp, #12]
	orr	w2, w8, w0
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #152
	bl	_pci_write_config_byte
	mov	w8, #23
	str	w8, [sp, #12]
	mov	x0, x19
	mov	w1, #1807
	mov	w2, #23
	bl	_pci_write_config_byte
	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 AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_LNKCTL,4,2             ; @PCI_EXP_LNKCTL
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link Control Register =%x\n"

	.no_dead_strip	_rtl_pci_parse_configuration
.subsections_via_symbols
