	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function FilterAudioFrame
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_FilterAudioFrame:                      ## @FilterAudioFrame
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, -40(%rbp)
	movq	24(%rdi), %r15
	cmpq	$0, 8(%rsi)
	jg	LBB0_2
## %bb.1:
	movq	16(%r12), %rax
	subq	24(%r12), %rax
	movq	%rax, 8(%r12)
LBB0_2:
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
LBB0_26:
	movq	_AUDIO_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_HB_FRAME_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
LBB0_27:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, 16(%r14)
	je	LBB0_7
## %bb.4:
	movl	16(%r15), %edi
	callq	_hb_mixdown_get_discrete_channel_count
	movl	%eax, %ecx
	shll	$2, %ecx
	movl	(%r12), %eax
	cltd
	idivl	%ecx
	movq	16(%r14), %rdi
	addq	$40, %r12
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_hb_audio_resample
	movq	%rax, %r12
	leaq	-40(%rbp), %rdi
	callq	_hb_buffer_close
	testq	%r12, %r12
	je	LBB0_5
## %bb.6:
	movq	(%r14), %rax
	movq	%rax, 24(%r12)
	addq	8(%r12), %rax
	movq	%rax, 16(%r12)
	movq	%r12, -40(%rbp)
LBB0_7:
	movsd	8(%r15), %xmm0                  ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_14
## %bb.8:
	movl	(%r12), %r15d
	cmpl	$4, %r15d
	jl	LBB0_26
