	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_emit_init_breadcrumb
_gen8_emit_init_breadcrumb:             ## @gen8_emit_init_breadcrumb
	.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, %r14
	movq	8(%rdi), %rax
	xorl	%edi, %edi
	cmpl	$0, 4(%rax)
	sete	%dil
	callq	_GEM_BUG_ON
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_intel_ring_begin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_MI_ARB_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_MI_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_MI_STORE_DWORD_IMM_GEN4@GOTPCREL(%rip), %rax
	movq	_MI_USE_GGTT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	$0, 16(%rbx)
	movl	4(%r14), %eax
	decl	%eax
	movq	%rbx, %r15
	addq	$24, %r15
	movl	%eax, 20(%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_intel_ring_advance
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_intel_ring_offset
	movl	%eax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MI_ARB_CHECK,4,2               ## @MI_ARB_CHECK
	.comm	_MI_NOOP,4,2                    ## @MI_NOOP
	.comm	_MI_STORE_DWORD_IMM_GEN4,4,2    ## @MI_STORE_DWORD_IMM_GEN4
	.comm	_MI_USE_GGTT,4,2                ## @MI_USE_GGTT
	.no_dead_strip	_gen8_emit_init_breadcrumb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_emit_init_breadcrumb
_gen8_emit_init_breadcrumb:             ; @gen8_emit_init_breadcrumb
	.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	x8, [x0, #8]
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x19
	mov	w1, #6
	bl	_intel_ring_begin
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x8, _MI_ARB_CHECK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MI_ARB_CHECK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh3:
	adrp	x8, _MI_NOOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MI_NOOP@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MI_STORE_DWORD_IMM_GEN4@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MI_STORE_DWORD_IMM_GEN4@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _MI_USE_GGTT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MI_USE_GGTT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh11:
	ldr	w8, [x8]
	stp	w8, w9, [x20, #4]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	stp	w8, wzr, [x20, #12]
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	add	x21, x20, #24
	str	w8, [x20, #20]
	mov	x0, x19
	mov	x1, x21
	bl	_intel_ring_advance
	mov	x0, x19
	mov	x1, x21
	bl	_intel_ring_offset
	str	w0, [x19]
	mov	w0, #0
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MI_ARB_CHECK,4,2               ; @MI_ARB_CHECK
	.comm	_MI_NOOP,4,2                    ; @MI_NOOP
	.comm	_MI_STORE_DWORD_IMM_GEN4,4,2    ; @MI_STORE_DWORD_IMM_GEN4
	.comm	_MI_USE_GGTT,4,2                ; @MI_USE_GGTT
	.no_dead_strip	_gen8_emit_init_breadcrumb
.subsections_via_symbols
