	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function analyze_sample_buffer
_analyze_sample_buffer:                 ## @analyze_sample_buffer
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r14
	movq	96(%rdi), %r15
	movq	88(%rdi), %r12
	xorl	%r13d, %r13d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_set_best_codebook
	movq	%r12, %r13
	incq	%r13
	movl	(%r14), %eax
	cmpq	%rax, %r13
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jae	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	leaq	(,%r13,4), %rcx
	addq	72(%r14), %rcx
	movq	%rcx, 80(%r14)
	movl	%eax, %eax
	leaq	(%r12,%rax,4), %rax
	leaq	(%rax,%r13,4), %rax
	movq	%rax, 32(%r14)
	movq	56(%r14), %rax
	movslq	(%rax), %rax
	leaq	(%r15,%rax,4), %rax
	movq	%rax, 64(%r14)
	movq	%r14, %rdi
	callq	_determine_quant_step_size
	movq	%r14, %rdi
	callq	_generate_2_noise_channels
	movq	%r14, %rdi
	callq	_lossless_matrix_coeffs
	movq	%r14, %rdi
	callq	_rematrix_channels
	movq	%r14, %rdi
	callq	_determine_filters
	movq	%r14, %rdi
	callq	_apply_filters
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_copy_restart_frame_params
	movl	(%r14), %r8d
	movl	4(%r14), %r9d
	testq	%r9, %r9
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %r10
	leaq	(%r12,%r13,4), %r11
	leaq	-1(%r9), %rcx
	movl	%r9d, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	andl	$-4, %r9d
	leal	(%r8,%r8), %edx
	leal	(,%r8,4), %r13d
	leal	(%r8,%r8,2), %ecx
	movl	%r13d, %esi
	movl	%r8d, %r12d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %ebx
	movl	(%r10,%rdi,4), %r15d
	movl	%r15d, (%r11,%rbx,4)
	movl	%edx, %ebx
	movl	4(%r10,%rdi,4), %eax
	movl	%eax, (%r11,%rbx,4)
	movl	%ecx, %eax
	movl	8(%r10,%rdi,4), %ebx
	movl	%ebx, (%r11,%rax,4)
	movl	%esi, %eax
	movl	12(%r10,%rdi,4), %ebx
	addq	$4, %rdi
	movl	%ebx, (%r11,%rax,4)
	addl	%r13d, %edx
	addl	%r13d, %r12d
	addl	%r13d, %ecx
	addl	%r13d, %esi
	cmpq	%rdi, %r9
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r10,%rdi,4), %rcx
	incl	%edi
	imull	%r8d, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edi, %eax
	movl	(%rcx,%rdx,4), %esi
	movl	%esi, (%r11,%rax,4)
	incq	%rdx
	addl	%r8d, %edi
	cmpq	%rdx, %rbx
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$8, (%r12,%r13,4)
	leaq	(%r12,%r8,4), %rax
	movq	%r13, %r12
	addl	$-8, (%rax,%r13,4)
	cmpl	$0, 16(%r14)
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%ebx, %r8d
	leaq	(,%r8,4), %rax
	addq	%r13, %rax
	movq	%rax, 32(%r14)
	movq	40(%r14), %rax
	movq	56(%r14), %rcx
	movl	(%rcx), %ecx
	imull	%ebx, %ecx
	leaq	(%r15,%rcx,4), %rcx
	movq	%rcx, 64(%r14)
	movl	(%rax,%rbx,4), %eax
	movl	%eax, 48(%r14)
	movq	%r14, %rdi
	callq	_determine_bits
	movq	32(%r14), %rax
	movl	24(%r14), %ecx
	imull	(%rax), %ecx
	movl	16(%r14), %eax
	addl	%ecx, 20(%r14)
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	(%r14), %r8d
	jmp	LBB0_12
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_analyze_sample_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analyze_sample_buffer
_analyze_sample_buffer:                 ; @analyze_sample_buffer
	.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	w8, [x0]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	ldp	x22, x21, [x0, #88]
	mov	w23, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_set_best_codebook
	add	x20, x20, #1
	ldr	w8, [x19]
	cmp	x20, x8
	b.hs	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x9, [x19, #72]
	lsl	x24, x20, #2
	add	x9, x9, x24
	str	x9, [x19, #80]
	add	x8, x22, w8, uxtw #2
	add	x8, x8, x24
	str	x8, [x19, #32]
	ldr	x8, [x19, #56]
	ldrsw	x8, [x8]
	add	x8, x21, x8, lsl #2
	str	x8, [x19, #64]
	mov	x0, x19
	bl	_determine_quant_step_size
	mov	x0, x19
	bl	_generate_2_noise_channels
	mov	x0, x19
	bl	_lossless_matrix_coeffs
	mov	x0, x19
	bl	_rematrix_channels
	mov	x0, x19
	bl	_determine_filters
	mov	x0, x19
	bl	_apply_filters
	mov	x0, x19
	mov	x1, x20
	bl	_copy_restart_frame_params
	ldp	w8, w9, [x19]
	cbz	w9, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x19, #8]
	add	x11, x22, x20, lsl #2
	mov	x12, x8
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x10], #4
	str	w13, [x11, w12, uxtw #2]
	add	w12, w12, w8
	subs	x9, x9, #1
	b.ne	LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w23, [x22, x24]
	add	x9, x22, x8, lsl #2
	ldr	w10, [x9, x24]
	sub	w10, w10, #8
	str	w10, [x9, x24]
	ldr	w9, [x19, #16]
	cbz	w9, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
	add	x25, x22, x20, lsl #2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	w8, w8, w24
	add	x8, x25, w8, uxtw #2
	str	x8, [x19, #32]
	ldr	x8, [x19, #56]
	ldr	w8, [x8]
	mul	w8, w8, w24
	add	x8, x21, w8, uxtw #2
	str	x8, [x19, #64]
	ldr	x8, [x19, #40]
	ldr	w8, [x8, x24, lsl #2]
	str	w8, [x19, #48]
	mov	x0, x19
	bl	_determine_bits
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	ldp	w10, w9, [x19, #20]
	ldr	w11, [x19, #16]
	madd	w8, w9, w8, w10
	str	w8, [x19, #20]
	add	x24, x24, #1
	cmp	x24, x11
	b.hs	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x19]
	b	LBB0_8
LBB0_10:
	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	_analyze_sample_buffer
.subsections_via_symbols
