	.file	"665355.c"
	.intel_syntax noprefix
	.text
	.globl	krhino_tick_proc
	.type	krhino_tick_proc, @function
krhino_tick_proc:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 1
	call	tick_list_update@PLT
	call	time_slice_update@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	krhino_tick_proc, .-krhino_tick_proc
	.globl	krhino_sys_tick_get
	.type	krhino_sys_tick_get, @function
krhino_sys_tick_get:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	call	cpu_intrpt_save@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR g_tick_count[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	cpu_intrpt_restore@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	krhino_sys_tick_get, .-krhino_sys_tick_get
	.globl	krhino_sys_time_get
	.type	krhino_sys_time_get, @function
krhino_sys_time_get:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	krhino_sys_tick_get
	imul	rax, rax, 1000
	shr	rax, 2
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	krhino_sys_time_get, .-krhino_sys_time_get
	.globl	krhino_ms_to_ticks
	.type	krhino_ms_to_ticks, @function
krhino_ms_to_ticks:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, rcx
	shr	rax, 3
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	imul	rdx, rax, 1000
	mov	rax, rcx
	sub	rax, rdx
	mov	WORD PTR -12[rbp], ax
	mov	rax, QWORD PTR -24[rbp]
	shr	rax, 3
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	imul	rax, rax, 500
	mov	QWORD PTR -8[rbp], rax
	mov	WORD PTR -10[rbp], 2
	cmp	WORD PTR -10[rbp], 0
	je	.L7
	movzx	eax, WORD PTR -10[rbp]
	sub	eax, 1
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	mov	WORD PTR -10[rbp], ax
	movzx	edx, WORD PTR -12[rbp]
	movzx	eax, WORD PTR -10[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	add	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	krhino_ms_to_ticks, .-krhino_ms_to_ticks
	.globl	krhino_ticks_to_ms
	.type	krhino_ticks_to_ms, @function
krhino_ticks_to_ms:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, rcx
	shr	rax, 2
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	imul	rdx, rax, 500
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	shr	rax, 2
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	imul	rax, rax, 1000
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
	cmp	QWORD PTR -8[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 1
	jmp	.L12
.L11:
	mov	eax, 0
.L12:
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	imul	rax, rax, 1000
	shr	rax, 2
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	add	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	krhino_ticks_to_ms, .-krhino_ticks_to_ms
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"665355.c"
	.text
	.align	2
	.global	krhino_tick_proc
	.syntax unified
	.arm
	.fpu softvfp
	.type	krhino_tick_proc, %function
krhino_tick_proc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #1
	mov	r1, #0
	bl	tick_list_update
	bl	time_slice_update
	nop
	pop	{fp, pc}
	.size	krhino_tick_proc, .-krhino_tick_proc
	.align	2
	.global	krhino_sys_tick_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	krhino_sys_tick_get, %function
krhino_sys_tick_get:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	bl	cpu_intrpt_save
	str	r0, [fp, #-16]
	ldr	r3, .L4
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	cpu_intrpt_restore
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	g_tick_count
	.size	krhino_sys_tick_get, .-krhino_sys_tick_get
	.global	__aeabi_uldivmod
	.align	2
	.global	krhino_sys_time_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	krhino_sys_time_get, %function
krhino_sys_time_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	bl	krhino_sys_tick_get
	mov	r2, r0
	mov	r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #5
	orr	r5, r5, r2, lsr #27
	lsl	r4, r2, #5
	mov	r2, r4
	mov	r3, r5
	subs	r2, r2, r0
	sbc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #2
	orr	r5, r5, r2, lsr #30
	lsl	r4, r2, #2
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #3
	orr	r1, r1, r2, lsr #29
	lsl	r0, r2, #3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #500
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	pop	{r4, r5, fp, pc}
	.size	krhino_sys_time_get, .-krhino_sys_time_get
	.align	2
	.global	krhino_ms_to_ticks
	.syntax unified
	.arm
	.fpu softvfp
	.type	krhino_ms_to_ticks, %function
krhino_ms_to_ticks:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	mov	r2, #1000
	mov	r3, #0
	bl	__aeabi_uldivmod
	strh	r2, [fp, #-32]	@ movhi
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	mov	r2, #1000
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, r0
	mov	r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #5
	orr	r5, r5, r2, lsr #27
	lsl	r4, r2, #5
	mov	r2, r4
	mov	r3, r5
	subs	r2, r2, r0
	sbc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #2
	orr	r5, r5, r2, lsr #30
	lsl	r4, r2, #2
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #2
	strh	r3, [fp, #-30]	@ movhi
	ldrh	r3, [fp, #-30]
	cmp	r3, #0
	beq	.L9
	ldrh	r3, [fp, #-30]	@ movhi
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	b	.L10
.L9:
	mov	r3, #0
.L10:
	strh	r3, [fp, #-30]	@ movhi
	ldrh	r2, [fp, #-32]
	ldrh	r3, [fp, #-30]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	adds	r6, r0, r2
	adc	r7, r1, r3
	str	r6, [fp, #-28]
	str	r7, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	krhino_ms_to_ticks, .-krhino_ms_to_ticks
	.align	2
	.global	krhino_ticks_to_ms
	.syntax unified
	.arm
	.fpu softvfp
	.type	krhino_ticks_to_ms, %function
krhino_ticks_to_ms:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	mov	r2, #500
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r3, r2
	str	r3, [fp, #-36]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	mov	r2, #500
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, r0
	mov	r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #5
	orr	r5, r5, r2, lsr #27
	lsl	r4, r2, #5
	mov	r2, r4
	mov	r3, r5
	subs	r2, r2, r0
	sbc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #2
	orr	r5, r5, r2, lsr #30
	lsl	r4, r2, #2
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #3
	orr	r1, r1, r2, lsr #29
	lsl	r0, r2, #3
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	b	.L14
.L13:
	mov	r3, #0
.L14:
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, .L16
	umull	r1, r3, r2, r3
	lsr	r3, r3, #5
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	adds	r6, r0, r2
	adc	r7, r1, r3
	str	r6, [fp, #-28]
	str	r7, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L17:
	.align	2
.L16:
	.word	274877907
	.size	krhino_ticks_to_ms, .-krhino_ticks_to_ms
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
