	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_decay                       ## -- Begin function do_decay
	.p2align	4, 0x90
_do_decay:                              ## @do_decay
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_get_rate
                                        ## kill: def $eax killed $eax def $rax
	movl	(%rbx), %ecx
	movl	8(%rbx), %esi
	andl	$3, %ecx
	leal	-48(%rax), %r8d
	xorl	%edi, %edi
	cmpl	$49, %eax
	movq	_decay_rate_table@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmovgel	%r8d, %edi
	movq	(%rdx,%rdi,8), %rdx
	movl	(%rdx,%rcx,4), %r14d
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_need_envelope_step
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	4(%rbx), %eax
	cmpl	$958, %eax                      ## imm = 0x3BE
	jg	LBB0_3
## %bb.2:
	addl	%r14d, %eax
	movl	%eax, 4(%rbx)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_decay_rate_table,8,3           ## @decay_rate_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_decay                       ; -- Begin function do_decay
	.p2align	2
_do_decay:                              ; @do_decay
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_get_rate
	ldr	w8, [x19]
	and	x8, x8, #0x3
Lloh0:
	adrp	x9, _decay_rate_table@GOTPAGE
Lloh1:
	ldr	x9, [x9, _decay_rate_table@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	w10, w0, #48
	cmp	w0, #49
	csel	w10, wzr, w10, lt
	ldr	x9, [x9, w10, uxtw #3]
	ldr	w20, [x9, x8, lsl #2]
	ldr	w1, [x19, #8]
	mov	x2, x19
	bl	_need_envelope_step
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #958
	b.gt	LBB0_3
; %bb.2:
	add	w8, w8, w20
	str	w8, [x19, #4]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_decay_rate_table,8,3           ; @decay_rate_table
.subsections_via_symbols
