	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snf_timestamp_to_timeval
_snf_timestamp_to_timeval:              ## @snf_timestamp_to_timeval
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	__NSEC_PER_SEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%rdi, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rcx
	jmp	LBB0_5
LBB0_1:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	movq	%rcx, %rax
	retq
LBB0_3:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movl	%eax, %ecx
LBB0_5:
	movq	_PCAP_TSTAMP_PRECISION_NANO@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	popq	%rbp
	je	LBB0_7
## %bb.6:
	movabsq	$2361183241434822607, %rsi      ## imm = 0x20C49BA5E353F7CF
	movq	%rdx, %rax
	imulq	%rsi
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
LBB0_7:
	movq	%rcx, %rax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__NSEC_PER_SEC,8,3              ## @_NSEC_PER_SEC
	.comm	_PCAP_TSTAMP_PRECISION_NANO,4,2 ## @PCAP_TSTAMP_PRECISION_NANO
	.no_dead_strip	_snf_timestamp_to_timeval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snf_timestamp_to_timeval
_snf_timestamp_to_timeval:              ; @snf_timestamp_to_timeval
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x9, __NSEC_PER_SEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, __NSEC_PER_SEC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sdiv	x0, x0, x9
	msub	x8, x0, x9, x8
Lloh3:
	adrp	x9, _PCAP_TSTAMP_PRECISION_NANO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCAP_TSTAMP_PRECISION_NANO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	x10, #63439
	movk	x10, #58195, lsl #16
	movk	x10, #39845, lsl #32
	movk	x10, #8388, lsl #48
	smulh	x10, x8, x10
	asr	x11, x10, #7
	add	x10, x11, x10, lsr #63
	cmp	w9, w1
	csel	x1, x8, x10, eq
	ret
LBB0_2:
	mov	x1, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__NSEC_PER_SEC,8,3              ; @_NSEC_PER_SEC
	.comm	_PCAP_TSTAMP_PRECISION_NANO,4,2 ; @PCAP_TSTAMP_PRECISION_NANO
	.no_dead_strip	_snf_timestamp_to_timeval
.subsections_via_symbols
