	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_pci_disable_aspm
_rtl_pci_disable_aspm:                  ## @rtl_pci_disable_aspm
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_rtl_priv
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_rtl_pcipriv
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_rtl_pcipriv
	movq	%rax, %rdi
	callq	_rtl_pcidev
	movq	(%rbx), %rdi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %r13
	movq	24(%rbx), %rsi
	movq	$0, -64(%rbp)
	cmpl	$0, 4(%r14)
	je	LBB0_5
## %bb.1:
	movq	_PCI_BRIDGE_VENDOR_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jne	LBB0_2
## %bb.6:
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_2:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_RT_RF_OFF_LEVL_CLK_REQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%esi, (%r14)
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_RT_CLEAR_PS_LEVEL
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	__rtl_pci_switch_clk_req
	movq	%rbx, %rax
LBB0_4:
	movq	%rax, %r12
	movl	(%rax), %edi
	leaq	-64(%rbp), %rdx
	movl	$128, %esi
	callq	_pci_read_config_byte
	xorl	%edi, %edi
	callq	_BIT
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_BIT
	orq	%rax, %rbx
	notq	%rbx
	andq	%rbx, %r13
	xorl	%edi, %edi
	callq	_BIT
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_BIT
	orq	%rax, %rbx
	notq	%rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	andq	%rbx, %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	__rtl_pci_platform_switch_device_pci_aspm
	movl	$50, %edi
	callq	_udelay
	movl	(%r12), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	shlq	$2, %rsi
	movq	%r14, %rdx
	callq	_pci_write_config_byte
	movl	$50, %edi
	callq	_udelay
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_BRIDGE_VENDOR_UNKNOWN,8,3  ## @PCI_BRIDGE_VENDOR_UNKNOWN
	.comm	_COMP_POWER,4,2                 ## @COMP_POWER
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI(Bridge) UNKNOWN\n"

	.comm	_RT_RF_OFF_LEVL_CLK_REQ,4,2     ## @RT_RF_OFF_LEVL_CLK_REQ
	.no_dead_strip	_rtl_pci_disable_aspm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_pci_disable_aspm
_rtl_pci_disable_aspm:                  ; @rtl_pci_disable_aspm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	bl	_rtl_priv
	mov	x21, x0
	mov	x0, x19
	bl	_rtl_pcipriv
	mov	x23, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x22, x0
	mov	x0, x19
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	ldp	x8, x24, [x23]
	ldp	x25, x23, [x23, #16]
	str	xzr, [sp, #8]
	ldr	w9, [x22, #4]
	cbz	w9, LBB0_6
; %bb.1:
Lloh0:
	adrp	x9, _PCI_BRIDGE_VENDOR_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_BRIDGE_VENDOR_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMP_POWER@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
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_RT_TRACE
LBB0_3:
	mov	x20, x0
	ldr	w8, [x22]
Lloh11:
	adrp	x9, _RT_RF_OFF_LEVL_CLK_REQ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RT_RF_OFF_LEVL_CLK_REQ@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	tst	w1, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_RT_CLEAR_PS_LEVEL
	mov	x0, x19
	mov	w1, #0
	bl	__rtl_pci_switch_clk_req
LBB0_5:
	ldr	w0, [x20]
	add	x2, sp, #8
	mov	w1, #128
	bl	_pci_read_config_byte
	mov	w0, #0
	bl	_BIT
	mov	x21, x0
	mov	w0, #1
	bl	_BIT
	orr	x8, x0, x21
	bic	x21, x25, x8
	mov	w0, #0
	bl	_BIT
	mov	x22, x0
	mov	w0, #1
	bl	_BIT
	orr	x8, x0, x22
	bic	x22, x23, x8
	mov	x0, x19
	mov	x1, x21
	bl	__rtl_pci_platform_switch_device_pci_aspm
	mov	w0, #50
	bl	_udelay
	ldr	w0, [x20]
	lsl	x1, x24, #2
	mov	x2, x22
	bl	_pci_write_config_byte
	mov	w0, #50
	bl	_udelay
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_BRIDGE_VENDOR_UNKNOWN,8,3  ; @PCI_BRIDGE_VENDOR_UNKNOWN
	.comm	_COMP_POWER,4,2                 ; @COMP_POWER
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI(Bridge) UNKNOWN\n"

	.comm	_RT_RF_OFF_LEVL_CLK_REQ,4,2     ; @RT_RF_OFF_LEVL_CLK_REQ
	.no_dead_strip	_rtl_pci_disable_aspm
.subsections_via_symbols
