	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opt_map_channel
_opt_map_channel:                       ## @opt_map_channel
	.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, %r15
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_av_strdup
	testq	%rax, %rax
	je	LBB0_29
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
	callq	_GROW_ARRAY
	movq	8(%rbx), %r12
	movslq	(%rbx), %rax
	decq	%rax
	leaq	(%rax,%rax,4), %r13
	leaq	(%r12,%r13,4), %rbx
	leaq	(%r12,%r13,4), %rcx
	addq	$4, %rcx
	leaq	8(%r12,%r13,4), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_sscanf
	movl	%eax, %ecx
	andl	$-3, %ecx
	cmpl	$1, %ecx
	jne	LBB0_6
## %bb.2:
	cmpl	$-1, (%rbx)
	je	LBB0_3
LBB0_6:
	leaq	(%r12,%r13,4), %rax
	addq	$12, %rax
	leaq	16(%r12,%r13,4), %r12
	movq	%r14, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %r15
	movq	%rax, %rdx
	movq	%r12, %rcx
	movq	%rbx, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$3, %eax
	movq	%rbx, %r13
	je	LBB0_9
## %bb.7:
	cmpl	$5, %eax
	je	LBB0_10
## %bb.8:
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %edi
	callq	_exit_program
LBB0_9:
	movl	$-1, (%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$-1, (%rax)
LBB0_10:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	js	LBB0_12
## %bb.11:
	movq	_nb_input_files@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jl	LBB0_13
LBB0_12:
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %edi
	callq	_exit_program
LBB0_13:
	movl	(%r12), %r8d
	testl	%r8d, %r8d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	js	LBB0_14
## %bb.15:
	movq	_input_files@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	cmpl	(%rax), %r8d
	jge	LBB0_16
	jmp	LBB0_17
LBB0_29:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_14:
	movl	(%r15), %ecx
LBB0_16:
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%edi, %edi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %edi
	callq	_exit_program
	movq	_input_files@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%r12), %r8d
LBB0_17:
	movq	16(%rax), %rax
	movq	(%rax), %rax
	movslq	%r8d, %rdx
	movq	(%rax,%rdx,8), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_19
## %bb.18:
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	xorl	%edi, %edi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %edi
	callq	_exit_program
LBB0_19:
	movq	%r14, %rdi
	movl	$63, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movb	$0, (%rax)
LBB0_21:
	movl	(%r13), %r9d
	testl	%r9d, %r9d
	js	LBB0_24
## %bb.22:
	movq	(%rbx), %rcx
	cmpl	8(%rcx), %r9d
	jge	LBB0_24
