	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libopus_copy_samples_with_channel_map
_libopus_copy_samples_with_channel_map: ## @libopus_copy_samples_with_channel_map
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %r13
	movslq	%r9d, %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	%r8d, %esi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	%ecx, %esi
	imulq	%rax, %rcx
	shlq	$2, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, -72(%rbp)                 ## 8-byte Folded Spill
	movq	%rbx, %rcx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	imull	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%r14,4), %eax
	addl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	imull	%r9d, %eax
	cltq
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r9d, %edx
	movl	%r9d, %ebx
	callq	_memcpy
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %r9d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	incq	%r14
	addq	%rax, %r12
	cmpq	%r14, %rsi
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_libopus_copy_samples_with_channel_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libopus_copy_samples_with_channel_map
_libopus_copy_samples_with_channel_map: ; @libopus_copy_samples_with_channel_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x3, [sp, #40]                   ; 8-byte Folded Spill
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	cmp	w4, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x5
	mov	x22, x1
	mov	x23, x0
	mov	x25, #0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	sxtw	x10, w8
	mov	w9, w4
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	mov	w9, w8
	stp	x9, x10, [sp, #8]               ; 16-byte Folded Spill
	smull	x8, w5, w8
	lsl	x21, x8, #2
	sbfiz	x26, x19, #2, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	add	x22, x22, x21
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x25, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x20, x8, [sp, #8]               ; 16-byte Folded Reload
	mul	w28, w25, w8
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
	mov	x24, x22
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x27], #4
	add	w8, w8, w28
	mul	w8, w8, w19
	add	x0, x23, w8, sxtw #2
	mov	x1, x24
	mov	x2, x19
	bl	_memcpy
	add	x24, x24, x26
	subs	x20, x20, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_libopus_copy_samples_with_channel_map
.subsections_via_symbols
