	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_vram_mgr_init
_amdgpu_vram_mgr_init:                  ## @amdgpu_vram_mgr_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	callq	_amdgpu_ttm_adev
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_drm_mm_init
	movq	%rbx, %rdi
	callq	_spin_lock_init
	movq	%rbx, (%r12)
	movl	(%r14), %edi
	movq	_dev_attr_mem_info_vram_total@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	movl	(%r14), %edi
	movq	_dev_attr_mem_info_vis_vram_total@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_6:
	movl	(%r14), %edi
	movq	_dev_attr_mem_info_vram_used@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_8:
	movl	(%r14), %edi
	movq	_dev_attr_mem_info_vis_vram_used@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
LBB0_11:
	callq	_DRM_ERROR
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dev_attr_mem_info_vram_total,4,2 ## @dev_attr_mem_info_vram_total
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create device file mem_info_vram_total\n"

	.comm	_dev_attr_mem_info_vis_vram_total,4,2 ## @dev_attr_mem_info_vis_vram_total
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create device file mem_info_vis_vram_total\n"

	.comm	_dev_attr_mem_info_vram_used,4,2 ## @dev_attr_mem_info_vram_used
L_.str.2:                               ## @.str.2
	.asciz	"Failed to create device file mem_info_vram_used\n"

	.comm	_dev_attr_mem_info_vis_vram_used,4,2 ## @dev_attr_mem_info_vis_vram_used
L_.str.3:                               ## @.str.3
	.asciz	"Failed to create device file mem_info_vis_vram_used\n"

	.no_dead_strip	_amdgpu_vram_mgr_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_vram_mgr_init
_amdgpu_vram_mgr_init:                  ; @amdgpu_vram_mgr_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_amdgpu_ttm_adev
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	add	x0, x0, #4
	mov	w1, #0
	mov	x2, x21
	bl	_drm_mm_init
	mov	x0, x22
	bl	_spin_lock_init
	str	x22, [x20]
	ldr	w0, [x19]
Lloh3:
	adrp	x1, _dev_attr_mem_info_vram_total@GOTPAGE
Lloh4:
	ldr	x1, [x1, _dev_attr_mem_info_vram_total@GOTPAGEOFF]
	bl	_device_create_file
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_4:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, _dev_attr_mem_info_vis_vram_total@GOTPAGE
Lloh11:
	ldr	x1, [x1, _dev_attr_mem_info_vis_vram_total@GOTPAGEOFF]
	bl	_device_create_file
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, _dev_attr_mem_info_vram_used@GOTPAGE
Lloh15:
	ldr	x1, [x1, _dev_attr_mem_info_vram_used@GOTPAGEOFF]
	bl	_device_create_file
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	w0, [x19]
Lloh18:
	adrp	x1, _dev_attr_mem_info_vis_vram_used@GOTPAGE
Lloh19:
	ldr	x1, [x1, _dev_attr_mem_info_vis_vram_used@GOTPAGEOFF]
	bl	_device_create_file
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.9:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	bl	_DRM_ERROR
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dev_attr_mem_info_vram_total,4,2 ; @dev_attr_mem_info_vram_total
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create device file mem_info_vram_total\n"

	.comm	_dev_attr_mem_info_vis_vram_total,4,2 ; @dev_attr_mem_info_vis_vram_total
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create device file mem_info_vis_vram_total\n"

	.comm	_dev_attr_mem_info_vram_used,4,2 ; @dev_attr_mem_info_vram_used
l_.str.2:                               ; @.str.2
	.asciz	"Failed to create device file mem_info_vram_used\n"

	.comm	_dev_attr_mem_info_vis_vram_used,4,2 ; @dev_attr_mem_info_vis_vram_used
l_.str.3:                               ; @.str.3
	.asciz	"Failed to create device file mem_info_vis_vram_used\n"

	.no_dead_strip	_amdgpu_vram_mgr_init
.subsections_via_symbols
