	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen6_xcs_emit_breadcrumb
_gen6_xcs_emit_breadcrumb:              ## @gen6_xcs_emit_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	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	24(%rdi), %rcx
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_GEM_BUG_ON
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	callq	_offset_in_page
	movq	_I915_GEM_HWS_SEQNO_ADDR@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	setne	%dil
	callq	_GEM_BUG_ON
	movq	_MI_FLUSH_DW@GOTPCREL(%rip), %rax
	movq	_MI_FLUSH_DW_OP_STOREDW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MI_FLUSH_DW_STORE_INDEX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_MI_FLUSH_DW_USE_GTT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r15), %eax
	movl	%eax, 4(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	_MI_USER_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	addq	$16, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_ring_offset
	movl	%eax, (%r14)
	movl	4(%r14), %edi
	movl	%eax, %esi
	callq	_assert_ring_tail_valid
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_GEM_HWS_SEQNO_ADDR,4,2    ## @I915_GEM_HWS_SEQNO_ADDR
	.comm	_MI_FLUSH_DW,4,2                ## @MI_FLUSH_DW
	.comm	_MI_FLUSH_DW_OP_STOREDW,4,2     ## @MI_FLUSH_DW_OP_STOREDW
	.comm	_MI_FLUSH_DW_STORE_INDEX,4,2    ## @MI_FLUSH_DW_STORE_INDEX
	.comm	_MI_FLUSH_DW_USE_GTT,4,2        ## @MI_FLUSH_DW_USE_GTT
	.comm	_MI_USER_INTERRUPT,4,2          ## @MI_USER_INTERRUPT
	.no_dead_strip	_gen6_xcs_emit_breadcrumb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen6_xcs_emit_breadcrumb
_gen6_xcs_emit_breadcrumb:              ; @gen6_xcs_emit_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, x1
	mov	x20, x0
	ldp	x8, x9, [x0, #16]
	ldr	x8, [x8]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_GEM_BUG_ON
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #8]
	bl	_offset_in_page
Lloh0:
	adrp	x21, _I915_GEM_HWS_SEQNO_ADDR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I915_GEM_HWS_SEQNO_ADDR@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	cset	w0, ne
	bl	_GEM_BUG_ON
Lloh2:
	adrp	x8, _MI_FLUSH_DW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MI_FLUSH_DW@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MI_FLUSH_DW_OP_STOREDW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MI_FLUSH_DW_OP_STOREDW@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _MI_FLUSH_DW_STORE_INDEX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MI_FLUSH_DW_STORE_INDEX@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w8, [x21]
Lloh11:
	adrp	x9, _MI_FLUSH_DW_USE_GTT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MI_FLUSH_DW_USE_GTT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	ldr	w8, [x20, #8]
Lloh14:
	adrp	x9, _MI_USER_INTERRUPT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MI_USER_INTERRUPT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	add	x21, x19, #16
	stp	w8, w9, [x19, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_intel_ring_offset
	mov	x1, x0
	str	w0, [x20]
	ldr	w0, [x20, #4]
	bl	_assert_ring_tail_valid
	mov	x0, x21
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_GEM_HWS_SEQNO_ADDR,4,2    ; @I915_GEM_HWS_SEQNO_ADDR
	.comm	_MI_FLUSH_DW,4,2                ; @MI_FLUSH_DW
	.comm	_MI_FLUSH_DW_OP_STOREDW,4,2     ; @MI_FLUSH_DW_OP_STOREDW
	.comm	_MI_FLUSH_DW_STORE_INDEX,4,2    ; @MI_FLUSH_DW_STORE_INDEX
	.comm	_MI_FLUSH_DW_USE_GTT,4,2        ; @MI_FLUSH_DW_USE_GTT
	.comm	_MI_USER_INTERRUPT,4,2          ; @MI_USER_INTERRUPT
	.no_dead_strip	_gen6_xcs_emit_breadcrumb
.subsections_via_symbols
