	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function search_frag_timestamp
_search_frag_timestamp:                 ## @search_frag_timestamp
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, %r13d
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	8(%rsi), %rax
	cmpq	$0, (%rax)
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	je	LBB0_3
## %bb.2:
	movl	(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	jle	LBB0_17
## %bb.4:
	movl	$-1, %r13d
                                        ## implicit-def: $rax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edx, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	xorb	$1, %dl
	cmpq	%r14, %rax
	setg	%bl
	orb	%dl, %bl
	cmovnel	%r12d, %r15d
	cmovel	%ecx, %r13d
	movl	%r15d, %ecx
	subl	%r13d, %ecx
	cmpl	$1, %ecx
	jle	LBB0_17
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	leal	(%r15,%r13), %r12d
	sarl	%r12d
	cmpl	%r15d, %r12d
	jge	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_get_frag_time
	movb	$1, %dl
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rbx
	leal	1(%r12), %ecx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %r14d
	cmpl	%ecx, %r15d
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_get_frag_time
	leal	1(%r14), %ecx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	decl	%ecx
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, %ecx
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r15d, %r14d
	setl	%dl
	movq	%rbx, %r14
	jmp	LBB0_7
LBB0_17:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_search_frag_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function search_frag_timestamp
_search_frag_timestamp:                 ; @search_frag_timestamp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x0
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w21, [x1]
	b	LBB0_4
LBB0_3:
	mov	w21, #-1
LBB0_4:
	ldr	w25, [x20]
	mov	w22, #-1
	cmp	w25, #1
	b.lt	LBB0_18
; %bb.5:
Lloh0:
	adrp	x26, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_NOPTS_VALUE@GOTPAGEOFF]
                                        ; implicit-def: $x0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #0
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, x23
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	eor	w9, w9, #0x1
	cmp	x0, x19
	cset	w10, gt
	orr	w9, w9, w10
	cmp	w9, #0
	csel	w25, w23, w25, ne
	csel	w22, w22, w8, ne
	sub	w8, w25, w22
	cmp	w8, #1
	b.le	LBB0_18
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	add	w8, w22, w25
	asr	w23, w8, #1
	cmp	w23, w25
	b.ge	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_get_frag_time
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w8, w23, #1
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x24, x8
	cmp	w25, w8
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	bl	_get_frag_time
	ldr	x9, [x26]
	add	w8, w24, #1
	cmp	x0, x9
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w8, w8, #1
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #1
	b	LBB0_7
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, x25
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w24, w25
	cset	w9, lt
	b	LBB0_8
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_search_frag_timestamp
.subsections_via_symbols
