	.file	"extr_memconsole-x86-legacy.c_found_v2_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"memconsole: BIOS console v2 EBDA structure found at %p\n"
	.align 8
.LC1:
	.string	"memconsole: BIOS console buffer at 0x%.8x, start = %d, end = %d, num_bytes = %d\n"
	.text
	.p2align 4
	.type	found_v2_header, @function
found_v2_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rsi, rdi
	mov	rbx, rdi
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	pr_info@PLT
	mov	ecx, DWORD PTR 4[rbx]
	movsx	rsi, DWORD PTR 8[rbx]
	xor	eax, eax
	mov	r8d, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR [rbx]
	lea	rdi, .LC1[rip]
	call	pr_info@PLT
	mov	edi, DWORD PTR [rbx]
	add	edi, DWORD PTR 8[rbx]
	call	phys_to_virt@PLT
	mov	edi, DWORD PTR memconsole_read[rip]
	mov	DWORD PTR memconsole_baseaddr[rip], eax
	mov	eax, DWORD PTR 4[rbx]
	sub	eax, DWORD PTR [rbx]
	pop	rbx
	.cfi_def_cfa_offset 8
	mov	DWORD PTR memconsole_length[rip], eax
	jmp	memconsole_setup@PLT
	.cfi_endproc
.LFE0:
	.size	found_v2_header, .-found_v2_header
	.comm	memconsole_read,4,4
	.comm	memconsole_length,4,4
	.comm	memconsole_baseaddr,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_memconsole-x86-legacy.c_found_v2_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"memconsole: BIOS console v2 EBDA structure found at"
	.ascii	" %p\012\000"
	.align	2
.LC1:
	.ascii	"memconsole: BIOS console buffer at 0x%.8x, start = "
	.ascii	"%d, end = %d, num_bytes = %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	found_v2_header, %function
found_v2_header:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	sub	sp, sp, #8
	mov	r1, r4
	ldr	r0, .L4
	bl	pr_info
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #4]
	str	r2, [sp]
	ldr	r2, [r4]
	ldr	r1, [r4, #8]
	ldr	r0, .L4+4
	bl	pr_info
	ldr	r3, [r4]
	ldr	r0, [r4, #8]
	add	r0, r0, r3
	bl	phys_to_virt
	mov	ip, r0
	ldr	r0, .L4+8
	ldr	lr, [r4]
	ldr	r3, [r4, #4]
	ldr	r1, .L4+12
	ldr	r2, .L4+16
	ldr	r0, [r0]
	sub	r3, r3, lr
	str	ip, [r1]
	str	r3, [r2]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, lr}
	b	memconsole_setup
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.word	memconsole_read
	.word	memconsole_baseaddr
	.word	memconsole_length
	.size	found_v2_header, .-found_v2_header
	.comm	memconsole_read,4,4
	.comm	memconsole_length,4,4
	.comm	memconsole_baseaddr,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