## %bb.23:
	movq	_input_streams@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_input_files@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	(%r15), %rsi
	movq	(%rdx,%rsi,8), %rdx
	movslq	(%r12), %rsi
	addq	8(%rdx), %rsi
	movq	(%rcx,%rsi,8), %rcx
	movq	(%rcx), %rcx
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_27
LBB0_24:
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movl	(%r12), %r8d
	leaq	L_.str.6(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_27
LBB0_26:
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movl	(%r12), %r8d
	leaq	L_.str.7(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %edi
	callq	_exit_program
LBB0_27:
	movq	%r14, %rdi
LBB0_28:
	callq	_av_free
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	$-1, 12(%r12,%r13,4)
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movl	$-1, (%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$-1, (%rax)
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d:%d.%d"

L_.str.1:                               ## @.str.1
	.asciz	"%d.%d.%d:%d.%d"

	.comm	_AV_LOG_FATAL,4,2               ## @AV_LOG_FATAL
L_.str.2:                               ## @.str.2
	.asciz	"Syntax error, mapchan usage: [file.stream.channel|-1][:syncfile:syncstream]\n"

	.comm	_nb_input_files,4,2             ## @nb_input_files
L_.str.3:                               ## @.str.3
	.asciz	"mapchan: invalid input file index: %d\n"

	.comm	_input_files,8,3                ## @input_files
L_.str.4:                               ## @.str.4
	.asciz	"mapchan: invalid input file stream index #%d.%d\n"

	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
L_.str.5:                               ## @.str.5
	.asciz	"mapchan: stream #%d.%d is not an audio stream.\n"

	.comm	_input_streams,8,3              ## @input_streams
	.comm	_AVDISCARD_ALL,8,3              ## @AVDISCARD_ALL
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.6:                               ## @.str.6
	.asciz	"mapchan: invalid audio channel #%d.%d.%d\n"

L_.str.7:                               ## @.str.7
	.asciz	"mapchan: invalid audio channel #%d.%d.%d\nTo ignore this, add a trailing '?' to the map_channel.\n"

	.no_dead_strip	_opt_map_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opt_map_channel
_opt_map_channel:                       ; @opt_map_channel
	.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	x24, x2
	mov	x20, x0
	mov	x0, x2
	bl	_av_strdup
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	x0, [x20, #8]
	ldr	w1, [x20]
	bl	_GROW_ARRAY
	ldr	x21, [x20, #8]
	ldrsw	x8, [x20]
	sub	x20, x8, #1
	mov	w8, #20
	madd	x22, x20, x8, x21
	add	x23, x22, #4
	add	x25, x22, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x22
	mov	x3, x23
	mov	x4, x25
	bl	_sscanf
	and	w8, w0, #0xfffffffd
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x22]
	cmn	w8, #1
	b.eq	LBB0_25
LBB0_3:
	mov	w8, #20
	madd	x8, x20, x8, x21
	add	x21, x8, #12
	add	x20, x8, #16
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	stp	x23, x25, [sp]
	mov	x0, x24
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	bl	_sscanf
Lloh4:
	adrp	x24, _AV_LOG_FATAL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _AV_LOG_FATAL@GOTPAGEOFF]
	cmp	w0, #3
	b.eq	LBB0_6
; %bb.4:
	cmp	w0, #5
	b.eq	LBB0_7
; %bb.5:
	ldr	w1, [x24]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_av_log
	mov	w0, #1
	bl	_exit_program
LBB0_6:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x23]
LBB0_7:
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_9
; %bb.8:
Lloh8:
	adrp	x9, _nb_input_files@GOTPAGE
Lloh9:
	ldr	x9, [x9, _nb_input_files@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_10
LBB0_9:
	ldr	w1, [x24]
	str	x8, [sp]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, #0
	bl	_av_log
	mov	w0, #1
	bl	_exit_program
LBB0_10:
	ldr	w8, [x20]
Lloh13:
	adrp	x23, _input_files@GOTPAGE
Lloh14:
	ldr	x23, [x23, _input_files@GOTPAGEOFF]
	tbnz	w8, #31, LBB0_13
; %bb.11:
	ldr	x10, [x23]
	ldrsw	x9, [x21]
	ldr	x10, [x10, x9, lsl #3]
	ldr	w11, [x10]
	cmp	w8, w11
	b.ge	LBB0_14
	b	LBB0_15
LBB0_12:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_13:
	ldr	w9, [x21]
LBB0_14:
	ldr	w1, [x24]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x9, x8, [sp]
Lloh18:
	adrp	x2, l_.str.4@PAGE
Lloh19:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, #0
	bl	_av_log
	mov	w0, #1
	bl	_exit_program
	ldr	x8, [x23]
	ldrsw	x9, [x21]
	ldr	x10, [x8, x9, lsl #3]
	ldr	w8, [x20]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_15:
	ldr	x10, [x10, #16]
	ldr	x10, [x10]
	ldr	x25, [x10, w8, sxtw #3]
	ldr	x10, [x25]
	ldr	x10, [x10]
Lloh20:
	adrp	x11, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh21:
	ldr	x11, [x11, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh22:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_17
; %bb.16:
	ldr	w1, [x24]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x9, x8, [sp]
Lloh23:
	adrp	x2, l_.str.5@PAGE
Lloh24:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, #0
	bl	_av_log
	mov	w0, #1
	bl	_exit_program
LBB0_17:
	mov	x0, x19
	mov	w1, #63
	bl	_strchr
	cbz	x0, LBB0_19
; %bb.18:
	strb	wzr, [x0]
LBB0_19:
	ldr	w8, [x22]
	tbnz	w8, #31, LBB0_22
; %bb.20:
	ldr	x9, [x25]
	ldr	w9, [x9, #8]
	cmp	w8, w9
	b.ge	LBB0_22
; %bb.21:
Lloh25:
	adrp	x9, _input_streams@GOTPAGE
Lloh26:
	ldr	x9, [x9, _input_streams@GOTPAGEOFF]
	ldr	x10, [x23]
	ldrsw	x11, [x21]
	ldr	x10, [x10, x11, lsl #3]
Lloh27:
	ldr	x9, [x9]
	ldr	x10, [x10, #8]
	ldrsw	x11, [x20]
	add	x10, x10, x11
	ldr	x9, [x9, x10, lsl #3]
	ldr	x9, [x9]
Lloh28:
	adrp	x10, _AVDISCARD_ALL@GOTPAGE
Lloh29:
	ldr	x10, [x10, _AVDISCARD_ALL@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_27
LBB0_22:
	cbz	x0, LBB0_24
; %bb.23:
Lloh31:
	adrp	x9, _AV_LOG_VERBOSE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
	ldr	w9, [x21]
	ldr	w10, [x20]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh34:
	adrp	x2, l_.str.6@PAGE
Lloh35:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, #0
	bl	_av_log
	b	LBB0_27
LBB0_24:
	ldr	w1, [x24]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	ldr	w9, [x21]
	ldr	w10, [x20]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh36:
	adrp	x2, l_.str.7@PAGE
Lloh37:
	add	x2, x2, l_.str.7@PAGEOFF
	bl	_av_log
	mov	w0, #1
	bl	_exit_program
	b	LBB0_27
LBB0_25:
	mov	w8, #20
	madd	x8, x20, x8, x21
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x8, #12]
	cmp	w0, #1
	b.ne	LBB0_27
; %bb.26:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x23]
LBB0_27:
	mov	x0, x19
	bl	_av_free
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d:%d.%d"

l_.str.1:                               ; @.str.1
	.asciz	"%d.%d.%d:%d.%d"

	.comm	_AV_LOG_FATAL,4,2               ; @AV_LOG_FATAL
l_.str.2:                               ; @.str.2
	.asciz	"Syntax error, mapchan usage: [file.stream.channel|-1][:syncfile:syncstream]\n"

	.comm	_nb_input_files,4,2             ; @nb_input_files
l_.str.3:                               ; @.str.3
	.asciz	"mapchan: invalid input file index: %d\n"

	.comm	_input_files,8,3                ; @input_files
l_.str.4:                               ; @.str.4
	.asciz	"mapchan: invalid input file stream index #%d.%d\n"

	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
l_.str.5:                               ; @.str.5
	.asciz	"mapchan: stream #%d.%d is not an audio stream.\n"

	.comm	_input_streams,8,3              ; @input_streams
	.comm	_AVDISCARD_ALL,8,3              ; @AVDISCARD_ALL
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.6:                               ; @.str.6
	.asciz	"mapchan: invalid audio channel #%d.%d.%d\n"

l_.str.7:                               ; @.str.7
	.asciz	"mapchan: invalid audio channel #%d.%d.%d\nTo ignore this, add a trailing '?' to the map_channel.\n"

	.no_dead_strip	_opt_map_channel
.subsections_via_symbols
