	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vgpu_create_gem
_vgpu_create_gem:                       ## @vgpu_create_gem
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_to_i915
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_i915_gem_object_alloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%r13, %rbx
	addq	$20, %rbx
	movl	8(%r14), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roundup
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_drm_gem_private_object_init
	movq	_intel_vgpu_gem_ops@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_i915_gem_object_init
	movq	_I915_GEM_DOMAIN_GTT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	$0, 8(%r13)
	movq	%r15, %rdi
	callq	_INTEL_GEN
	movl	(%r14), %esi
	cmpl	$9, %eax
	jl	LBB0_10
## %bb.2:
	leal	-128(%rsi), %eax
	cmpl	$2, %eax
	jb	LBB0_8
## %bb.3:
	cmpl	$130, %esi
	je	LBB0_6
## %bb.4:
	cmpl	$131, %esi
	jne	LBB0_9
## %bb.5:
	movq	_I915_TILING_NONE@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	orl	(%rax), %esi
	jmp	LBB0_12
LBB0_10:
	testl	%esi, %esi
	je	LBB0_12
## %bb.11:
	movq	_I915_TILING_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_12
LBB0_8:
	movq	_I915_TILING_Y@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_I915_TILING_X@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	orl	4(%r14), %esi
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_gvt_dbg_core
	xorl	%esi, %esi
	orl	%esi, %esi
LBB0_12:
	movl	%esi, (%r13)
LBB0_13:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_intel_vgpu_gem_ops,4,2         ## @intel_vgpu_gem_ops
	.comm	_I915_GEM_DOMAIN_GTT,4,2        ## @I915_GEM_DOMAIN_GTT
	.comm	_I915_TILING_NONE,4,2           ## @I915_TILING_NONE
	.comm	_I915_TILING_X,8,3              ## @I915_TILING_X
	.comm	_I915_TILING_Y,4,2              ## @I915_TILING_Y
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid drm_format_mod %llx for tiling\n"

	.no_dead_strip	_vgpu_create_gem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vgpu_create_gem
_vgpu_create_gem:                       ; @vgpu_create_gem
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x22, x0
	bl	_to_i915
	mov	x21, x0
	bl	_i915_gem_object_alloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
	add	x23, x19, #20
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_roundup
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_drm_gem_private_object_init
Lloh3:
	adrp	x1, _intel_vgpu_gem_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _intel_vgpu_gem_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_i915_gem_object_init
Lloh5:
	adrp	x8, _I915_GEM_DOMAIN_GTT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I915_GEM_DOMAIN_GTT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
	mov	x0, x21
	bl	_INTEL_GEN
	ldr	w1, [x20]
	cmp	w0, #9
	b.lt	LBB0_6
; %bb.2:
	sub	w8, w1, #128
	cmp	w8, #2
	b.lo	LBB0_7
; %bb.3:
	cmp	w1, #130
	b.eq	LBB0_8
; %bb.4:
	cmp	w1, #131
	b.ne	LBB0_10
; %bb.5:
	mov	w9, #0
Lloh8:
	adrp	x8, _I915_TILING_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I915_TILING_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w8, w8
	b	LBB0_11
LBB0_6:
Lloh11:
	adrp	x8, _I915_TILING_X@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I915_TILING_X@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w1, #0
	csel	w8, wzr, w8, eq
	b	LBB0_11
LBB0_7:
Lloh14:
	adrp	x8, _I915_TILING_Y@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I915_TILING_Y@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _I915_TILING_X@GOTPAGE
Lloh17:
	ldr	x8, [x8, _I915_TILING_X@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	b	LBB0_11
LBB0_10:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gvt_dbg_core
	mov	w8, #0
	mov	w9, #0
	mov	w8, wzr
LBB0_11:
	str	w8, [x19]
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_intel_vgpu_gem_ops,4,2         ; @intel_vgpu_gem_ops
	.comm	_I915_GEM_DOMAIN_GTT,4,2        ; @I915_GEM_DOMAIN_GTT
	.comm	_I915_TILING_NONE,4,2           ; @I915_TILING_NONE
	.comm	_I915_TILING_X,8,3              ; @I915_TILING_X
	.comm	_I915_TILING_Y,4,2              ; @I915_TILING_Y
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid drm_format_mod %llx for tiling\n"

	.no_dead_strip	_vgpu_create_gem
.subsections_via_symbols
