	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_ts
_read_ts:                               ## @read_ts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	leaq	-44(%rbp), %r15
	leaq	-25(%rbp), %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-32(%rbp), %r8
	leaq	-48(%rbp), %r9
	xorl	%eax, %eax
	pushq	%r15
	pushq	%rbx
	callq	_sscanf
	addq	$16, %rsp
	movl	%eax, %ebx
	cmpl	$4, %eax
	jg	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-32(%rbp), %r8
	leaq	-25(%rbp), %r9
	xorl	%eax, %eax
	pushq	%r15
	callq	_sscanf
	addq	$16, %rsp
	movl	%eax, %ebx
	cmpl	$4, %eax
	jl	LBB0_6
LBB0_2:
	movsbl	-25(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movslq	-44(%rbp), %rax
	addq	%rax, (%r14)
	imull	$3600, -40(%rbp), %eax          ## imm = 0xE10
	imull	$60, -36(%rbp), %ecx
	addl	%eax, %ecx
	addl	-32(%rbp), %ecx
	imull	$100, %ecx, %eax
	xorl	%ecx, %ecx
	cmpl	$5, %ebx
	jb	LBB0_5
## %bb.4:
	movl	-48(%rbp), %ecx
LBB0_5:
	addl	%ecx, %eax
	jmp	LBB0_7
LBB0_6:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d:%d:%d.%d%c%n"

L_.str.1:                               ## @.str.1
	.asciz	"%d:%d:%d%c%n"

L_.str.2:                               ## @.str.2
	.asciz	": ="

	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.no_dead_strip	_read_ts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_ts
_read_ts:                               ; @read_ts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x0, [x0]
	add	x21, sp, #24
	sub	x22, x29, #33
	add	x8, sp, #28
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	stp	x22, x21, [sp, #8]
	str	x8, [sp]
	add	x2, sp, #40
	add	x3, sp, #36
	add	x4, sp, #32
	bl	_sscanf
	mov	x20, x0
	cmp	w0, #4
	b.gt	LBB0_2
; %bb.1:
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	stp	x22, x21, [sp]
	add	x2, sp, #40
	add	x3, sp, #36
	add	x4, sp, #32
	bl	_sscanf
	mov	x20, x0
	cmp	w0, #4
	b.lt	LBB0_4
LBB0_2:
	ldursb	w1, [x29, #-33]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.3:
	ldrsw	x8, [sp, #24]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
	ldr	w8, [sp, #40]
	mov	w9, #3600
	mul	w8, w8, w9
	ldr	w9, [sp, #36]
	mov	w10, #60
	madd	w8, w9, w10, w8
	ldp	w10, w9, [sp, #28]
	add	w8, w8, w9
	mov	w9, #100
	cmp	w20, #5
	csel	w10, wzr, w10, lo
	madd	w0, w8, w9, w10
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d:%d:%d.%d%c%n"

l_.str.1:                               ; @.str.1
	.asciz	"%d:%d:%d%c%n"

l_.str.2:                               ; @.str.2
	.asciz	": ="

	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.no_dead_strip	_read_ts
.subsections_via_symbols
