	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_context_create_kernel ## -- Begin function i915_gem_context_create_kernel
	.p2align	4, 0x90
_i915_gem_context_create_kernel:        ## @i915_gem_context_create_kernel
	.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
	movl	%esi, %r14d
	xorl	%esi, %esi
	callq	_i915_gem_create_context
	movq	%rax, %rbx
	movq	%rax, -32(%rbp)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_i915_gem_context_pin_hw_id
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	leaq	-32(%rbp), %rdi
	callq	_destroy_kernel_context
	movl	%r15d, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_i915_gem_context_clear_bannable
	movl	%r14d, %edi
	callq	_I915_USER_PRIORITY
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_i915_gem_context_is_kernel
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_context_create_kernel ; -- Begin function i915_gem_context_create_kernel
	.p2align	2
_i915_gem_context_create_kernel:        ; @i915_gem_context_create_kernel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	w1, #0
	bl	_i915_gem_create_context
	mov	x19, x0
	str	x0, [sp, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_i915_gem_context_pin_hw_id
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
	add	x0, sp, #8
	bl	_destroy_kernel_context
	mov	x0, x21
	bl	_ERR_PTR
	mov	x19, x0
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_i915_gem_context_clear_bannable
	mov	x0, x20
	bl	_I915_USER_PRIORITY
	str	w0, [x19]
	mov	x0, x19
	bl	_i915_gem_context_is_kernel
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
