	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_get_pcie_gen_support      ## -- Begin function r600_get_pcie_gen_support
	.p2align	4, 0x90
_r600_get_pcie_gen_support:             ## @r600_get_pcie_gen_support
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	leal	-128(%rax), %edx
	cmpl	$3, %edx
	jb	LBB0_3
## %bb.1:
	cmpl	$128, %ecx
	jne	LBB0_4
## %bb.2:
	movq	_RADEON_PCIE_SPEED_80@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, %eax
	andl	%esi, %edx
	je	LBB0_4
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	movq	_RADEON_PCIE_SPEED_50@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	setne	%al
	cmpl	$129, %ecx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %ecx
	movl	$130, %eax
	subl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_PCIE_SPEED_80,4,2       ## @RADEON_PCIE_SPEED_80
	.comm	_RADEON_PCIE_SPEED_50,4,2       ## @RADEON_PCIE_SPEED_50
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_get_pcie_gen_support      ; -- Begin function r600_get_pcie_gen_support
	.p2align	2
_r600_get_pcie_gen_support:             ; @r600_get_pcie_gen_support
	.cfi_startproc
; %bb.0:
	mov	x0, x2
	sub	w8, w2, #128
	cmp	w8, #3
	b.lo	LBB0_5
; %bb.1:
	cmp	w3, #128
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _RADEON_PCIE_SPEED_80@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_PCIE_SPEED_80@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
	cbz	w8, LBB0_4
; %bb.3:
	mov	w0, #128
	ret
LBB0_4:
Lloh3:
	adrp	x8, _RADEON_PCIE_SPEED_50@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RADEON_PCIE_SPEED_50@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w1
	mov	w8, #129
	ccmp	w3, w8, #0, ne
	cinc	w0, w8, ne
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_PCIE_SPEED_80,4,2       ; @RADEON_PCIE_SPEED_80
	.comm	_RADEON_PCIE_SPEED_50,4,2       ; @RADEON_PCIE_SPEED_50
.subsections_via_symbols
