	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_emit_ggtt_write
_gen8_emit_ggtt_write:                  ## @gen8_emit_ggtt_write
	.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
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%edx, %edi
	andl	$32, %edi
	callq	_GEM_BUG_ON
	movl	%r15d, %edi
	movl	$8, %esi
	callq	_IS_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	_MI_FLUSH_DW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	movq	_MI_FLUSH_DW_OP_STOREDW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	orl	%eax, %r12d
	movl	%r12d, (%rbx)
	movq	_MI_FLUSH_DW_USE_GTT@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, 4(%rbx)
	movl	$0, 8(%rbx)
	movl	%r14d, 12(%rbx)
	addq	$16, %rbx
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_USE_GTT,4,2        ## @MI_FLUSH_DW_USE_GTT
	.no_dead_strip	_gen8_emit_ggtt_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_emit_ggtt_write
_gen8_emit_ggtt_write:                  ; @gen8_emit_ggtt_write
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	and	w0, w2, #0x20
	bl	_GEM_BUG_ON
	mov	x0, x20
	mov	w1, #8
	bl	_IS_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
Lloh0:
	adrp	x8, _MI_FLUSH_DW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MI_FLUSH_DW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, #1
Lloh3:
	adrp	x9, _MI_FLUSH_DW_OP_STOREDW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MI_FLUSH_DW_OP_STOREDW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w9, w9, w19
	orr	w8, w9, w8
	str	w8, [x22]
Lloh6:
	adrp	x8, _MI_FLUSH_DW_USE_GTT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MI_FLUSH_DW_USE_GTT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w20
	stp	w8, wzr, [x22, #4]
	add	x0, x22, #16
	str	w21, [x22, #12]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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_USE_GTT,4,2        ; @MI_FLUSH_DW_USE_GTT
	.no_dead_strip	_gen8_emit_ggtt_write
.subsections_via_symbols
