	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_execlists
_enable_execlists:                      ## @enable_execlists
	.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, %rbx
	movl	8(%rdi), %edi
	movq	_FORCEWAKE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_assert_forcewakes_active
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_intel_engine_set_hwsp_writemask
	movl	4(%rbx), %edi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_1
## %bb.2:
	movq	_GEN11_GFX_DISABLE_LEGACY_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GFX_RUN_LIST_ENABLE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movq	_RING_MODE_GEN7@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ENGINE_WRITE_FW
	movq	_RING_MI_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_STOP_RING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_DISABLE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_ENGINE_WRITE_FW
	movq	_RING_HWS_PGA@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movl	(%rbx), %edi
	callq	_i915_ggtt_offset
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_ENGINE_WRITE_FW
	movl	(%r15), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ENGINE_POSTING_READ            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FORCEWAKE_ALL,4,2              ## @FORCEWAKE_ALL
	.comm	_GEN11_GFX_DISABLE_LEGACY_MODE,4,2 ## @GEN11_GFX_DISABLE_LEGACY_MODE
	.comm	_GFX_RUN_LIST_ENABLE,4,2        ## @GFX_RUN_LIST_ENABLE
	.comm	_RING_MODE_GEN7,4,2             ## @RING_MODE_GEN7
	.comm	_RING_MI_MODE,4,2               ## @RING_MI_MODE
	.comm	_STOP_RING,4,2                  ## @STOP_RING
	.comm	_RING_HWS_PGA,4,2               ## @RING_HWS_PGA
	.no_dead_strip	_enable_execlists
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_execlists
_enable_execlists:                      ; @enable_execlists
	.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	w0, [x0, #8]
Lloh0:
	adrp	x8, _FORCEWAKE_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORCEWAKE_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_assert_forcewakes_active
	mov	x0, x19
	mov	w1, #-1
	bl	_intel_engine_set_hwsp_writemask
	ldr	w0, [x19, #4]
	bl	_INTEL_GEN
Lloh3:
	adrp	x8, _GEN11_GFX_DISABLE_LEGACY_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN11_GFX_DISABLE_LEGACY_MODE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _GFX_RUN_LIST_ENABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GFX_RUN_LIST_ENABLE@GOTPAGEOFF]
	cmp	w0, #10
	csel	x8, x8, x9, gt
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x2, x0
Lloh7:
	adrp	x8, _RING_MODE_GEN7@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RING_MODE_GEN7@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ENGINE_WRITE_FW
Lloh10:
	adrp	x8, _RING_MI_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RING_MI_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
Lloh13:
	adrp	x8, _STOP_RING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STOP_RING@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	__MASKED_BIT_DISABLE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ENGINE_WRITE_FW
Lloh16:
	adrp	x21, _RING_HWS_PGA@GOTPAGE
Lloh17:
	ldr	x21, [x21, _RING_HWS_PGA@GOTPAGEOFF]
	ldr	w20, [x21]
	ldr	w0, [x19]
	bl	_i915_ggtt_offset
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ENGINE_WRITE_FW
	ldr	w1, [x21]
	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	_ENGINE_POSTING_READ
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FORCEWAKE_ALL,4,2              ; @FORCEWAKE_ALL
	.comm	_GEN11_GFX_DISABLE_LEGACY_MODE,4,2 ; @GEN11_GFX_DISABLE_LEGACY_MODE
	.comm	_GFX_RUN_LIST_ENABLE,4,2        ; @GFX_RUN_LIST_ENABLE
	.comm	_RING_MODE_GEN7,4,2             ; @RING_MODE_GEN7
	.comm	_RING_MI_MODE,4,2               ; @RING_MI_MODE
	.comm	_STOP_RING,4,2                  ; @STOP_RING
	.comm	_RING_HWS_PGA,4,2               ; @RING_HWS_PGA
	.no_dead_strip	_enable_execlists
.subsections_via_symbols
