	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_samples
_copy_samples:                          ## @copy_samples
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movl	%edi, %ebx
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
	cmpl	$8, %edi
	jae	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	LBB0_4
LBB0_1:
	xorl	%esi, %esi
	jmp	LBB0_13
LBB0_5:
	movl	%ebx, %eax
	andl	$-8, %eax
	leaq	-8(%rax), %rdx
	movq	%rdx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %r11d
	andl	$3, %r11d
	cmpq	$24, %rdx
	jae	LBB0_7
## %bb.6:
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	jmp	LBB0_9
LBB0_7:
	andq	$-4, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r15,%rdx,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%r15,%rdx,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	32(%r15,%rdx,4), %xmm1
	movdqu	48(%r15,%rdx,4), %xmm3
	movdqu	64(%r15,%rdx,4), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	80(%r15,%rdx,4), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	96(%r15,%rdx,4), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	112(%r15,%rdx,4), %xmm1
	paddd	%xmm2, %xmm1
	addq	$32, %rdx
	addq	$-4, %rsi
	jne	LBB0_8
LBB0_9:
	testq	%r11, %r11
	je	LBB0_12
## %bb.10:
	leaq	(%r15,%rdx,4), %rdx
	addq	$16, %rdx
	shlq	$5, %r11
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rdx,%rsi), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	(%rdx,%rsi), %xmm2
	paddd	%xmm2, %xmm1
	addq	$32, %rsi
	cmpq	%rsi, %r11
	jne	LBB0_11
LBB0_12:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	cmpq	%rbx, %rax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%r15,%rax,4), %esi
	incq	%rax
	cmpq	%rax, %rbx
	jne	LBB0_4
LBB0_13:
	testl	%r9d, %r9d
	je	LBB0_22
## %bb.14:
	movl	16(%rbp), %eax
	movslq	%eax, %r14
	imull	%r14d, %esi
	movslq	%esi, %rax
	leaq	(,%r14,4), %r11
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%r11, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, (%r8)
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	testl	%r9d, %r9d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_22
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##       Child Loop BB0_19 Depth 3
	decl	%r9d
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	testl	%edi, %edi
	jle	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%eax, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=2
	incq	%rax
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_21
LBB0_17:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_19 Depth 3
	cmpl	$0, (%r15,%rax,4)
	jle	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	(%r12,%rax,8), %rsi
	xorl	%ebx, %ebx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_15 Depth=1
                                        ##     Parent Loop BB0_17 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	(%r13), %rdi
	addq	$4, %r13
	imulq	%r14, %rdi
	shlq	$2, %rdi
	addq	(%r8), %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %r11                 ## 8-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	(%r12,%rax,8), %rsi
	addq	%r11, %rsi
	movq	%rsi, (%r12,%rax,8)
	incl	%ebx
	cmpl	(%r15,%rax,4), %ebx
	jl	LBB0_19
	jmp	LBB0_20
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_copy_samples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_samples
_copy_samples:                          ; @copy_samples
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x21, x4
	mov	x22, x3
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x24, x1
	mov	w26, w0
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w0, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x8, #0
	mov	w9, #0
	b	LBB0_7
LBB0_3:
	mov	w9, #0
	b	LBB0_9
LBB0_4:
	and	x8, x26, #0xfffffff0
	add	x9, x24, #32
	movi.2d	v0, #0000000000000000
	mov	x10, x8
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x9, #-32]
	ldp	q6, q7, [x9], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x10, x10, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w9, s0
	cmp	x8, x26
	b.eq	LBB0_9
LBB0_7:
	add	x10, x24, x8, lsl #2
	sub	x8, x26, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	add	w9, w11, w9
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	cbz	w5, LBB0_18
; %bb.10:
	sxtw	x27, w19
	mul	w8, w9, w19
	sxtw	x8, w8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x21]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #2
	str	x8, [x21]
	mov	x0, x20
	ldr	w5, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w5, LBB0_18
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;       Child Loop BB0_17 Depth 3
	sub	w5, w5, #1
	str	w5, [sp, #28]                   ; 4-byte Folded Spill
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x23, #0
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x23, x23, #1
	cmp	x23, x26
	b.eq	LBB0_11
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_17 Depth 3
	ldr	w8, [x24, x23, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	w28, #0
	ldr	x1, [x22, x23, lsl #3]
LBB0_17:                                ;   Parent Loop BB0_12 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x21]
	ldr	w9, [x25], #4
	mul	w9, w9, w19
	add	x0, x8, w9, sxtw #2
	mov	x2, x19
	bl	_memcpy
	lsl	x8, x23, #3
	ldr	x9, [x22, x8]
	add	x1, x9, x27, lsl #2
	str	x1, [x22, x8]
	add	w28, w28, #1
	ldr	w8, [x24, x23, lsl #2]
	cmp	w28, w8
	b.lt	LBB0_17
	b	LBB0_14
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_copy_samples
.subsections_via_symbols
