	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen5_emit_breadcrumb
_gen5_emit_breadcrumb:                  ## @gen5_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setne	%dil
	callq	_GEM_BUG_ON
	movq	_MI_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$4, %rbx
	movq	_GEN5_WA_STORES@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	setle	%dil
	callq	_BUILD_BUG_ON
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	movl	(%r12), %eax
	movl	8(%r14), %ecx
	xorl	%edx, %edx
	movq	_MI_STORE_DWORD_INDEX@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rbx)
	movl	%eax, 4(%rbx)
	movl	%ecx, 8(%rbx)
	addq	$12, %rbx
	incl	%edx
	cmpl	(%r15), %edx
	jl	LBB0_2
LBB0_3:
	movq	_MI_USER_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$4, %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
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_GEM_HWS_SEQNO_ADDR,8,3    ## @I915_GEM_HWS_SEQNO_ADDR
	.comm	_MI_FLUSH,4,2                   ## @MI_FLUSH
	.comm	_GEN5_WA_STORES,4,2             ## @GEN5_WA_STORES
	.comm	_MI_STORE_DWORD_INDEX,4,2       ## @MI_STORE_DWORD_INDEX
	.comm	_MI_USER_INTERRUPT,8,3          ## @MI_USER_INTERRUPT
	.no_dead_strip	_gen5_emit_breadcrumb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen5_emit_breadcrumb
_gen5_emit_breadcrumb:                  ; @gen5_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	x20, x1
	mov	x19, x0
	ldp	x8, x9, [x0, #16]
	ldr	x8, [x8]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_GEM_BUG_ON
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_offset_in_page
Lloh0:
	adrp	x22, _I915_GEM_HWS_SEQNO_ADDR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _I915_GEM_HWS_SEQNO_ADDR@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, ne
	bl	_GEM_BUG_ON
Lloh2:
	adrp	x8, _MI_FLUSH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MI_FLUSH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20], #4
Lloh5:
	adrp	x21, _GEN5_WA_STORES@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GEN5_WA_STORES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	cset	w0, lt
	bl	_BUILD_BUG_ON
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w8, #0
	ldr	w9, [x22]
	ldr	w10, [x19, #8]
Lloh7:
	adrp	x11, _MI_STORE_DWORD_INDEX@GOTPAGE
Lloh8:
	ldr	x11, [x11, _MI_STORE_DWORD_INDEX@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	stp	w12, w9, [x20]
	add	x12, x20, #12
	str	w10, [x20, #8]
	add	w8, w8, #1
	ldr	w13, [x21]
	mov	x20, x12
	cmp	w8, w13
	b.lt	LBB0_2
; %bb.3:
	mov	x20, x12
LBB0_4:
Lloh9:
	adrp	x8, _MI_USER_INTERRUPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MI_USER_INTERRUPT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	w8, [x20], #4
	mov	x0, x19
	mov	x1, x20
	bl	_intel_ring_offset
	mov	x1, x0
	str	w0, [x19]
	ldr	w0, [x19, #4]
	bl	_assert_ring_tail_valid
	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
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_GEM_HWS_SEQNO_ADDR,8,3    ; @I915_GEM_HWS_SEQNO_ADDR
	.comm	_MI_FLUSH,4,2                   ; @MI_FLUSH
	.comm	_GEN5_WA_STORES,4,2             ; @GEN5_WA_STORES
	.comm	_MI_STORE_DWORD_INDEX,4,2       ; @MI_STORE_DWORD_INDEX
	.comm	_MI_USER_INTERRUPT,8,3          ; @MI_USER_INTERRUPT
	.no_dead_strip	_gen5_emit_breadcrumb
.subsections_via_symbols
