	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_wave0
_add_wave0:                             ## @add_wave0
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $r9d killed $r9d def $r9
                                        ## kill: def $r8d killed $r8d def $r8
	xorl	%r10d, %r10d
	cmpl	$1, (%rdi)
	cmovnel	%ecx, %r10d
	movq	_amplitude_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andl	$63, %r8d
	movss	(%rcx,%r8,4), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	movq	_sin_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shll	$6, %r9d
	movl	%r9d, %eax
	andl	$448, %eax                      ## imm = 0x1C0
	movss	(%rcx,%rax,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	subl	$-128, %r9d
	andl	$448, %r9d                      ## imm = 0x1C0
	mulss	(%rcx,%r9,4), %xmm0
	addl	4(%rdi), %edx
	imull	8(%rdi), %esi
	addl	%edx, %esi
	movq	16(%rdi), %rax
	movslq	%r10d, %rcx
	movq	(%rax,%rcx,8), %rdx
	movslq	%esi, %rsi
	movss	(%rdx,%rsi,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm2
	movss	%xmm2, (%rdx,%rsi,4)
	movq	16(%rax,%rcx,8), %rax
	movss	(%rax,%rsi,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm2
	movss	%xmm2, (%rax,%rsi,4)
	movss	4(%rdx,%rsi,4), %xmm2           ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	movss	%xmm2, 4(%rdx,%rsi,4)
	movss	4(%rax,%rsi,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movss	%xmm1, 4(%rax,%rsi,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amplitude_tab,8,3              ## @amplitude_tab
	.comm	_sin_table,8,3                  ## @sin_table
	.no_dead_strip	_add_wave0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_wave0
_add_wave0:                             ; @add_wave0
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _amplitude_tab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amplitude_tab@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	w9, w4, #0x3f
	ldr	s0, [x8, w9, uxtw #2]
Lloh3:
	adrp	x8, _sin_table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sin_table@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	w9, w5, #6
	and	w10, w9, #0x1c0
	ldr	s1, [x8, w10, uxtw #2]
	ldp	w10, w11, [x0]
	cmp	w10, #1
	csel	w10, wzr, w3, eq
	fmul	s1, s0, s1
	add	w9, w9, #128
	and	w9, w9, #0x1c0
	ldr	s2, [x8, w9, uxtw #2]
	fmul	s0, s0, s2
	add	w8, w11, w2
	ldr	w9, [x0, #8]
	madd	w8, w9, w1, w8
	ldr	x9, [x0, #16]
	add	x9, x9, w10, sxtw #3
	ldr	x10, [x9]
	sbfiz	x8, x8, #2, #32
	ldr	s2, [x10, x8]
	fadd	s2, s1, s2
	str	s2, [x10, x8]
	ldr	x9, [x9, #16]
	ldr	s2, [x9, x8]
	fadd	s2, s0, s2
	str	s2, [x9, x8]
	add	x8, x8, #4
	ldr	s2, [x10, x8]
	fsub	s1, s2, s1
	str	s1, [x10, x8]
	ldr	s1, [x9, x8]
	fsub	s0, s1, s0
	str	s0, [x9, x8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_amplitude_tab,8,3              ; @amplitude_tab
	.comm	_sin_table,8,3                  ; @sin_table
	.no_dead_strip	_add_wave0
.subsections_via_symbols
