	.file	"extr_dt3000.c_dt3k_ns_to_timer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dt3k_ns_to_timer, @function
dt3k_ns_to_timer:
.LFB0:
	.cfi_startproc
	endbr64
	and	edx, -3
	mov	r9d, DWORD PTR [rsi]
	mov	ecx, edi
	xor	r8d, r8d
	mov	r11d, edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, ecx
	xor	edx, edx
	shr	eax, 31
	add	eax, ecx
	sar	eax
	add	eax, r9d
	div	ecx
	cmp	eax, 65535
	jle	.L9
.L4:
	add	ecx, edi
	cmp	r8d, 16
	je	.L10
.L6:
	mov	r10d, r8d
	add	r8d, 1
	cmp	r11d, 128
	jne	.L11
	mov	eax, r9d
	xor	edx, edx
	div	ecx
	cmp	eax, 65535
	jg	.L4
.L9:
	imul	ecx, eax
	mov	edx, r10d
	sal	edx, 16
	or	eax, edx
	mov	DWORD PTR [rsi], ecx
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	imul	edi, edi, 2147450880
	mov	eax, 1048575
	mov	DWORD PTR [rsi], edi
	ret
	.cfi_endproc
.LFE0:
	.size	dt3k_ns_to_timer, .-dt3k_ns_to_timer
	.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_dt3000.c_dt3k_ns_to_timer.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dt3k_ns_to_timer, %function
dt3k_ns_to_timer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	mov	r6, r1
	mov	r4, r0
	mov	r9, #0
	ldr	r10, [r1]
	bic	r8, r2, #2
.L6:
	cmp	r8, #128
	add	r0, r4, r4, lsr #31
	add	r0, r10, r0, asr #1
	mov	r1, r4
	moveq	r0, r10
	bl	__aeabi_uidiv
	cmp	r0, #65536
	mov	r7, r9
	add	r9, r9, #1
	blt	.L11
	cmp	r9, #16
	add	r4, r4, r5
	bne	.L6
	lsl	r3, r5, #31
	sub	r5, r3, r5, lsl #15
	ldr	r0, .L12
	str	r5, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mul	r4, r0, r4
	orr	r0, r0, r7, lsl #16
	str	r4, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	1048575
	.size	dt3k_ns_to_timer, .-dt3k_ns_to_timer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
