	.file	"extr_pmap.c_pmap_pat_index.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pmap_pat_index, @function
pmap_pat_index:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR cpu_feature[rip]
	and	eax, DWORD PTR CPUID_PAT[rip]
	je	.L1
	test	edx, edx
	mov	eax, DWORD PTR PG_PDE_PAT[rip]
	cmove	eax, DWORD PTR PG_PTE_PAT[rip]
	mov	edx, 4
	and	eax, esi
	cmovne	eax, edx
	mov	edx, eax
	or	edx, 2
	test	DWORD PTR PG_NC_PCD[rip], esi
	cmovne	eax, edx
	mov	edx, eax
	or	edx, 1
	test	DWORD PTR PG_NC_PWT[rip], esi
	cmovne	eax, edx
	cmp	QWORD PTR pat_works[rip], 0
	je	.L1
	cmp	eax, 4
	je	.L9
	cmp	eax, 7
	mov	edx, 3
	cmove	eax, edx
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	xor	eax, eax
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	pmap_pat_index, .-pmap_pat_index
	.comm	pat_works,8,8
	.comm	cpu_feature,4,4
	.comm	PG_PTE_PAT,4,4
	.comm	PG_PDE_PAT,4,4
	.comm	PG_NC_PWT,4,4
	.comm	PG_NC_PCD,4,4
	.comm	CPUID_PAT,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_pmap.c_pmap_pat_index.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_pat_index, %function
pmap_pat_index:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r0, .L23
	ldr	r3, .L23+4
	ldr	r0, [r0]
	ldr	r3, [r3]
	ands	r0, r0, r3
	bxeq	lr
	cmp	r2, #0
	ldrne	r3, .L23+8
	ldreq	r3, .L23+12
	ldr	r0, [r3]
	ldr	r3, .L23+16
	ands	r0, r0, r1
	movne	r0, #4
	ldr	r3, [r3]
	tst	r1, r3
	ldr	r3, .L23+20
	orrne	r0, r0, #2
	ldr	r3, [r3]
	tst	r1, r3
	ldr	r3, .L23+24
	orrne	r0, r0, #1
	ldr	r3, [r3]
	cmp	r3, #0
	bxeq	lr
	cmp	r0, #4
	beq	.L9
	cmp	r0, #7
	moveq	r0, #3
	bx	lr
.L9:
	mov	r0, #0
	bx	lr
.L24:
	.align	2
.L23:
	.word	cpu_feature
	.word	CPUID_PAT
	.word	PG_PDE_PAT
	.word	PG_PTE_PAT
	.word	PG_NC_PCD
	.word	PG_NC_PWT
	.word	pat_works
	.size	pmap_pat_index, .-pmap_pat_index
	.comm	pat_works,4,4
	.comm	cpu_feature,4,4
	.comm	PG_PTE_PAT,4,4
	.comm	PG_PDE_PAT,4,4
	.comm	PG_NC_PWT,4,4
	.comm	PG_NC_PCD,4,4
	.comm	CPUID_PAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
