	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtio_gpu_init_mem_type
_virtio_gpu_init_mem_type:              ## @virtio_gpu_init_mem_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$129, %esi
	je	LBB0_2
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_virtio_gpu_bo_manager_func@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rdx)
LBB0_2:
	movq	_TTM_MEMTYPE_FLAG_MAPPABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rdx)
	movq	_TTM_PL_MASK_CACHING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdx)
	movq	_TTM_PL_FLAG_CACHED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_MEMTYPE_FLAG_MAPPABLE,8,3  ## @TTM_MEMTYPE_FLAG_MAPPABLE
	.comm	_TTM_PL_MASK_CACHING,8,3        ## @TTM_PL_MASK_CACHING
	.comm	_TTM_PL_FLAG_CACHED,8,3         ## @TTM_PL_FLAG_CACHED
	.comm	_virtio_gpu_bo_manager_func,4,2 ## @virtio_gpu_bo_manager_func
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported memory type %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_virtio_gpu_init_mem_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtio_gpu_init_mem_type
_virtio_gpu_init_mem_type:              ; @virtio_gpu_init_mem_type
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
	mov	w0, #0
Lloh0:
	adrp	x8, _TTM_MEMTYPE_FLAG_MAPPABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTM_MEMTYPE_FLAG_MAPPABLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x2, #16]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
Lloh3:
	adrp	x8, _virtio_gpu_bo_manager_func@GOTPAGE
Lloh4:
	ldr	x8, [x8, _virtio_gpu_bo_manager_func@GOTPAGEOFF]
Lloh5:
	adrp	x9, _TTM_MEMTYPE_FLAG_MAPPABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TTM_MEMTYPE_FLAG_MAPPABLE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	stp	x9, x8, [x2, #16]
LBB0_4:
Lloh8:
	adrp	x8, _TTM_PL_MASK_CACHING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TTM_PL_MASK_CACHING@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _TTM_PL_FLAG_CACHED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TTM_PL_FLAG_CACHED@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	stp	x9, x8, [x2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_MEMTYPE_FLAG_MAPPABLE,8,3  ; @TTM_MEMTYPE_FLAG_MAPPABLE
	.comm	_TTM_PL_MASK_CACHING,8,3        ; @TTM_PL_MASK_CACHING
	.comm	_TTM_PL_FLAG_CACHED,8,3         ; @TTM_PL_FLAG_CACHED
	.comm	_virtio_gpu_bo_manager_func,4,2 ; @virtio_gpu_bo_manager_func
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported memory type %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_virtio_gpu_init_mem_type
.subsections_via_symbols
