	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function join_config_output
_join_config_output:                    ## @join_config_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r13
	movq	16(%r13), %rbx
	movl	(%r13), %edi
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpl	$0, (%rbx)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_12
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, %rdx
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %r15
	movq	(%r15,%rbx), %rax
	movq	8(%r13), %rcx
	movq	(%rcx,%rax,8), %r13
	movl	8(%r15,%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	movl	16(%r15,%rbx), %esi
	callq	_av_channel_layout_extract_channel
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 8(%r15,%rbx)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, (%r13)
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15,%rbx), %rcx
	orl	%eax, (%r14,%rcx,4)
	incq	%r12
	movslq	(%rdx), %rax
	addq	$24, %rbx
	cmpq	%rax, %r12
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jl	LBB0_3
## %bb.9:
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:
	movl	$16, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %r15
	movq	-16(%r15,%rbx), %rax
	movq	8(%r13), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	movl	-8(%r15,%rbx), %esi
	callq	_av_get_channel_layout_channel_index
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%r15,%rbx)
	incq	%r14
	movslq	(%rdx), %rax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jl	LBB0_11
LBB0_12:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx)
	jle	LBB0_15
## %bb.13:
	movl	$12, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %r13
	movl	(%rbx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-12(%r13,%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-4(%r13,%r12), %edi
	callq	_av_get_channel_name
	movl	%eax, %r14d
	movl	(%r13,%r12), %edi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	callq	_av_get_channel_name
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.3(%rip), %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_av_log
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%r15
	movslq	(%rcx), %rax
	addq	$24, %r12
	cmpq	%rax, %r15
	jl	LBB0_14
LBB0_15:
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r13), %eax
	testl	%eax, %eax
	movl	$0, %ebx
	jle	LBB0_21
## %bb.16:
	movq	-72(%rbp), %r15
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %r12
	leaq	L_.str.5(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r15,%rbx,4)
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	(%r12), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r13), %eax
	jmp	LBB0_19
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, %edi
	callq	_av_get_channel_name
	movq	(%r15,%rbx), %r8
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_21:
	leaq	-72(%rbp), %rdi
	callq	_av_freep
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requested channel %s is not present in input stream #%d.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.2:                               ## @.str.2
	.asciz	"mappings: "

L_.str.3:                               ## @.str.3
	.asciz	"%d.%s => %s "

L_.str.4:                               ## @.str.4
	.asciz	"\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.5:                               ## @.str.5
	.asciz	"No channels are used from input stream %d.\n"

	.no_dead_strip	_join_config_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function join_config_output
_join_config_output:                    ; @join_config_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	x19, [x0, #8]
	ldr	x23, [x19, #16]
	ldr	w0, [x19]
	mov	w1, #4
	bl	_av_mallocz_array
	str	x0, [sp, #24]
	cbz	x0, LBB0_19
; %bb.1:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x20, x0
	mov	x21, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x23, #8]
	add	x26, x24, x21
	ldr	x8, [x26]
	ldr	x9, [x19, #8]
	ldr	x25, [x9, x8, lsl #3]
	ldr	w0, [x26, #8]
	cbnz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	ldr	w1, [x26, #16]
	bl	_av_channel_layout_extract_channel
	str	w0, [x26, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24, x21]
	lsl	x8, x8, #2
	ldr	w9, [x20, x8]
	orr	w9, w9, w0
	str	w9, [x20, x8]
	add	x22, x22, #1
	ldrsw	x8, [x23]
	add	x21, x21, #24
	cmp	x22, x8
	b.lt	LBB0_3
; %bb.7:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x20, #0
	mov	x21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	add	x22, x8, x20
	ldr	x8, [x22]
	ldr	x9, [x19, #8]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w0, [x8]
	ldr	w1, [x22, #8]
	bl	_av_get_channel_layout_channel_index
	str	w0, [x22, #16]
	add	x21, x21, #1
	ldrsw	x8, [x23]
	add	x20, x20, #24
	cmp	x21, x8
	b.lt	LBB0_9
LBB0_10:
Lloh0:
	adrp	x24, _AV_LOG_VERBOSE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AV_LOG_VERBOSE@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x2, l_.str.2@PAGE
Lloh3:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x25, #0
	mov	x26, #0
Lloh4:
	adrp	x20, l_.str.3@PAGE
Lloh5:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	ldr	w21, [x24]
	add	x27, x8, x25
	ldr	x28, [x27]
	ldr	w0, [x27, #8]
	bl	_av_get_channel_name
	mov	x22, x0
	ldr	w0, [x27, #12]
	bl	_av_get_channel_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #8]
	str	x28, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_av_log
	add	x26, x26, #1
	ldrsw	x8, [x23]
	add	x25, x25, #24
	cmp	x26, x8
	b.lt	LBB0_12
LBB0_13:
	ldr	w1, [x24]
Lloh6:
	adrp	x2, l_.str.4@PAGE
Lloh7:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.14:
	mov	x21, #0
	ldr	x22, [sp, #24]
Lloh8:
	adrp	x23, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x23, [x23, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	adrp	x20, l_.str.5@PAGE
Lloh11:
	add	x20, x20, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22, x21, lsl #2]
	cbnz	w9, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w1, [x23]
	str	x21, [sp]
	mov	x0, x19
	mov	x2, x20
	bl	_av_log
	ldr	w8, [x19]
	b	LBB0_15
LBB0_18:
	mov	w19, #0
	b	LBB0_21
LBB0_19:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
LBB0_20:
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	bl	_av_get_channel_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x24, x21]
	stp	x0, x8, [sp]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_av_log
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
LBB0_21:
	add	x0, sp, #24
	bl	_av_freep
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requested channel %s is not present in input stream #%d.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.2:                               ; @.str.2
	.asciz	"mappings: "

l_.str.3:                               ; @.str.3
	.asciz	"%d.%s => %s "

l_.str.4:                               ; @.str.4
	.asciz	"\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.5:                               ; @.str.5
	.asciz	"No channels are used from input stream %d.\n"

	.no_dead_strip	_join_config_output
.subsections_via_symbols
