	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mi_set_context
_mi_set_context:                        ## @mi_set_context
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_IS_GEN6
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_I915_GEM_GPU_DOMAINS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*(%rbx)
	testl	%eax, %eax
	jne	LBB0_11
LBB0_3:
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_intel_ring_begin
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movl	8(%rbx), %edi
	callq	_IS_GEN7
	movq	_MI_ARB_ON_OFF@GOTPCREL(%rip), %r12
	movq	_MI_NOOP@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movl	(%r13), %esi
	jmp	LBB0_7
LBB0_5:
	movq	_MI_ARB_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r12), %esi
LBB0_7:
	movq	%rbx, %rdi
	callq	_intel_ring_emit
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_intel_ring_emit
	movq	_MI_SET_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_intel_ring_emit
	movq	(%r15), %rax
	movq	_MI_MM_SPACE_GTT@GOTPCREL(%rip), %rcx
	movq	_MI_SAVE_EXT_STATE_EN@GOTPCREL(%rip), %rdx
	movq	_MI_RESTORE_EXT_STATE_EN@GOTPCREL(%rip), %rsi
	orl	(%rax), %r14d
	orl	(%rcx), %r14d
	orl	(%rdx), %r14d
	orl	(%rsi), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_intel_ring_emit
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_intel_ring_emit
	movl	8(%rbx), %edi
	callq	_IS_GEN7
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movl	(%r13), %esi
	jmp	LBB0_10
LBB0_8:
	movq	_MI_ARB_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r12), %esi
LBB0_10:
	movq	%rbx, %rdi
	callq	_intel_ring_emit
	movq	%rbx, %rdi
	callq	_intel_ring_advance
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_GEM_GPU_DOMAINS,4,2       ## @I915_GEM_GPU_DOMAINS
	.comm	_MI_ARB_ON_OFF,4,2              ## @MI_ARB_ON_OFF
	.comm	_MI_ARB_DISABLE,4,2             ## @MI_ARB_DISABLE
	.comm	_MI_NOOP,4,2                    ## @MI_NOOP
	.comm	_MI_SET_CONTEXT,4,2             ## @MI_SET_CONTEXT
	.comm	_MI_MM_SPACE_GTT,4,2            ## @MI_MM_SPACE_GTT
	.comm	_MI_SAVE_EXT_STATE_EN,4,2       ## @MI_SAVE_EXT_STATE_EN
	.comm	_MI_RESTORE_EXT_STATE_EN,4,2    ## @MI_RESTORE_EXT_STATE_EN
	.comm	_MI_ARB_ENABLE,4,2              ## @MI_ARB_ENABLE
	.no_dead_strip	_mi_set_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mi_set_context
_mi_set_context:                        ; @mi_set_context
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_IS_GEN6
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _I915_GEM_GPU_DOMAINS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I915_GEM_GPU_DOMAINS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #0
	blr	x8
	cbnz	w0, LBB0_5
LBB0_3:
	mov	x0, x19
	mov	w1, #6
	bl	_intel_ring_begin
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
	bl	_IS_GEN7
Lloh3:
	adrp	x22, _MI_NOOP@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MI_NOOP@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x23, _MI_ARB_ON_OFF@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MI_ARB_ON_OFF@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh7:
	adrp	x10, _MI_ARB_DISABLE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MI_ARB_DISABLE@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	x0, #0
	csel	w1, w8, w9, eq
	mov	x0, x19
	bl	_intel_ring_emit
	ldr	w1, [x22]
	mov	x0, x19
	bl	_intel_ring_emit
Lloh10:
	adrp	x8, _MI_SET_CONTEXT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MI_SET_CONTEXT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_intel_ring_emit
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _MI_MM_SPACE_GTT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MI_MM_SPACE_GTT@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _MI_SAVE_EXT_STATE_EN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MI_SAVE_EXT_STATE_EN@GOTPAGEOFF]
Lloh18:
	adrp	x11, _MI_RESTORE_EXT_STATE_EN@GOTPAGE
Lloh19:
	ldr	x11, [x11, _MI_RESTORE_EXT_STATE_EN@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	ldr	w11, [x11]
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w1, w8, w11
	mov	x0, x19
	bl	_intel_ring_emit
	ldr	w1, [x22]
	mov	x0, x19
	bl	_intel_ring_emit
	ldr	w0, [x19, #8]
	bl	_IS_GEN7
	ldr	w8, [x22]
	ldr	w9, [x23]
Lloh22:
	adrp	x10, _MI_ARB_ENABLE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _MI_ARB_ENABLE@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	x0, #0
	csel	w1, w8, w9, eq
	mov	x0, x19
	bl	_intel_ring_emit
	mov	x0, x19
	bl	_intel_ring_advance
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_GEM_GPU_DOMAINS,4,2       ; @I915_GEM_GPU_DOMAINS
	.comm	_MI_ARB_ON_OFF,4,2              ; @MI_ARB_ON_OFF
	.comm	_MI_ARB_DISABLE,4,2             ; @MI_ARB_DISABLE
	.comm	_MI_NOOP,4,2                    ; @MI_NOOP
	.comm	_MI_SET_CONTEXT,4,2             ; @MI_SET_CONTEXT
	.comm	_MI_MM_SPACE_GTT,4,2            ; @MI_MM_SPACE_GTT
	.comm	_MI_SAVE_EXT_STATE_EN,4,2       ; @MI_SAVE_EXT_STATE_EN
	.comm	_MI_RESTORE_EXT_STATE_EN,4,2    ; @MI_RESTORE_EXT_STATE_EN
	.comm	_MI_ARB_ENABLE,4,2              ; @MI_ARB_ENABLE
	.no_dead_strip	_mi_set_context
.subsections_via_symbols
