	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_fence_size            ## -- Begin function i915_gem_fence_size
	.p2align	4, 0x90
_i915_gem_fence_size:                   ## @i915_gem_fence_size
	.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, %r14d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	xorl	%edi, %edi
	testl	%esi, %esi
	sete	%dil
	callq	_GEM_BUG_ON
	movq	_I915_TILING_NONE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %eax
	jmp	LBB0_5
LBB0_2:
	xorl	%edi, %edi
	testl	%r14d, %r14d
	sete	%dil
	callq	_GEM_BUG_ON
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$4, %eax
	jl	LBB0_3
## %bb.6:
	movl	%r15d, %edi
	callq	_i915_gem_tile_height
	imull	%eax, %r14d
	movq	_I965_FENCE_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_IS_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movl	%ebx, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_roundup                        ## TAILCALL
LBB0_3:
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_IS_GEN
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	shll	$19, %ecx
	addl	$524288, %ecx                   ## imm = 0x80000
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	leal	(%rax,%rax), %ecx
	cmpl	%ebx, %eax
	jl	LBB0_4
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_TILING_NONE,4,2           ## @I915_TILING_NONE
	.comm	_I965_FENCE_PAGE,4,2            ## @I965_FENCE_PAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_fence_size            ; -- Begin function i915_gem_fence_size
	.p2align	2
_i915_gem_fence_size:                   ; @i915_gem_fence_size
	.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, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	cmp	w1, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
Lloh0:
	adrp	x8, _I915_TILING_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_TILING_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	b	LBB0_6
LBB0_2:
	cmp	w20, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x22
	bl	_INTEL_GEN
	cmp	w0, #4
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_i915_gem_tile_height
	mul	w20, w0, w20
Lloh3:
	adrp	x8, _I965_FENCE_PAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I965_FENCE_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_IS_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x19
	mov	x1, 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
	b	_roundup
LBB0_4:
	mov	x0, x22
	mov	w1, #3
	bl	_IS_GEN
	cmp	x0, #0
	mov	w8, #1048576
	mov	w9, #524288
	csel	w8, w9, w8, eq
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x8
	lsl	w8, w8, #1
	cmp	w0, w19
	b.lt	LBB0_5
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_TILING_NONE,4,2           ; @I915_TILING_NONE
	.comm	_I965_FENCE_PAGE,4,2            ; @I965_FENCE_PAGE
.subsections_via_symbols
