	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_render_ring
_init_render_ring:                      ## @init_render_ring
	.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	%rdi, %r15
	movq	8(%rdi), %r13
	callq	_init_ring_common
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_MI_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_VS_TIMER_DISPATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_2:
	movq	%r13, %rdi
	callq	_INTEL_INFO
	cmpl	$6, (%rax)
	jl	LBB0_4
## %bb.3:
	movq	_MI_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ASYNC_FLIP_PERF_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_4:
	movq	%r13, %rdi
	callq	_INTEL_INFO
	cmpl	$6, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_GFX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_GFX_TLB_INVALIDATE_ALWAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_6:
	movq	%r13, %rdi
	callq	_IS_GEN7
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_GFX_MODE_GEN7@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_GFX_TLB_INVALIDATE_ALWAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_DISABLE
	movl	%eax, %ebx
	movq	_GFX_REPLAY_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	orl	%eax, %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
LBB0_8:
	movq	%r13, %rdi
	callq	_INTEL_INFO
	cmpl	$5, (%rax)
	jl	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	callq	_init_pipe_control
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r13, %rdi
	callq	_IS_GEN6
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_CACHE_MODE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_CM0_STC_EVICT_DISABLE_LRA_SNB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_DISABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_GFX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_GFX_TLB_INVALIDATE_ALWAYS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, (%r15)
LBB0_13:
	movq	%r13, %rdi
	callq	_INTEL_INFO
	cmpl	$6, (%rax)
	jl	LBB0_15
## %bb.14:
	movq	_INSTPM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_INSTPM_FORCE_ORDERING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_15:
	movq	%r13, %rdi
	callq	_HAS_L3_GPU_CACHE
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_GEN6_RENDER_L3_PARITY_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	movq	%r15, %rdi
	callq	_I915_WRITE_IMR
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MI_MODE,4,2                    ## @MI_MODE
	.comm	_VS_TIMER_DISPATCH,4,2          ## @VS_TIMER_DISPATCH
	.comm	_ASYNC_FLIP_PERF_DISABLE,4,2    ## @ASYNC_FLIP_PERF_DISABLE
	.comm	_GFX_MODE,4,2                   ## @GFX_MODE
	.comm	_GFX_TLB_INVALIDATE_ALWAYS,4,2  ## @GFX_TLB_INVALIDATE_ALWAYS
	.comm	_GFX_MODE_GEN7,4,2              ## @GFX_MODE_GEN7
	.comm	_GFX_REPLAY_MODE,4,2            ## @GFX_REPLAY_MODE
	.comm	_CACHE_MODE_0,4,2               ## @CACHE_MODE_0
	.comm	_CM0_STC_EVICT_DISABLE_LRA_SNB,4,2 ## @CM0_STC_EVICT_DISABLE_LRA_SNB
	.comm	_INSTPM,4,2                     ## @INSTPM
	.comm	_INSTPM_FORCE_ORDERING,4,2      ## @INSTPM_FORCE_ORDERING
	.comm	_GEN6_RENDER_L3_PARITY_ERROR,4,2 ## @GEN6_RENDER_L3_PARITY_ERROR
	.no_dead_strip	_init_render_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_render_ring
