	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __intel_engine_init_ctx_wa
___intel_engine_init_ctx_wa:            ## @__intel_engine_init_ctx_wa
	.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), %rax
	movq	_RENDER_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movl	8(%rdi), %eax
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%eax, %edx
	callq	_wa_init_start
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tgl_ctx_workarounds_init
	jmp	LBB0_23
LBB0_3:
	movq	%r15, %rdi
	movl	$11, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_icl_ctx_workarounds_init
	jmp	LBB0_23
LBB0_5:
	movq	%r15, %rdi
	callq	_IS_CANNONLAKE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cnl_ctx_workarounds_init
	jmp	LBB0_23
LBB0_7:
	movq	%r15, %rdi
	callq	_IS_COFFEELAKE
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cfl_ctx_workarounds_init
	jmp	LBB0_23
LBB0_9:
	movq	%r15, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_glk_ctx_workarounds_init
	jmp	LBB0_23
LBB0_11:
	movq	%r15, %rdi
	callq	_IS_KABYLAKE
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_kbl_ctx_workarounds_init
	jmp	LBB0_23
LBB0_13:
	movq	%r15, %rdi
	callq	_IS_BROXTON
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bxt_ctx_workarounds_init
	jmp	LBB0_23
LBB0_15:
	movq	%r15, %rdi
	callq	_IS_SKYLAKE
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_skl_ctx_workarounds_init
	jmp	LBB0_23
LBB0_17:
	movq	%r15, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_chv_ctx_workarounds_init
	jmp	LBB0_23
LBB0_19:
	movq	%r15, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bdw_ctx_workarounds_init
	jmp	LBB0_23
LBB0_21:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$8, %eax
	jge	LBB0_22
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	movl	%eax, %edi
	callq	_MISSING_CASE
LBB0_23:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wa_init_finish                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RENDER_CLASS,8,3               ## @RENDER_CLASS
	.no_dead_strip	___intel_engine_init_ctx_wa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __intel_engine_init_ctx_wa
___intel_engine_init_ctx_wa:            ; @__intel_engine_init_ctx_wa
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RENDER_CLASS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RENDER_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #16]
	ldr	w8, [x0, #8]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x8
	bl	_wa_init_start
	mov	x0, x21
	mov	w1, #12
	bl	_IS_GEN
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_tgl_ctx_workarounds_init
	b	LBB0_24
LBB0_3:
	mov	x0, x21
	mov	w1, #11
	bl	_IS_GEN
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_icl_ctx_workarounds_init
	b	LBB0_24
LBB0_5:
	mov	x0, x21
	bl	_IS_CANNONLAKE
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_cnl_ctx_workarounds_init
	b	LBB0_24
LBB0_7:
	mov	x0, x21
	bl	_IS_COFFEELAKE
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	bl	_cfl_ctx_workarounds_init
	b	LBB0_24
LBB0_9:
	mov	x0, x21
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	bl	_glk_ctx_workarounds_init
	b	LBB0_24
LBB0_11:
	mov	x0, x21
	bl	_IS_KABYLAKE
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	bl	_kbl_ctx_workarounds_init
	b	LBB0_24
LBB0_13:
	mov	x0, x21
	bl	_IS_BROXTON
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	bl	_bxt_ctx_workarounds_init
	b	LBB0_24
LBB0_15:
	mov	x0, x21
	bl	_IS_SKYLAKE
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x20
	mov	x1, x19
	bl	_skl_ctx_workarounds_init
	b	LBB0_24
LBB0_17:
	mov	x0, x21
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x20
	mov	x1, x19
	bl	_chv_ctx_workarounds_init
	b	LBB0_24
LBB0_19:
	mov	x0, x21
	bl	_IS_BROADWELL
	cbz	x0, LBB0_21
; %bb.20:
	mov	x0, x20
	mov	x1, x19
	bl	_bdw_ctx_workarounds_init
	b	LBB0_24
LBB0_21:
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #8
	b.ge	LBB0_23
LBB0_22:
	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_23:
	mov	x0, x21
	bl	_INTEL_GEN
	bl	_MISSING_CASE
LBB0_24:
	mov	x0, x19
	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	_wa_init_finish
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RENDER_CLASS,8,3               ; @RENDER_CLASS
	.no_dead_strip	___intel_engine_init_ctx_wa
.subsections_via_symbols
