	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_gem_write_fence
_i915_gem_write_fence:                  ## @i915_gem_write_fence
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_i915_gem_object_needs_mb
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_mb
LBB0_2:
	movq	%rbx, %rdi
	callq	_INTEL_INFO
	movl	(%rax), %eax
	leal	-4(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_3
## %bb.10:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_i965_write_fence_reg
	jmp	LBB0_8
LBB0_3:
	cmpl	$2, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$3, %eax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_i915_write_fence_reg
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_i830_write_fence_reg
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_BUG
LBB0_8:
	movq	%r14, %rdi
	callq	_i915_gem_object_needs_mb
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mb                             ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_i915_gem_write_fence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_gem_write_fence
_i915_gem_write_fence:                  ; @i915_gem_write_fence
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x0, [x8, w1, sxtw #3]
	bl	_i915_gem_object_needs_mb
	cbz	x0, LBB0_2
; %bb.1:
	bl	_mb
LBB0_2:
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	w8, [x0]
	sub	w9, w8, #4
	cmp	w9, #4
	b.hs	LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_i965_write_fence_reg
	b	LBB0_9
LBB0_4:
	cmp	w8, #2
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #3
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_i915_write_fence_reg
	b	LBB0_9
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_i830_write_fence_reg
	b	LBB0_9
LBB0_8:
	bl	_BUG
LBB0_9:
	mov	x0, x19
	bl	_i915_gem_object_needs_mb
	cbz	x0, LBB0_11
; %bb.10:
	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	_mb
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_i915_gem_write_fence
.subsections_via_symbols
