	.file	"extr_machdep.c_add_physmap_entry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Overlapping memory regions, ignoring second region"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"physmap[%d] = 0x%016lx\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Too many segments in the physical address map, giving up"
	.text
	.p2align 4
	.type	add_physmap_entry, @function
add_physmap_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, 1
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rsi, rsi
	je	.L1
	mov	r8, rdi
	mov	edi, DWORD PTR [rcx]
	lea	r12, [rsi+r8]
	test	edi, edi
	js	.L3
	xor	eax, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	add	rax, 2
	cmp	edi, eax
	jl	.L24
.L6:
	mov	ebx, eax
	cmp	QWORD PTR 8[rdx+rax*8], r8
	jle	.L4
	lea	rsi, 0[0+rax*8]
	lea	r9, [rdx+rsi]
	mov	r10, QWORD PTR [r9]
	cmp	r10, r12
	jl	.L25
.L5:
	cmp	r10, r12
	je	.L12
	test	ebx, ebx
	jle	.L7
	lea	rsi, -8[rdx+rsi]
	cmp	QWORD PTR [rsi], r8
	je	.L26
.L7:
	add	edi, 2
	mov	DWORD PTR [rcx], edi
	cmp	DWORD PTR PHYS_AVAIL_ENTRIES[rip], edi
	je	.L8
	movsx	rcx, edi
	cmp	ebx, edi
	jge	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, QWORD PTR -16[rdx+rcx*8]
	mov	QWORD PTR [rdx+rcx*8], rsi
	mov	rsi, QWORD PTR -8[rdx+rcx*8]
	mov	QWORD PTR 8[rdx+rcx*8], rsi
	sub	rcx, 2
	cmp	ebx, ecx
	jl	.L10
.L11:
	mov	QWORD PTR [r9], r8
	mov	esi, ebx
	lea	rdi, .LC1[rip]
	mov	QWORD PTR 8[rdx+rax*8], r12
	mov	rdx, r8
	xor	eax, eax
	call	printf@PLT
	mov	rdx, r12
	lea	esi, 1[rbx]
	xor	eax, eax
	lea	rdi, .LC1[rip]
	mov	r12d, 1
	call	printf@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	movsx	rax, edi
	mov	ebx, edi
	lea	rsi, 0[0+rax*8]
	lea	r9, [rdx+rsi]
	mov	r10, QWORD PTR [r9]
	jmp	.L5
.L3:
	movsx	rax, edi
	mov	ebx, edi
	lea	r9, [rdx+rax*8]
	cmp	QWORD PTR [r9], r12
	jne	.L7
.L12:
	mov	QWORD PTR [r9], r8
	mov	r12d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	eax, DWORD PTR boothowto[rip]
	mov	r12d, 1
	test	DWORD PTR RB_VERBOSE[rip], eax
	je	.L1
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L1
.L26:
	mov	QWORD PTR [rsi], r12
	mov	r12d, 1
	jmp	.L1
.L8:
	lea	rdi, .LC2[rip]
	xor	r12d, r12d
	call	puts@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	add_physmap_entry, .-add_physmap_entry
	.comm	boothowto,4,4
	.comm	RB_VERBOSE,4,4
	.comm	PHYS_AVAIL_ENTRIES,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_machdep.c_add_physmap_entry.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Overlapping memory regions, ignoring second region\000"
	.align	2
.LC1:
	.ascii	"physmap[%d] = 0x%016lx\012\000"
	.align	2
.LC2:
	.ascii	"Too many segments in the physical address map, givi"
	.ascii	"ng up\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_physmap_entry, %function
add_physmap_entry:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	beq	.L14
	ldr	ip, [r3]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	ip, #0
	mov	r7, r2
	add	r5, r1, r0
	blt	.L3
	mov	r4, #0
	add	r6, r2, #4
	b	.L6
.L4:
	add	r4, r4, #2
	cmp	ip, r4
	blt	.L27
.L6:
	ldr	r1, [r6, r4, lsl #2]
	mov	lr, r4
	cmp	r1, r0
	ble	.L4
	ldr	r2, [r7, r4, lsl #2]
	add	r8, r7, r4, lsl #2
	cmp	r2, r5
	blt	.L28
.L5:
	cmp	r2, r5
	beq	.L12
	cmp	r4, #0
	beq	.L7
	sub	r2, lr, #-1073741823
	ldr	r1, [r7, r2, lsl #2]
	cmp	r1, r0
	beq	.L29
.L7:
	add	r1, ip, #2
	ldr	r2, .L31
	str	r1, [r3]
	ldr	r3, [r2]
	cmp	r3, r1
	beq	.L8
	cmp	r4, r1
	addlt	r3, r7, r1, lsl #2
	bge	.L11
.L10:
	ldmdb	r3, {r6, ip}
	sub	r1, r1, #2
	cmp	r4, r1
	stm	r3, {r6, ip}
	sub	r3, r3, #8
	blt	.L10
.L11:
	add	lr, lr, #1
	str	r0, [r8]
	mov	r2, r0
	mov	r1, r4
	str	r5, [r7, lr, lsl #2]
	ldr	r0, .L31+4
	bl	printf
	mov	r2, r5
	add	r1, r4, #1
	ldr	r0, .L31+4
	bl	printf
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, #1
	bx	lr
.L27:
	mov	lr, ip
	mov	r4, ip
	ldr	r2, [r7, ip, lsl #2]
	add	r8, r7, ip, lsl #2
	b	.L5
.L3:
	ldr	r2, [r2, ip, lsl #2]
	mov	lr, ip
	cmp	r2, r5
	movne	r4, ip
	add	r8, r7, ip, lsl #2
	bne	.L7
.L12:
	str	r0, [r8]
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	ldr	r2, .L31+8
	ldr	r3, .L31+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L30
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L29:
	mov	r0, #1
	str	r5, [r7, r2, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r0, .L31+16
	bl	puts
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L30:
	ldr	r0, .L31+20
	bl	puts
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L32:
	.align	2
.L31:
	.word	PHYS_AVAIL_ENTRIES
	.word	.LC1
	.word	boothowto
	.word	RB_VERBOSE
	.word	.LC2
	.word	.LC0
	.size	add_physmap_entry, .-add_physmap_entry
	.comm	boothowto,4,4
	.comm	RB_VERBOSE,4,4
	.comm	PHYS_AVAIL_ENTRIES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
