	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function celt_apply_preemph_filter
_celt_apply_preemph_filter:             ## @celt_apply_preemph_filter
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	8(%rdi), %rax
	movslq	(%rax), %r15
	movl	(%rdi), %edi
	callq	_OPUS_BLOCK_SIZE
	cltd
	idivl	%r15d
                                        ## kill: def $eax killed $eax def $rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_7
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %r10
	movq	_CELT_OVERLAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%edi, %edi
	movq	_CELT_EMPH_COEFF@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r10,%r11,8), %rcx
	movss	%xmm0, (%rcx)
	incq	%rdi
	cmpq	%r9, %rdi
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	leaq	(%rdi,%rdi,2), %r11
	movss	(%r10,%r11,8), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r10,%r11,8), %rcx
	xorl	%edx, %edx
	cmpl	$1, %r8d
	je	LBB0_4
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movaps	%xmm0, %xmm1
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%rcx,%rdx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	4(%rcx,%rdx,4), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm3
	subss	%xmm1, %xmm3
	movss	%xmm3, (%rcx,%rdx,4)
	mulss	(%rbx), %xmm2
	movaps	%xmm0, %xmm1
	subss	%xmm2, %xmm1
	movss	%xmm1, 4(%rcx,%rdx,4)
	mulss	(%rbx), %xmm0
	addq	$2, %rdx
	movaps	%xmm0, %xmm1
	cmpq	%rdx, %rsi
	jne	LBB0_22
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r8b
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movss	(%rcx,%rdx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	subss	%xmm0, %xmm2
	movss	%xmm2, (%rcx,%rdx,4)
	mulss	(%rbx), %xmm1
	movaps	%xmm1, %xmm0
	jmp	LBB0_6
LBB0_7:
	testl	%eax, %eax
	jle	LBB0_20
## %bb.8:
	movl	%r15d, %r13d
	leal	-1(%rax), %r12d
	movl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	andl	$-2, %edi
	movl	$1, %r10d
	xorl	%ebx, %ebx
	movq	_CELT_EMPH_COEFF@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	addq	%r15, %r10
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_20
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##       Child Loop BB0_24 Depth 3
	testl	%r9d, %r9d
	jle	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%rbx, %rdx
	imulq	%r15, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%rsi
	cmpq	%r9, %rsi
	je	LBB0_19
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_24 Depth 3
	leaq	(%rsi,%rsi,2), %rdx
	movss	(%rax,%rdx,8), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	testl	%r15d, %r15d
	jle	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	16(%rax,%rdx,8), %r14
	cmpl	$1, %r13d
	jne	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	xorl	%r8d, %r8d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=2
	leaq	(%r14,%r10,4), %r11
	xorl	%r8d, %r8d
	movaps	%xmm0, %xmm1
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_9 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movss	-4(%r11,%r8,4), %xmm2           ## xmm2 = mem[0],zero,zero,zero
	movss	(%r11,%r8,4), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm3
	subss	%xmm1, %xmm3
	movss	%xmm3, -4(%r11,%r8,4)
	mulss	(%rcx), %xmm2
	movaps	%xmm0, %xmm1
	subss	%xmm2, %xmm1
	movss	%xmm1, (%r11,%r8,4)
	mulss	(%rcx), %xmm0
	addq	$2, %r8
	movaps	%xmm0, %xmm1
	cmpq	%r8, %rdi
	jne	LBB0_24
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	testb	$1, %r13b
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=2
	addq	-64(%rbp), %r8                  ## 8-byte Folded Reload
	movss	(%r14,%r8,4), %xmm1             ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	subss	%xmm0, %xmm2
	movss	%xmm2, (%r14,%r8,4)
	mulss	(%rcx), %xmm1
	movaps	%xmm1, %xmm0
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=2
	cmpq	%r12, %rbx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=2
	leaq	(%rax,%rdx,8), %rdx
	movss	%xmm0, (%rdx)
	jmp	LBB0_18
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CELT_OVERLAP,4,2               ## @CELT_OVERLAP
	.comm	_CELT_EMPH_COEFF,4,2            ## @CELT_EMPH_COEFF
	.no_dead_strip	_celt_apply_preemph_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_apply_preemph_filter
_celt_apply_preemph_filter:             ; @celt_apply_preemph_filter
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x0, #8]
	ldrsw	x20, [x8]
	ldr	w0, [x0]
	bl	_OPUS_BLOCK_SIZE
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _CELT_EMPH_COEFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CELT_EMPH_COEFF@GOTPAGEOFF]
	sdiv	w10, w0, w20
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x11, #0
	ldr	x12, [x19, #8]
Lloh2:
	adrp	x13, _CELT_OVERLAP@GOTPAGE
Lloh3:
	ldr	x13, [x13, _CELT_OVERLAP@GOTPAGEOFF]
Lloh4:
	ldr	w13, [x13]
	mov	w14, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	s0, [x15]
	add	x11, x11, #1
	cmp	x11, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	madd	x15, x11, x14, x12
	ldr	s0, [x15]
	cmp	w13, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x16, x11, x14, x12
	ldr	x16, [x16, #8]
	mov	x17, x13
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s1, [x16]
	fsub	s0, s1, s0
	str	s0, [x16], #4
	ldr	s0, [x9]
	fmul	s0, s1, s0
	subs	x17, x17, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	subs	w11, w10, #1
	b.lt	LBB0_17
; %bb.7:
	mov	x12, #0
	mov	x13, #0
	and	x14, x20, #0xffffffff
	mov	w15, #24
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x13, x13, #1
	add	x12, x12, x20
	cmp	x13, x10
	b.eq	LBB0_17
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x16, #0
	ldr	x17, [x19, #8]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x16, x16, #1
	cmp	x16, x8
	b.eq	LBB0_8
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
	madd	x0, x16, x15, x17
	ldr	s0, [x0]
	cmp	w20, #1
	b.lt	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	madd	x1, x16, x15, x17
	ldr	x1, [x1, #16]
	add	x1, x1, x12, lsl #2
	mov	x2, x14
LBB0_14:                                ;   Parent Loop BB0_9 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	s1, [x1]
	fsub	s0, s1, s0
	str	s0, [x1], #4
	ldr	s0, [x9]
	fmul	s0, s1, s0
	subs	x2, x2, #1
	b.ne	LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=2
	cmp	x13, x11
	b.eq	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	str	s0, [x0]
	b	LBB0_11
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CELT_OVERLAP,4,2               ; @CELT_OVERLAP
	.comm	_CELT_EMPH_COEFF,4,2            ; @CELT_EMPH_COEFF
	.no_dead_strip	_celt_apply_preemph_filter
.subsections_via_symbols
