	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replay_get_audio               ## -- Begin function replay_get_audio
	.p2align	4, 0x90
_replay_get_audio:                      ## @replay_get_audio
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movl	24(%rdi), %edi
	callq	_calculate_tick_len
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	65(%rax), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	shll	$4, %edx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	16(%rbx), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rax), %r13d
	shlq	$2, %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r15
	addq	%r12, %r15
	movl	(%rbx), %r8d
	movl	4(%rbx), %r9d
	addl	%r8d, %r8d
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_channel_resample
	movl	(%rbx), %edx
	addl	%edx, %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_channel_update_sample_idx
	addq	$4, %r12
	cmpq	%r12, %r14
	jne	LBB0_2
LBB0_3:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %esi
	addl	$64, %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_downsample
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_replay_volume_ramp
	movq	%rbx, %rdi
	callq	_replay_tick
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replay_get_audio               ; -- Begin function replay_get_audio
	.p2align	2
_replay_get_audio:                      ; @replay_get_audio
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	ldr	w1, [x19]
	bl	_calculate_tick_len
	mov	x21, x0
	add	w22, w0, #65
	lsl	w2, w22, #4
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x25, #0
	lsl	w22, w22, #1
	lsl	w23, w21, #1
	lsl	x26, x8, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x24, x8, x25
	ldp	w8, w5, [x19]
	lsl	w4, w8, #1
	mov	x0, x24
	mov	x1, x20
	mov	w2, #0
	mov	x3, x22
	bl	_channel_resample
	ldr	w8, [x19]
	lsl	w2, w8, #1
	mov	x0, x24
	mov	x1, x23
	bl	_channel_update_sample_idx
	add	x25, x25, #4
	cmp	x26, x25
	b.ne	LBB0_2
LBB0_3:
	add	w1, w21, #64
	mov	x0, x20
	bl	_downsample
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_replay_volume_ramp
	mov	x0, x19
	bl	_replay_tick
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
