	.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, %r14
	movq	%rdi, %r15
	callq	_i915_gem_object_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rsi
	addq	$16, %rsi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_drm_gem_private_object_init
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	%rbx, %rdi
	callq	_i915_gem_object_free
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_i915_gem_object_stolen_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_i915_gem_object_init
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_i915_pages_create_for_stolen
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movq	%r14, 32(%rbx)
	movq	_I915_GEM_DOMAIN_GTT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movq	_I915_CACHE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_gem_object_stolen_ops,4,2 ## @i915_gem_object_stolen_ops
	.comm	_I915_GEM_DOMAIN_GTT,8,3        ## @I915_GEM_DOMAIN_GTT
	.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	x20, x1
	mov	x21, x0
	bl	_i915_gem_object_alloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	add	x1, x19, #16
	ldr	w2, [x20]
	mov	x0, x21
	bl	_drm_gem_private_object_init
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_i915_gem_object_free
	mov	x19, #0
	b	LBB0_5
LBB0_3:
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
	ldp	w2, w1, [x20]
	mov	x0, x21
	bl	_i915_pages_create_for_stolen
	str	x0, [x19, #40]
	cbz	x0, LBB0_2
; %bb.4:
	movi.2s	v0, #1
	str	d0, [x19]
	str	x20, [x19, #32]
Lloh2:
	adrp	x8, _I915_GEM_DOMAIN_GTT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I915_GEM_DOMAIN_GTT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #16]
Lloh5:
	adrp	x8, _I915_CACHE_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I915_CACHE_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_5:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_gem_object_stolen_ops,4,2 ; @i915_gem_object_stolen_ops
	.comm	_I915_GEM_DOMAIN_GTT,8,3        ; @I915_GEM_DOMAIN_GTT
	.comm	_I915_CACHE_NONE,4,2            ; @I915_CACHE_NONE
	.no_dead_strip	__i915_gem_object_create_stolen
.subsections_via_symbols
