	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_bo_init                 ## -- Begin function amdgpu_bo_init
	.p2align	4, 0x90
_amdgpu_bo_init:                        ## @amdgpu_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
	callq	_arch_io_reserve_memtype_wc
	movl	24(%rbx), %edi
	movq	16(%rbx), %rsi
	callq	_arch_phys_wc_add
	movl	%eax, 28(%rbx)
	movl	(%rbx), %esi
	sarl	$20, %esi
	movq	16(%rbx), %rdx
	shrq	$20, %rdx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	movl	4(%rbx), %esi
	movq	_amdgpu_vram_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_INFO
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_amdgpu_ttm_init                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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 %s\n"

	.comm	_amdgpu_vram_names,8,3          ## @amdgpu_vram_names
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_bo_init                 ; -- Begin function amdgpu_bo_init
	.p2align	2
_amdgpu_bo_init:                        ; @amdgpu_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]
	bl	_arch_io_reserve_memtype_wc
	ldr	w0, [x19, #24]
	ldr	x1, [x19, #16]
	bl	_arch_phys_wc_add
	str	w0, [x19, #28]
	ldr	w8, [x19]
	asr	w1, w8, #20
	ldr	x8, [x19, #16]
	lsr	x2, x8, #20
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	ldr	w1, [x19, #4]
Lloh2:
	adrp	x8, _amdgpu_vram_names@GOTPAGE
Lloh3:
	ldr	x8, [x8, _amdgpu_vram_names@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	x2, [x8, x9, lsl #3]
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	_amdgpu_ttm_init
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.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 %s\n"

	.comm	_amdgpu_vram_names,8,3          ; @amdgpu_vram_names
.subsections_via_symbols
