	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function choose_output
_choose_output:                         ## @choose_output
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_nb_output_streams@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rbx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	_nb_output_streams@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_output_streams@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %r15
	movq	24(%r15), %rax
	movq	(%rax), %rdi
	cmpq	(%rbx), %rdi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_INT64_MIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rax), %esi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_av_rescale_q
	movq	%rax, %r13
	movq	24(%r15), %rax
	movq	(%rax), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%rax), %r8d
	movl	12(%rax), %ecx
	movl	16(%r15), %r9d
	movl	8(%r15), %eax
	movq	%rbx, %r10
	movl	12(%r15), %ebx
	xorl	%edi, %edi
	leaq	L_.str(%rip), %rdx
	pushq	%rax
	pushq	%rbx
	movq	%r10, %rbx
	callq	_av_log
	addq	$16, %rsp
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 16(%r15)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 12(%r15)
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 8(%r15)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, %r13
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r15)
	movl	$0, %eax
	cmovneq	%rax, %r15
	movq	%r13, %r14
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_9:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.comm	_nb_output_streams,4,2          ## @nb_output_streams
	.comm	_output_streams,8,3             ## @output_streams
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_INT64_MIN,8,3                  ## @INT64_MIN
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cur_dts is invalid st:%d (%d) [init:%d i_done:%d finish:%d] (this is harmless if it occurs once at the start per stream)\n"

	.no_dead_strip	_choose_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function choose_output
_choose_output:                         ; @choose_output
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x22, _nb_output_streams@GOTPAGE
Lloh1:
	ldr	x22, [x22, _nb_output_streams@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x23, #0
	mov	x26, #0
Lloh2:
	adrp	x8, _INT64_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT64_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x27, [x8]
Lloh5:
	adrp	x24, _output_streams@GOTPAGE
Lloh6:
	ldr	x24, [x24, _output_streams@GOTPAGEOFF]
Lloh7:
	adrp	x25, _AV_NOPTS_VALUE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh9:
	adrp	x28, _AV_LOG_DEBUG@GOTPAGE
Lloh10:
	ldr	x28, [x28, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh11:
	adrp	x20, l_.str@PAGE
Lloh12:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x19, [x8, x23, lsl #3]
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	ldr	x9, [x25]
	cmp	x0, x9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh13:
	adrp	x9, _INT64_MIN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _INT64_MIN@GOTPAGEOFF]
Lloh15:
	ldr	x21, [x9]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x8, #16]
Lloh16:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_av_rescale_q
	mov	x21, x0
	ldr	x8, [x19, #24]
	ldr	x9, [x8]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x28]
	ldp	w4, w3, [x8, #8]
	ldp	w6, w5, [x19, #12]
	ldr	w7, [x19, #8]
	mov	x0, #0
	mov	x2, x20
	bl	_av_log
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	cmp	w8, #0
	ccmp	x21, x27, #0, eq
	b.ge	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	cmp	x8, #0
	csel	x26, x19, xzr, eq
	mov	x27, x21
	b	LBB0_2
LBB0_11:
	mov	x26, #0
	b	LBB0_13
LBB0_12:
	mov	x26, x19
LBB0_13:
	mov	x0, x26
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.comm	_nb_output_streams,4,2          ; @nb_output_streams
	.comm	_output_streams,8,3             ; @output_streams
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_INT64_MIN,8,3                  ; @INT64_MIN
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cur_dts is invalid st:%d (%d) [init:%d i_done:%d finish:%d] (this is harmless if it occurs once at the start per stream)\n"

	.no_dead_strip	_choose_output
.subsections_via_symbols
