	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_frame
_filter_frame:                          ## @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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	(%rdi), %eax
	cmpl	$4, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$6, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ch_reorder_6@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_ch_reorder_4@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	cmpl	$1, 4(%r13)
	jne	LBB0_7
## %bb.5:
	movq	40(%r13), %rax
	movq	_AV_CH_LAYOUT_NATIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
LBB0_7:
	movq	_ch_reorder_n@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rbx
	movq	_FRAME_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	40(%r13), %rdi
	xorl	%r15d, %r15d
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	cmpl	$0, (%r13)
	jle	LBB0_14
## %bb.11:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rbx,%r15,2), %rcx
	movq	%r12, %rbx
	movq	(%rax,%rcx,8), %r12
	movq	24(%r13), %rax
	movq	32(%r13), %rcx
	movq	(%rcx), %rsi
	addq	%r15, %rsi
	movl	(%rax,%r15), %edx
	movq	%r13, %rdi
	movq	%r12, %rcx
	callq	_transform
	movq	24(%r13), %rax
	movq	32(%r13), %rcx
	movq	8(%rcx), %rsi
	addq	%r15, %rsi
	movl	(%rax,%r15), %edx
	movq	_FRAME_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	leaq	(%r12,%rax,4), %rcx
	movq	%r13, %rdi
	callq	_transform
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movl	(%rcx,%r15), %esi
	movl	(%rax,%r15), %edx
	movq	%r13, %rdi
	movq	%r12, %rcx
	movq	%rbx, %r12
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	callq	_apply_gain
	incq	%r14
	movslq	(%r13), %rax
	addq	$4, %r15
	cmpq	%rax, %r14
	jl	LBB0_12
## %bb.13:
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_9:
	movl	%eax, %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ch_reorder_8@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ch_reorder_4,8,3               ## @ch_reorder_4
	.comm	_ch_reorder_6,8,3               ## @ch_reorder_6
	.comm	_AV_CH_LAYOUT_NATIVE,4,2        ## @AV_CH_LAYOUT_NATIVE
	.comm	_ch_reorder_8,8,3               ## @ch_reorder_8
	.comm	_ch_reorder_n,8,3               ## @ch_reorder_n
	.comm	_FRAME_SAMPLES,4,2              ## @FRAME_SAMPLES
	.no_dead_strip	_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_frame
_filter_frame:                          ; @filter_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #4
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #6
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _ch_reorder_6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ch_reorder_6@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _ch_reorder_4@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ch_reorder_4@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x20, #40]
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _AV_CH_LAYOUT_NATIVE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AV_CH_LAYOUT_NATIVE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_6:
Lloh7:
	adrp	x8, _ch_reorder_n@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ch_reorder_n@GOTPAGEOFF]
LBB0_7:
	ldr	x22, [x8]
Lloh9:
	adrp	x23, _FRAME_SAMPLES@GOTPAGE
Lloh10:
	ldr	x23, [x23, _FRAME_SAMPLES@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [x19]
	ldr	x0, [x20, #40]
	mov	x1, x19
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_12
; %bb.8:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x24, #0
	mov	x25, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22, x25, lsl #3]
	ldr	x21, [x8, x9, lsl #3]
	ldp	x9, x8, [x20, #24]
	ldr	x8, [x8]
	add	x1, x8, x24
	ldr	w2, [x9, x24]
	mov	x0, x20
	mov	x3, x21
	bl	_transform
	ldp	x9, x8, [x20, #24]
	ldr	x8, [x8, #8]
	ldr	w2, [x9, x24]
	add	x1, x8, x24
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	x3, x21, w8, sxtw #2
	mov	x0, x20
	bl	_transform
	ldp	x9, x8, [x20, #8]
	ldr	w1, [x8, x24]
	ldr	w2, [x9, x24]
	mov	x0, x20
	mov	x3, x21
	bl	_apply_gain
	add	x25, x25, #1
	ldrsw	x8, [x20]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_10
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh11:
	adrp	x8, _ch_reorder_8@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ch_reorder_8@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ch_reorder_4,8,3               ; @ch_reorder_4
	.comm	_ch_reorder_6,8,3               ; @ch_reorder_6
	.comm	_AV_CH_LAYOUT_NATIVE,4,2        ; @AV_CH_LAYOUT_NATIVE
	.comm	_ch_reorder_8,8,3               ; @ch_reorder_8
	.comm	_ch_reorder_n,8,3               ; @ch_reorder_n
	.comm	_FRAME_SAMPLES,4,2              ; @FRAME_SAMPLES
	.no_dead_strip	_filter_frame
.subsections_via_symbols
