	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_render_ring_init_dri     ## -- Begin function intel_render_ring_init_dri
	.p2align	4, 0x90
_intel_render_ring_init_dri:            ## @intel_render_ring_init_dri
	.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, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movq	_RCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rbx
	shlq	$5, %rbx
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%r13,%rbx)
	movq	%rax, 8(%r13,%rbx)
	movq	_RENDER_RING_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%r13,%rbx)
	callq	_INTEL_INFO
	cmpl	$6, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_2:
	movq	_i9xx_add_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r13,%rbx)
	movq	%r14, %rdi
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	jge	LBB0_4
## %bb.3:
	movq	_gen2_render_ring_flush@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_gen4_render_ring_flush@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 84(%r13,%rbx)
	movq	_ring_get_seqno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r13,%rbx)
	movq	_ring_set_seqno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%r13,%rbx)
	movq	%r14, %rdi
	callq	_IS_GEN2
	testq	%rax, %rax
	movq	_i8xx_ring_get_irq@GOTPCREL(%rip), %rax
	cmoveq	_i9xx_ring_get_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r13,%rbx)
	movq	_i8xx_ring_put_irq@GOTPCREL(%rip), %rax
	cmoveq	_i9xx_ring_put_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r13,%rbx)
	movq	_I915_USER_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r13,%rbx)
	movq	_ring_write_tail@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r13,%rbx)
	movq	%r14, %rdi
	callq	_INTEL_INFO
	cmpl	$3, (%rax)
	jle	LBB0_7
## %bb.6:
	movq	_i965_dispatch_execbuffer@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	%r14, %rdi
	callq	_IS_I830
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	callq	_IS_845G
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_i915_dispatch_execbuffer@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_i830_dispatch_execbuffer@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 56(%r13,%rbx)
	movq	_init_render_ring@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r13,%rbx)
	movq	_render_ring_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13,%rbx)
	movq	%r14, 32(%r13,%rbx)
	leaq	(%rbx,%r13), %rdi
	addq	$44, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%rbx,%r13), %rdi
	addq	$40, %rdi
	callq	_INIT_LIST_HEAD
	movl	%r15d, 16(%r13,%rbx)
	movl	%r15d, 20(%r13,%rbx)
	movq	32(%r13,%rbx), %rdi
	callq	_IS_I830
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	(%rbx,%r13), %rax
	addq	$32, %rax
	movq	(%rax), %rdi
	callq	_IS_845G
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	leaq	(%rbx,%r13), %rax
	addq	$20, %rax
	addl	$-128, (%rax)
LBB0_15:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_ioremap_wc
	movq	%rax, 24(%r13,%rbx)
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%r14, %rdi
	callq	_I915_NEED_GFX_HWS
	testl	%eax, %eax
	je	LBB0_21
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_19:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	addq	%rbx, %r13
	movq	%r13, %rdi
	callq	_init_phys_hws_pga
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_RCS,8,3                        ## @RCS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"render ring"

	.comm	_RENDER_RING_BASE,4,2           ## @RENDER_RING_BASE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_i9xx_add_request,4,2           ## @i9xx_add_request
	.comm	_gen2_render_ring_flush,4,2     ## @gen2_render_ring_flush
	.comm	_gen4_render_ring_flush,4,2     ## @gen4_render_ring_flush
	.comm	_ring_get_seqno,4,2             ## @ring_get_seqno
	.comm	_ring_set_seqno,4,2             ## @ring_set_seqno
	.comm	_i8xx_ring_get_irq,4,2          ## @i8xx_ring_get_irq
	.comm	_i8xx_ring_put_irq,4,2          ## @i8xx_ring_put_irq
	.comm	_i9xx_ring_get_irq,4,2          ## @i9xx_ring_get_irq
	.comm	_i9xx_ring_put_irq,4,2          ## @i9xx_ring_put_irq
	.comm	_I915_USER_INTERRUPT,4,2        ## @I915_USER_INTERRUPT
	.comm	_ring_write_tail,4,2            ## @ring_write_tail
	.comm	_i965_dispatch_execbuffer,4,2   ## @i965_dispatch_execbuffer
	.comm	_i830_dispatch_execbuffer,4,2   ## @i830_dispatch_execbuffer
	.comm	_i915_dispatch_execbuffer,4,2   ## @i915_dispatch_execbuffer
	.comm	_init_render_ring,4,2           ## @init_render_ring
	.comm	_render_ring_cleanup,4,2        ## @render_ring_cleanup
L_.str.1:                               ## @.str.1
	.asciz	"can not ioremap virtual address for ring buffer\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_render_ring_init_dri     ; -- Begin function intel_render_ring_init_dri
	.p2align	2
_intel_render_ring_init_dri:            ; @intel_render_ring_init_dri
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RCS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RCS@GOTPAGEOFF]
	ldr	x23, [x8]
Lloh2:
	ldr	x24, [x9]
	mov	w8, #96
	madd	x19, x24, x8, x23
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	stp	x8, x24, [x19]
Lloh5:
	adrp	x8, _RENDER_RING_BASE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RENDER_RING_BASE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #92]
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #6
	b.lt	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
Lloh10:
	adrp	x8, _i9xx_add_request@GOTPAGE
