	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_gem_init_rings
_i915_gem_init_rings:                   ## @i915_gem_init_rings
	.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
	movq	(%rdi), %r15
	callq	_intel_init_render_ring_buffer
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	callq	_HAS_BSD
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_intel_init_bsd_ring_buffer
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
LBB0_3:
	movq	%rbx, %rdi
	callq	_intel_enable_blt
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_intel_init_blt_ring_buffer
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	movq	$-4097, %rsi                    ## imm = 0xEFFF
	callq	_i915_gem_set_seqno
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r14d
	movq	_BCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	callq	_intel_cleanup_ring_buffer
LBB0_8:
	movq	_VCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	callq	_intel_cleanup_ring_buffer
LBB0_9:
	movq	_RCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	callq	_intel_cleanup_ring_buffer
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_BCS,8,3                        ## @BCS
	.comm	_VCS,8,3                        ## @VCS
	.comm	_RCS,8,3                        ## @RCS
	.no_dead_strip	_i915_gem_init_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_gem_init_rings
_i915_gem_init_rings:                   ; @i915_gem_init_rings
	.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	x20, x0
	ldr	x21, [x0]
	bl	_intel_init_render_ring_buffer
	mov	x19, x0
	cbnz	w0, LBB0_9
; %bb.1:
	mov	x0, x20
	bl	_HAS_BSD
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_intel_init_bsd_ring_buffer
	mov	x19, x0
	cbnz	w0, LBB0_8
LBB0_3:
	mov	x0, x20
	bl	_intel_enable_blt
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_intel_init_blt_ring_buffer
	mov	x19, x0
	cbnz	w0, LBB0_7
LBB0_5:
	mov	x0, x20
	mov	x1, #-4097
	bl	_i915_gem_set_seqno
	mov	x19, x0
	cbz	w0, LBB0_9
; %bb.6:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _BCS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_intel_cleanup_ring_buffer
LBB0_7:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _VCS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VCS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_intel_cleanup_ring_buffer
LBB0_8:
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _RCS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RCS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_intel_cleanup_ring_buffer
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BCS,8,3                        ; @BCS
	.comm	_VCS,8,3                        ; @VCS
	.comm	_RCS,8,3                        ; @RCS
	.no_dead_strip	_i915_gem_init_rings
.subsections_via_symbols
