	.file	"extr_kaslr.c_find_random_virt_addr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Virtual"
	.text
	.p2align 4
	.type	find_random_virt_addr, @function
find_random_virt_addr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	mov	rsi, QWORD PTR CONFIG_PHYSICAL_ALIGN[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	ALIGN@PLT
	mov	rsi, QWORD PTR CONFIG_PHYSICAL_ALIGN[rip]
	mov	rdi, r12
	mov	rbp, rax
	call	ALIGN@PLT
	mov	rcx, QWORD PTR KERNEL_IMAGE_SIZE[rip]
	xor	edx, edx
	lea	rdi, .LC0[rip]
	add	rax, rbp
	sub	rcx, rax
	mov	rax, rcx
	div	QWORD PTR CONFIG_PHYSICAL_ALIGN[rip]
	lea	rbx, 1[rax]
	call	kaslr_get_random_long@PLT
	xor	edx, edx
	div	rbx
	pop	rbx
	.cfi_def_cfa_offset 24
	imul	rdx, QWORD PTR CONFIG_PHYSICAL_ALIGN[rip]
	lea	rax, [rdx+rbp]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	find_random_virt_addr, .-find_random_virt_addr
	.comm	KERNEL_IMAGE_SIZE,8,8
	.comm	CONFIG_PHYSICAL_ALIGN,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_kaslr.c_find_random_virt_addr.c"
	.text
	.global	__aeabi_uidiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Virtual\000"
	.global	__aeabi_uidivmod
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_random_virt_addr, %function
find_random_virt_addr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L4
	mov	r6, r1
	ldr	r1, [r5]
	bl	ALIGN
	ldr	r1, [r5]
	mov	r4, r0
	mov	r0, r6
	bl	ALIGN
	ldr	r3, .L4+4
	add	r0, r4, r0
	ldr	r3, [r3]
	ldr	r1, [r5]
	sub	r0, r3, r0
	bl	__aeabi_uidiv
	mov	r6, r0
	ldr	r0, .L4+8
	add	r6, r6, #1
	bl	kaslr_get_random_long
	mov	r1, r6
	bl	__aeabi_uidivmod
	ldr	r0, [r5]
	mla	r0, r1, r0, r4
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	CONFIG_PHYSICAL_ALIGN
	.word	KERNEL_IMAGE_SIZE
	.word	.LC0
	.size	find_random_virt_addr, .-find_random_virt_addr
	.comm	KERNEL_IMAGE_SIZE,4,4
	.comm	CONFIG_PHYSICAL_ALIGN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
