	.file	"extr_pat.c_untrack_pfn.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	untrack_pfn
	.type	untrack_pfn, @function
untrack_pfn:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L2
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR VM_PAT[rip], eax
	je	.L1
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	edi, esi
	sal	edi, cl
	mov	DWORD PTR 12[rsp], edi
	test	edi, edi
	jne	.L9
	test	rdx, rdx
	jne	.L9
.L7:
	mov	rsi, QWORD PTR 8[rbx]
	xor	edx, edx
	lea	rcx, 16[rsp]
	lea	r8, 12[rsp]
	mov	rdi, rbx
	call	follow_phys@PLT
	test	rax, rax
	jne	.L25
	mov	edi, DWORD PTR 12[rsp]
	mov	rsi, QWORD PTR 16[rbx]
	sub	rsi, QWORD PTR 8[rbx]
	call	free_pfn_range@PLT
.L6:
	mov	eax, DWORD PTR VM_PAT[rip]
	not	eax
	and	DWORD PTR [rbx], eax
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	edi, esi
	sal	edi, cl
	mov	DWORD PTR 12[rsp], edi
	test	edi, edi
	jne	.L11
	test	rdx, rdx
	je	.L7
.L11:
	mov	rsi, rdx
	call	free_pfn_range@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, rdx
	call	free_pfn_range@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, 1
	call	WARN_ON_ONCE@PLT
	jmp	.L1
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	untrack_pfn, .-untrack_pfn
	.comm	VM_PAT,4,4
	.comm	PAGE_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_pat.c_untrack_pfn.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	untrack_pfn
	.syntax unified
	.arm
	.fpu softvfp
	.type	untrack_pfn, %function
untrack_pfn:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L28
	sub	sp, sp, #28
	subs	r4, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L2
	ldr	r5, .L28+4
	ldr	r0, [r4]
	ldr	r3, [r5]
	tst	r0, r3
	beq	.L1
	ldr	r3, .L28+8
	ldr	r0, [r3]
	lsl	r0, r1, r0
	orrs	r3, r2, r0
	str	r0, [sp, #12]
	bne	.L25
.L7:
	add	r3, sp, #12
	str	r3, [sp]
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r4, #4]
	add	r3, sp, #16
	bl	follow_phys
	cmp	r0, #0
	bne	.L26
	ldr	r1, [r4, #8]
	ldr	r3, [r4, #4]
	ldr	r0, [sp, #12]
	sub	r1, r1, r3
	bl	free_pfn_range
	ldr	r5, .L28+4
.L6:
	ldr	r2, [r5]
	ldr	r3, [r4]
	bic	r3, r3, r2
	str	r3, [r4]
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r3, .L28+8
	ldr	r0, [r3]
	lsl	r0, r1, r0
	orrs	r3, r2, r0
	str	r0, [sp, #12]
	beq	.L7
	mov	r1, r2
	bl	free_pfn_range
	b	.L1
.L25:
	mov	r1, r2
	bl	free_pfn_range
	b	.L6
.L26:
	mov	r0, #1
	bl	WARN_ON_ONCE
	b	.L1
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	VM_PAT
	.word	PAGE_SHIFT
	.size	untrack_pfn, .-untrack_pfn
	.comm	VM_PAT,4,4
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
