	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_duration
_find_duration:                         ## @find_duration
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	$0, -16(%rbp)
	movq	_nut_read_timestamp@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-16(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$-1, %esi
	xorl	%ecx, %ecx
	callq	_ff_find_last_ts
	movq	-16(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	movq	_AVFMT_DURATION_FROM_PTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nut_read_timestamp,4,2         ## @nut_read_timestamp
	.comm	_AVFMT_DURATION_FROM_PTS,4,2    ## @AVFMT_DURATION_FROM_PTS
	.no_dead_strip	_find_duration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_duration
_find_duration:                         ; @find_duration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _nut_read_timestamp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nut_read_timestamp@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #-1
	mov	x3, #0
	bl	_ff_find_last_ts
	ldr	x0, [sp, #8]
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AVFMT_DURATION_FROM_PTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVFMT_DURATION_FROM_PTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_nut_read_timestamp,4,2         ; @nut_read_timestamp
	.comm	_AVFMT_DURATION_FROM_PTS,4,2    ; @AVFMT_DURATION_FROM_PTS
	.no_dead_strip	_find_duration
.subsections_via_symbols