_init_render_ring:                      ; @init_render_ring
	.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	x19, x0
	ldr	x21, [x0, #8]
	bl	_init_ring_common
	mov	x20, x0
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MI_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MI_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _VS_TIMER_DISPATCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VS_TIMER_DISPATCH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x22
	bl	_I915_WRITE
LBB0_2:
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #6
	b.lt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _MI_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MI_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
Lloh9:
	adrp	x8, _ASYNC_FLIP_PERF_DISABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ASYNC_FLIP_PERF_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x22
	bl	_I915_WRITE
LBB0_4:
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	w8, [x0]
Lloh12:
	adrp	x24, _GFX_TLB_INVALIDATE_ALWAYS@GOTPAGE
Lloh13:
	ldr	x24, [x24, _GFX_TLB_INVALIDATE_ALWAYS@GOTPAGEOFF]
	cmp	w8, #6
	b.ne	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _GFX_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFX_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	ldr	w0, [x24]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x22
	bl	_I915_WRITE
LBB0_6:
	mov	x0, x21
	bl	_IS_GEN7
	cbz	x0, LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _GFX_MODE_GEN7@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFX_MODE_GEN7@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
	ldr	w0, [x24]
	bl	__MASKED_BIT_DISABLE
	mov	x23, x0
Lloh20:
	adrp	x8, _GFX_REPLAY_MODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFX_REPLAY_MODE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	orr	w1, w0, w23
	mov	x0, x22
	bl	_I915_WRITE
LBB0_8:
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #5
	b.lt	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_init_pipe_control
	mov	x20, x0
	cbnz	w0, LBB0_16
LBB0_10:
	mov	x0, x21
	bl	_IS_GEN6
	cbz	x0, LBB0_12
; %bb.11:
Lloh23:
	adrp	x8, _CACHE_MODE_0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CACHE_MODE_0@GOTPAGEOFF]
Lloh25:
	ldr	w22, [x8]
Lloh26:
	adrp	x8, _CM0_STC_EVICT_DISABLE_LRA_SNB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CM0_STC_EVICT_DISABLE_LRA_SNB@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	__MASKED_BIT_DISABLE
	mov	x1, x0
	mov	x0, x22
	bl	_I915_WRITE
Lloh29:
	adrp	x8, _GFX_MODE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GFX_MODE@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_I915_READ
	ldr	w8, [x24]
	tst	w8, w0
	cset	w8, ne
	str	w8, [x19]
LBB0_12:
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #6
	b.lt	LBB0_14
; %bb.13:
Lloh32:
	adrp	x8, _INSTPM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _INSTPM@GOTPAGEOFF]
Lloh34:
	ldr	w22, [x8]
Lloh35:
	adrp	x8, _INSTPM_FORCE_ORDERING@GOTPAGE
Lloh36:
	ldr	x8, [x8, _INSTPM_FORCE_ORDERING@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x22
	bl	_I915_WRITE
LBB0_14:
	mov	x0, x21
	bl	_HAS_L3_GPU_CACHE
	cbz	x0, LBB0_16
; %bb.15:
Lloh38:
	adrp	x8, _GEN6_RENDER_L3_PARITY_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _GEN6_RENDER_L3_PARITY_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	mvn	w1, w8
	mov	x0, x19
	bl	_I915_WRITE_IMR
LBB0_16:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_MI_MODE,4,2                    ; @MI_MODE
	.comm	_VS_TIMER_DISPATCH,4,2          ; @VS_TIMER_DISPATCH
	.comm	_ASYNC_FLIP_PERF_DISABLE,4,2    ; @ASYNC_FLIP_PERF_DISABLE
	.comm	_GFX_MODE,4,2                   ; @GFX_MODE
	.comm	_GFX_TLB_INVALIDATE_ALWAYS,4,2  ; @GFX_TLB_INVALIDATE_ALWAYS
	.comm	_GFX_MODE_GEN7,4,2              ; @GFX_MODE_GEN7
	.comm	_GFX_REPLAY_MODE,4,2            ; @GFX_REPLAY_MODE
	.comm	_CACHE_MODE_0,4,2               ; @CACHE_MODE_0
	.comm	_CM0_STC_EVICT_DISABLE_LRA_SNB,4,2 ; @CM0_STC_EVICT_DISABLE_LRA_SNB
	.comm	_INSTPM,4,2                     ; @INSTPM
	.comm	_INSTPM_FORCE_ORDERING,4,2      ; @INSTPM_FORCE_ORDERING
	.comm	_GEN6_RENDER_L3_PARITY_ERROR,4,2 ; @GEN6_RENDER_L3_PARITY_ERROR
	.no_dead_strip	_init_render_ring
.subsections_via_symbols
