	.file	"extr_machine_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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	test	rbx, rbx
	jne	.L2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbx, QWORD PTR 8[r12]
	add	r12, 8
	test	rbx, rbx
	je	.L5
.L2:
	test	QWORD PTR IND_DONE[rip], rbx
	jne	.L5
	mov	rax, QWORD PTR IND_SOURCE[rip]
	or	rax, QWORD PTR IND_INDIRECTION[rip]
	or	rax, QWORD PTR IND_DESTINATION[rip]
	test	rax, rbx
	je	.L3
	mov	rdi, rbx
	call	phys_to_virt@PLT
	mov	QWORD PTR [r12], rax
	test	QWORD PTR IND_INDIRECTION[rip], rbx
	je	.L3
	mov	rdi, QWORD PTR PAGE_MASK[rip]
	and	rdi, rbx
	call	phys_to_virt@PLT
	mov	r12, rax
	mov	rbx, QWORD PTR [r12]
	test	rbx, rbx
	jne	.L2
.L5:
	xor	eax, eax
	call	__ftrace_enabled_save@PLT
	mov	r12d, eax
	xor	eax, eax
	call	local_irq_disable@PLT
	mov	edi, DWORD PTR 24[rbp]
	mov	r13, QWORD PTR 0[rbp]
	call	page_address@PLT
	mov	edx, DWORD PTR relocate_new_kernel_size[rip]
	mov	esi, DWORD PTR relocate_new_kernel[rip]
	mov	rdi, rax
	mov	rbx, rax
	call	memcpy@PLT
	mov	rdi, rbp
	call	kexec_info@PLT
	xor	eax, eax
	call	flush_cache_all@PLT
	xor	eax, eax
	call	sh_bios_vbr_reload@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	phys_to_virt@PLT
	mov	rdi, r13
	mov	rsi, rbx
	mov	rdx, rax
	call	rbx
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	edi, r12d
	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	__ftrace_enabled_restore@PLT
	.cfi_endproc
.LFE0:
	.size	machine_kexec, .-machine_kexec
	.comm	relocate_new_kernel_size,4,4
	.comm	relocate_new_kernel,4,4
	.comm	PAGE_MASK,8,8
	.comm	IND_SOURCE,8,8
	.comm	IND_INDIRECTION,8,8
	.comm	IND_DONE,8,8
	.comm	IND_DESTINATION,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.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	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r0]
	mov	r8, r0
	cmp	r4, #0
	beq	.L5
	mov	r10, r0
	ldr	r5, .L19
	ldr	r7, .L19+4
	ldr	fp, .L19+8
	ldr	r6, .L19+12
	ldr	r9, .L19+16
	b	.L2
.L3:
	ldr	r4, [r10, #4]
	add	r10, r10, #4
	cmp	r4, #0
	beq	.L5
.L2:
	ldr	r3, [r5]
	tst	r4, r3
	bne	.L5
	ldr	r3, [r7]
	ldr	r1, [fp]
	ldr	r2, [r6]
	orr	r3, r3, r1
	orr	r3, r3, r2
	tst	r3, r4
	beq	.L3
	mov	r0, r4
	bl	phys_to_virt
	str	r0, [r10]
	ldr	r3, [fp]
	tst	r4, r3
	beq	.L3
	ldr	r0, [r9]
	and	r0, r0, r4
	bl	phys_to_virt
	mov	r10, r0
	ldr	r4, [r10]
	cmp	r4, #0
	bne	.L2
.L5:
	bl	__ftrace_enabled_save
	mov	r5, r0
	bl	local_irq_disable
	ldr	r0, [r8, #12]
	ldr	r6, [r8]
	bl	page_address
	ldr	r3, .L19+20
	ldr	r2, .L19+24
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r4, r0
	bl	memcpy
	mov	r0, r8
	bl	kexec_info
	bl	flush_cache_all
	bl	sh_bios_vbr_reload
	ldr	r0, [r8, #4]
	bl	phys_to_virt
	mov	r1, r4
	mov	r2, r0
	mov	r0, r6
	blx	r4
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	__ftrace_enabled_restore
.L20:
	.align	2
.L19:
	.word	IND_DONE
	.word	IND_SOURCE
	.word	IND_INDIRECTION
	.word	IND_DESTINATION
	.word	PAGE_MASK
	.word	relocate_new_kernel
	.word	relocate_new_kernel_size
	.size	machine_kexec, .-machine_kexec
	.comm	relocate_new_kernel_size,4,4
	.comm	relocate_new_kernel,4,4
	.comm	PAGE_MASK,4,4
	.comm	IND_SOURCE,4,4
	.comm	IND_INDIRECTION,4,4
	.comm	IND_DONE,4,4
	.comm	IND_DESTINATION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
