	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wavesynth_synth_sample
_wavesynth_synth_sample:                ## @wavesynth_synth_sample
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	movq	8(%rdi), %rax
	movq	_PINK_UNIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_pink_fill
	movq	8(%r14), %rax
LBB0_2:
	incq	%rax
	movq	%rax, 8(%r14)
	testl	%ebx, %ebx
	js	LBB0_16
## %bb.3:
	movq	40(%r14), %rax
	xorl	%r13d, %r13d
	movq	%r14, %rsi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edx
	movq	%rdx, %rcx
	shlq	$6, %rcx
	movl	(%rax,%rcx), %ebx
	cmpq	%r15, 8(%rax,%rcx)
	jg	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, (%rsi)
	testl	%ebx, %ebx
	jns	LBB0_4
	jmp	LBB0_7
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	shlq	$6, %rdx
	movl	20(%rax,%rdx), %esi
	movl	56(%rax,%rdx), %edi
	addl	%edi, 16(%rax,%rdx)
	cmpl	$128, %esi
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movdqu	32(%rax,%rdx), %xmm0
	movq	24(%rax,%rdx), %xmm1            ## xmm1 = mem[0],zero
	punpcklqdq	%xmm0, %xmm1            ## xmm1 = xmm1[0],xmm0[0]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 24(%rax,%rdx)
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%rax, %rcx
	orl	48(%rax,%rdx), %r13d
	movq	%rcx, %rsi
	testl	%ebx, %ebx
	jns	LBB0_4
LBB0_7:
	addq	$32, %r14
	movq	%r14, %rdi
	callq	_lcg_next
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.8:
	shrl	$16, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r13d, %ecx
	sarl	%ecx
	addq	$4, %r12
	cmpl	$1, %r13d
	movl	%ecx, %r13d
	jbe	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %r13b
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	%eax, (%r12)
	jmp	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	addq	$32, %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lcg_next                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PINK_UNIT,8,3                  ## @PINK_UNIT
	.comm	_SIN_BITS,4,2                   ## @SIN_BITS
	.no_dead_strip	_wavesynth_synth_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wavesynth_synth_sample
_wavesynth_synth_sample:                ; @wavesynth_synth_sample
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w23, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _PINK_UNIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PINK_UNIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_pink_fill
	ldr	x8, [x20, #8]
LBB0_2:
	add	x8, x8, #1
	str	x8, [x20, #8]
	tbnz	w23, #31, LBB0_15
; %bb.3:
	mov	w22, #0
	ldr	x8, [x20, #40]
	mov	x10, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w11, w23
	add	x9, x8, x11, lsl #6
	ldr	w23, [x9]
	ldr	x12, [x9, #8]
	cmp	x12, x21
	b.gt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w23, [x10]
	tbz	w23, #31, LBB0_4
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x8, x11, lsl #6
	ldr	w11, [x10, #56]
	ldp	w12, w13, [x10, #16]
	add	w11, w12, w11
	str	w11, [x10, #16]
	cmp	w13, #128
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x11, x12, [x10, #24]
	add	x11, x12, x11
	ldr	x13, [x10, #40]
	add	x12, x13, x12
	stp	x11, x12, [x10, #24]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x10, #48]
	orr	w22, w10, w22
	mov	x10, x9
	tbz	w23, #31, LBB0_4
LBB0_9:
	add	x0, x20, #32
	bl	_lcg_next
	cbz	w22, LBB0_14
; %bb.10:
	ubfx	x8, x0, #16, #16
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	asr	w9, w22, #1
	add	x19, x19, #4
	cmp	w22, #1
	mov	x22, x9
	b.ls	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	tbz	w22, #0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [x19]
	add	w9, w9, w8
	str	w9, [x19]
	b	LBB0_11
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	add	x0, x20, #32
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_lcg_next
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PINK_UNIT,8,3                  ; @PINK_UNIT
	.comm	_SIN_BITS,4,2                   ; @SIN_BITS
	.no_dead_strip	_wavesynth_synth_sample
.subsections_via_symbols
