	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_gem_vram_init
_drm_gem_vram_init:                     ## @drm_gem_vram_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r13
	cmpq	$0, (%rdx)
	jne	LBB0_2
## %bb.1:
	movq	_drm_gem_vram_object_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_drm_gem_object_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$24, %edx
	callq	_ttm_bo_dma_acc_size
	movq	%rax, %r14
	movq	%r13, 8(%rbx)
	movq	_TTM_PL_FLAG_VRAM@GOTPCREL(%rip), %rax
	movq	_TTM_PL_FLAG_SYSTEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_gem_vram_placement
	movq	_ttm_bo_type_device@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	16(%rbx), %r8
	movq	_ttm_buffer_object_destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movq	%r14, 8(%rsp)
	movl	%r12d, (%rsp)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_ttm_bo_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_drm_gem_object_release
	jmp	LBB0_6
LBB0_4:
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drm_gem_vram_object_funcs,4,2  ## @drm_gem_vram_object_funcs
	.comm	_TTM_PL_FLAG_VRAM,4,2           ## @TTM_PL_FLAG_VRAM
	.comm	_TTM_PL_FLAG_SYSTEM,4,2         ## @TTM_PL_FLAG_SYSTEM
	.comm	_ttm_bo_type_device,4,2         ## @ttm_bo_type_device
	.comm	_ttm_buffer_object_destroy,4,2  ## @ttm_buffer_object_destroy
	.no_dead_strip	_drm_gem_vram_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_gem_vram_init
_drm_gem_vram_init:                     ; @drm_gem_vram_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x23, x1
	ldr	x8, [x2]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _drm_gem_vram_object_funcs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drm_gem_vram_object_funcs@GOTPAGEOFF]
	str	x8, [x19]
LBB0_2:
	mov	x1, x19
	mov	x2, x22
	bl	_drm_gem_object_init
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x23
	mov	x1, x22
	mov	w2, #24
	bl	_ttm_bo_dma_acc_size
	mov	x24, x0
Lloh2:
	adrp	x8, _TTM_PL_FLAG_VRAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TTM_PL_FLAG_VRAM@GOTPAGEOFF]
	str	x23, [x19, #8]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _TTM_PL_FLAG_SYSTEM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TTM_PL_FLAG_SYSTEM@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_drm_gem_vram_placement
Lloh8:
	adrp	x8, _ttm_bo_type_device@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ttm_bo_type_device@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x4, x19, #16
Lloh11:
	adrp	x8, _ttm_buffer_object_destroy@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ttm_buffer_object_destroy@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	xzr, xzr, [sp]
	str	w8, [sp, #16]
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x24
	bl	_ttm_bo_init
	mov	x24, x0
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_drm_gem_object_release
LBB0_5:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_gem_vram_object_funcs,4,2  ; @drm_gem_vram_object_funcs
	.comm	_TTM_PL_FLAG_VRAM,4,2           ; @TTM_PL_FLAG_VRAM
	.comm	_TTM_PL_FLAG_SYSTEM,4,2         ; @TTM_PL_FLAG_SYSTEM
	.comm	_ttm_bo_type_device,4,2         ; @ttm_bo_type_device
	.comm	_ttm_buffer_object_destroy,4,2  ; @ttm_buffer_object_destroy
	.no_dead_strip	_drm_gem_vram_init
.subsections_via_symbols
