	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_bo_init                 ## -- Begin function radeon_bo_init
	.p2align	4, 0x90
_radeon_bo_init:                        ## @radeon_bo_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	movq	16(%rbx), %rsi
	movq	_MTRR_TYPE_WRCOMB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_mtrr_add
	movl	%eax, 28(%rbx)
	movl	(%rbx), %esi
	movl	16(%rbx), %eax
	sarl	$20, %esi
	shrl	$20, %eax
	movsbl	%al, %edx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	movl	4(%rbx), %esi
	cmpq	$0, 8(%rbx)
	movl	$83, %eax
	movl	$68, %edx
	cmovel	%eax, %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_INFO
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_radeon_ttm_init                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTRR_TYPE_WRCOMB,4,2           ## @MTRR_TYPE_WRCOMB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Detected VRAM RAM=%lluM, BAR=%lluM\n"

L_.str.1:                               ## @.str.1
	.asciz	"RAM width %dbits %cDR\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_bo_init                 ; -- Begin function radeon_bo_init
	.p2align	2
_radeon_bo_init:                        ; @radeon_bo_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #24]
	ldr	x1, [x19, #16]
Lloh0:
	adrp	x8, _MTRR_TYPE_WRCOMB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTRR_TYPE_WRCOMB@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_mtrr_add
	str	w0, [x19, #28]
	ldr	w8, [x19]
	asr	w1, w8, #20
	ldr	w8, [x19, #16]
	sbfx	w2, w8, #20, #8
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	ldr	w1, [x19, #4]
	ldr	x8, [x19, #8]
	cmp	x8, #0
	mov	w8, #68
	mov	w9, #83
	csel	w2, w9, w8, eq
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_INFO
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_radeon_ttm_init
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTRR_TYPE_WRCOMB,4,2           ; @MTRR_TYPE_WRCOMB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Detected VRAM RAM=%lluM, BAR=%lluM\n"

l_.str.1:                               ; @.str.1
	.asciz	"RAM width %dbits %cDR\n"

.subsections_via_symbols
