	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_segment_start_time_based_on_timeline
_get_segment_start_time_based_on_timeline: ## @get_segment_start_time_based_on_timeline
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r10
	testq	%r10, %r10
	je	LBB0_1
## %bb.2:
	movq	8(%rdi), %r8
	leaq	-1(%rsi), %r14
	xorl	%ebx, %ebx
	movl	$16, %r9d
	xorl	%r11d, %r11d
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	incq	%r11
	cmpq	%r10, %r11
	je	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	(%r8,%r11,8), %rdx
	movq	(%rdx), %rcx
	testq	%rcx, %rcx
	cmovgq	%rcx, %rax
	cmpq	%rsi, %rbx
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdx), %rcx
	movslq	16(%rdx), %r15
	cmpq	$-1, %r15
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rcx, %rax
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	notq	%rdi
	addq	%rsi, %rdi
	leaq	-1(%r15), %rdx
	cmpq	%rdx, %rdi
	cmovaeq	%rdx, %rdi
	incq	%rdi
	cmpq	$16, %rdi
	ja	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edi, %edx
	andl	$15, %edx
	testq	%rdx, %rdx
	cmoveq	%r9, %rdx
	subq	%rdx, %rdi
	movq	%rdi, %rdx
	imulq	%rcx, %rdx
	addq	%rdx, %rax
	leaq	(%rbx,%rdi), %rdx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	$-16, %rdi
	jne	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r15, %rbx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, %r14
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%rdx
	addq	%rcx, %rax
	cmpq	%rdx, %rbx
	jne	LBB0_13
	jmp	LBB0_14
LBB0_1:
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_segment_start_time_based_on_timeline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_segment_start_time_based_on_timeline
_get_segment_start_time_based_on_timeline: ; @get_segment_start_time_based_on_timeline
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	cbz	x9, LBB0_13
; %bb.1:
	mov	x8, x0
	mov	x10, #0
	mov	x11, #0
	mov	x0, #0
	ldr	x8, [x8, #8]
	sub	x12, x1, #1
	mov	w13, #64
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	add	x11, x11, #1
	cmp	x11, x9
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x15, [x8, x11, lsl #3]
	ldr	x14, [x15]
	cmp	x14, #0
	csel	x0, x14, x0, gt
	cmp	x10, x1
	b.eq	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x15, #8]
	ldrsw	x15, [x15, #16]
	cmn	w15, #1
	b.eq	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, x14
	cbz	w15, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mvn	x16, x10
	sub	x17, x15, #1
	add	x16, x16, x1
	cmp	x16, x17
	csel	x16, x16, x17, lo
	add	x17, x16, #1
	mov	x16, x10
	cmp	x17, #64
	b.ls	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ands	x16, x17, #0x3f
	csel	x16, x13, x16, eq
	sub	x17, x17, x16
	add	x16, x10, x17
	madd	x0, x17, x14, x0
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	subs	x17, x17, #64
	b.ne	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, x15
	sub	x15, x10, x16
	sub	x16, x12, x16
	cbz	x16, LBB0_12
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x0, x14
	sub	x16, x16, #1
	sub	x15, x15, #1
	cbz	x15, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	cbnz	x16, LBB0_10
LBB0_12:
	ret
LBB0_13:
	mov	x0, #0
	ret
LBB0_14:
	mul	x0, x14, x1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_segment_start_time_based_on_timeline
.subsections_via_symbols
