	.file	"extr_mp.c_start_cpu.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"start_cpu(%p) about to start cpu %d, lapic %d\n"
	.align 8
.LC1:
	.string	"start_cpu(%p) about to wait for cpu %d\n"
	.align 8
.LC2:
	.string	"TSC sync for cpu %d: 0x%016llx delta 0x%llx (%lld)\n"
	.align 8
.LC3:
	.string	"Unsynchronized  TSC for cpu %d: 0x%016llx, delta 0x%llx\n"
	.text
	.p2align 4
	.type	start_cpu, @function
start_cpu:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	cpu_number@PLT
	cmp	rax, QWORD PTR [rbx]
	je	.L11
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rcx, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR 8[rbx]
	mov	rsi, rbx
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	DBG@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR 8[rbx]
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edi, DWORD PTR TRACE_MP_CPU_START[rip]
	or	edi, DWORD PTR DBG_FUNC_START[rip]
	call	KERNEL_DEBUG_CONSTANT@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 16[rbx]
	call	i386_start_cpu@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	rsi, rbx
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	DBG@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, 100
	mov	esi, 100000
	call	mp_wait_for_cpu_up@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	cpu_datap@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR TRACE_MP_CPU_START[rip]
	xor	ecx, ecx
	mov	rdx, QWORD PTR [rax]
	or	edi, DWORD PTR DBG_FUNC_END[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	call	KERNEL_DEBUG_CONSTANT@PLT
	cmp	QWORD PTR TSC_sync_margin[rip], 0
	je	.L1
	mov	edi, DWORD PTR 8[rbx]
	call	cpu_datap@PLT
	cmp	QWORD PTR [rax], 0
	je	.L1
	mov	esi, 1
	lea	rdi, tsc_entry_barrier[rip]
	call	atomic_decl@PLT
	mov	rax, QWORD PTR tsc_entry_barrier[rip]
	.p2align 4,,10
	.p2align 3
.L5:
	test	rax, rax
	jne	.L5
	call	rdtsc64@PLT
	mov	esi, 1
	lea	rdi, tsc_exit_barrier[rip]
	mov	r12, rax
	call	atomic_decl@PLT
	mov	rax, QWORD PTR tsc_exit_barrier[rip]
	.p2align 4,,10
	.p2align 3
.L6:
	test	rax, rax
	jne	.L6
	mov	rdx, QWORD PTR tsc_target[rip]
	mov	esi, DWORD PTR 8[rbx]
	lea	rdi, .LC2[rip]
	mov	rax, rdx
	sub	rax, r12
	mov	r12, rax
	mov	r8, rax
	mov	rcx, rax
	call	kprintf@PLT
	mov	rdi, r12
	call	ABS@PLT
	cmp	rax, QWORD PTR TSC_sync_margin[rip]
	jle	.L1
	mov	esi, DWORD PTR 8[rbx]
	mov	rdx, QWORD PTR tsc_target[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rcx, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	lea	rdi, .LC3[rip]
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	printf@PLT
	.cfi_endproc
.LFE0:
	.size	start_cpu, .-start_cpu
	.comm	tsc_target,8,8
	.comm	tsc_exit_barrier,8,8
	.comm	tsc_entry_barrier,8,8
	.comm	TSC_sync_margin,8,8
	.comm	TRACE_MP_CPU_START,4,4
	.comm	DBG_FUNC_START,4,4
	.comm	DBG_FUNC_END,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_mp.c_start_cpu.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"start_cpu(%p) about to start cpu %d, lapic %d\012\000"
	.align	2
.LC1:
	.ascii	"start_cpu(%p) about to wait for cpu %d\012\000"
	.align	2
.LC2:
	.ascii	"TSC sync for cpu %d: 0x%016llx delta 0x%llx (%lld)\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"Unsynchronized  TSC for cpu %d: 0x%016llx, delta 0x"
	.ascii	"%llx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_cpu, %function
start_cpu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	sub	sp, sp, #8
	bl	cpu_number
	ldr	r3, [r4]
	cmp	r0, r3
	beq	.L17
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r5, #0
	ldmib	r4, {r2, r3}
	mov	r1, r4
	ldr	r0, .L18
	bl	DBG
	ldr	r6, .L18+4
	ldr	r3, .L18+8
	ldr	r0, [r6]
	ldr	r3, [r3]
	str	r5, [sp, #4]
	str	r5, [sp]
	ldmib	r4, {r1, r2}
	orr	r0, r0, r3
	mov	r3, r5
	bl	KERNEL_DEBUG_CONSTANT
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	bl	i386_start_cpu
	mov	r1, r4
	ldr	r2, [r4, #4]
	ldr	r0, .L18+12
	bl	DBG
	mov	r2, #100
	ldr	r1, .L18+16
	ldr	r0, [r4, #4]
	bl	mp_wait_for_cpu_up
	ldr	r3, .L18+20
	ldr	r7, [r4, #4]
	ldr	r3, [r3]
	ldr	r6, [r6]
	mov	r0, r7
	orr	r6, r6, r3
	bl	cpu_datap
	ldr	r8, .L18+24
	ldr	r2, [r0]
	mov	r3, r5
	mov	r0, r6
	mov	r1, r7
	str	r5, [sp, #4]
	str	r5, [sp]
	bl	KERNEL_DEBUG_CONSTANT
	ldr	r3, [r8]
	cmp	r3, r5
	beq	.L1
	ldr	r0, [r4, #4]
	bl	cpu_datap
	ldr	r3, [r0]
	cmp	r3, r5
	beq	.L1
	ldr	r5, .L18+28
	mov	r1, #1
	mov	r0, r5
	bl	atomic_decl
	ldr	r3, [r5]
.L5:
	cmp	r3, #0
	bne	.L5
	bl	rdtsc64
	ldr	r6, .L18+32
	mov	r5, r0
	mov	r1, #1
	mov	r0, r6
	bl	atomic_decl
	ldr	r3, [r6]
.L6:
	cmp	r3, #0
	bne	.L6
	ldr	r6, .L18+36
	ldr	r1, [r4, #4]
	ldr	r2, [r6]
	ldr	r0, .L18+40
	sub	r5, r2, r5
	mov	r3, r5
	str	r5, [sp]
	bl	kprintf
	mov	r0, r5
	bl	ABS
	ldr	r3, [r8]
	cmp	r0, r3
	ble	.L1
	mov	r3, r5
	ldr	r2, [r6]
	ldr	r1, [r4, #4]
	ldr	r0, .L18+44
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	printf
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	TRACE_MP_CPU_START
	.word	DBG_FUNC_START
	.word	.LC1
	.word	100000
	.word	DBG_FUNC_END
	.word	TSC_sync_margin
	.word	tsc_entry_barrier
	.word	tsc_exit_barrier
	.word	tsc_target
	.word	.LC2
	.word	.LC3
	.size	start_cpu, .-start_cpu
	.comm	tsc_target,4,4
	.comm	tsc_exit_barrier,4,4
	.comm	tsc_entry_barrier,4,4
	.comm	TSC_sync_margin,4,4
	.comm	TRACE_MP_CPU_START,4,4
	.comm	DBG_FUNC_START,4,4
	.comm	DBG_FUNC_END,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
