	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_vram_mm_init               ## -- Begin function drm_vram_mm_init
	.p2align	4, 0x90
_drm_vram_mm_init:                      ## @drm_vram_mm_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdi, %rbx
	movl	%edx, 24(%rdi)
	movq	%rcx, (%rdi)
	movq	%r8, 16(%rdi)
	addq	$8, %rbx
	movq	(%rsi), %rax
	movl	(%rax), %edx
	movq	_bo_driver@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_ttm_bo_device_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_TTM_PL_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ttm_bo_init_mm                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bo_driver,4,2                  ## @bo_driver
	.comm	_TTM_PL_VRAM,4,2                ## @TTM_PL_VRAM
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_vram_mm_init               ; -- Begin function drm_vram_mm_init
	.p2align	2
_drm_vram_mm_init:                      ; @drm_vram_mm_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, x3
	str	w2, [x0, #24]
	str	x3, [x0]
	str	x4, [x0, #16]
	add	x20, x0, #8
	ldr	x8, [x1]
	ldr	w2, [x8]
Lloh0:
	adrp	x1, _bo_driver@GOTPAGE
Lloh1:
	ldr	x1, [x1, _bo_driver@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #1
	bl	_ttm_bo_device_init
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh2:
	adrp	x8, _TTM_PL_VRAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TTM_PL_VRAM@GOTPAGEOFF]
Lloh4:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	ldr	x8, [x9]
	lsr	x2, x19, x8
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ttm_bo_init_mm
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_bo_driver,4,2                  ; @bo_driver
	.comm	_TTM_PL_VRAM,4,2                ; @TTM_PL_VRAM
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
.subsections_via_symbols
