	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avformat_match_stream_specifier ## -- Begin function avformat_match_stream_specifier
	.p2align	4, 0x90
_avformat_match_stream_specifier:       ## @avformat_match_stream_specifier
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	leaq	-64(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_match_stream_specifier
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.2:
	leaq	-88(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %r14d
	movq	-88(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_7
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_4:
	movl	%eax, %ebx
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	jne	LBB0_9
## %bb.6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_av_log
LBB0_9:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -64(%rbp)
	je	LBB0_8
## %bb.10:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	movq	%rax, %rcx
	cmoveq	%r13, %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.11:
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.12:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rcx
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%r15,8), %rcx
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rcx,8), %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_match_stream_specifier
	testl	%eax, %eax
	js	LBB0_4
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	subl	$1, %r14d
	jae	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	xorl	%ebx, %ebx
	cmpq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	jae	LBB0_9
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rax
	jmp	LBB0_13
LBB0_8:
	xorl	%ebx, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r14d
	sete	%bl
	jmp	LBB0_9
LBB0_19:
	movl	$1, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid stream specifier: %s.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avformat_match_stream_specifier ; -- Begin function avformat_match_stream_specifier
	.p2align	2
_avformat_match_stream_specifier:       ; @avformat_match_stream_specifier
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #8]
	add	x3, sp, #16
	add	x4, sp, #8
	bl	_match_stream_specifier
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_6
; %bb.2:
	add	x1, sp, #24
	mov	w2, #0
	bl	_strtol
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cbz	w8, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x22, x0
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w22, w0
	b.ne	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_av_log
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	mov	x23, x0
	ldr	x8, [sp, #16]
	cmp	x8, x19
	b.eq	LBB0_20
; %bb.8:
	mov	w22, #0
	ldr	x8, [sp, #8]
	cmp	x8, #0
	csel	x9, x20, x8, eq
	ldr	w25, [x9]
	cmp	w25, #1
	b.lt	LBB0_6
; %bb.9:
	tbnz	w23, #31, LBB0_6
; %bb.10:
	mov	x26, #0
	mov	x9, x26
	cbz	x8, LBB0_12
LBB0_11:
	ldr	x8, [x8, #8]
	ldr	x9, [x8, x26, lsl #3]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x24, [x8, x9, lsl #3]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x19
	mov	x3, #0
	mov	x4, #0
	bl	_match_stream_specifier
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	w22, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	w9, w23, #1
	cbnz	w23, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	x24, x21
	b.ne	LBB0_17
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x9, x23
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w22, #0
	add	x8, x26, #1
	cmp	x8, x25
	b.hs	LBB0_6
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	tbnz	w9, #31, LBB0_6
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #8]
	add	x26, x26, #1
	mov	x23, x9
	mov	x9, x26
	cbnz	x8, LBB0_11
	b	LBB0_12
LBB0_20:
	ldr	w8, [x21]
	cmp	w23, w8
	cset	w22, eq
	b	LBB0_6
LBB0_21:
	mov	w22, #1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid stream specifier: %s.\n"

.subsections_via_symbols
