	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_ggtt_init_fences          ## -- Begin function i915_ggtt_init_fences
	.p2align	4, 0x90
_i915_ggtt_init_fences:                 ## @i915_ggtt_init_fences
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	24(%rdi), %r13
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	leaq	20(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%r12), %rdi
	leaq	4(%r13), %rsi
	callq	_intel_wakeref_auto_init
	movq	%r13, %rdi
	callq	_detect_bit_6_swizzle
	movq	%r13, %rdi
	callq	_INTEL_GEN
	cmpl	$7, %eax
	jl	LBB0_4
## %bb.1:
	movq	%r13, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%r13, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	%r13, %rdi
	callq	_INTEL_GEN
	movl	$16, %ebx
	cmpl	$3, %eax
	jg	LBB0_9
## %bb.5:
	movq	%r13, %rdi
	callq	_IS_I945G
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movq	%r13, %rdi
	callq	_IS_I945GM
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	%r13, %rdi
	callq	_IS_G33
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_IS_PINEVIEW
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	8(,%rcx,8), %ebx
	jmp	LBB0_9
LBB0_3:
	movl	$32, %ebx
LBB0_9:
	movq	%r13, %rdi
	callq	_intel_vgpu_active
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_avail_rs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vgtif_reg
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_intel_uncore_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_14
LBB0_11:
	movl	%ebx, %ebx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$4, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	leaq	(%rax,%rbx), %rdi
	movq	%r13, 4(%rax,%rbx)
	movl	%r15d, -4(%rax,%rbx)
	movq	%r14, %rsi
	callq	_list_add_tail
	incq	%r15
	addq	$16, %rbx
	cmpq	%r15, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.13:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:
	movl	%ebx, (%r12)
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i915_gem_restore_fences        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_avail_rs,4,2                   ## @avail_rs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_ggtt_init_fences          ; -- Begin function i915_ggtt_init_fences
	.p2align	2
_i915_ggtt_init_fences:                 ; @i915_ggtt_init_fences
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x19, [x0, #24]
	add	x21, x0, #4
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	add	x0, x20, #20
	bl	_INIT_LIST_HEAD
	add	x0, x20, #16
	add	x1, x19, #4
	bl	_intel_wakeref_auto_init
	mov	x0, x19
	bl	_detect_bit_6_swizzle
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #7
	b.lt	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_12
LBB0_3:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #3
	b.gt	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_IS_I945G
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_IS_I945GM
	cbz	x0, LBB0_13
LBB0_6:
	mov	w22, #16
LBB0_7:
	mov	x0, x19
	bl	_intel_vgpu_active
	cbz	x0, LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _avail_rs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _avail_rs@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_vgtif_reg
	mov	x1, x0
	mov	x0, x19
	bl	_intel_uncore_read
	mov	x22, x0
	cmp	w0, #1
	b.lt	LBB0_11
LBB0_9:
	mov	x23, #0
	mov	x24, #0
	mov	w22, w22
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	str	x19, [x8, #8]
	str	w24, [x8]
	add	x0, x8, #4
	mov	x1, x21
	bl	_list_add_tail
	add	x24, x24, #1
	add	x23, x23, #16
	cmp	x22, x24
	b.ne	LBB0_10
LBB0_11:
	str	w22, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_i915_gem_restore_fences
LBB0_12:
	mov	w22, #32
	b	LBB0_7
LBB0_13:
	mov	x0, x19
	bl	_IS_G33
	mov	w22, #16
	cbnz	x0, LBB0_7
; %bb.14:
	mov	x0, x19
	bl	_IS_PINEVIEW
	cmp	x0, #0
	mov	w8, #8
	csel	w22, w8, w22, eq
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_avail_rs,4,2                   ; @avail_rs
.subsections_via_symbols
