	.file	"extr_i915_gem_gtt.c_ggtt_init_hw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ggtt_init_hw, @function
ggtt_init_hw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	r12, QWORD PTR 40[rdi]
	mov	rbp, rdi
	lea	r13, 16[rbp]
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	esi, DWORD PTR VM_CLASS_GGTT[rip]
	mov	rdi, r13
	call	i915_address_space_init@PLT
	mov	DWORD PTR 16[rbp], 1
	mov	rdi, r12
	call	IS_VALLEYVIEW@PLT
	mov	rdi, r12
	mov	DWORD PTR 36[rbp], eax
	call	HAS_LLC@PLT
	test	eax, eax
	je	.L9
.L3:
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR 0[rbp]
	lea	rdi, 48[rbp]
	call	io_mapping_init_wc@PLT
	test	eax, eax
	jne	.L5
	mov	rdi, r13
	call	[QWORD PTR 24[rbp]]
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
.L6:
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR 0[rbp]
	xor	r13d, r13d
	call	arch_phys_wc_add@PLT
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], eax
	call	i915_ggtt_init_fences@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r12
	call	HAS_PPGTT@PLT
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR i915_gtt_color_adjust[rip]
	mov	DWORD PTR 32[rbp], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ggtt_init_hw, .-ggtt_init_hw
	.comm	i915_gtt_color_adjust,4,4
	.comm	VM_CLASS_GGTT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_i915_gem_gtt.c_ggtt_init_hw.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ggtt_init_hw, %function
ggtt_init_hw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #28]
	mov	r4, r0
	add	r6, r0, #12
	mov	r0, r5
	bl	mutex_lock
	ldr	r3, .L10
	mov	r0, r6
	ldr	r1, [r3]
	bl	i915_address_space_init
	mov	r3, #1
	mov	r0, r5
	str	r3, [r4, #12]
	bl	IS_VALLEYVIEW
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #24]
	bl	HAS_LLC
	cmp	r0, #0
	beq	.L9
.L3:
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	add	r0, r4, #32
	bl	io_mapping_init_wc
	cmp	r0, #0
	bne	.L5
	ldr	r3, [r4, #16]
	mov	r0, r6
	blx	r3
	ldr	r3, .L10+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L6:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	bl	arch_phys_wc_add
	mov	r3, r0
	mov	r0, r4
	str	r3, [r4, #8]
	bl	i915_ggtt_init_fences
	mov	r4, #0
	b	.L6
.L9:
	mov	r0, r5
	bl	HAS_PPGTT
	cmp	r0, #0
	ldreq	r3, .L10+8
	ldreq	r3, [r3]
	streq	r3, [r4, #20]
	b	.L3
.L11:
	.align	2
.L10:
	.word	VM_CLASS_GGTT
	.word	EIO
	.word	i915_gtt_color_adjust
	.size	ggtt_init_hw, .-ggtt_init_hw
	.comm	i915_gtt_color_adjust,4,4
	.comm	VM_CLASS_GGTT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
