	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remap_s16_interleaved
_remap_s16_interleaved:                 ## @remap_s16_interleaved
	.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
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HB_AUDIO_REMAP_MAX_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.1:
	movq	(%r14), %r13
	movslq	-52(%rbp), %rax                 ## 4-byte Folded Reload
	movl	%eax, %r15d
	leal	(,%rax,4), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	leaq	-1(%r15), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r14d
	andl	$3, %r14d
	andl	$-4, %r15d
	shlq	$2, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$3, -72(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r12,%rax,4), %rcx
	movl	(%rbx,%rcx,4), %ecx
	movl	%ecx, (%r13,%rax,4)
	movslq	4(%r12,%rax,4), %rcx
	movl	(%rbx,%rcx,4), %ecx
	movl	%ecx, 4(%r13,%rax,4)
	movslq	8(%r12,%rax,4), %rcx
	movl	(%rbx,%rcx,4), %ecx
	movl	%ecx, 8(%r13,%rax,4)
	movslq	12(%r12,%rax,4), %rcx
	movl	(%rbx,%rcx,4), %ecx
	movl	%ecx, 12(%r13,%rax,4)
	addq	$4, %rax
	cmpq	%rax, %r15
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%rax,4), %rcx
	addq	%r13, %rcx
	leaq	(%r12,%rax,4), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rax,%rdx,4), %rsi
	movl	(%rbx,%rsi,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %r14
	jne	LBB0_9
	jmp	LBB0_10
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_AUDIO_REMAP_MAX_CHANNELS,4,2 ## @HB_AUDIO_REMAP_MAX_CHANNELS
	.no_dead_strip	_remap_s16_interleaved
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remap_s16_interleaved
_remap_s16_interleaved:                 ; @remap_s16_interleaved
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _HB_AUDIO_REMAP_MAX_CHANNELS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HB_AUDIO_REMAP_MAX_CHANNELS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w25, #0
	ldr	x23, [x0]
	lsl	w24, w20, #2
	mov	w8, w20
	sbfiz	x26, x20, #2, #32
	lsl	x27, x8, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, x26
	add	w25, w25, #1
	cmp	w25, w21
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_memcpy
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x9, [x19, x8]
	ldr	w9, [x22, x9, lsl #2]
	str	w9, [x23, x8]
	add	x8, x8, #4
	cmp	x27, x8
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_AUDIO_REMAP_MAX_CHANNELS,4,2 ; @HB_AUDIO_REMAP_MAX_CHANNELS
	.no_dead_strip	_remap_s16_interleaved
.subsections_via_symbols
