	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _i915_gem_object_create_stolen
__i915_gem_object_create_stolen:        ## @_i915_gem_object_create_stolen
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_i915_gem_object_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rsi
	addq	$16, %rsi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_drm_gem_private_object_init
	movq	_i915_gem_object_stolen_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_i915_gem_object_init
	movq	%r15, 8(%rbx)
	movq	_I915_GEM_DOMAIN_CPU@GOTPCREL(%rip), %rax
	movq	_I915_GEM_DOMAIN_GTT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	%r14, %rdi
	callq	_HAS_LLC
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_I915_CACHE_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_I915_CACHE_LLC@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_object_set_cache_coherency
	movq	%rbx, %rdi
	callq	_i915_gem_object_pin_pages
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_i915_gem_object_free
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_gem_object_stolen_ops,4,2 ## @i915_gem_object_stolen_ops
	.comm	_I915_GEM_DOMAIN_CPU,4,2        ## @I915_GEM_DOMAIN_CPU
	.comm	_I915_GEM_DOMAIN_GTT,4,2        ## @I915_GEM_DOMAIN_GTT
	.comm	_I915_CACHE_LLC,4,2             ## @I915_CACHE_LLC
	.comm	_I915_CACHE_NONE,4,2            ## @I915_CACHE_NONE
	.no_dead_strip	__i915_gem_object_create_stolen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _i915_gem_object_create_stolen
__i915_gem_object_create_stolen:        ; @_i915_gem_object_create_stolen
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_i915_gem_object_alloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x1, x19, #16
	ldr	w2, [x21]
	mov	x0, x20
	bl	_drm_gem_private_object_init
Lloh0:
	adrp	x1, _i915_gem_object_stolen_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _i915_gem_object_stolen_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_i915_gem_object_init
	str	x21, [x19, #8]
Lloh2:
	adrp	x8, _I915_GEM_DOMAIN_CPU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I915_GEM_DOMAIN_CPU@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _I915_GEM_DOMAIN_GTT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I915_GEM_DOMAIN_GTT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x20
	bl	_HAS_LLC
Lloh8:
	adrp	x8, _I915_CACHE_LLC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I915_CACHE_LLC@GOTPAGEOFF]
Lloh10:
	adrp	x9, _I915_CACHE_NONE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _I915_CACHE_NONE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i915_gem_object_set_cache_coherency
	mov	x0, x19
	bl	_i915_gem_object_pin_pages
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_i915_gem_object_free
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_gem_object_stolen_ops,4,2 ; @i915_gem_object_stolen_ops
	.comm	_I915_GEM_DOMAIN_CPU,4,2        ; @I915_GEM_DOMAIN_CPU
	.comm	_I915_GEM_DOMAIN_GTT,4,2        ; @I915_GEM_DOMAIN_GTT
	.comm	_I915_CACHE_LLC,4,2             ; @I915_CACHE_LLC
	.comm	_I915_CACHE_NONE,4,2            ; @I915_CACHE_NONE
	.no_dead_strip	__i915_gem_object_create_stolen
.subsections_via_symbols
