	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lrc_descriptor
_lrc_descriptor:                        ## @lrc_descriptor
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	_MAX_CONTEXT_HW_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_GEN8_CTX_ID_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setg	%dil
	callq	_BUILD_BUG_ON
	movq	_GEN11_MAX_CONTEXT_HW_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_GEN11_SW_CTX_ID_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setg	%dil
	callq	_BUILD_BUG_ON
	movq	_INTEL_LEGACY_32B_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r15), %edi
	callq	_i915_vm_is_4lvl
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_INTEL_LEGACY_64B_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	_GEN8_CTX_ADDRESSING_MODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_GEN8_CTX_VALID@GOTPCREL(%rip), %rax
	movq	_GEN8_CTX_PRIVILEGE@GOTPCREL(%rip), %rcx
	movl	16(%r14), %edi
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	movl	$8, %esi
	callq	_IS_GEN
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_GEN8_CTX_L3LLC_COHERENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	movl	(%r15), %edi
	callq	_i915_ggtt_offset
	movq	_LRC_HEADER_PAGES@GOTPCREL(%rip), %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	(%rcx), %edx
	addl	%eax, %edx
	orl	%r13d, %edx
	orl	%edx, %ebx
	movl	16(%r14), %edi
	callq	_INTEL_GEN
	movq	(%r12), %r15
	cmpl	$11, %eax
	jl	LBB0_6
## %bb.5:
	movq	_GEN11_SW_CTX_ID_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	xorl	%edi, %edi
	cmpq	%rax, %r15
	setge	%dil
	callq	_GEM_BUG_ON
	movl	(%r12), %edx
	movq	_GEN11_SW_CTX_ID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_GEN11_ENGINE_INSTANCE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	8(%r14), %eax
	shll	%cl, %eax
	orl	%ebx, %edx
	movl	(%r14), %ebx
	orl	%edx, %eax
	movq	_GEN11_ENGINE_CLASS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	_GEN8_CTX_ID_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	xorl	%edi, %edi
	cmpq	%rax, %r15
	setge	%dil
	callq	_GEM_BUG_ON
	movl	(%r12), %eax
	movq	_GEN8_CTX_ID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
LBB0_7:
	orl	%eax, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CONTEXT_HW_ID,8,3          ## @MAX_CONTEXT_HW_ID
	.comm	_GEN8_CTX_ID_WIDTH,4,2          ## @GEN8_CTX_ID_WIDTH
	.comm	_GEN11_MAX_CONTEXT_HW_ID,8,3    ## @GEN11_MAX_CONTEXT_HW_ID
	.comm	_GEN11_SW_CTX_ID_WIDTH,4,2      ## @GEN11_SW_CTX_ID_WIDTH
	.comm	_INTEL_LEGACY_32B_CONTEXT,4,2   ## @INTEL_LEGACY_32B_CONTEXT
	.comm	_INTEL_LEGACY_64B_CONTEXT,4,2   ## @INTEL_LEGACY_64B_CONTEXT
	.comm	_GEN8_CTX_ADDRESSING_MODE_SHIFT,4,2 ## @GEN8_CTX_ADDRESSING_MODE_SHIFT
	.comm	_GEN8_CTX_VALID,4,2             ## @GEN8_CTX_VALID
	.comm	_GEN8_CTX_PRIVILEGE,4,2         ## @GEN8_CTX_PRIVILEGE
	.comm	_GEN8_CTX_L3LLC_COHERENT,4,2    ## @GEN8_CTX_L3LLC_COHERENT
	.comm	_LRC_HEADER_PAGES,4,2           ## @LRC_HEADER_PAGES
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GEN11_SW_CTX_ID_SHIFT,4,2      ## @GEN11_SW_CTX_ID_SHIFT
	.comm	_GEN11_ENGINE_INSTANCE_SHIFT,4,2 ## @GEN11_ENGINE_INSTANCE_SHIFT
	.comm	_GEN11_ENGINE_CLASS_SHIFT,4,2   ## @GEN11_ENGINE_CLASS_SHIFT
	.comm	_GEN8_CTX_ID_SHIFT,4,2          ## @GEN8_CTX_ID_SHIFT
	.no_dead_strip	_lrc_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lrc_descriptor
_lrc_descriptor:                        ; @lrc_descriptor
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _MAX_CONTEXT_HW_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CONTEXT_HW_ID@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x22, _GEN8_CTX_ID_WIDTH@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GEN8_CTX_ID_WIDTH@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_BIT
	cmp	x23, x0
	cset	w0, gt
	bl	_BUILD_BUG_ON
Lloh5:
	adrp	x8, _GEN11_MAX_CONTEXT_HW_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GEN11_MAX_CONTEXT_HW_ID@GOTPAGEOFF]
Lloh7:
	ldr	x24, [x8]
Lloh8:
	adrp	x23, _GEN11_SW_CTX_ID_WIDTH@GOTPAGE
