	.file	"extr_kexec.c_machine_kexec.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	machine_kexec
	.type	machine_kexec, @function
machine_kexec:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 40[rdi]
	call	page_to_phys@PLT
	mov	edi, DWORD PTR FIX_TEXT_KEXEC[rip]
	mov	r12, rax
	call	__fix_to_virt@PLT
	mov	edi, DWORD PTR FIX_TEXT_KEXEC[rip]
	mov	rsi, r12
	mov	rbp, rax
	call	set_fixmap@PLT
	xor	eax, eax
	call	flush_cache_all@PLT
	mov	edi, DWORD PTR relocate_new_kernel[rip]
	mov	r13d, DWORD PTR relocate_new_kernel_size[rip]
	call	dereference_function_descriptor@PLT
	mov	rdi, rbp
	mov	edx, r13d
	mov	esi, eax
	call	memcpy@PLT
	mov	rdx, QWORD PTR 16[rbx]
	movsx	rax, DWORD PTR kexec_cmdline_offset[rip]
	mov	QWORD PTR 0[rbp+rax], rdx
	movsx	rax, DWORD PTR kexec_initrd_start_offset[rip]
	mov	rdx, QWORD PTR 24[rbx]
	mov	QWORD PTR 0[rbp+rax], rdx
	movsx	rax, DWORD PTR kexec_initrd_end_offset[rip]
	mov	rdx, QWORD PTR 32[rbx]
	mov	QWORD PTR 0[rbp+rax], rdx
	mov	rax, QWORD PTR PAGE0[rip]
	mov	rdx, QWORD PTR [rax]
	movsx	rax, DWORD PTR kexec_free_mem_offset[rip]
	mov	QWORD PTR 0[rbp+rax], rdx
	xor	eax, eax
	call	flush_cache_all@PLT
	xor	eax, eax
	call	flush_tlb_all@PLT
	xor	eax, eax
	call	local_irq_disable@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdx, r12
	and	rdi, QWORD PTR PAGE_MASK[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	rax
	.cfi_endproc
.LFE0:
	.size	machine_kexec, .-machine_kexec
	.comm	relocate_new_kernel_size,4,4
	.comm	relocate_new_kernel,4,4
	.comm	kexec_initrd_start_offset,4,4
	.comm	kexec_initrd_end_offset,4,4
	.comm	kexec_free_mem_offset,4,4
	.comm	kexec_cmdline_offset,4,4
	.comm	PAGE_MASK,8,8
	.comm	PAGE0,8,8
	.comm	FIX_TEXT_KEXEC,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_kexec.c_machine_kexec.c"
	.text
	.align	2
	.global	machine_kexec
	.syntax unified
	.arm
	.fpu softvfp
	.type	machine_kexec, %function
machine_kexec:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0, #20]
	bl	page_to_phys
	ldr	r7, .L4
	mov	r6, r0
	ldr	r0, [r7]
	bl	__fix_to_virt
	mov	r1, r6
	mov	r4, r0
	ldr	r0, [r7]
	bl	set_fixmap
	bl	flush_cache_all
	ldr	r3, .L4+4
	ldr	r0, [r3]
	bl	dereference_function_descriptor
	ldr	r3, .L4+8
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r4
	bl	memcpy
	ldr	r3, .L4+12
	ldr	r1, [r5, #8]
	ldr	r2, [r3]
	ldr	r3, .L4+16
	str	r1, [r4, r2]
	ldr	r1, [r5, #12]
	ldr	r3, [r3]
	ldr	r2, .L4+20
	str	r1, [r4, r3]
	ldr	r3, .L4+24
	ldr	r1, [r2]
	ldr	r0, [r5, #16]
	ldr	r2, [r3]
	ldr	r3, .L4+28
	str	r0, [r4, r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r4, r3]
	bl	flush_cache_all
	bl	flush_tlb_all
	bl	local_irq_disable
	ldr	r3, .L4+32
	ldr	r0, [r5]
	ldr	r3, [r3]
	mov	r2, r6
	ldr	r1, [r5, #4]
	and	r0, r0, r3
	mov	r3, r4
	pop	{r4, r5, r6, r7, r8, lr}
	bx	r3	@ indirect register sibling call
.L5:
	.align	2
.L4:
	.word	FIX_TEXT_KEXEC
	.word	relocate_new_kernel
	.word	relocate_new_kernel_size
	.word	kexec_cmdline_offset
	.word	kexec_initrd_start_offset
	.word	kexec_initrd_end_offset
	.word	PAGE0
	.word	kexec_free_mem_offset
	.word	PAGE_MASK
	.size	machine_kexec, .-machine_kexec
	.comm	relocate_new_kernel_size,4,4
	.comm	relocate_new_kernel,4,4
	.comm	kexec_initrd_start_offset,4,4
	.comm	kexec_initrd_end_offset,4,4
	.comm	kexec_free_mem_offset,4,4
	.comm	kexec_cmdline_offset,4,4
	.comm	PAGE_MASK,4,4
	.comm	PAGE0,4,4
	.comm	FIX_TEXT_KEXEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
