	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtio_gpu_ttm_io_mem_reserve
_virtio_gpu_ttm_io_mem_reserve:         ## @virtio_gpu_ttm_io_mem_reserve
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rsi), %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rsi)
	movl	8(%rsi), %edi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movl	%edi, 16(%rsi)
	movq	$0, 24(%rsi)
	movl	$0, 20(%rsi)
	movq	_TTM_MEMTYPE_FLAG_MAPPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%rdx,4)
	je	LBB0_2
## %bb.1:
	andq	$-2, %rdx
	xorl	%eax, %eax
	cmpq	$128, %rdx
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_TTM_MEMTYPE_FLAG_MAPPABLE,4,2  ## @TTM_MEMTYPE_FLAG_MAPPABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_virtio_gpu_ttm_io_mem_reserve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtio_gpu_ttm_io_mem_reserve
_virtio_gpu_ttm_io_mem_reserve:         ; @virtio_gpu_ttm_io_mem_reserve
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	ldr	x8, [x1]
	str	xzr, [x1, #40]
	ldr	w10, [x1, #8]
Lloh0:
	adrp	x11, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	stp	xzr, xzr, [x1, #24]
	stp	w10, wzr, [x1, #16]
	ldr	w9, [x9, x8, lsl #2]
Lloh3:
	adrp	x10, _TTM_MEMTYPE_FLAG_MAPPABLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TTM_MEMTYPE_FLAG_MAPPABLE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.1:
	and	x8, x8, #0xfffffffffffffffe
	cmp	x8, #128
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	ret
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_TTM_MEMTYPE_FLAG_MAPPABLE,4,2  ; @TTM_MEMTYPE_FLAG_MAPPABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_virtio_gpu_ttm_io_mem_reserve
.subsections_via_symbols
