	.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\n"
	.align 8
.LC1:
	.string	"Too many segments in the physical address map, giving up\n"
	.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
	test	rsi, rsi
	je	.L1
	mov	r8d, DWORD PTR [rcx]
	lea	r10, [rsi+rdi]
	test	r8d, r8d
	js	.L3
	xor	eax, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	add	rax, 2
	cmp	r8d, eax
	jl	.L25
.L6:
	mov	esi, eax
	cmp	QWORD PTR 8[rdx+rax*8], rdi
	jle	.L4
	lea	r9, 0[0+rax*8]
	lea	r11, [rdx+r9]
	mov	r12, QWORD PTR [r11]
	cmp	r12, r10
	jl	.L26
.L5:
	cmp	r12, r10
	je	.L12
	test	esi, esi
	jle	.L7
	lea	r9, -8[rdx+r9]
	cmp	QWORD PTR [r9], rdi
	je	.L27
.L7:
	lea	r9d, 2[r8]
	mov	DWORD PTR [rcx], r9d
	cmp	DWORD PTR PHYS_AVAIL_ENTRIES[rip], r9d
	je	.L8
	cmp	r8d, esi
	jle	.L11
	movsx	r9, r8d
	sub	r8d, 1
	sub	r8d, esi
	sal	r9, 3
	shr	r8d
	lea	rcx, [rdx+r9]
	lea	r9, -16[rdx+r9]
	sal	r8, 4
	sub	r9, r8
	mov	r8, r9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, QWORD PTR -16[rcx]
	sub	rcx, 16
	mov	QWORD PTR 16[rcx], rsi
	mov	rsi, QWORD PTR 8[rcx]
	mov	QWORD PTR 24[rcx], rsi
	cmp	r8, rcx
	jne	.L10
.L11:
	mov	QWORD PTR [r11], rdi
	mov	r12d, 1
	mov	QWORD PTR 8[rdx+rax*8], r10
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	movsx	rax, r8d
	mov	esi, r8d
	lea	r9, 0[0+rax*8]
	lea	r11, [rdx+r9]
	mov	r12, QWORD PTR [r11]
	jmp	.L5
.L12:
	mov	QWORD PTR [r11], rdi
	mov	r12d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	eax, DWORD PTR boothowto[rip]
	mov	r12d, 1
	test	DWORD PTR RB_VERBOSE[rip], eax
	je	.L1
	lea	rdi, .LC0[rip]
	call	printf@PLT
	jmp	.L1
.L27:
	mov	QWORD PTR [r9], r10
	mov	r12d, 1
	jmp	.L1
.L3:
	movsx	rax, r8d
	lea	r11, [rdx+rax*8]
	cmp	QWORD PTR [r11], r10
	je	.L12
	add	r8d, 2
	mov	DWORD PTR [rcx], r8d
	cmp	r8d, DWORD PTR PHYS_AVAIL_ENTRIES[rip]
	jne	.L11
.L8:
	lea	rdi, .LC1[rip]
	xor	r12d, r12d
	call	printf@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\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Too many segments in the physical address map, givi"
	.ascii	"ng up\012\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	.L15
	ldr	ip, [r3]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	ip, #0
	add	r6, r1, r0
	blt	.L3
	mov	r1, #0
	add	r5, r2, #4
	b	.L6
.L4:
	add	r1, r1, #2
	cmp	ip, r1
	blt	.L29
.L6:
	ldr	lr, [r5, r1, lsl #2]
	mov	r4, r1
	cmp	lr, r0
	ble	.L4
	ldr	lr, [r2, r1, lsl #2]
	add	r5, r2, r1, lsl #2
	cmp	lr, r6
	blt	.L30
.L5:
	cmp	lr, r6
	beq	.L12
	cmp	r1, #0
	beq	.L7
	sub	lr, r4, #-1073741823
	ldr	r7, [r2, lr, lsl #2]
	cmp	r7, r0
	beq	.L31
.L7:
	add	lr, ip, #2
	ldr	r7, .L33
	str	lr, [r3]
	ldr	r3, [r7]
	cmp	r3, lr
	beq	.L8
	cmp	r1, ip
	bge	.L11
	sub	lr, ip, #1
	sub	r1, lr, r1
	sub	lr, r2, #8
	lsr	r1, r1, #1
	add	lr, lr, ip, lsl #2
	sub	lr, lr, r1, lsl #3
	add	r3, r2, ip, lsl #2
.L10:
	ldr	ip, [r3, #-8]
	ldr	r1, [r3, #-4]
	str	ip, [r3]
	str	r1, [r3, #4]
	sub	r3, r3, #8
	cmp	lr, r3
	bne	.L10
.L11:
	add	r4, r4, #1
	str	r0, [r5]
	mov	r0, #1
	str	r6, [r2, r4, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r0, #1
	bx	lr
.L29:
	mov	r4, ip
	mov	r1, ip
	ldr	lr, [r2, ip, lsl #2]
	add	r5, r2, ip, lsl #2
	b	.L5
.L12:
	str	r0, [r5]
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L30:
	ldr	r2, .L33+4
	ldr	r3, .L33+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L32
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L31:
	mov	r0, #1
	str	r6, [r2, lr, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r1, [r2, ip, lsl #2]
	mov	r4, ip
	cmp	r1, r6
	add	r5, r2, ip, lsl #2
	beq	.L12
	add	r1, ip, #2
	ldr	ip, .L33
	str	r1, [r3]
	ldr	r3, [ip]
	cmp	r1, r3
	bne	.L11
.L8:
	ldr	r0, .L33+12
	bl	printf
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L32:
	ldr	r0, .L33+16
	bl	printf
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L34:
	.align	2
.L33:
	.word	PHYS_AVAIL_ENTRIES
	.word	boothowto
	.word	RB_VERBOSE
	.word	.LC1
	.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