## %bb.9:
	shrq	$2, %r15
	movq	40(%r12), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_MAX
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	cvtsd2ss	%xmm0, %xmm0
	movq	-40(%rbp), %r12
	movq	40(%r12), %rax
	movss	%xmm0, (%rax,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_26
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rax,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	mulsd	8(%r14), %xmm0
	ucomisd	LCPI0_2(%rip), %xmm0
	jbe	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_MIN
	jmp	LBB0_13
LBB0_14:
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_26
## %bb.15:
	movl	(%r12), %eax
	cmpl	$4, %eax
	jl	LBB0_26
## %bb.16:
	movl	%eax, %edx
	shrq	$2, %rax
	movq	40(%r12), %rcx
	movsd	8(%r14), %xmm0                  ## xmm0 = mem[0],zero
	cmpl	$32, %edx
	jae	LBB0_18
## %bb.17:
	xorl	%edx, %edx
	jmp	LBB0_25
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_27
LBB0_18:
	movl	%eax, %edx
	andl	$-8, %edx
	movddup	%xmm0, %xmm1                    ## xmm1 = xmm0[0,0]
	leaq	-8(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.20:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cvtps2pd	8(%rcx,%rsi,4), %xmm2
	cvtps2pd	(%rcx,%rsi,4), %xmm3
	cvtps2pd	24(%rcx,%rsi,4), %xmm4
	cvtps2pd	16(%rcx,%rsi,4), %xmm5
	mulpd	%xmm1, %xmm3
	mulpd	%xmm1, %xmm2
	mulpd	%xmm1, %xmm5
	mulpd	%xmm1, %xmm4
	cvtpd2ps	%xmm2, %xmm2
	cvtpd2ps	%xmm3, %xmm3
	cvtpd2ps	%xmm4, %xmm4
	unpcklpd	%xmm2, %xmm3                    ## xmm3 = xmm3[0],xmm2[0]
	cvtpd2ps	%xmm5, %xmm2
	unpcklpd	%xmm4, %xmm2                    ## xmm2 = xmm2[0],xmm4[0]
	movupd	%xmm3, (%rcx,%rsi,4)
	movupd	%xmm2, 16(%rcx,%rsi,4)
	cvtps2pd	40(%rcx,%rsi,4), %xmm2
	cvtps2pd	32(%rcx,%rsi,4), %xmm3
	cvtps2pd	56(%rcx,%rsi,4), %xmm4
	cvtps2pd	48(%rcx,%rsi,4), %xmm5
	mulpd	%xmm1, %xmm3
	mulpd	%xmm1, %xmm2
	mulpd	%xmm1, %xmm5
	mulpd	%xmm1, %xmm4
	cvtpd2ps	%xmm2, %xmm2
	cvtpd2ps	%xmm3, %xmm3
	cvtpd2ps	%xmm4, %xmm4
	unpcklpd	%xmm2, %xmm3                    ## xmm3 = xmm3[0],xmm2[0]
	cvtpd2ps	%xmm5, %xmm2
	unpcklpd	%xmm4, %xmm2                    ## xmm2 = xmm2[0],xmm4[0]
	movupd	%xmm3, 32(%rcx,%rsi,4)
	movupd	%xmm2, 48(%rcx,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_21
	jmp	LBB0_22
LBB0_19:
	xorl	%esi, %esi
LBB0_22:
	testb	$1, %r8b
	je	LBB0_24
## %bb.23:
	cvtps2pd	8(%rcx,%rsi,4), %xmm2
	cvtps2pd	(%rcx,%rsi,4), %xmm3
	cvtps2pd	24(%rcx,%rsi,4), %xmm4
	cvtps2pd	16(%rcx,%rsi,4), %xmm5
	mulpd	%xmm1, %xmm3
	mulpd	%xmm1, %xmm2
	mulpd	%xmm1, %xmm5
	mulpd	%xmm1, %xmm4
	cvtpd2ps	%xmm2, %xmm1
	cvtpd2ps	%xmm3, %xmm2
	cvtpd2ps	%xmm4, %xmm3
	cvtpd2ps	%xmm5, %xmm4
	unpcklpd	%xmm1, %xmm2                    ## xmm2 = xmm2[0],xmm1[0]
	unpcklpd	%xmm3, %xmm4                    ## xmm4 = xmm4[0],xmm3[0]
	movupd	%xmm2, (%rcx,%rsi,4)
	movupd	%xmm4, 16(%rcx,%rsi,4)
LBB0_24:
	cmpq	%rax, %rdx
	je	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rcx,%rdx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	mulsd	%xmm0, %xmm1
	cvtsd2ss	%xmm1, %xmm1
	movss	%xmm1, (%rcx,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_25
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_ACODEC_PASS_FLAG,4,2        ## @HB_ACODEC_PASS_FLAG
	.comm	_AUDIO_BUF,4,2                  ## @AUDIO_BUF
	.comm	_HB_FRAME_AUDIO,4,2             ## @HB_FRAME_AUDIO
	.no_dead_strip	_FilterAudioFrame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FilterAudioFrame
_FilterAudioFrame:                      ; @FilterAudioFrame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	str	x1, [sp, #8]
	ldr	x21, [x0, #24]
	ldr	x8, [x1, #8]
	cmp	x8, #0
	b.gt	LBB0_2
; %bb.1:
	ldp	x8, x9, [x19, #16]
	sub	x8, x8, x9
	str	x8, [x19, #8]
LBB0_2:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _HB_ACODEC_PASS_FLAG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HB_ACODEC_PASS_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _AUDIO_BUF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUDIO_BUF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _HB_FRAME_AUDIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HB_FRAME_AUDIO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
LBB0_4:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w0, [x21, #16]
	bl	_hb_mixdown_get_discrete_channel_count
	lsl	w8, w0, #2
	ldr	w9, [x19], #40
	ldr	x0, [x20, #16]
	sdiv	w2, w9, w8
	mov	x1, x19
	bl	_hb_audio_resample
	mov	x19, x0
	add	x0, sp, #8
	bl	_hb_buffer_close
	cbz	x19, LBB0_4
; %bb.7:
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	add	x9, x9, x8
	stp	x9, x8, [x19, #16]
	str	x19, [sp, #8]
LBB0_8:
	ldr	d0, [x21, #8]
	fcmp	d0, #0.0
	b.le	LBB0_15
; %bb.9:
	ldr	w8, [x19]
	cmp	w8, #4
	b.lt	LBB0_3
; %bb.10:
	mov	x21, #0
	and	x22, x8, #0xfffffffc
	ldr	x8, [x19, #40]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	fmov	d1, #-1.00000000
	bl	_MAX
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	fcvt	s0, d0
	ldr	x19, [sp, #8]
	ldr	x8, [x19, #40]
	str	s0, [x8, x21]
	add	x21, x21, #4
	cmp	x22, x21
	b.eq	LBB0_3
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x8, x21]
	fcvt	d0, s0
	ldr	d1, [x20, #8]
	fmul	d0, d1, d0
	fcmp	d0, #0.0
	b.le	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	fmov	d1, #1.00000000
	bl	_MIN
	b	LBB0_12
LBB0_15:
	b.pl	LBB0_3
; %bb.16:
	ldr	w10, [x19]
	cmp	w10, #4
	b.lt	LBB0_3
; %bb.17:
	lsr	x8, x10, #2
	ldr	x9, [x19, #40]
	ldr	d0, [x20, #8]
	cmp	w10, #64
	b.hs	LBB0_19
; %bb.18:
	mov	x10, #0
	b	LBB0_22
LBB0_19:
	and	x10, x8, #0x3ffffff0
	dup.2d	v1, v0[0]
	add	x11, x9, #32
	mov	x12, x10
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x11, #-32]
	ldp	q4, q5, [x11]
	fcvtl	v6.2d, v2.2s
	fcvtl2	v2.2d, v2.4s
	fcvtl	v7.2d, v3.2s
	fcvtl2	v3.2d, v3.4s
	fcvtl	v16.2d, v4.2s
	fcvtl2	v4.2d, v4.4s
	fcvtl	v17.2d, v5.2s
	fcvtl2	v5.2d, v5.4s
	fmul.2d	v2, v1, v2
	fmul.2d	v6, v1, v6
	fmul.2d	v3, v1, v3
	fmul.2d	v7, v1, v7
	fmul.2d	v4, v1, v4
	fmul.2d	v16, v1, v16
	fmul.2d	v5, v5, v0[0]
	fmul.2d	v17, v1, v17
	fcvtn	v6.2s, v6.2d
	fcvtn2	v6.4s, v2.2d
	fcvtn	v2.2s, v7.2d
	fcvtn2	v2.4s, v3.2d
	fcvtn	v3.2s, v16.2d
	fcvtn2	v3.4s, v4.2d
	fcvtn	v4.2s, v17.2d
	stp	q6, q2, [x11, #-32]
	fcvtn2	v4.4s, v5.2d
	stp	q3, q4, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_20
; %bb.21:
	cmp	x10, x8
	b.eq	LBB0_3
LBB0_22:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x9]
	fcvt	d1, s1
	fmul	d1, d0, d1
	fcvt	s1, d1
	str	s1, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_23
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_ACODEC_PASS_FLAG,4,2        ; @HB_ACODEC_PASS_FLAG
	.comm	_AUDIO_BUF,4,2                  ; @AUDIO_BUF
	.comm	_HB_FRAME_AUDIO,4,2             ; @HB_FRAME_AUDIO
	.no_dead_strip	_FilterAudioFrame
.subsections_via_symbols
