	.file	"extr_i915_gem_gtt.c_gen8_ppgtt_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gen8_ppgtt_alloc, @function
gen8_ppgtt_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR GEN8_PTE_SHIFT[rip]
	mov	DWORD PTR 12[rsp], esi
	call	BIT_ULL@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	esi, eax
	call	IS_ALIGNED@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	GEM_BUG_ON@PLT
	mov	edi, DWORD PTR GEN8_PTE_SHIFT[rip]
	call	BIT_ULL@PLT
	mov	edi, ebx
	mov	esi, eax
	call	IS_ALIGNED@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	GEM_BUG_ON@PLT
	mov	edx, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 12[rsp]
	mov	esi, ebx
	call	range_overflows@PLT
	mov	edi, eax
	call	GEM_BUG_ON@PLT
	mov	ecx, DWORD PTR GEN8_PTE_SHIFT[rip]
	xor	edi, edi
	sar	DWORD PTR 12[rsp], cl
	sar	ebx, cl
	test	ebx, ebx
	sete	dil
	call	GEM_BUG_ON@PLT
	mov	r13d, DWORD PTR 12[rsp]
	mov	rdi, rbp
	mov	r14d, DWORD PTR 0[rbp]
	call	i915_vm_to_ppgtt@PLT
	mov	rdi, rbp
	lea	rdx, 12[rsp]
	lea	r12d, [rbx+r13]
	mov	esi, DWORD PTR [rax]
	mov	r8d, r14d
	mov	ecx, r12d
	call	__gen8_ppgtt_alloc@PLT
	xor	edi, edi
	mov	r12d, eax
	test	eax, eax
	je	.L2
	xor	edi, edi
	cmp	DWORD PTR 12[rsp], r13d
	setne	dil
.L2:
	call	unlikely@PLT
	test	rax, rax
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	mov	ebx, DWORD PTR 0[rbp]
	mov	r14d, DWORD PTR 12[rsp]
	call	i915_vm_to_ppgtt@PLT
	mov	edx, r13d
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax]
	mov	r8d, ebx
	mov	ecx, r14d
	call	__gen8_ppgtt_clear@PLT
	add	rsp, 16
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	gen8_ppgtt_alloc, .-gen8_ppgtt_alloc
	.comm	GEN8_PTE_SHIFT,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_gen8_ppgtt_alloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gen8_ppgtt_alloc, %function
gen8_ppgtt_alloc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r7, .L11
	sub	sp, sp, #20
	mov	r5, r0
	ldr	r0, [r7]
	mov	r4, r2
	mov	r6, r1
	str	r1, [sp, #12]
	bl	BIT_ULL
	mov	r1, r0
	mov	r0, r6
	bl	IS_ALIGNED
	clz	r0, r0
	lsr	r0, r0, #5
	bl	GEM_BUG_ON
	ldr	r0, [r7]
	bl	BIT_ULL
	mov	r1, r0
	mov	r0, r4
	bl	IS_ALIGNED
	clz	r0, r0
	lsr	r0, r0, #5
	bl	GEM_BUG_ON
	mov	r1, r4
	ldr	r2, [r5, #4]
	ldr	r0, [sp, #12]
	bl	range_overflows
	bl	GEM_BUG_ON
	ldr	r2, [r7]
	ldr	r3, [sp, #12]
	asrs	r4, r4, r2
	asr	r3, r3, r2
	moveq	r0, #1
	movne	r0, #0
	str	r3, [sp, #12]
	bl	GEM_BUG_ON
	mov	r0, r5
	ldr	r6, [sp, #12]
	bl	i915_vm_to_ppgtt
	ldr	r2, [r5]
	ldr	r3, [sp, #12]
	ldr	r1, [r0]
	add	r3, r4, r3
	str	r2, [sp]
	mov	r0, r5
	add	r2, sp, #12
	bl	__gen8_ppgtt_alloc
	subs	r4, r0, #0
	moveq	r0, r4
	beq	.L2
	ldr	r0, [sp, #12]
	subs	r0, r0, r6
	movne	r0, #1
.L2:
	bl	unlikely
	cmp	r0, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	mov	r0, r5
	bl	i915_vm_to_ppgtt
	ldr	r3, [r5]
	ldr	r1, [r0]
	mov	r2, r6
	str	r3, [sp]
	mov	r0, r5
	ldr	r3, [sp, #12]
	bl	__gen8_ppgtt_clear
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	.align	2
.L11:
	.word	GEN8_PTE_SHIFT
	.size	gen8_ppgtt_alloc, .-gen8_ppgtt_alloc
	.comm	GEN8_PTE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
