	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eb_select_context
_eb_select_context:                     ## @eb_select_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	24(%rdi), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_i915_gem_context_lookup
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, 8(%r14)
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_EXEC_OBJECT_NEEDS_GTT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_4:
	movl	$0, (%r14)
	movq	_UCONTEXT_NO_ZEROMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	___EXEC_OBJECT_NEEDS_BIAS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EXEC_OBJECT_NEEDS_GTT,4,2      ## @EXEC_OBJECT_NEEDS_GTT
	.comm	_UCONTEXT_NO_ZEROMAP,4,2        ## @UCONTEXT_NO_ZEROMAP
	.comm	___EXEC_OBJECT_NEEDS_BIAS,4,2   ## @__EXEC_OBJECT_NEEDS_BIAS
	.no_dead_strip	_eb_select_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eb_select_context
_eb_select_context:                     ; @eb_select_context
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	x9, x8, [x0, #16]
	ldr	w0, [x8]
	ldr	w1, [x9]
	bl	_i915_gem_context_lookup
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	str	x20, [x19, #8]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _EXEC_OBJECT_NEEDS_GTT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXEC_OBJECT_NEEDS_GTT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_4:
	str	wzr, [x19]
Lloh6:
	adrp	x8, _UCONTEXT_NO_ZEROMAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UCONTEXT_NO_ZEROMAP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #0
Lloh9:
	adrp	x8, ___EXEC_OBJECT_NEEDS_BIAS@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___EXEC_OBJECT_NEEDS_BIAS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EXEC_OBJECT_NEEDS_GTT,4,2      ; @EXEC_OBJECT_NEEDS_GTT
	.comm	_UCONTEXT_NO_ZEROMAP,4,2        ; @UCONTEXT_NO_ZEROMAP
	.comm	___EXEC_OBJECT_NEEDS_BIAS,4,2   ; @__EXEC_OBJECT_NEEDS_BIAS
	.no_dead_strip	_eb_select_context
.subsections_via_symbols
