	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reloc_gpu_flush
_reloc_gpu_flush:                       ## @reloc_gpu_flush
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movslq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	movslq	(%rcx), %rcx
	shrq	$2, %rcx
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	setbe	%dil
	callq	_GEM_BUG_ON
	movq	_MI_BATCH_BUFFER_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movslq	(%rbx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	movslq	(%rbx), %rdx
	xorl	%esi, %esi
	callq	___i915_gem_object_flush_map
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	callq	_i915_gem_object_unpin_map
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_intel_gt_chipset_flush
	movq	8(%rbx), %rdi
	callq	_i915_request_add
	movq	$0, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MI_BATCH_BUFFER_END,4,2        ## @MI_BATCH_BUFFER_END
	.no_dead_strip	_reloc_gpu_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reloc_gpu_flush
_reloc_gpu_flush:                       ; @reloc_gpu_flush
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldrsw	x8, [x0]
	ldr	x9, [x0, #8]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	ldrsw	x9, [x9]
	cmp	x8, x9, lsr #2
	cset	w0, hs
	bl	_GEM_BUG_ON
Lloh0:
	adrp	x8, _MI_BATCH_BUFFER_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MI_BATCH_BUFFER_END@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldrsw	x9, [x19]
	ldp	x11, x10, [x19, #8]
	str	w8, [x10, x9, lsl #2]
	ldr	x8, [x11, #8]
	ldr	x0, [x8]
	ldrsw	x2, [x19]
	mov	w1, #0
	bl	___i915_gem_object_flush_map
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	bl	_i915_gem_object_unpin_map
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_intel_gt_chipset_flush
	ldr	x0, [x19, #8]
	bl	_i915_request_add
	str	xzr, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MI_BATCH_BUFFER_END,4,2        ; @MI_BATCH_BUFFER_END
	.no_dead_strip	_reloc_gpu_flush
.subsections_via_symbols
