	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_engine_context_size      ## -- Begin function intel_engine_context_size
	.p2align	4, 0x90
_intel_engine_context_size:             ## @intel_engine_context_size
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_I915_GTT_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setne	%dil
	callq	_BUILD_BUG_ON
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_18
## %bb.1:
	cmpl	$131, %ebx
	je	LBB0_18
## %bb.2:
	cmpl	$130, %ebx
	jne	LBB0_17
## %bb.3:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	movl	%eax, %ecx
	decl	%ecx
	cmpl	$11, %ecx
	ja	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_16:
	movq	_CXT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_INTEL_GEN
	movl	%r15d, %ebx
	shll	$6, %ebx
	addl	$64, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_DRM_DEBUG_DRIVER
	movq	(%r12), %rsi
	movl	%ebx, %edi
	jmp	LBB0_14
LBB0_17:
	movl	%ebx, %edi
	callq	_MISSING_CASE
LBB0_18:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$8, %ecx
	jl	LBB0_21
## %bb.19:
	movq	_GEN8_LR_CONTEXT_OTHER_SIZE@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_GEN11_LR_CONTEXT_RENDER_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_5:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	movl	%eax, %edi
	callq	_MISSING_CASE
	movq	_DEFAULT_LR_CONTEXT_RENDER_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_15:
	movq	_CXT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %edi
	callq	_GEN6_CXT_TOTAL_SIZE
	jmp	LBB0_13
LBB0_10:
	movq	%r14, %rdi
	callq	_IS_HASWELL
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_HSW_CXT_TOTAL_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_9:
	movq	_GEN8_LR_CONTEXT_RENDER_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_8:
	movq	_GEN9_LR_CONTEXT_RENDER_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_7:
	movq	_GEN10_LR_CONTEXT_RENDER_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_12:
	movq	_GEN7_CXT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %edi
	callq	_GEN7_CXT_TOTAL_SIZE
LBB0_13:
	shll	$6, %eax
	movq	(%r12), %rsi
	movl	%eax, %edi
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_round_up                       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_I915_GTT_PAGE_SIZE,8,3         ## @I915_GTT_PAGE_SIZE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_DEFAULT_LR_CONTEXT_RENDER_SIZE,4,2 ## @DEFAULT_LR_CONTEXT_RENDER_SIZE
	.comm	_GEN11_LR_CONTEXT_RENDER_SIZE,4,2 ## @GEN11_LR_CONTEXT_RENDER_SIZE
	.comm	_GEN10_LR_CONTEXT_RENDER_SIZE,4,2 ## @GEN10_LR_CONTEXT_RENDER_SIZE
	.comm	_GEN9_LR_CONTEXT_RENDER_SIZE,4,2 ## @GEN9_LR_CONTEXT_RENDER_SIZE
	.comm	_GEN8_LR_CONTEXT_RENDER_SIZE,4,2 ## @GEN8_LR_CONTEXT_RENDER_SIZE
	.comm	_HSW_CXT_TOTAL_SIZE,4,2         ## @HSW_CXT_TOTAL_SIZE
	.comm	_GEN7_CXT_SIZE,4,2              ## @GEN7_CXT_SIZE
	.comm	_CXT_SIZE,4,2                   ## @CXT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gen%d CXT_SIZE = %d bytes [0x%08x]\n"

	.comm	_GEN8_LR_CONTEXT_OTHER_SIZE,4,2 ## @GEN8_LR_CONTEXT_OTHER_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_engine_context_size      ; -- Begin function intel_engine_context_size
	.p2align	2
_intel_engine_context_size:             ; @intel_engine_context_size
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _I915_GTT_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_GTT_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUILD_BUG_ON
	sub	w8, w20, #128
	cmp	w8, #2
	b.lo	LBB0_7
; %bb.1:
	cmp	w20, #131
	b.eq	LBB0_7
; %bb.2:
	cmp	w20, #130
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_INTEL_GEN
	sub	w8, w0, #1
	cmp	w8, #11
	b.hi	LBB0_10
