	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_update_envelopes
_channel_update_envelopes:              ## @channel_update_envelopes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.1:
	movl	8(%rbx), %edx
	testl	%edx, %edx
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	subq	(%rdi), %rax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovgq	%rax, %rcx
	movq	%rcx, (%rbx)
LBB0_3:
	addq	$16, %rdi
	movq	32(%rbx), %rsi
	callq	_envelope_next_tick
	movq	%rax, 32(%rbx)
	movq	24(%rbx), %rdi
LBB0_4:
	cmpq	$0, 8(%rdi)
	je	LBB0_6
## %bb.5:
	addq	$8, %rdi
	movq	16(%rbx), %rsi
	movl	8(%rbx), %edx
	callq	_envelope_next_tick
	movq	%rax, 16(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_channel_update_envelopes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_update_envelopes
_channel_update_envelopes:              ; @channel_update_envelopes
	.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
	ldr	x0, [x0, #24]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w2, [x19, #8]
	cbnz	w2, LBB0_3
; %bb.2:
	ldr	x8, [x0]
	ldr	x9, [x19]
	sub	x8, x9, x8
	cmp	x8, #0
	csel	x8, x8, xzr, gt
	str	x8, [x19]
LBB0_3:
	add	x0, x0, #16
	ldr	x1, [x19, #32]
	bl	_envelope_next_tick
	str	x0, [x19, #32]
	ldr	x0, [x19, #24]
LBB0_4:
	ldr	x8, [x0, #8]!
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x1, [x19, #16]
	ldr	w2, [x19, #8]
	bl	_envelope_next_tick
	str	x0, [x19, #16]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_channel_update_envelopes
.subsections_via_symbols
