	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_bell
_add_bell:                              ## @add_bell
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	movl	%ecx, -120(%rbp)                ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$2, -112(%rbp)
	movl	%r9d, -108(%rbp)
	movl	$4, -104(%rbp)
	leal	3(%rbx), %eax
	testl	%r9d, %r9d
	cmovnsl	%r9d, %eax
	sarl	$2, %eax
	movl	%r9d, %ecx
	subl	%eax, %ecx
	movl	%ecx, -100(%rbp)
	movl	$8, -96(%rbp)
	movl	%r9d, %ecx
	shrl	$31, %ecx
	addl	%r9d, %ecx
	sarl	%ecx
	movl	%ecx, -92(%rbp)
	movl	$16, -88(%rbp)
	movl	%eax, -84(%rbp)
	movl	$25, -80(%rbp)
	movslq	%r9d, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$32, %rcx
	movl	%ecx, %edx
	sarl	$2, %edx
	shrq	$63, %rax
	addl	%eax, %edx
	movl	%edx, -76(%rbp)
	movl	$50, -72(%rbp)
	sarl	$5, %ecx
	addl	%eax, %ecx
	movl	%ecx, -68(%rbp)
	movq	$75, -64(%rbp)
	movslq	(%rsi), %r14
	leaq	-112(%rbp), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	imulq	$1717986919, %r14, %r12         ## imm = 0x66666667
	movq	%r12, %rax
	shrq	$63, %rax
	shrq	$32, %r12
	sarl	$3, %r12d
	addl	%eax, %r12d
	xorl	%r13d, %r13d
	movl	%r15d, -116(%rbp)               ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-112(%rbp,%r13,8), %esi
	imull	%r12d, %esi
	addl	-116(%rbp), %esi                ## 4-byte Folded Reload
	movl	-120(%rbp), %edi                ## 4-byte Reload
	callq	_FFMIN
	movl	%eax, %r14d
	movq	_WS_SINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-108(%rbp,%r13,8), %eax
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movl	$3, %edx
	movl	$-1, %ecx
	movl	%r15d, %r8d
	movq	-136(%rbp), %r9                 ## 8-byte Reload
	pushq	%rax
	pushq	%r9
	pushq	%r14
	pushq	%rbx
	callq	_add_interval
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rax
	addq	%r13, %rax
	movl	-108(%rbp,%rax,4), %ebx
	incq	%r13
	leaq	-112(%rbp), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	movl	%r14d, %r15d
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WS_SINE,4,2                    ## @WS_SINE
	.no_dead_strip	_add_bell
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function add_bell
lCPI0_0:
	.long	75                              ; 0x4b
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_add_bell:                              ; @add_bell
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x23, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	mov	w8, #2
	stp	w8, w5, [sp, #16]
	mov	w8, #4
	add	w9, w5, #3
	cmp	w5, #0
	csel	w9, w9, w5, lt
	asr	w9, w9, #2
	cinc	w10, w5, lt
	sub	w11, w5, w9
	stp	w8, w11, [sp, #24]
	mov	w8, #8
	asr	w10, w10, #1
	stp	w8, w10, [sp, #32]
	mov	w8, #16
	stp	w8, w9, [sp, #40]
	mov	w8, #25
	mov	w24, #26215
	movk	w24, #26214, lsl #16
	smull	x9, w5, w24
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w11, w9, w10, asr #2
	stp	w8, w11, [sp, #48]
	mov	w8, #50
	add	w9, w9, w10, asr #5
	stp	w8, w9, [sp, #56]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #64]
	ldrsw	x27, [x1]
	add	x25, sp, #16
	add	x0, sp, #16
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x26, #0
	mul	x8, x27, x24
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w27, w8, w9, asr #3
	add	x28, x25, #4
	mov	x25, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x28, #-4]
	madd	w1, w8, w27, w21
	mov	x0, x20
	bl	_FFMIN
	mov	x24, x0
Lloh5:
	adrp	x8, _WS_SINE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WS_SINE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w8, [x28]
	stp	w19, w8, [sp]
	mov	x0, x22
	mov	w2, #3
	mov	w3, #-1
	mov	x4, x25
	mov	x5, x19
	mov	x6, x23
	mov	x7, x24
	bl	_add_interval
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w23, [x28], #8
	add	x26, x26, #1
	add	x0, sp, #16
	bl	_FF_ARRAY_ELEMS
	cmp	x26, w0, sxtw
	mov	x25, x24
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldr	x8, [sp, #72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WS_SINE,4,2                    ; @WS_SINE
	.no_dead_strip	_add_bell
.subsections_via_symbols
