	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pulse_width_count_to_ns
_pulse_width_count_to_ns:               ## @pulse_width_count_to_ns
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edi killed $edi def $rdi
	leal	3(,%rdi,4), %eax
	imull	$1000, %esi, %ebx               ## imm = 0x3E8
	addl	$1000, %ebx                     ## imm = 0x3E8
	imull	%eax, %ebx
	movq	_CX25840_IR_REFCLK_FREQ@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	imulq	$1125899907, %rax, %rsi         ## imm = 0x431BDE83
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$50, %rsi
	addl	%eax, %esi
	movl	%ebx, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_do_div
	movslq	(%r14), %rcx
	imulq	$1125899907, %rcx, %rdx         ## imm = 0x431BDE83
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$51, %rdx
	addl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	%edx, %eax
	setge	%cl
	orl	%ebx, %ecx
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX25840_IR_REFCLK_FREQ,4,2     ## @CX25840_IR_REFCLK_FREQ
	.no_dead_strip	_pulse_width_count_to_ns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pulse_width_count_to_ns
_pulse_width_count_to_ns:               ; @pulse_width_count_to_ns
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	w8, #3
	bfi	w8, w0, #2, #30
	mov	w9, #1000
	mul	w9, w1, w9
	add	w9, w9, #1000
	mul	w19, w9, w8
Lloh0:
	adrp	x20, _CX25840_IR_REFCLK_FREQ@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CX25840_IR_REFCLK_FREQ@GOTPAGEOFF]
	ldrsw	x8, [x20]
	mov	w21, #56963
	movk	w21, #17179, lsl #16
	mul	x8, x8, x21
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w1, w8, w9
	mov	x0, x19
	bl	_do_div
	ldrsw	x8, [x20]
	mul	x8, x8, x21
	lsr	x9, x8, #63
	asr	x8, x8, #51
	add	w8, w8, w9
	cmp	w0, w8
	cset	w8, ge
	orr	w0, w19, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CX25840_IR_REFCLK_FREQ,4,2     ; @CX25840_IR_REFCLK_FREQ
	.no_dead_strip	_pulse_width_count_to_ns
.subsections_via_symbols
