	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g84_pcie_max_speed             ## -- Begin function g84_pcie_max_speed
	.p2align	4, 0x90
_g84_pcie_max_speed:                    ## @g84_pcie_max_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$1120, %esi                     ## imm = 0x460
	callq	_nvkm_pci_rd32
	andl	$13056, %eax                    ## imm = 0x3300
	cmpl	$8704, %eax                     ## imm = 0x2200
	jne	LBB0_1
## %bb.2:
	movq	_NVKM_PCIE_SPEED_5_0@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NVKM_PCIE_SPEED_2_5@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_PCIE_SPEED_5_0,4,2        ## @NVKM_PCIE_SPEED_5_0
	.comm	_NVKM_PCIE_SPEED_2_5,4,2        ## @NVKM_PCIE_SPEED_2_5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g84_pcie_max_speed             ; -- Begin function g84_pcie_max_speed
	.p2align	2
_g84_pcie_max_speed:                    ; @g84_pcie_max_speed
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w1, #1120
	bl	_nvkm_pci_rd32
	mov	w8, #13056
Lloh0:
	adrp	x9, _NVKM_PCIE_SPEED_5_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVKM_PCIE_SPEED_5_0@GOTPAGEOFF]
Lloh2:
	adrp	x10, _NVKM_PCIE_SPEED_2_5@GOTPAGE
Lloh3:
	ldr	x10, [x10, _NVKM_PCIE_SPEED_2_5@GOTPAGEOFF]
	and	w8, w0, w8
	mov	w11, #8704
	cmp	w8, w11
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_PCIE_SPEED_5_0,4,2        ; @NVKM_PCIE_SPEED_5_0
	.comm	_NVKM_PCIE_SPEED_2_5,4,2        ; @NVKM_PCIE_SPEED_2_5
.subsections_via_symbols
