	.file	"extr_libkdump.c_libkdump_virt_to_phys.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/proc/self/pagemap"
	.text
	.p2align 4
	.globl	libkdump_virt_to_phys
	.type	libkdump_virt_to_phys, @function
libkdump_virt_to_phys:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR pagemap.1930[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	edi, -1
	je	.L12
.L2:
	mov	rcx, rbx
	mov	rsi, rsp
	mov	edx, 8
	shr	rcx, 12
	sal	rcx, 3
	call	pread@PLT
	cmp	eax, 8
	je	.L4
.L5:
	mov	eax, DWORD PTR EPERM[rip]
	mov	DWORD PTR errno[rip], eax
	xor	eax, eax
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	movabs	rax, 18014398509481983
	and	rax, QWORD PTR [rsp]
	je	.L5
	sal	rax, 12
	and	ebx, 4095
	add	rax, rbx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR O_RDONLY[rip]
	lea	rdi, .LC0[rip]
	call	open@PLT
	mov	DWORD PTR pagemap.1930[rip], eax
	mov	edi, eax
	test	eax, eax
	jns	.L2
	jmp	.L5
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	libkdump_virt_to_phys, .-libkdump_virt_to_phys
	.data
	.align 4
	.type	pagemap.1930, @object
	.size	pagemap.1930, 4
pagemap.1930:
	.long	-1
	.comm	errno,4,4
	.comm	O_RDONLY,4,4
	.comm	EPERM,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_libkdump.c_libkdump_virt_to_phys.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/proc/self/pagemap\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	libkdump_virt_to_phys
	.syntax unified
	.arm
	.fpu softvfp
	.type	libkdump_virt_to_phys, %function
libkdump_virt_to_phys:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r5, .L14
	mov	r4, r0
	ldr	r0, [r5]
	ldr	r3, .L14+4
	sub	sp, sp, #20
	cmn	r0, #1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L12
.L2:
	lsr	r3, r4, #12
	mov	r2, #8
	mov	r1, sp
	lsl	r3, r3, #3
	bl	pread
	cmp	r0, #8
	beq	.L4
.L5:
	mov	r0, #0
	ldr	r2, .L14+8
	ldr	r3, .L14+12
	ldr	r2, [r2]
	str	r2, [r3]
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L4:
	ldr	r1, [sp, #4]
	ldr	r2, [sp]
	bic	r3, r1, #-16777216
	bic	r3, r3, #12582912
	orrs	r1, r2, r3
	beq	.L5
	lsl	r0, r4, #20
	lsr	r0, r0, #20
	add	r0, r0, r2, lsl #12
	b	.L1
.L12:
	ldr	r3, .L14+16
	ldr	r0, .L14+20
	ldr	r1, [r3]
	bl	open
	cmp	r0, #0
	str	r0, [r5]
	bge	.L2
	b	.L5
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LANCHOR0
	.word	.LC1
	.word	EPERM
	.word	errno
	.word	O_RDONLY
	.word	.LC0
	.size	libkdump_virt_to_phys, .-libkdump_virt_to_phys
	.comm	errno,4,4
	.comm	O_RDONLY,4,4
	.comm	EPERM,4,4
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	pagemap.4214, %object
	.size	pagemap.4214, 4
pagemap.4214:
	.word	-1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
