	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_sample_match
_find_sample_match:                     ## @find_sample_match
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	cmpq	$0, (%rdx)
	jle	LBB0_13
## %bb.1:
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_sample_queue_pop
	cmpq	$0, (%rbx)
	jle	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r15
	movl	(%r15), %ecx
	movl	4(%r15), %r8d
	testl	%ecx, %ecx
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	cmpl	$6, %r8d
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$5, (%r15)
	movl	$5, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r15), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r13, %r9
	pushq	16(%rbp)
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_match_segments
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$9, (%r15)
	jg	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %eax
	cmpl	$21, %eax
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	shrl	%eax
	movl	%eax, (%r15)
	cmpq	$0, (%rbx)
	jg	LBB0_2
LBB0_13:
	movl	$-1, %r14d
	jmp	LBB0_14
LBB0_6:
	movl	8(%r15), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	16(%rbp), %rcx
	movl	(%rcx), %ecx
	leal	(%rcx,%rax), %edx
	addl	$5, %edx
	movl	%edx, (%r15)
	addl	%ecx, %eax
	addl	$15, %eax
	xorl	%r14d, %r14d
	cmpl	4(%r15), %eax
	jl	LBB0_14
## %bb.7:
	movq	%rbx, %rdi
	callq	_sample_queue_pop
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_sample_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_sample_match
_find_sample_match:                     ; @find_sample_match
	.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
	ldr	x8, [x2]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x24, x1
	mov	x25, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_sample_queue_pop
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	cmp	x8, #0
	b.le	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #8]
	ldp	w3, w4, [x26]
	cbnz	w3, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w4, #6
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w3, #5
	str	w3, [x26]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w3, #0
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x26, #12]
	mov	x0, x25
	mov	x1, x24
	mov	x5, x23
	mov	x6, x21
	mov	x7, x20
	bl	_match_segments
	cbz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	cmp	w8, #9
	b.gt	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #4]
	cmp	w8, #21
	b.lt	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	lsr	w8, w8, #1
	str	w8, [x26]
	b	LBB0_3
LBB0_12:
	mov	w0, #-1
	b	LBB0_16
LBB0_13:
	ldr	w8, [x26, #8]
	str	w8, [x22]
	ldr	w8, [x21]
	ldr	w9, [x20]
	add	w8, w9, w8
	add	w9, w8, #5
	str	w9, [x26]
	add	w8, w8, #15
	ldr	w9, [x26, #4]
	cmp	w8, w9
	b.lt	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_sample_queue_pop
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	.no_dead_strip	_find_sample_match
.subsections_via_symbols
