	.file	"extr_rtclock.c_rtclock_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rtclock_init
	.type	rtclock_init, @function
rtclock_init:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	xor	eax, eax
	call	ml_get_interrupts_enabled@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	xor	eax, eax
	call	cpu_number@PLT
	cmp	rax, QWORD PTR master_cpu[rip]
	je	.L5
.L2:
	mov	rdx, QWORD PTR rtc_timer[rip]
	xor	eax, eax
	call	[QWORD PTR [rdx]]
	xor	eax, eax
	call	rtc_timer_start@PLT
	mov	eax, 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR tscFreq[rip]
	call	assert@PLT
	mov	edi, DWORD PTR tscFreq[rip]
	call	rtc_export_speed@PLT
	mov	QWORD PTR gPEClockFrequencyInfo[rip+8], rax
	mov	QWORD PTR gPEClockFrequencyInfo[rip], rax
	xor	eax, eax
	call	rtc_timer_init@PLT
	xor	eax, eax
	call	clock_timebase_init@PLT
	xor	eax, eax
	call	ml_init_lock_timeout@PLT
	mov	edi, 10
	call	ml_init_delay_spin_threshold@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	rtclock_init, .-rtclock_init
	.comm	tscFreq,4,4
	.comm	rtc_timer,8,8
	.comm	master_cpu,8,8
	.comm	gPEClockFrequencyInfo,16,16
	.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_rtclock.c_rtclock_init.c"
	.text
	.align	2
	.global	rtclock_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtclock_init, %function
rtclock_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	bl	ml_get_interrupts_enabled
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	bl	cpu_number
	ldr	r3, .L6
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L5
.L2:
	ldr	r3, .L6+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	blx	r3
	bl	rtc_timer_start
	mov	r0, #1
	pop	{r4, pc}
.L5:
	ldr	r4, .L6+8
	ldr	r0, [r4]
	bl	assert
	ldr	r0, [r4]
	bl	rtc_export_speed
	ldr	r3, .L6+12
	str	r0, [r3, #4]
	str	r0, [r3]
	bl	rtc_timer_init
	bl	clock_timebase_init
	bl	ml_init_lock_timeout
	mov	r0, #10
	bl	ml_init_delay_spin_threshold
	b	.L2
.L7:
	.align	2
.L6:
	.word	master_cpu
	.word	rtc_timer
	.word	tscFreq
	.word	gPEClockFrequencyInfo
	.size	rtclock_init, .-rtclock_init
	.comm	tscFreq,4,4
	.comm	rtc_timer,4,4
	.comm	master_cpu,4,4
	.comm	gPEClockFrequencyInfo,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
