	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i965_write_fence_reg
_i965_write_fence_reg:                  ## @i965_write_fence_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_INTEL_INFO
	xorl	%esi, %esi
	negq	%r14
	sbbl	%esi, %esi
	cmpl	$6, (%rax)
	jl	LBB0_1
## %bb.2:
	movq	_FENCE_REG_SANDYBRIDGE_0@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FENCE_REG_965_0@GOTPCREL(%rip), %rax
LBB0_3:
	shll	$3, %ebx
	addl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_WRITE64
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FENCE_REG_SANDYBRIDGE_0,4,2    ## @FENCE_REG_SANDYBRIDGE_0
	.comm	_SANDYBRIDGE_FENCE_PITCH_SHIFT,4,2 ## @SANDYBRIDGE_FENCE_PITCH_SHIFT
	.comm	_FENCE_REG_965_0,4,2            ## @FENCE_REG_965_0
	.comm	_I965_FENCE_PITCH_SHIFT,4,2     ## @I965_FENCE_PITCH_SHIFT
	.comm	_I915_TILING_Y,8,3              ## @I915_TILING_Y
	.comm	_I965_FENCE_TILING_Y_SHIFT,4,2  ## @I965_FENCE_TILING_Y_SHIFT
	.comm	_I965_FENCE_REG_VALID,4,2       ## @I965_FENCE_REG_VALID
	.no_dead_strip	_i965_write_fence_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i965_write_fence_reg
_i965_write_fence_reg:                  ; @i965_write_fence_reg
	.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, x2
	mov	x20, x1
	bl	_INTEL_INFO
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FENCE_REG_SANDYBRIDGE_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FENCE_REG_SANDYBRIDGE_0@GOTPAGEOFF]
Lloh2:
	adrp	x10, _FENCE_REG_965_0@GOTPAGE
Lloh3:
	ldr	x10, [x10, _FENCE_REG_965_0@GOTPAGEOFF]
	cmp	x19, #0
	csetm	w1, ne
	cmp	w8, #5
	csel	x8, x9, x10, gt
	ldr	w8, [x8]
	add	w19, w8, w20, lsl #3
	mov	x0, x19
	bl	_I915_WRITE64
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_POSTING_READ
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FENCE_REG_SANDYBRIDGE_0,4,2    ; @FENCE_REG_SANDYBRIDGE_0
	.comm	_SANDYBRIDGE_FENCE_PITCH_SHIFT,4,2 ; @SANDYBRIDGE_FENCE_PITCH_SHIFT
	.comm	_FENCE_REG_965_0,4,2            ; @FENCE_REG_965_0
	.comm	_I965_FENCE_PITCH_SHIFT,4,2     ; @I965_FENCE_PITCH_SHIFT
	.comm	_I915_TILING_Y,8,3              ; @I915_TILING_Y
	.comm	_I965_FENCE_TILING_Y_SHIFT,4,2  ; @I965_FENCE_TILING_Y_SHIFT
	.comm	_I965_FENCE_REG_VALID,4,2       ; @I965_FENCE_REG_VALID
	.no_dead_strip	_i965_write_fence_reg
.subsections_via_symbols
