	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_stream
_find_stream:                           ## @find_stream
	.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, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	$-1, -44(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-47(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-45(%rbp), %r8
	movq	%rbx, %rdi
	callq	_sscanf
	decl	%eax
	cmpl	$2, %eax
	jae	LBB0_3
## %bb.1:
	cmpb	$118, -47(%rbp)
	jne	LBB0_13
## %bb.2:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_3:
	cmpl	$0, (%r13)
	jle	LBB0_16
## %bb.4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	incl	%r14d
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %r15
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_21
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r12
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r13, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_avformat_match_stream_specifier
	testl	%eax, %eax
	js	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %r15
	movq	(%r15), %rax
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%r12, %r12
	je	LBB0_7
## %bb.12:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movq	%r12, %r15
	jmp	LBB0_22
LBB0_13:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_av_find_best_stream
	testl	%eax, %eax
	js	LBB0_19
## %bb.15:
	movq	8(%r13), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %r15
	jmp	LBB0_26
LBB0_16:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_17:
	leaq	L_.str.6(%rip), %r8
LBB0_18:
	leaq	L_.str.4(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movq	%rbx, %rcx
	jmp	LBB0_25
LBB0_19:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_av_get_media_type_string
	movl	-44(%rbp), %r8d
	leaq	L_.str.1(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_26
LBB0_20:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%r15d, %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_26
LBB0_21:
	testq	%r15, %r15
	je	LBB0_27
LBB0_22:
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_26
## %bb.23:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_26
## %bb.24:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_get_media_type_string
	leaq	L_.str.7(%rip), %rdx
	xorl	%r15d, %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r8
LBB0_25:
	xorl	%eax, %eax
	callq	_av_log
LBB0_26:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	je	LBB0_29
## %bb.28:
	leaq	L_.str.5(%rip), %r8
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_29:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"d%1[av]%d%c"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"No %s stream with index '%d' found\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid stream specifier \"%s\"\n"

	.comm	_AVDISCARD_ALL,8,3              ## @AVDISCARD_ALL
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.3:                               ## @.str.3
	.asciz	"Ambiguous stream specifier \"%s\", using #%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Stream specifier \"%s\" %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"matched only already used streams"

L_.str.6:                               ## @.str.6
	.asciz	"did not match any stream"

L_.str.7:                               ## @.str.7
	.asciz	"Stream specifier \"%s\" matched a %s stream,currently unsupported by libavfilter\n"

	.no_dead_strip	_find_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_stream
_find_stream:                           ; @find_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w8, #-1
	str	w8, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #10
	add	x3, sp, #12
	add	x4, sp, #9
	mov	x0, x20
	bl	_sscanf
	sub	w8, w0, #1
	cmp	w8, #2
	b.hs	LBB0_3
; %bb.1:
	ldrb	w8, [sp, #10]
Lloh2:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh4:
	adrp	x10, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh5:
	ldr	x10, [x10, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
	cmp	w8, #118
	csel	x8, x9, x10, eq
	ldr	w20, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_av_find_best_stream
	tbnz	w0, #31, LBB0_13
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	x0, [x8, w0, uxtw #3]
	b	LBB0_23
LBB0_3:
	ldr	w8, [x21]
	cmp	w8, #0
	b.le	LBB0_14
; %bb.4:
	mov	x23, #0
	mov	x0, #0
	mov	w22, #0
Lloh6:
	adrp	x24, _AVDISCARD_ALL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AVDISCARD_ALL@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w22, w22, #1
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x25
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.ge	LBB0_18
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x0
	ldr	x8, [x21, #8]
	ldr	x1, [x8, x23, lsl #3]
	mov	x0, x21
	mov	x2, x20
	bl	_avformat_match_stream_specifier
	tbnz	w0, #31, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x23, lsl #3]
	ldr	x8, [x0]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	cbz	x25, LBB0_7
; %bb.12:
Lloh8:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_av_log
	mov	x0, x25
	b	LBB0_19
LBB0_13:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_av_get_media_type_string
	mov	x3, x0
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	b	LBB0_22
LBB0_14:
Lloh18:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
LBB0_15:
Lloh21:
	adrp	x8, l_.str.6@PAGE
Lloh22:
	add	x8, x8, l_.str.6@PAGEOFF
LBB0_16:
	str	x8, [sp]
Lloh23:
	adrp	x2, l_.str.4@PAGE
Lloh24:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	b	LBB0_21
LBB0_17:
Lloh25:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	b	LBB0_21
LBB0_18:
	cbz	x0, LBB0_24
LBB0_19:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh31:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
Lloh33:
	adrp	x10, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh34:
	ldr	x10, [x10, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_23
; %bb.20:
Lloh36:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh37:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w21, [x9]
	mov	x0, x8
	bl	_av_get_media_type_string
	str	x0, [sp]
Lloh39:
	adrp	x2, l_.str.7@PAGE
Lloh40:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x1, x21
LBB0_21:
	mov	x3, x20
LBB0_22:
	bl	_av_log
	mov	x0, #0
LBB0_23:
	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
	add	sp, sp, #96
	ret
LBB0_24:
Lloh41:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	cbz	w22, LBB0_15
; %bb.25:
Lloh44:
	adrp	x8, l_.str.5@PAGE
Lloh45:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"d%1[av]%d%c"

	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"No %s stream with index '%d' found\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid stream specifier \"%s\"\n"

	.comm	_AVDISCARD_ALL,8,3              ; @AVDISCARD_ALL
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.3:                               ; @.str.3
	.asciz	"Ambiguous stream specifier \"%s\", using #%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Stream specifier \"%s\" %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"matched only already used streams"

l_.str.6:                               ; @.str.6
	.asciz	"did not match any stream"

l_.str.7:                               ; @.str.7
	.asciz	"Stream specifier \"%s\" matched a %s stream,currently unsupported by libavfilter\n"

	.no_dead_strip	_find_stream
.subsections_via_symbols
