	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evutil_tv_to_msec_             ## -- Begin function evutil_tv_to_msec_
	.p2align	4, 0x90
_evutil_tv_to_msec_:                    ## @evutil_tv_to_msec_
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movq	$-1, %rax
	cmpl	$1000000, %ecx                  ## imm = 0xF4240
	jg	LBB0_3
## %bb.1:
	movl	4(%rdi), %edx
	movq	_MAX_SECONDS_IN_MSEC_LONG@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jg	LBB0_3
## %bb.2:
	imull	$1000, %edx, %eax               ## imm = 0x3E8
	addl	$999, %ecx                      ## imm = 0x3E7
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rax
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SECONDS_IN_MSEC_LONG,4,2   ## @MAX_SECONDS_IN_MSEC_LONG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evutil_tv_to_msec_             ; -- Begin function evutil_tv_to_msec_
	.p2align	2
_evutil_tv_to_msec_:                    ; @evutil_tv_to_msec_
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	mov	w8, #16960
	movk	w8, #15, lsl #16
	cmp	w9, w8
	b.le	LBB0_2
; %bb.1:
	mov	x0, #-1
	ret
LBB0_2:
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x10, _MAX_SECONDS_IN_MSEC_LONG@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAX_SECONDS_IN_MSEC_LONG@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w8, w10
	b.le	LBB0_4
; %bb.3:
	mov	x0, #-1
	ret
LBB0_4:
	mov	w10, #1000
	add	w9, w9, #999
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x9, w9, w11
	lsr	x11, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w11
	madd	w8, w8, w10, w9
	sxtw	x0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SECONDS_IN_MSEC_LONG,4,2   ; @MAX_SECONDS_IN_MSEC_LONG
.subsections_via_symbols
