	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_common
_setup_common:                          ## @setup_common
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r14
	movq	%r14, %rdi
	callq	_INTEL_GEN
	xorl	%edi, %edi
	cmpl	$8, %eax
	setge	%dil
	callq	_GEM_BUG_ON
	movq	%rbx, %rdi
	callq	_setup_irq
	movq	_ring_destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_xcs_resume@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_reset_prepare@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_reset_ring@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_reset_finish@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_ring_context_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_ring_request_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_i9xx_emit_breadcrumb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_gen5_emit_breadcrumb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_2:
	movq	_i9xx_set_default_submission@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$5, %eax
	jle	LBB0_4
## %bb.3:
	movq	_gen6_emit_bb_start@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$3, %eax
	jle	LBB0_6
## %bb.5:
	movq	_i965_emit_bb_start@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	%r14, %rdi
	callq	_IS_I830
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_IS_I845G
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_i915_emit_bb_start@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_i830_emit_bb_start@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ring_destroy,4,2               ## @ring_destroy
	.comm	_xcs_resume,4,2                 ## @xcs_resume
	.comm	_reset_prepare,4,2              ## @reset_prepare
	.comm	_reset_ring,4,2                 ## @reset_ring
	.comm	_reset_finish,4,2               ## @reset_finish
	.comm	_ring_context_ops,4,2           ## @ring_context_ops
	.comm	_ring_request_alloc,4,2         ## @ring_request_alloc
	.comm	_i9xx_emit_breadcrumb,4,2       ## @i9xx_emit_breadcrumb
	.comm	_gen5_emit_breadcrumb,4,2       ## @gen5_emit_breadcrumb
	.comm	_i9xx_set_default_submission,4,2 ## @i9xx_set_default_submission
	.comm	_gen6_emit_bb_start,4,2         ## @gen6_emit_bb_start
	.comm	_i965_emit_bb_start,4,2         ## @i965_emit_bb_start
	.comm	_i830_emit_bb_start,4,2         ## @i830_emit_bb_start
	.comm	_i915_emit_bb_start,4,2         ## @i915_emit_bb_start
	.no_dead_strip	_setup_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_common
_setup_common:                          ; @setup_common
	.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	x20, [x0, #48]
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #7
	cset	w0, gt
	bl	_GEM_BUG_ON
	mov	x0, x19
	bl	_setup_irq
Lloh0:
	adrp	x8, _ring_destroy@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ring_destroy@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh3:
	adrp	x8, _xcs_resume@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xcs_resume@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _reset_prepare@GOTPAGE
Lloh7:
	ldr	x9, [x9, _reset_prepare@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _reset_ring@GOTPAGE
Lloh10:
	ldr	x10, [x10, _reset_ring@GOTPAGEOFF]
	stp	w9, w8, [x19, #32]
Lloh11:
	ldr	w8, [x10]
Lloh12:
	adrp	x9, _reset_finish@GOTPAGE
Lloh13:
	ldr	x9, [x9, _reset_finish@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh15:
	adrp	x8, _ring_context_ops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ring_context_ops@GOTPAGEOFF]
	str	x8, [x19, #16]
Lloh17:
	adrp	x8, _ring_request_alloc@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ring_request_alloc@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _i9xx_emit_breadcrumb@GOTPAGE
Lloh21:
	ldr	x9, [x9, _i9xx_emit_breadcrumb@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	mov	x0, x20
	mov	w1, #5
	bl	_IS_GEN
	cbz	x0, LBB0_2
; %bb.1:
Lloh23:
	adrp	x8, _gen5_emit_breadcrumb@GOTPAGE
Lloh24:
	ldr	x8, [x8, _gen5_emit_breadcrumb@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_2:
Lloh26:
	adrp	x8, _i9xx_set_default_submission@GOTPAGE
Lloh27:
	ldr	x8, [x8, _i9xx_set_default_submission@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #5
	b.le	LBB0_4
; %bb.3:
Lloh29:
	adrp	x21, _gen6_emit_bb_start@GOTPAGE
Lloh30:
	ldr	x21, [x21, _gen6_emit_bb_start@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #3
	b.le	LBB0_6
; %bb.5:
Lloh31:
	adrp	x21, _i965_emit_bb_start@GOTPAGE
Lloh32:
	ldr	x21, [x21, _i965_emit_bb_start@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_IS_I830
Lloh33:
	adrp	x21, _i830_emit_bb_start@GOTPAGE
Lloh34:
	ldr	x21, [x21, _i830_emit_bb_start@GOTPAGEOFF]
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_IS_I845G
Lloh35:
	adrp	x8, _i915_emit_bb_start@GOTPAGE
Lloh36:
	ldr	x8, [x8, _i915_emit_bb_start@GOTPAGEOFF]
	cmp	x0, #0
	csel	x21, x8, x21, eq
LBB0_8:
	ldr	w8, [x21]
	str	w8, [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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ring_destroy,4,2               ; @ring_destroy
	.comm	_xcs_resume,4,2                 ; @xcs_resume
	.comm	_reset_prepare,4,2              ; @reset_prepare
	.comm	_reset_ring,4,2                 ; @reset_ring
	.comm	_reset_finish,4,2               ; @reset_finish
	.comm	_ring_context_ops,4,2           ; @ring_context_ops
	.comm	_ring_request_alloc,4,2         ; @ring_request_alloc
	.comm	_i9xx_emit_breadcrumb,4,2       ; @i9xx_emit_breadcrumb
	.comm	_gen5_emit_breadcrumb,4,2       ; @gen5_emit_breadcrumb
	.comm	_i9xx_set_default_submission,4,2 ; @i9xx_set_default_submission
	.comm	_gen6_emit_bb_start,4,2         ; @gen6_emit_bb_start
	.comm	_i965_emit_bb_start,4,2         ; @i965_emit_bb_start
	.comm	_i830_emit_bb_start,4,2         ; @i830_emit_bb_start
	.comm	_i915_emit_bb_start,4,2         ; @i915_emit_bb_start
	.no_dead_strip	_setup_common
.subsections_via_symbols
