	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oa_get_render_ctx_id
_oa_get_render_ctx_id:                  ## @oa_get_render_ctx_id
	.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	%rdi, %r14
	movq	8(%rdi), %rbx
	callq	_oa_pin_context
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
                                        ## kill: def $eax killed $eax def $rax
	leal	-8(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_2
## %bb.5:
	movq	%rbx, %rdi
	callq	_USES_GUC_SUBMISSION
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	callq	_lower_32_bits
	movl	%eax, %esi
	sarl	$12, %esi
	movl	%esi, (%r14)
	movq	_GEN8_CTX_ID_WIDTH@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	decb	%cl
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	movl	%edx, 4(%r14)
	jmp	LBB0_11
LBB0_2:
	cmpl	$11, %eax
	je	LBB0_9
## %bb.3:
	cmpl	$7, %eax
	jne	LBB0_10
## %bb.4:
	movl	4(%r15), %edi
	callq	_i915_ggtt_offset
	movl	%eax, %esi
	movl	%eax, (%r14)
	movl	$0, 4(%r14)
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_7:
	movq	_GEN8_CTX_ID_WIDTH@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movl	%eax, 4(%r14)
	jmp	LBB0_8
LBB0_9:
	movq	_GEN11_SW_CTX_ID_WIDTH@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movq	_GEN11_SW_CTX_ID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_GEN11_ENGINE_INSTANCE_WIDTH@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	movl	$-1, %esi
	notl	%edx
	movq	_GEN11_ENGINE_INSTANCE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_GEN11_ENGINE_CLASS_WIDTH@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	notl	%esi
	movq	_GEN11_ENGINE_CLASS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %edx
	orl	%edx, %esi
	movl	%esi, 4(%r14)
LBB0_8:
	movl	(%r15), %edi
	callq	_upper_32_bits
	movq	%rax, %rsi
	movl	4(%r14), %edx
	andl	%edx, %esi
	movl	%esi, (%r14)
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	movl	%eax, %edi
	callq	_MISSING_CASE
	movl	(%r14), %esi
	movl	4(%r14), %edx
LBB0_11:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DRM_DEBUG_DRIVER
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN8_CTX_ID_WIDTH,4,2          ## @GEN8_CTX_ID_WIDTH
	.comm	_GEN11_SW_CTX_ID_WIDTH,4,2      ## @GEN11_SW_CTX_ID_WIDTH
	.comm	_GEN11_SW_CTX_ID_SHIFT,4,2      ## @GEN11_SW_CTX_ID_SHIFT
	.comm	_GEN11_ENGINE_INSTANCE_WIDTH,4,2 ## @GEN11_ENGINE_INSTANCE_WIDTH
	.comm	_GEN11_ENGINE_INSTANCE_SHIFT,4,2 ## @GEN11_ENGINE_INSTANCE_SHIFT
	.comm	_GEN11_ENGINE_CLASS_WIDTH,4,2   ## @GEN11_ENGINE_CLASS_WIDTH
	.comm	_GEN11_ENGINE_CLASS_SHIFT,4,2   ## @GEN11_ENGINE_CLASS_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"filtering on ctx_id=0x%x ctx_id_mask=0x%x\n"

	.no_dead_strip	_oa_get_render_ctx_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oa_get_render_ctx_id
_oa_get_render_ctx_id:                  ; @oa_get_render_ctx_id
	.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	x19, x0
	ldr	x21, [x0, #8]
	bl	_oa_pin_context
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_2:
	mov	x0, x21
	bl	_INTEL_GEN
	sub	w8, w0, #8
	cmp	w8, #3
	b.hs	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_USES_GUC_SUBMISSION
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w0, [x20]
	bl	_lower_32_bits
	asr	w1, w0, #12
	str	w1, [x19]
Lloh0:
	adrp	x8, _GEN8_CTX_ID_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN8_CTX_ID_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w2, w8
	str	w2, [x19, #4]
	b	LBB0_12
LBB0_5:
	cmp	w0, #11
	b.eq	LBB0_9
; %bb.6:
	cmp	w0, #7
	b.ne	LBB0_11
; %bb.7:
	ldr	w0, [x20, #4]
	bl	_i915_ggtt_offset
	mov	x1, x0
	mov	w2, #0
	stp	w0, wzr, [x19]
	b	LBB0_12
LBB0_8:
Lloh3:
	adrp	x8, _GEN8_CTX_ID_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN8_CTX_ID_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _GEN11_SW_CTX_ID_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GEN11_SW_CTX_ID_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
Lloh9:
	adrp	x10, _GEN11_SW_CTX_ID_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _GEN11_SW_CTX_ID_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w8, w8, w10
Lloh12:
	adrp	x10, _GEN11_ENGINE_INSTANCE_WIDTH@GOTPAGE
Lloh13:
	ldr	x10, [x10, _GEN11_ENGINE_INSTANCE_WIDTH@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	mvn	w10, w10
Lloh15:
	adrp	x11, _GEN11_ENGINE_INSTANCE_SHIFT@GOTPAGE
Lloh16:
	ldr	x11, [x11, _GEN11_ENGINE_INSTANCE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w8, w10, w8
Lloh18:
	adrp	x10, _GEN11_ENGINE_CLASS_WIDTH@GOTPAGE
Lloh19:
	ldr	x10, [x10, _GEN11_ENGINE_CLASS_WIDTH@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh21:
	adrp	x10, _GEN11_ENGINE_CLASS_SHIFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _GEN11_ENGINE_CLASS_SHIFT@GOTPAGEOFF]
	mvn	w9, w9
Lloh23:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
LBB0_10:
	str	w8, [x19, #4]
	ldr	w0, [x20]
	bl	_upper_32_bits
	ldr	w2, [x19, #4]
	and	w1, w2, w0
	str	w1, [x19]
	b	LBB0_12
LBB0_11:
	mov	x0, x21
	bl	_INTEL_GEN
	bl	_MISSING_CASE
	ldp	w1, w2, [x19]
LBB0_12:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN8_CTX_ID_WIDTH,4,2          ; @GEN8_CTX_ID_WIDTH
	.comm	_GEN11_SW_CTX_ID_WIDTH,4,2      ; @GEN11_SW_CTX_ID_WIDTH
	.comm	_GEN11_SW_CTX_ID_SHIFT,4,2      ; @GEN11_SW_CTX_ID_SHIFT
	.comm	_GEN11_ENGINE_INSTANCE_WIDTH,4,2 ; @GEN11_ENGINE_INSTANCE_WIDTH
	.comm	_GEN11_ENGINE_INSTANCE_SHIFT,4,2 ; @GEN11_ENGINE_INSTANCE_SHIFT
	.comm	_GEN11_ENGINE_CLASS_WIDTH,4,2   ; @GEN11_ENGINE_CLASS_WIDTH
	.comm	_GEN11_ENGINE_CLASS_SHIFT,4,2   ; @GEN11_ENGINE_CLASS_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"filtering on ctx_id=0x%x ctx_id_mask=0x%x\n"

	.no_dead_strip	_oa_get_render_ctx_id
.subsections_via_symbols
