	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_wav
_add_wav:                               ## @add_wav
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r10
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -24(%rbp)
	movl	$0, -36(%rbp)
	movq	_ff_gain_val_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%esi, %rax
	movq	(%rcx,%rax,8), %r11
	movq	_ff_gain_exp_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%esi, %esi
	testl	%edx, %edx
	sete	%sil
	movl	(%r10,%rsi,4), %edx
	imull	(%r11,%rsi,4), %edx
	movl	(%rcx,%rax,4), %ecx
	shrl	%cl, %edx
	movl	%edx, -36(%rbp,%rsi,4)
	movl	4(%r10,%rsi,4), %eax
	imull	4(%r11,%rsi,4), %eax
	shrl	%cl, %eax
	leaq	1(%rsi), %rdx
	movl	%eax, -32(%rbp,%rsi,4)
	cmpq	$2, %rdx
	je	LBB0_2
## %bb.1:
	movl	4(%r10,%rdx,4), %eax
	imull	4(%r11,%rdx,4), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	movl	%eax, -32(%rbp,%rdx,4)
LBB0_2:
	movq	16(%rbp), %r10
	movl	-36(%rbp), %r14d
	movq	_BLOCKSIZE@GOTPCREL(%rip), %r11
	movl	(%r11), %eax
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.3:
	testl	%eax, %eax
	jle	LBB0_9
## %bb.4:
	movl	-32(%rbp), %esi
	movl	-28(%rbp), %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rcx,4), %ebx
	imull	%r14d, %ebx
	movl	(%r9,%rcx,4), %edx
	imull	%esi, %edx
	addl	%ebx, %edx
	movl	(%r10,%rcx,4), %ebx
	imull	%eax, %ebx
	addl	%edx, %ebx
	sarl	$12, %ebx
	movl	%ebx, (%rdi,%rcx,4)
	incq	%rcx
	movslq	(%r11), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_5
	jmp	LBB0_9
LBB0_6:
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:
	movl	-32(%rbp), %eax
	movl	-28(%rbp), %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rdx,4), %esi
	imull	%eax, %esi
	movl	(%r10,%rdx,4), %ebx
	imull	%ecx, %ebx
	addl	%esi, %ebx
	sarl	$12, %ebx
	movl	%ebx, (%rdi,%rdx,4)
	incq	%rdx
	movslq	(%r11), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_8
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_gain_val_tab,8,3            ## @ff_gain_val_tab
	.comm	_ff_gain_exp_tab,8,3            ## @ff_gain_exp_tab
	.comm	_BLOCKSIZE,4,2                  ## @BLOCKSIZE
	.no_dead_strip	_add_wav
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_wav
_add_wav:                               ; @add_wav
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	str	wzr, [sp, #12]
Lloh3:
	adrp	x8, _ff_gain_val_tab@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_gain_val_tab@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8, w1, sxtw #3]
Lloh6:
	adrp	x9, _ff_gain_exp_tab@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ff_gain_exp_tab@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x9, w1, sxtw #2]
	cmp	w2, #0
	cset	w10, eq
	lsl	x11, x10, #2
	ldr	w10, [x8, x11]
	ldr	w12, [x3, x11]
	mul	w10, w12, w10
	lsr	w12, w10, w9
	add	x10, sp, #12
	str	w12, [x10, x11]
	mov	w11, #1
	cinc	x11, x11, eq
	lsl	x12, x11, #2
	ldr	w13, [x8, x12]
	ldr	w14, [x3, x12]
	mul	w13, w14, w13
	lsr	w13, w13, w9
	str	w13, [x10, x12]
	add	x11, x11, #1
	cmp	x11, #3
	b.eq	LBB0_2
; %bb.1:
	lsl	x11, x11, #2
	ldr	w8, [x8, x11]
	ldr	w12, [x3, x11]
	mul	w8, w12, w8
	lsr	w8, w8, w9
	str	w8, [x10, x11]
LBB0_2:
	ldr	w9, [sp, #12]
Lloh9:
	adrp	x8, _BLOCKSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BLOCKSIZE@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w10, #1
	cbz	w9, LBB0_6
; %bb.3:
	b.lt	LBB0_9
; %bb.4:
	mov	x10, #0
	ldp	w11, w12, [sp, #16]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x13, x10, #2
	ldr	w14, [x4, x13]
	mul	w14, w14, w9
	ldr	w15, [x5, x13]
	madd	w14, w11, w15, w14
	ldr	w15, [x6, x13]
	madd	w14, w12, w15, w14
	asr	w14, w14, #12
	str	w14, [x0, x13]
	add	x10, x10, #1
	ldrsw	x13, [x8]
	cmp	x10, x13
	b.lt	LBB0_5
	b	LBB0_9
LBB0_6:
	b.lt	LBB0_9
; %bb.7:
	mov	x9, #0
	ldp	w10, w11, [sp, #16]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x5, x12]
	mul	w13, w10, w13
	ldr	w14, [x6, x12]
	madd	w13, w11, w14, w13
	asr	w13, w13, #12
	str	w13, [x0, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_8
LBB0_9:
	ldur	x8, [x29, #-8]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_gain_val_tab,8,3            ; @ff_gain_val_tab
	.comm	_ff_gain_exp_tab,8,3            ; @ff_gain_exp_tab
	.comm	_BLOCKSIZE,4,2                  ; @BLOCKSIZE
	.no_dead_strip	_add_wav
.subsections_via_symbols
