	.file	"extr_machine_kexec_64.c_copy_segments.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	copy_segments, @function
copy_segments:
.LFB0:
	.cfi_startproc
	endbr64
	test	QWORD PTR IND_DONE[rip], rdi
	jne	.L9
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	cmp	rbx, 128
	je	.L13
.L3:
	mov	rbx, QWORD PTR 0[rbp]
	lea	rax, 8[rbp]
	test	QWORD PTR IND_DONE[rip], rbx
	jne	.L14
	mov	rbp, rax
.L4:
	mov	rdi, QWORD PTR PAGE_MASK[rip]
	and	rdi, rbx
	call	__va@PLT
	and	rbx, QWORD PTR IND_FLAGS[rip]
	cmp	rbx, 129
	je	.L5
	cmp	rbx, 130
	jne	.L15
	mov	r12, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rbp, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r12
	mov	rsi, rax
	call	copy_page@PLT
	movsx	rax, DWORD PTR PAGE_SIZE[rip]
	add	r12, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE0:
	.size	copy_segments, .-copy_segments
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_MASK,8,8
	.comm	IND_FLAGS,8,8
	.comm	IND_DONE,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_machine_kexec_64.c_copy_segments.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_segments, %function
copy_segments:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L10
	ldr	r5, [r6]
	ands	r5, r0, r5
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r10, r0
	mov	r4, r5
	ldr	r8, .L10+4
	ldr	r7, .L10+8
	ldr	r9, .L10+12
	b	.L4
.L3:
	ldr	r3, [r6]
	ldr	r10, [r4], #4
	tst	r10, r3
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r0, [r8]
	and	r0, r0, r10
	bl	__va
	ldr	r3, [r7]
	and	r3, r3, r10
	cmp	r3, #129
	moveq	r4, r0
	beq	.L3
	cmp	r3, #130
	moveq	r5, r0
	beq	.L3
	cmp	r3, #128
	bne	.L3
	mov	r1, r0
	mov	r0, r5
	bl	copy_page
	ldr	r3, [r9]
	add	r5, r5, r3
	b	.L3
.L11:
	.align	2
.L10:
	.word	IND_DONE
	.word	PAGE_MASK
	.word	IND_FLAGS
	.word	PAGE_SIZE
	.size	copy_segments, .-copy_segments
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_MASK,4,4
	.comm	IND_FLAGS,4,4
	.comm	IND_DONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
