	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replay_seek                    ## -- Begin function replay_seek
	.p2align	4, 0x90
_replay_seek:                           ## @replay_seek
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_replay_set_sequence_pos
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_calculate_tick_len
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	cmpl	%r14d, %eax
	jle	LBB0_1
LBB0_6:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	addl	%r12d, %r15d
	movq	%rbx, %rdi
	callq	_replay_tick
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_calculate_tick_len
	movl	%eax, %r12d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	%r15d, %eax
	cmpl	%r12d, %eax
	jl	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r12,%r12), %r13d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rdi
	addq	%r14, %rdi
	movl	(%rbx), %edx
	addl	%edx, %edx
	movl	%r13d, %esi
	callq	_channel_update_sample_idx
	incq	%r15
	movq	16(%rbx), %rax
	movslq	(%rax), %rax
	addq	$4, %r14
	cmpq	%rax, %r15
	jl	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replay_seek                    ; -- Begin function replay_seek
	.p2align	2
_replay_seek:                           ; @replay_seek
	.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	x19, x1
	mov	x20, x0
	mov	w1, #0
	bl	_replay_set_sequence_pos
	ldp	w1, w0, [x20]
	bl	_calculate_tick_len
	mov	w21, #0
	cmp	w0, w19
	b.le	LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x22, x0
	mov	w21, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, w22
	mov	x0, x20
	bl	_replay_tick
	ldp	w1, w0, [x20]
	bl	_calculate_tick_len
	mov	x22, x0
	sub	w8, w19, w21
	cmp	w8, w0
	b.lt	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	mov	x25, #0
	lsl	w23, w22, #1
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #8]
	add	x0, x8, x24
	ldr	w8, [x20]
	lsl	w2, w8, #1
	mov	x1, x23
	bl	_channel_update_sample_idx
	add	x25, x25, #1
	ldr	x8, [x20, #16]
	ldrsw	x8, [x8]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_6
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