; %bb.4:
	mov	w0, #0
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh7:
	adrp	x8, _CXT_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CXT_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x20, x0
	mov	x0, x19
	bl	_INTEL_GEN
	mov	x1, x0
	lsl	w8, w20, #6
	add	w19, w8, #64
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_DRM_DEBUG_DRIVER
	ldr	x1, [x21]
	mov	x0, x19
	b	LBB0_19
LBB0_6:
	mov	x0, x20
	bl	_MISSING_CASE
LBB0_7:
	mov	x0, x19
	bl	_INTEL_GEN
Lloh12:
	adrp	x8, _GEN8_LR_CONTEXT_OTHER_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GEN8_LR_CONTEXT_OTHER_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, #8
	csel	w0, wzr, w8, lt
LBB0_8:
	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
LBB0_9:
Lloh15:
	adrp	x8, _GEN11_LR_CONTEXT_RENDER_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GEN11_LR_CONTEXT_RENDER_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_10:
	mov	x0, x19
	bl	_INTEL_GEN
	bl	_MISSING_CASE
Lloh18:
	adrp	x8, _DEFAULT_LR_CONTEXT_RENDER_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DEFAULT_LR_CONTEXT_RENDER_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_11:
Lloh21:
	adrp	x8, _CXT_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CXT_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_I915_READ
	bl	_GEN6_CXT_TOTAL_SIZE
	b	LBB0_18
LBB0_12:
	mov	x0, x19
	bl	_IS_HASWELL
	cbz	w0, LBB0_17
; %bb.13:
Lloh24:
	adrp	x8, _HSW_CXT_TOTAL_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HSW_CXT_TOTAL_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_14:
Lloh27:
	adrp	x8, _GEN8_LR_CONTEXT_RENDER_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GEN8_LR_CONTEXT_RENDER_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_15:
Lloh30:
	adrp	x8, _GEN9_LR_CONTEXT_RENDER_SIZE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GEN9_LR_CONTEXT_RENDER_SIZE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_16:
Lloh33:
	adrp	x8, _GEN10_LR_CONTEXT_RENDER_SIZE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GEN10_LR_CONTEXT_RENDER_SIZE@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_17:
Lloh36:
	adrp	x8, _GEN7_CXT_SIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GEN7_CXT_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_I915_READ
	bl	_GEN7_CXT_TOTAL_SIZE
LBB0_18:
	lsl	w0, w0, #6
	ldr	x1, [x21]
LBB0_19:
	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	_round_up
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_16-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
                                        ; -- End function
	.comm	_I915_GTT_PAGE_SIZE,8,3         ; @I915_GTT_PAGE_SIZE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_DEFAULT_LR_CONTEXT_RENDER_SIZE,4,2 ; @DEFAULT_LR_CONTEXT_RENDER_SIZE
	.comm	_GEN11_LR_CONTEXT_RENDER_SIZE,4,2 ; @GEN11_LR_CONTEXT_RENDER_SIZE
	.comm	_GEN10_LR_CONTEXT_RENDER_SIZE,4,2 ; @GEN10_LR_CONTEXT_RENDER_SIZE
	.comm	_GEN9_LR_CONTEXT_RENDER_SIZE,4,2 ; @GEN9_LR_CONTEXT_RENDER_SIZE
	.comm	_GEN8_LR_CONTEXT_RENDER_SIZE,4,2 ; @GEN8_LR_CONTEXT_RENDER_SIZE
	.comm	_HSW_CXT_TOTAL_SIZE,4,2         ; @HSW_CXT_TOTAL_SIZE
	.comm	_GEN7_CXT_SIZE,4,2              ; @GEN7_CXT_SIZE
	.comm	_CXT_SIZE,4,2                   ; @CXT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gen%d CXT_SIZE = %d bytes [0x%08x]\n"

	.comm	_GEN8_LR_CONTEXT_OTHER_SIZE,4,2 ; @GEN8_LR_CONTEXT_OTHER_SIZE
.subsections_via_symbols
