	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_gus_envelope_time
_calc_gus_envelope_time:                ## @calc_gus_envelope_time
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subl	%esi, %edx
	movl	%edx, %eax
	negl	%eax
	cmovsl	%edx, %eax
	movl	%edi, %ecx
	notb	%cl
	shrb	$6, %cl
	movzbl	%cl, %ecx
	leal	(%rcx,%rcx,2), %ecx
	negl	%ecx
	addb	$13, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	andl	$63, %edi
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	imull	$441, %edi, %ecx                ## imm = 0x1B9
	cltd
	idivl	%ecx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_gus_envelope_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_gus_envelope_time
_calc_gus_envelope_time:                ; @calc_gus_envelope_time
	.cfi_startproc
; %bb.0:
	subs	w8, w2, w1
	cneg	w8, w8, mi
	mov	w9, #3
	bic	w9, w9, w0, lsr #6
	sub	w9, w9, w9, lsl #2
	add	w9, w9, #13
	lsl	w8, w8, w9
	and	w9, w0, #0x3f
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	mov	w10, #441
	mul	w9, w9, w10
	sdiv	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_gus_envelope_time
.subsections_via_symbols
