	.file	"extr_gtt.c_gen8_gtt_set_pfn.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gen8_gtt_set_pfn, @function
gen8_gtt_set_pfn:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR [rdi]
	cmp	rdx, QWORD PTR GTT_TYPE_PPGTT_PTE_1G_ENTRY[rip]
	mov	rax, QWORD PTR 8[rdi]
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	je	.L8
	cmp	rdx, QWORD PTR GTT_TYPE_PPGTT_PTE_2M_ENTRY[rip]
	je	.L9
	cmp	rdx, QWORD PTR GTT_TYPE_PPGTT_PTE_64K_ENTRY[rip]
	je	.L10
	mov	rdx, QWORD PTR ADDR_4K_MASK[rip]
.L6:
	mov	r8, rdx
	shr	rdx, cl
	not	r8
	and	rsi, rdx
	and	rax, r8
	sal	rsi, cl
	or	rsi, rax
	mov	QWORD PTR 8[rdi], rsi
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, QWORD PTR ADDR_2M_MASK[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, QWORD PTR ADDR_1G_MASK[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR ADDR_64K_MASK[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	gen8_gtt_set_pfn, .-gen8_gtt_set_pfn
	.comm	PAGE_SHIFT,8,8
	.comm	GTT_TYPE_PPGTT_PTE_64K_ENTRY,8,8
	.comm	GTT_TYPE_PPGTT_PTE_2M_ENTRY,8,8
	.comm	GTT_TYPE_PPGTT_PTE_1G_ENTRY,8,8
	.comm	ADDR_64K_MASK,8,8
	.comm	ADDR_4K_MASK,8,8
	.comm	ADDR_2M_MASK,8,8
	.comm	ADDR_1G_MASK,8,8
	.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_gtt.c_gen8_gtt_set_pfn.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gen8_gtt_set_pfn, %function
gen8_gtt_set_pfn:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	ldr	r2, [r0]
	ldr	r3, [r3]
	ldr	ip, .L12+4
	cmp	r2, r3
	ldr	ip, [ip]
	ldr	r3, [r0, #4]
	beq	.L10
	str	lr, [sp, #-4]!
	ldr	lr, .L12+8
	ldr	lr, [lr]
	cmp	r2, lr
	beq	.L11
	ldr	lr, .L12+12
	ldr	lr, [lr]
	cmp	r2, lr
	ldreq	r2, .L12+16
	ldrne	r2, .L12+20
	ldr	r2, [r2]
	bic	r3, r3, r2
	and	r1, r1, r2, lsr ip
.L3:
	orr	r1, r3, r1, lsl ip
	str	r1, [r0, #4]
	ldr	pc, [sp], #4
.L11:
	ldr	r2, .L12+24
	ldr	r2, [r2]
	bic	r3, r3, r2
	and	r1, r1, r2, lsr ip
	b	.L3
.L10:
	ldr	r2, .L12+28
	ldr	r2, [r2]
	bic	r3, r3, r2
	and	r1, r1, r2, lsr ip
	orr	r1, r3, r1, lsl ip
	str	r1, [r0, #4]
	bx	lr
.L13:
	.align	2
.L12:
	.word	GTT_TYPE_PPGTT_PTE_1G_ENTRY
	.word	PAGE_SHIFT
	.word	GTT_TYPE_PPGTT_PTE_2M_ENTRY
	.word	GTT_TYPE_PPGTT_PTE_64K_ENTRY
	.word	ADDR_64K_MASK
	.word	ADDR_4K_MASK
	.word	ADDR_2M_MASK
	.word	ADDR_1G_MASK
	.size	gen8_gtt_set_pfn, .-gen8_gtt_set_pfn
	.comm	PAGE_SHIFT,4,4
	.comm	GTT_TYPE_PPGTT_PTE_64K_ENTRY,4,4
	.comm	GTT_TYPE_PPGTT_PTE_2M_ENTRY,4,4
	.comm	GTT_TYPE_PPGTT_PTE_1G_ENTRY,4,4
	.comm	ADDR_64K_MASK,4,4
	.comm	ADDR_4K_MASK,4,4
	.comm	ADDR_2M_MASK,4,4
	.comm	ADDR_1G_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
