	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channelmap_filter_frame
_channelmap_filter_frame:               ## @channelmap_filter_frame
	.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	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -56(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r13d
	movl	(%r14), %r15d
	movq	_MAX_CH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	16(%rbx), %rsi
	leal	(,%r13,8), %edx
	movq	%r12, %rdi
	callq	_memcpy
	cmpl	%r13d, %r15d
	jle	LBB0_9
## %bb.1:
	movq	8(%rbx), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%eax, %r15d
	jle	LBB0_6
## %bb.2:
	movl	%r15d, %edi
	movl	$8, %esi
	callq	_av_mallocz_array
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r13
	movq	16(%rbx), %rdi
	cmpq	8(%rbx), %rdi
	je	LBB0_8
## %bb.4:
	callq	_av_free
	jmp	LBB0_8
LBB0_6:
	movq	16(%rbx), %rdi
	cmpq	8(%rbx), %rdi
	je	LBB0_9
## %bb.7:
	callq	_av_free
	movq	8(%rbx), %r13
LBB0_8:
	movq	%r13, 16(%rbx)
LBB0_9:
	testl	%r15d, %r15d
	jle	LBB0_16
## %bb.10:
	cmpl	$1, %r15d
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	movl	%r15d, %ecx
	andl	$-2, %ecx
	xorl	%edx, %edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	movq	(%rsi,%rdx), %rdi
	movq	8(%rsi,%rdx), %rsi
	movq	(%r12,%rsi,8), %rsi
	movq	16(%rbx), %rbx
	movq	%rsi, (%rbx,%rdi,8)
	movq	-56(%rbp), %rsi
	movq	8(%r14), %rdi
	movq	16(%rdi,%rdx), %rbx
	movq	24(%rdi,%rdx), %rdi
	movq	(%r12,%rdi,8), %rdi
	movq	16(%rsi), %rsi
	movq	%rdi, (%rsi,%rbx,8)
	addq	$2, %rax
	movq	-56(%rbp), %rbx
	addq	$32, %rdx
	cmpq	%rax, %rcx
	jne	LBB0_13
LBB0_14:
	testb	$1, %r15b
	je	LBB0_16
## %bb.15:
	movq	8(%r14), %rcx
	shlq	$4, %rax
	movq	(%rcx,%rax), %rdx
	movq	8(%rcx,%rax), %rax
	movq	(%r12,%rax,8), %rax
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx,%rdx,8)
	movq	-56(%rbp), %rbx
LBB0_16:
	movq	8(%rbx), %r12
	movq	16(%rbx), %r13
	cmpq	%r13, %r12
	je	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_FF_ARRAY_ELEMS
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_memcpy
LBB0_18:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	4(%rdi), %eax
	movl	%eax, 4(%rbx)
	movl	(%rdi), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rsi
	callq	_ff_filter_frame
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_19
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CH,4,2                     ## @MAX_CH
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_channelmap_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channelmap_filter_frame
_channelmap_filter_frame:               ; @channelmap_filter_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	stur	x1, [x29, #-64]
	ldr	x8, [x0, #8]
	ldp	x24, x9, [x8]
	ldr	x20, [x9]
	ldr	w23, [x0]
	ldr	w21, [x24]
Lloh3:
	adrp	x8, _MAX_CH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_CH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x1, [x1, #16]
	lsl	w2, w23, #3
	mov	x0, x22
	bl	_memcpy
	cmp	w21, w23
	b.le	LBB0_8
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_FF_ARRAY_ELEMS
	cmp	w21, w0
	b.le	LBB0_5
; %bb.2:
	mov	x0, x21
	mov	w1, #8
	bl	_av_mallocz_array
	cbz	x0, LBB0_16
; %bb.3:
	mov	x23, x0
	ldp	x8, x0, [x19, #8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.4:
	bl	_av_free
	b	LBB0_7
LBB0_5:
	ldp	x8, x0, [x19, #8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.6:
	bl	_av_free
	ldr	x23, [x19, #8]
LBB0_7:
	str	x23, [x19, #16]
LBB0_8:
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x8, #0
	lsl	x9, x21, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x24, #8]
	add	x10, x10, x8
	ldp	x10, x11, [x10]
	ldr	x11, [x22, x11, lsl #3]
	ldr	x12, [x19, #16]
	str	x11, [x12, x10, lsl #3]
	ldur	x19, [x29, #-64]
	add	x8, x8, #16
	cmp	x9, x8
	b.ne	LBB0_10
LBB0_11:
	ldp	x22, x23, [x19, #8]
	cmp	x22, x23
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x22
	bl	_FF_ARRAY_ELEMS
	mov	x1, x21
	bl	_FFMIN
	lsl	w2, w0, #3
	mov	x0, x22
	mov	x1, x23
	bl	_memcpy
LBB0_13:
	ldr	d0, [x20]
	str	d0, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_ff_filter_frame
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	sub	x0, x29, #64
	bl	_av_frame_free
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_14
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CH,4,2                     ; @MAX_CH
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_channelmap_filter_frame
.subsections_via_symbols
