	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function apply_mid_side_stereo
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_apply_mid_side_stereo:                 ## @apply_mid_side_stereo
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 24(%rdi)
	je	LBB0_37
## %bb.1:
	movq	(%rdi), %r14
	movl	16(%r14), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_37
## %bb.2:
	movq	24(%r14), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r11d, %r11d
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [5.0E-1,5.0E-1,5.0E-1,5.0E-1]
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%r11d, %r15d
	movl	%r15d, %r11d
	cmpl	-84(%rbp), %r15d                ## 4-byte Folded Reload
	jge	LBB0_37
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##         Child Loop BB0_31 Depth 4
                                        ##         Child Loop BB0_27 Depth 4
	movslq	%r11d, %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx,%rax,4), %r15d
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%r14), %r10d
	movl	%r11d, %eax
	shll	$4, %eax
	movslq	%eax, %r13
	xorl	%r9d, %r9d
	movq	%r11, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=2
	incl	%r9d
	cmpl	%r15d, %r9d
	je	LBB0_3
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##         Child Loop BB0_31 Depth 4
                                        ##         Child Loop BB0_27 Depth 4
	testl	%r10d, %r10d
	jle	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	leal	(%r9,%r11), %ebx
	shll	$7, %ebx
	movq	16(%rdi), %r12
	movq	_NOISE_BT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%edx, %edx
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_31 Depth 4
                                        ##         Child Loop BB0_27 Depth 4
	leaq	(%rdx,%r13), %rax
	cmpl	$0, (%r12,%rax,4)
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	8(%rdi), %rcx
	cmpq	$0, (%rcx,%rax,8)
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	(%r14), %rcx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	cmpq	%rsi, (%rcx,%rax,8)
	jge	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	48(%r14), %rcx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	cmpq	%rsi, (%rcx,%rax,8)
	jge	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	40(%r14), %rax
	movl	(%rax,%rdx,4), %r8d
	testl	%r8d, %r8d
	jle	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	8(%r14), %r11
	movq	56(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %r15
	cmpl	$4, %r8d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jae	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=3
	xorl	%eax, %eax
	movq	%r11, %r9
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	40(%r14), %rax
	movl	(%rax,%rdx,4), %r8d
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=3
	addl	%ebx, %r8d
	incq	%rdx
	movl	%r8d, %ebx
	cmpq	%r10, %rdx
	jne	LBB0_9
	jmp	LBB0_6
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=3
	leaq	(%r11,%r15,4), %rcx
	leaq	(%r15,%r8), %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rax,4), %rsi
	cmpq	%rsi, %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r11, %r9
	jae	LBB0_29
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=3
	leaq	(%r9,%rax,4), %rax
	leaq	(%rsi,%r15,4), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_29
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=3
	xorl	%eax, %eax
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	%rax, %rsi
	testb	$1, %r8b
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movss	(%rsi,%rcx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	(%r9,%rcx,4), %xmm3             ## xmm3 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm3
	mulss	%xmm0, %xmm3
	movss	%xmm3, (%r9,%rcx,4)
	subss	%xmm2, %xmm3
	movss	%xmm3, (%rsi,%rcx,4)
	movq	%rax, %rsi
	orq	$1, %rsi
LBB0_24:                                ##   in Loop: Header=BB0_9 Depth=3
	notq	%rax
	addq	%r8, %rax
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	leaq	(%r9,%r11,4), %rcx
	addq	$4, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r11,4), %rax
	addq	$4, %rax
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ##       Parent Loop BB0_9 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movss	-4(%rax,%rsi,4), %xmm2          ## xmm2 = mem[0],zero,zero,zero
	movss	-4(%rcx,%rsi,4), %xmm3          ## xmm3 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm3
	mulss	%xmm0, %xmm3
	movss	%xmm3, -4(%rcx,%rsi,4)
	subss	%xmm2, %xmm3
	movss	%xmm3, -4(%rax,%rsi,4)
	movss	(%rax,%rsi,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	(%rcx,%rsi,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm3
	mulss	%xmm0, %xmm3
	movss	%xmm3, (%rcx,%rsi,4)
	subss	%xmm2, %xmm3
	movss	%xmm3, (%rax,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_29:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	%rsi, %r11
	movl	%r8d, %eax
	andl	$-4, %eax
	leaq	-4(%rax), %rsi
	movq	%rsi, %rcx
	shrq	$2, %rcx
	incq	%rcx
	testq	%rsi, %rsi
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	je	LBB0_36
## %bb.30:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rcx, %rsi
	andq	$-2, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%r11,%rcx,4), %r11
	addq	$16, %r11
	leaq	(%r9,%rcx,4), %r15
	addq	$16, %r15
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ##       Parent Loop BB0_9 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movups	-16(%r15,%r9,4), %xmm2
	movups	-16(%r11,%r9,4), %xmm3
	addps	%xmm3, %xmm2
	mulps	%xmm1, %xmm2
	movups	%xmm2, -16(%r15,%r9,4)
	subps	%xmm3, %xmm2
	movups	%xmm2, -16(%r11,%r9,4)
	movups	(%r15,%r9,4), %xmm2
	movups	(%r11,%r9,4), %xmm3
	addps	%xmm3, %xmm2
	mulps	%xmm1, %xmm2
	movups	%xmm2, (%r15,%r9,4)
	subps	%xmm3, %xmm2
	movups	%xmm2, (%r11,%r9,4)
	addq	$8, %r9
	addq	$-2, %rsi
	jne	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_9 Depth=3
	testb	$1, -120(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_34
LBB0_33:                                ##   in Loop: Header=BB0_9 Depth=3
	addq	-72(%rbp), %r9                  ## 8-byte Folded Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movups	(%rsi,%r9,4), %xmm2
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movups	(%rcx,%r9,4), %xmm3
	addps	%xmm3, %xmm2
	mulps	%xmm1, %xmm2
	movups	%xmm2, (%rsi,%r9,4)
	subps	%xmm3, %xmm2
	movups	%xmm2, (%rcx,%r9,4)
LBB0_34:                                ##   in Loop: Header=BB0_9 Depth=3
	cmpq	%r8, %rax
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	jne	LBB0_22
LBB0_25:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_17
LBB0_36:                                ##   in Loop: Header=BB0_9 Depth=3
	xorl	%r9d, %r9d
	testb	$1, -120(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_33
	jmp	LBB0_34
LBB0_37:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOISE_BT,8,3                   ## @NOISE_BT
	.no_dead_strip	_apply_mid_side_stereo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_mid_side_stereo
_apply_mid_side_stereo:                 ; @apply_mid_side_stereo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	.cfi_offset w23, -40
	.cfi_offset w24, -48
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_24
; %bb.1:
	ldr	x8, [x0]
	ldr	w9, [x8, #16]
	cmp	w9, #1
	b.lt	LBB0_24
; %bb.2:
	mov	w10, #0
	ldr	x11, [x8, #24]
Lloh0:
	adrp	x12, _NOISE_BT@GOTPAGE
Lloh1:
	ldr	x12, [x12, _NOISE_BT@GOTPAGEOFF]
	fmov	s0, #0.50000000
	movi.4s	v1, #63, lsl #24
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w10, w13, w10
	cmp	w10, w9
	b.ge	LBB0_24
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_17 Depth 4
                                        ;         Child Loop BB0_23 Depth 4
	ldr	w13, [x11, w10, sxtw #2]
	cmp	w13, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w14, #0
	ldr	w15, [x8, #32]
	lsl	w16, w10, #4
	sxtw	x16, w16
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w14, w14, #1
	cmp	w14, w13
	b.eq	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_17 Depth 4
                                        ;         Child Loop BB0_23 Depth 4
	cmp	w15, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x17, #0
	add	w1, w14, w10
	lsl	w1, w1, #7
	ldr	x2, [x0, #16]
	ldr	x3, [x12]
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_17 Depth 4
                                        ;         Child Loop BB0_23 Depth 4
	add	x4, x17, x16
	ldr	w5, [x2, x4, lsl #2]
	cbz	w5, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	x5, [x0, #8]
	ldr	x5, [x5, x4, lsl #3]
	cbnz	x5, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	x5, [x8]
	ldr	x5, [x5, x4, lsl #3]
	cmp	x5, x3
	b.ge	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	x5, [x8, #48]
	ldr	x4, [x5, x4, lsl #3]
	cmp	x4, x3
	b.ge	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	x4, [x8, #40]
	ldr	w4, [x4, x17, lsl #2]
	cmp	w4, #1
	b.lt	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	x6, [x8, #8]
	ldr	x5, [x8, #56]
	sxtw	x7, w1
	cmp	w4, #8
	b.lo	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=3
	lsl	x19, x7, #2
	add	x21, x6, x19
	add	x20, x7, x4
	lsl	x22, x20, #2
	add	x23, x6, x22
	add	x20, x5, x19
	add	x19, x5, x22
	cmp	x21, x19
	ccmp	x20, x23, #2, lo
	b.lo	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=3
	and	x19, x4, #0xfffffff8
	add	x20, x20, #16
	add	x21, x21, #16
	mov	x22, x19
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ;       Parent Loop BB0_9 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldp	q2, q3, [x21, #-16]
	ldp	q4, q5, [x20, #-16]
	fadd.4s	v2, v2, v4
	fadd.4s	v3, v3, v5
	fmul.4s	v2, v2, v1
	fmul.4s	v3, v3, v1
	fsub.4s	v4, v2, v4
	fsub.4s	v5, v3, v5
	stp	q2, q3, [x21, #-16]
	stp	q4, q5, [x20, #-16]
	add	x20, x20, #32
	add	x21, x21, #32
	subs	x22, x22, #8
	b.ne	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=3
	cmp	x19, x4
	b.eq	LBB0_20
	b	LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=3
	ldr	x4, [x8, #40]
	ldr	w4, [x4, x17, lsl #2]
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=3
	add	w1, w4, w1
	add	x17, x17, #1
	cmp	x17, x15
	b.ne	LBB0_9
	b	LBB0_6
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=3
	mov	x19, #0
LBB0_22:                                ;   in Loop: Header=BB0_9 Depth=3
	add	x7, x19, x7
	lsl	x7, x7, #2
	add	x6, x6, x7
	add	x5, x5, x7
	sub	x7, x4, x19
LBB0_23:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ;       Parent Loop BB0_9 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	s2, [x6]
	ldr	s3, [x5]
	fadd	s2, s2, s3
	fmul	s2, s2, s0
	fsub	s3, s2, s3
	str	s2, [x6], #4
	str	s3, [x5], #4
	subs	x7, x7, #1
	b.ne	LBB0_23
	b	LBB0_20
LBB0_24:
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NOISE_BT,8,3                   ; @NOISE_BT
	.no_dead_strip	_apply_mid_side_stereo
.subsections_via_symbols
