	.file	"extr_cx25840-ir.c_ns_to_pulse_clocks.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ns_to_pulse_clocks, @function
ns_to_pulse_clocks:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movsx	r12, DWORD PTR CX25840_IR_REFCLK_FREQ[rip]
	mov	esi, 1000
	mov	rax, r12
	imul	r12, r12, 1125899907
	sar	eax, 31
	sar	r12, 50
	sub	r12d, eax
	imul	r12d, edi
	mov	edi, r12d
	call	do_div@PLT
	cmp	eax, 499
	setg	al
	movzx	eax, al
	add	r12d, eax
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ns_to_pulse_clocks, .-ns_to_pulse_clocks
	.comm	CX25840_IR_REFCLK_FREQ,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_cx25840-ir.c_ns_to_pulse_clocks.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ns_to_pulse_clocks, %function
ns_to_pulse_clocks:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L5
	push	{r4, lr}
	ldr	r3, [r3]
	ldr	r4, .L5+4
	mov	r1, #1000
	smull	ip, r2, r4, r3
	asr	r4, r3, #31
	rsb	r4, r4, r2, asr #18
	mul	r4, r0, r4
	mov	r0, r4
	bl	do_div
	cmp	r0, #500
	addge	r4, r4, #1
	mov	r0, r4
	pop	{r4, pc}
.L6:
	.align	2
.L5:
	.word	CX25840_IR_REFCLK_FREQ
	.word	1125899907
	.size	ns_to_pulse_clocks, .-ns_to_pulse_clocks
	.comm	CX25840_IR_REFCLK_FREQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
