	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_gem_create_context
_i915_gem_create_context:               ## @i915_gem_create_context
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	addq	$4, %rdi
	callq	_lockdep_assert_held
	movq	_I915_CONTEXT_CREATE_FLAGS_SINGLE_TIMELINE@GOTPCREL(%rip), %r13
	testl	%r15d, (%r13)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_HAS_EXECLISTS
	testl	%eax, %eax
	je	LBB0_13
LBB0_2:
	movq	%rbx, %rdi
	callq	_contexts_free_first
	movq	%rbx, %rdi
	callq	___create_context
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
LBB0_10:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_HAS_FULL_PPGTT
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_i915_ppgtt_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.14:
	movq	%r12, %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_DRIVER
	movq	%r14, %rdi
	callq	_context_close
	movq	%r12, %rdi
	jmp	LBB0_12
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	___assign_ppgtt
	movq	%r12, %rdi
	callq	_i915_vm_put
LBB0_6:
	testl	%r15d, (%r13)
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_intel_timeline_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	%r14, %rdi
	callq	_context_close
	movq	%rbx, %rdi
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___assign_timeline
	movq	%rbx, %rdi
	callq	_intel_timeline_put
LBB0_9:
	movq	%r14, %rdi
	callq	_trace_i915_context_create
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_CONTEXT_CREATE_FLAGS_SINGLE_TIMELINE,4,2 ## @I915_CONTEXT_CREATE_FLAGS_SINGLE_TIMELINE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PPGTT setup failed (%ld)\n"

	.no_dead_strip	_i915_gem_create_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_gem_create_context
_i915_gem_create_context:               ; @i915_gem_create_context
	.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	x21, x1
	mov	x20, x0
	add	x0, x0, #4
	bl	_lockdep_assert_held
Lloh0:
	adrp	x23, _I915_CONTEXT_CREATE_FLAGS_SINGLE_TIMELINE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _I915_CONTEXT_CREATE_FLAGS_SINGLE_TIMELINE@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_HAS_EXECLISTS
	cbz	w0, LBB0_7
LBB0_2:
	mov	x0, x20
	bl	_contexts_free_first
	mov	x0, x20
	bl	___create_context
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
LBB0_3:
	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
LBB0_4:
	mov	x0, x20
	bl	_HAS_FULL_PPGTT
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_i915_ppgtt_create
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	mov	x0, x19
	bl	_context_close
	mov	x0, x22
	b	LBB0_12
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_8:
	mov	x0, x19
	mov	x1, x22
	bl	___assign_ppgtt
	mov	x0, x22
	bl	_i915_vm_put
LBB0_9:
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.10:
	mov	x0, x20
	mov	x1, #0
	bl	_intel_timeline_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_context_close
	mov	x0, x20
LBB0_12:
	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
	b	_ERR_CAST
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	___assign_timeline
	mov	x0, x20
	bl	_intel_timeline_put
LBB0_14:
	mov	x0, x19
	bl	_trace_i915_context_create
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_CONTEXT_CREATE_FLAGS_SINGLE_TIMELINE,4,2 ; @I915_CONTEXT_CREATE_FLAGS_SINGLE_TIMELINE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PPGTT setup failed (%ld)\n"

	.no_dead_strip	_i915_gem_create_context
.subsections_via_symbols
