	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_gart_size_auto
_radeon_gart_size_auto:                 ## @radeon_gart_size_auto
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CHIP_TAHITI@GOTPCREL(%rip), %rax
	movq	_CHIP_RV770@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%edi, (%rcx)
	setbe	%dl
	shll	$9, %edx
	addl	$512, %edx                      ## imm = 0x200
	cmpl	%edi, (%rax)
	movl	$2048, %eax                     ## imm = 0x800
	cmoval	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_TAHITI,4,2                ## @CHIP_TAHITI
	.comm	_CHIP_RV770,4,2                 ## @CHIP_RV770
	.no_dead_strip	_radeon_gart_size_auto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_gart_size_auto
_radeon_gart_size_auto:                 ; @radeon_gart_size_auto
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CHIP_TAHITI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHIP_TAHITI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CHIP_RV770@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHIP_RV770@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #1024
	mov	w11, #512
	cmp	w9, w0
	csel	w9, w11, w10, hi
	mov	w10, #2048
	cmp	w8, w0
	csel	w0, w9, w10, hi
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_TAHITI,4,2                ; @CHIP_TAHITI
	.comm	_CHIP_RV770,4,2                 ; @CHIP_RV770
	.no_dead_strip	_radeon_gart_size_auto
.subsections_via_symbols
