	.file	"extr_apic.c_setup_APIC_timer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"lapic-deadline"
	.text
	.p2align 4
	.type	setup_APIC_timer, @function
setup_APIC_timer:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdi, lapic_events[rip]
	call	this_cpu_ptr@PLT
	mov	edi, DWORD PTR X86_FEATURE_ARAT[rip]
	mov	rbp, rax
	call	this_cpu_has@PLT
	test	rax, rax
	je	.L2
	mov	DWORD PTR lapic_clockevent[rip], 150
	mov	eax, DWORD PTR CLOCK_EVT_FEAT_C3STOP[rip]
	not	eax
	and	DWORD PTR lapic_clockevent[rip+4], eax
.L2:
	mov	edx, 24
	lea	rsi, lapic_clockevent[rip]
	mov	rdi, rbp
	call	memcpy@PLT
	xor	eax, eax
	call	smp_processor_id@PLT
	mov	edi, eax
	call	cpumask_of@PLT
	mov	edi, DWORD PTR X86_FEATURE_TSC_DEADLINE_TIMER[rip]
	mov	DWORD PTR 16[rbp], eax
	call	this_cpu_has@PLT
	test	rax, rax
	je	.L3
	lea	rax, .LC0[rip]
	mov	rdi, rbp
	mov	rcx, -1
	mov	QWORD PTR 0[rbp], rax
	mov	eax, DWORD PTR CLOCK_EVT_FEAT_PERIODIC[rip]
	or	eax, DWORD PTR CLOCK_EVT_FEAT_DUMMY[rip]
	not	eax
	and	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR lapic_next_deadline[rip]
	mov	DWORD PTR 12[rbp], eax
	mov	eax, 1000
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	cdq
	idiv	DWORD PTR TSC_DIVISOR[rip]
	mov	edx, 15
	imul	eax, DWORD PTR tsc_khz[rip]
	mov	esi, eax
	jmp	clockevents_config_and_register@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	clockevents_register_device@PLT
	.cfi_endproc
.LFE0:
	.size	setup_APIC_timer, .-setup_APIC_timer
	.comm	tsc_khz,4,4
	.comm	lapic_next_deadline,4,4
	.comm	lapic_events,4,4
	.comm	lapic_clockevent,8,8
	.comm	X86_FEATURE_TSC_DEADLINE_TIMER,4,4
	.comm	X86_FEATURE_ARAT,4,4
	.comm	TSC_DIVISOR,4,4
	.comm	CLOCK_EVT_FEAT_PERIODIC,4,4
	.comm	CLOCK_EVT_FEAT_DUMMY,4,4
	.comm	CLOCK_EVT_FEAT_C3STOP,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_apic.c_setup_APIC_timer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"lapic-deadline\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_APIC_timer, %function
setup_APIC_timer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r0, .L9
	bl	this_cpu_ptr
	ldr	r3, .L9+4
	mov	r4, r0
	ldr	r0, [r3]
	bl	this_cpu_has
	cmp	r0, #0
	beq	.L2
	mov	r0, #150
	ldr	r3, .L9+8
	ldr	r1, .L9+12
	ldr	r2, [r3, #4]
	ldr	r1, [r1]
	str	r0, [r3]
	bic	r2, r2, r1
	str	r2, [r3, #4]
.L2:
	mov	r2, #16
	ldr	r1, .L9+8
	mov	r0, r4
	bl	memcpy
	bl	smp_processor_id
	bl	cpumask_of
	ldr	r3, .L9+16
	str	r0, [r4, #12]
	ldr	r0, [r3]
	bl	this_cpu_has
	cmp	r0, #0
	beq	.L3
	ldr	r3, .L9+20
	ldr	r2, .L9+24
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r1, .L9+28
	ldr	r3, [r4, #4]
	orr	r2, r2, r0
	ldr	ip, [r1]
	ldr	r0, .L9+32
	ldr	r1, .L9+36
	bic	r3, r3, r2
	stm	r4, {r0, r3, ip}
	ldr	r1, [r1]
	mov	r0, #1000
	bl	__aeabi_idiv
	mov	r2, r0
	ldr	r3, .L9+40
	mov	r0, r4
	pop	{r4, lr}
	ldr	r1, [r3]
	mvn	r3, #0
	mul	r1, r2, r1
	mov	r2, #15
	b	clockevents_config_and_register
.L3:
	mov	r0, r4
	pop	{r4, lr}
	b	clockevents_register_device
.L10:
	.align	2
.L9:
	.word	lapic_events
	.word	X86_FEATURE_ARAT
	.word	lapic_clockevent
	.word	CLOCK_EVT_FEAT_C3STOP
	.word	X86_FEATURE_TSC_DEADLINE_TIMER
	.word	CLOCK_EVT_FEAT_DUMMY
	.word	CLOCK_EVT_FEAT_PERIODIC
	.word	lapic_next_deadline
	.word	.LC0
	.word	TSC_DIVISOR
	.word	tsc_khz
	.size	setup_APIC_timer, .-setup_APIC_timer
	.comm	tsc_khz,4,4
	.comm	lapic_next_deadline,4,4
	.comm	lapic_events,4,4
	.comm	lapic_clockevent,8,4
	.comm	X86_FEATURE_TSC_DEADLINE_TIMER,4,4
	.comm	X86_FEATURE_ARAT,4,4
	.comm	TSC_DIVISOR,4,4
	.comm	CLOCK_EVT_FEAT_PERIODIC,4,4
	.comm	CLOCK_EVT_FEAT_DUMMY,4,4
	.comm	CLOCK_EVT_FEAT_C3STOP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