Lloh9:
	ldr	x23, [x23, _GEN11_SW_CTX_ID_WIDTH@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_BIT
	cmp	x24, x0
	cset	w0, gt
	bl	_BUILD_BUG_ON
Lloh10:
	adrp	x8, _INTEL_LEGACY_32B_CONTEXT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INTEL_LEGACY_32B_CONTEXT@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x8]
	ldr	w0, [x20, #4]
	bl	_i915_vm_is_4lvl
Lloh13:
	adrp	x8, _INTEL_LEGACY_64B_CONTEXT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INTEL_LEGACY_64B_CONTEXT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, w24, w8, eq
Lloh16:
	adrp	x9, _GEN8_CTX_ADDRESSING_MODE_SHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _GEN8_CTX_ADDRESSING_MODE_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _GEN8_CTX_VALID@GOTPAGE
Lloh20:
	ldr	x10, [x10, _GEN8_CTX_VALID@GOTPAGEOFF]
	lsl	w24, w8, w9
Lloh21:
	ldr	w25, [x10]
Lloh22:
	adrp	x8, _GEN8_CTX_PRIVILEGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GEN8_CTX_PRIVILEGE@GOTPAGEOFF]
Lloh24:
	ldr	w26, [x8]
	ldr	w0, [x19, #16]
	mov	w1, #8
	bl	_IS_GEN
Lloh25:
	adrp	x8, _GEN8_CTX_L3LLC_COHERENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GEN8_CTX_L3LLC_COHERENT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w27, wzr, w8, eq
	ldr	w0, [x20]
	bl	_i915_ggtt_offset
Lloh28:
	adrp	x8, _LRC_HEADER_PAGES@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LRC_HEADER_PAGES@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	madd	w8, w9, w8, w0
	orr	w9, w24, w25
	orr	w9, w9, w26
	orr	w9, w9, w27
	orr	w20, w9, w8
	ldr	w0, [x19, #16]
	bl	_INTEL_GEN
	ldr	x24, [x21]
	cmp	w0, #11
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x23]
	bl	_BIT
	cmp	x24, x0
	cset	w0, ge
	bl	_GEM_BUG_ON
	ldr	w8, [x21]
Lloh34:
	adrp	x9, _GEN11_SW_CTX_ID_SHIFT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _GEN11_SW_CTX_ID_SHIFT@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w8, w8, w20
	ldr	w9, [x19, #8]
Lloh37:
	adrp	x10, _GEN11_ENGINE_INSTANCE_SHIFT@GOTPAGE
Lloh38:
	ldr	x10, [x10, _GEN11_ENGINE_INSTANCE_SHIFT@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	ldr	w9, [x19]
Lloh40:
	adrp	x10, _GEN11_ENGINE_CLASS_SHIFT@GOTPAGE
Lloh41:
	ldr	x10, [x10, _GEN11_ENGINE_CLASS_SHIFT@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	lsl	w20, w9, w10
	b	LBB0_3
LBB0_2:
	ldr	w0, [x22]
	bl	_BIT
	cmp	x24, x0
	cset	w0, ge
	bl	_GEM_BUG_ON
	ldr	w8, [x21]
Lloh43:
	adrp	x9, _GEN8_CTX_ID_SHIFT@GOTPAGE
Lloh44:
	ldr	x9, [x9, _GEN8_CTX_ID_SHIFT@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	lsl	w8, w8, w9
LBB0_3:
	orr	w0, w8, w20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CONTEXT_HW_ID,8,3          ; @MAX_CONTEXT_HW_ID
	.comm	_GEN8_CTX_ID_WIDTH,4,2          ; @GEN8_CTX_ID_WIDTH
	.comm	_GEN11_MAX_CONTEXT_HW_ID,8,3    ; @GEN11_MAX_CONTEXT_HW_ID
	.comm	_GEN11_SW_CTX_ID_WIDTH,4,2      ; @GEN11_SW_CTX_ID_WIDTH
	.comm	_INTEL_LEGACY_32B_CONTEXT,4,2   ; @INTEL_LEGACY_32B_CONTEXT
	.comm	_INTEL_LEGACY_64B_CONTEXT,4,2   ; @INTEL_LEGACY_64B_CONTEXT
	.comm	_GEN8_CTX_ADDRESSING_MODE_SHIFT,4,2 ; @GEN8_CTX_ADDRESSING_MODE_SHIFT
	.comm	_GEN8_CTX_VALID,4,2             ; @GEN8_CTX_VALID
	.comm	_GEN8_CTX_PRIVILEGE,4,2         ; @GEN8_CTX_PRIVILEGE
	.comm	_GEN8_CTX_L3LLC_COHERENT,4,2    ; @GEN8_CTX_L3LLC_COHERENT
	.comm	_LRC_HEADER_PAGES,4,2           ; @LRC_HEADER_PAGES
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GEN11_SW_CTX_ID_SHIFT,4,2      ; @GEN11_SW_CTX_ID_SHIFT
	.comm	_GEN11_ENGINE_INSTANCE_SHIFT,4,2 ; @GEN11_ENGINE_INSTANCE_SHIFT
	.comm	_GEN11_ENGINE_CLASS_SHIFT,4,2   ; @GEN11_ENGINE_CLASS_SHIFT
	.comm	_GEN8_CTX_ID_SHIFT,4,2          ; @GEN8_CTX_ID_SHIFT
	.no_dead_strip	_lrc_descriptor
.subsections_via_symbols
