	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_channel
_filter_channel:                        ## @filter_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r14
	movl	(%r14), %edi
	movl	%edi, %eax
	imull	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r8d
	incl	%ebx
	imull	%edi, %ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	cmpl	%eax, %r8d
	jge	LBB0_7
## %bb.1:
	movq	%rax, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	(%rsi), %r12
	movq	16(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	%r8d, %rax
	shlq	$2, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,4), %r15
	movl	%r8d, %eax
	negl	%ecx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	%rax, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rax
	movl	(%rax,%r13,4), %esi
	movq	8(%r12), %rax
	addq	%rcx, %rax
	movl	(%rax,%r13,4), %edx
	movl	4(%r14), %ecx
	movq	8(%rbx), %rdi
	leaq	(%rdi,%r15), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	16(%rdi,%r15), %r8
	leaq	12(%rdi,%r15), %r9
	leaq	8(%rdi,%r15), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leaq	4(%rdi,%r15), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	32(%rbx), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	28(%rbx), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	24(%rbx), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	20(%rbx), %r11d
	movq	%r14, %r10
	movl	16(%rbx), %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rax
	movl	(%rdi), %r12d
	subq	$8, %rsp
	movq	%rbx, %rdi
	pushq	%r12
	movq	%rax, %r12
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	movq	%r10, %r14
	pushq	%r11
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	callq	*40(%rbx)
	addq	$80, %rsp
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	addq	$20, %r15
	movq	-80(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addl	%r13d, %eax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %esi
	callq	_av_channel_layout_extract_channel
	testl	%eax, (%rbx)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r12, %r14
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rax
	movl	(%rax,%r13,4), %edi
	movq	8(%r14), %rax
	addq	%rcx, %rax
	movl	(%rax,%r13,4), %esi
	movl	4(%rbx), %edx
	imull	4(%r14), %edx
	callq	_memcpy
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_filter_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_channel
_filter_channel:                        ; @filter_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, [x1, #8]
	ldr	w8, [x21]
	mul	w9, w8, w2
	sdiv	w22, w9, w3
	add	w8, w8, w9
	sdiv	w8, w8, w3
	cmp	w22, w8
	b.ge	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	ldr	x24, [x1]
	ldp	x20, x9, [x0, #8]
	ldr	x25, [x9]
	mov	x9, x22
	sxtw	x10, w9
	sbfiz	x26, x9, #2, #32
	add	x9, x26, x10
	lsl	x27, x9, #2
	neg	w8, w8
	add	x28, x22, x8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	add	x8, x8, x26
	lsl	x9, x23, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x20, #40]
	ldr	x10, [x24, #8]
	add	x10, x10, x26
	ldr	w2, [x10, x9]
	ldr	w3, [x21, #4]
	ldr	x9, [x20, #8]
	add	x9, x9, x27
	add	x4, x9, #16
	add	x5, x9, #12
	add	x6, x9, #8
	add	x7, x9, #4
	ldp	w11, w10, [x20, #28]
	ldp	w13, w12, [x20, #20]
	ldr	w14, [x20, #16]
	ldr	w15, [x19]
	str	w15, [sp, #32]
	str	x9, [sp, #24]
	stp	w13, w14, [sp, #12]
	stp	w11, w12, [sp, #4]
	str	w10, [sp]
	mov	x0, x20
	blr	x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	add	x27, x27, #20
	cmn	w28, w23
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	add	w1, w22, w23
	bl	_av_channel_layout_extract_channel
	ldr	w8, [x20]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x21, x24
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24, #8]
	add	x8, x8, x26
	lsl	x9, x23, #2
	ldr	w0, [x8, x9]
	ldr	x8, [x21, #8]
	add	x8, x8, x26
	ldr	w1, [x8, x9]
	ldr	w8, [x21, #4]
	ldr	w9, [x20, #4]
	mul	w2, w9, w8
	bl	_memcpy
	b	LBB0_3
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_filter_channel
.subsections_via_symbols