Lloh11:
	ldr	x8, [x8, _i9xx_add_request@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mov	w9, #96
	madd	x25, x24, x9, x23
	str	w8, [x25, #88]
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w8, [x0]
Lloh13:
	adrp	x9, _gen2_render_ring_flush@GOTPAGE
Lloh14:
	ldr	x9, [x9, _gen2_render_ring_flush@GOTPAGEOFF]
Lloh15:
	adrp	x10, _gen4_render_ring_flush@GOTPAGE
Lloh16:
	ldr	x10, [x10, _gen4_render_ring_flush@GOTPAGEOFF]
	cmp	w8, #4
	csel	x8, x9, x10, lt
	ldr	w8, [x8]
	str	w8, [x25, #84]
Lloh17:
	adrp	x8, _ring_get_seqno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ring_get_seqno@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x25, #80]
Lloh20:
	adrp	x8, _ring_set_seqno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ring_set_seqno@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x25, #76]
	mov	x0, x20
	bl	_IS_GEN2
Lloh23:
	adrp	x8, _i9xx_ring_get_irq@GOTPAGE
Lloh24:
	ldr	x8, [x8, _i9xx_ring_get_irq@GOTPAGEOFF]
Lloh25:
	adrp	x9, _i8xx_ring_get_irq@GOTPAGE
Lloh26:
	ldr	x9, [x9, _i8xx_ring_get_irq@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _i9xx_ring_put_irq@GOTPAGE
Lloh28:
	ldr	x9, [x9, _i9xx_ring_put_irq@GOTPAGEOFF]
Lloh29:
	adrp	x10, _i8xx_ring_put_irq@GOTPAGE
Lloh30:
	ldr	x10, [x10, _i8xx_ring_put_irq@GOTPAGEOFF]
	str	w8, [x25, #72]
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x25, #68]
Lloh31:
	adrp	x8, _I915_USER_INTERRUPT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _I915_USER_INTERRUPT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x25, #64]
Lloh34:
	adrp	x8, _ring_write_tail@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ring_write_tail@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x25, #60]
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #3
	b.le	LBB0_4
; %bb.3:
Lloh37:
	adrp	x25, _i965_dispatch_execbuffer@GOTPAGE
Lloh38:
	ldr	x25, [x25, _i965_dispatch_execbuffer@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_IS_I830
Lloh39:
	adrp	x25, _i830_dispatch_execbuffer@GOTPAGE
Lloh40:
	ldr	x25, [x25, _i830_dispatch_execbuffer@GOTPAGEOFF]
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_IS_845G
Lloh41:
	adrp	x8, _i915_dispatch_execbuffer@GOTPAGE
Lloh42:
	ldr	x8, [x8, _i915_dispatch_execbuffer@GOTPAGEOFF]
	cmp	x0, #0
	csel	x25, x8, x25, eq
LBB0_6:
	ldr	w8, [x25]
	mov	w9, #96
	madd	x25, x24, x9, x23
	str	w8, [x25, #56]
Lloh43:
	adrp	x8, _init_render_ring@GOTPAGE
Lloh44:
	ldr	x8, [x8, _init_render_ring@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x25, #52]
Lloh46:
	adrp	x8, _render_ring_cleanup@GOTPAGE
Lloh47:
	ldr	x8, [x8, _render_ring_cleanup@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [x25, #48]
	mov	x26, x25
	str	x20, [x26, #32]!
	add	x0, x25, #44
	bl	_INIT_LIST_HEAD
	add	x0, x25, #40
	bl	_INIT_LIST_HEAD
	str	w21, [x25, #20]!
	stur	w21, [x25, #-4]
	ldr	x0, [x26]
	bl	_IS_I830
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x26]
	bl	_IS_845G
	cbz	x0, LBB0_9
LBB0_8:
	ldr	w8, [x25]
	sub	w8, w8, #128
	str	w8, [x25]
LBB0_9:
	mov	x0, x22
	mov	x1, x21
	bl	_ioremap_wc
	mov	w8, #96
	madd	x8, x24, x8, x23
	str	x0, [x8, #24]
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_I915_NEED_GFX_HWS
	cbz	w0, LBB0_15
LBB0_11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
Lloh49:
	adrp	x0, l_.str.1@PAGE
Lloh50:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh51:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x19
	bl	_init_phys_hws_pga
	cbnz	w0, LBB0_14
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_RCS,8,3                        ; @RCS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"render ring"

	.comm	_RENDER_RING_BASE,4,2           ; @RENDER_RING_BASE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_i9xx_add_request,4,2           ; @i9xx_add_request
	.comm	_gen2_render_ring_flush,4,2     ; @gen2_render_ring_flush
	.comm	_gen4_render_ring_flush,4,2     ; @gen4_render_ring_flush
	.comm	_ring_get_seqno,4,2             ; @ring_get_seqno
	.comm	_ring_set_seqno,4,2             ; @ring_set_seqno
	.comm	_i8xx_ring_get_irq,4,2          ; @i8xx_ring_get_irq
	.comm	_i8xx_ring_put_irq,4,2          ; @i8xx_ring_put_irq
	.comm	_i9xx_ring_get_irq,4,2          ; @i9xx_ring_get_irq
	.comm	_i9xx_ring_put_irq,4,2          ; @i9xx_ring_put_irq
	.comm	_I915_USER_INTERRUPT,4,2        ; @I915_USER_INTERRUPT
	.comm	_ring_write_tail,4,2            ; @ring_write_tail
	.comm	_i965_dispatch_execbuffer,4,2   ; @i965_dispatch_execbuffer
	.comm	_i830_dispatch_execbuffer,4,2   ; @i830_dispatch_execbuffer
	.comm	_i915_dispatch_execbuffer,4,2   ; @i915_dispatch_execbuffer
	.comm	_init_render_ring,4,2           ; @init_render_ring
	.comm	_render_ring_cleanup,4,2        ; @render_ring_cleanup
l_.str.1:                               ; @.str.1
	.asciz	"can not ioremap virtual address for ring buffer\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
