	.file	"680874.c"
	.intel_syntax noprefix
	.text
	.globl	TRIG_ROUND_MASK
	.bss
	.align 4
	.type	TRIG_ROUND_MASK, @object
	.size	TRIG_ROUND_MASK, 4
TRIG_ROUND_MASK:
	.zero	4
	.text
	.type	i8253_cascade_ns_to_timer_2div, @function
i8253_cascade_ns_to_timer_2div:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -96[rbp], rcx
	mov	DWORD PTR -72[rbp], r8d
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	jmp	.L3
.L2:
	mov	eax, DWORD PTR max_count.0[rip]
.L3:
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	jmp	.L5
.L4:
	mov	eax, DWORD PTR max_count.0[rip]
.L5:
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	imul	edx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L6
	cmp	DWORD PTR -52[rbp], 1
	jbe	.L6
	mov	eax, DWORD PTR max_count.0[rip]
	cmp	DWORD PTR -52[rbp], eax
	ja	.L6
	cmp	DWORD PTR -48[rbp], 1
	jbe	.L6
	mov	eax, DWORD PTR max_count.0[rip]
	cmp	DWORD PTR -48[rbp], eax
	ja	.L6
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jbe	.L6
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jbe	.L6
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jnb	.L6
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	cmp	edx, eax
	ja	.L22
.L6:
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, DWORD PTR -68[rbp]
	mov	edx, 0
	div	esi
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	DWORD PTR -40[rbp], 0
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -24[rbp], -1
	mov	eax, DWORD PTR max_count.0[rip]
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 0
	div	DWORD PTR -48[rbp]
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 1
	ja	.L8
	mov	DWORD PTR -20[rbp], 2
.L8:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -52[rbp], eax
	jmp	.L9
.L16:
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 0
	div	DWORD PTR -52[rbp]
	mov	DWORD PTR -48[rbp], eax
	jmp	.L10
.L14:
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, DWORD PTR -48[rbp]
	imul	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	ja	.L11
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jbe	.L11
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -40[rbp], eax
.L11:
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jb	.L12
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jnb	.L12
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -28[rbp], eax
.L12:
	add	DWORD PTR -48[rbp], 1
.L10:
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -52[rbp]
	add	edx, ecx
	add	edx, 1
	cmp	eax, edx
	ja	.L13
	mov	eax, DWORD PTR max_count.0[rip]
	cmp	DWORD PTR -48[rbp], eax
	jbe	.L14
.L13:
	add	DWORD PTR -52[rbp], 1
.L9:
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 0
	div	DWORD PTR -52[rbp]
	add	eax, 1
	cmp	DWORD PTR -52[rbp], eax
	ja	.L15
	mov	eax, DWORD PTR max_count.0[rip]
	cmp	DWORD PTR -52[rbp], eax
	jbe	.L16
.L15:
	mov	eax, DWORD PTR TRIG_ROUND_MASK[rip]
	and	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 128
	je	.L17
	cmp	DWORD PTR -72[rbp], 130
	je	.L18
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -40[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -4[rbp]
	cmp	edx, eax
	jnb	.L19
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -48[rbp], eax
	jmp	.L21
.L19:
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -48[rbp], eax
	jmp	.L21
.L17:
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -48[rbp], eax
	jmp	.L21
.L18:
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -48[rbp], eax
	nop
.L21:
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	imul	edx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -52[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -48[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L1
.L22:
	nop
.L1:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	i8253_cascade_ns_to_timer_2div, .-i8253_cascade_ns_to_timer_2div
	.section	.rodata
	.align 4
	.type	max_count.0, @object
	.size	max_count.0, 4
max_count.0:
	.long	65536
	.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	"680874.c"
	.text
	.comm	TRIG_ROUND_MASK,4,4
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i8253_cascade_ns_to_timer_2div, %function
i8253_cascade_ns_to_timer_2div:
	@ args = 4, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	b	.L3
.L2:
	ldr	r3, .L23
	ldr	r3, [r3]
.L3:
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	b	.L5
.L4:
	ldr	r3, .L23
	ldr	r3, [r3]
.L5:
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	ldr	r2, [fp, #-64]
	mul	r2, r3, r2
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L6
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bls	.L6
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bhi	.L6
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	bls	.L6
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bhi	.L6
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bls	.L6
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bls	.L6
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcs	.L6
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-20]
	mul	r2, r3, r2
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	bhi	.L22
.L6:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-40]
	mvn	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-20]
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bhi	.L8
	mov	r3, #2
	str	r3, [fp, #-24]
.L8:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-56]
	b	.L9
.L16:
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-20]
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-52]
	b	.L10
.L14:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-56]
	mul	r2, r3, r2
	ldr	r3, [fp, #-52]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bhi	.L11
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bls	.L11
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-44]
.L11:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bcc	.L12
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcs	.L12
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-32]
.L12:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L10:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-52]
	mul	r2, r3, r2
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-56]
	add	r3, r1, r3
	add	r3, r3, #1
	cmp	r2, r3
	bhi	.L13
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bls	.L14
.L13:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L9:
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-20]
	bl	__aeabi_uidiv
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bhi	.L15
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bls	.L16
.L15:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, [fp, #4]
	and	r3, r3, r2
	str	r3, [fp, #4]
	ldr	r3, [fp, #4]
	cmp	r3, #128
	beq	.L17
	ldr	r3, [fp, #4]
	cmp	r3, #130
	beq	.L18
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mul	r3, r2, r3
	ldr	r2, [fp, #-64]
	mul	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	ldr	r2, [fp, #-64]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	sub	r2, r2, r3
	ldr	r3, [fp, #-76]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r1, r3
	cmp	r2, r3
	bcs	.L19
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-52]
	b	.L21
.L19:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-52]
	b	.L21
.L17:
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-52]
	b	.L21
.L18:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-52]
	nop
.L21:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	ldr	r2, [fp, #-64]
	mul	r2, r3, r2
	ldr	r3, [fp, #-76]
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, [fp, #-68]
	str	r3, [r2]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, [fp, #-72]
	str	r3, [r2]
	b	.L1
.L22:
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	max_count.4220
	.word	TRIG_ROUND_MASK
	.size	i8253_cascade_ns_to_timer_2div, .-i8253_cascade_ns_to_timer_2div
	.section	.rodata
	.align	2
	.type	max_count.4220, %object
	.size	max_count.4220, 4
max_count.4220:
	.word	65536
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
