	.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_tilt_comp
LCPI0_0:
	.long	16384                           ## 0x4000
	.long	16384                           ## 0x4000
	.long	16384                           ## 0x4000
	.long	16384                           ## 0x4000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_apply_tilt_comp:                       ## @apply_tilt_comp
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testl	%edx, %edx
	movl	$16384, %ecx                    ## imm = 0x4000
	movl	$2048, %r12d                    ## imm = 0x800
	cmovgl	%ecx, %r12d
	movq	_G729_TILT_FACTOR_MINUS@GOTPCREL(%rip), %rcx
	cmovgq	_G729_TILT_FACTOR_PLUS@GOTPCREL(%rip), %rcx
	setg	%al
	leal	(%rax,%rax,2), %r13d
	imull	(%rcx), %r14d
	orl	$12, %r13d
	addl	$16384, %r14d                   ## imm = 0x4000
	movl	%r14d, %edi
	sarl	$15, %edi
	movl	%r12d, %r15d
	shll	$15, %r15d
	callq	_FFABS
	movl	$32768, %edi                    ## imm = 0x8000
	subq	%rax, %rdi
	callq	_av_clip_int16
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	movl	%r15d, %eax
	xorl	%edx, %edx
	idivl	%ecx
	movl	%eax, %r11d
	sarl	$16, %r14d
	movslq	%edi, %rax
	movl	-4(%rbx,%rax,4), %eax
	cmpl	$1, %edi
	jle	LBB0_3
## %bb.1:
	leal	-1(%rdi), %ecx
	leal	(%r14,%r14), %r10d
	addl	%r11d, %r11d
	movl	%ecx, %r9d
	cmpl	$1, %ecx
	movq	%r9, %rdx
	adcq	$-1, %rdx
	incq	%rdx
	cmpq	$8, %rdx
	jae	LBB0_4
## %bb.2:
	movq	%r9, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_3:
	addl	%r11d, %r11d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_4:
	cmpl	$1, %ecx
	movq	%r9, %rcx
	adcq	$-1, %rcx
	addl	$-2, %edi
	cmpl	%ecx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jb	LBB0_14
## %bb.5:
	shrq	$32, %rcx
	jne	LBB0_14
## %bb.6:
	leaq	(%rbx,%r9,4), %rcx
	leaq	(%rsi,%r9,4), %r8
	subq	%r8, %rcx
	cmpq	$32, %rcx
	jb	LBB0_14
## %bb.7:
	leaq	(%rbx,%rdi,4), %rdi
	subq	%r8, %rdi
	cmpq	$32, %rdi
	jb	LBB0_14
## %bb.8:
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rax
	andq	$-8, %rax
	movq	%r9, %rdi
	subq	%rax, %rdi
	movd	%r10d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movd	%r11d, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	movd	%r12d, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	movd	%r13d, %xmm4
	movq	%rax, %r14
	negq	%rax
	movl	$4294967295, %edx               ## imm = 0xFFFFFFFF
	addq	%r9, %rdx
	leaq	(%rbx,%r9,4), %r15
	addq	$-12, %r15
	leaq	(%rsi,%r9,4), %rcx
	addq	$-12, %rcx
	xorl	%r8d, %r8d
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [16384,16384,16384,16384]
	pmovzxdq	%xmm4, %xmm4                    ## xmm4 = xmm4[0],zero,xmm4[1],zero
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%r8), %r9d
	movdqu	-28(%rbx,%r9,4), %xmm5
	movdqu	-12(%rbx,%r9,4), %xmm6
	pshufd	$27, %xmm6, %xmm6               ## xmm6 = xmm6[3,2,1,0]
	pshufd	$27, %xmm5, %xmm5               ## xmm5 = xmm5[3,2,1,0]
	pmulld	%xmm0, %xmm6
	pmulld	%xmm0, %xmm5
	paddd	%xmm8, %xmm6
	paddd	%xmm8, %xmm5
	movdqu	-16(%r15,%r8,4), %xmm7
	movdqu	(%r15,%r8,4), %xmm3
	pshufd	$27, %xmm3, %xmm3               ## xmm3 = xmm3[3,2,1,0]
	pshufd	$27, %xmm7, %xmm7               ## xmm7 = xmm7[3,2,1,0]
	psrad	$15, %xmm6
	paddd	%xmm3, %xmm6
	psrad	$15, %xmm5
	paddd	%xmm7, %xmm5
	pmulld	%xmm1, %xmm6
	pmulld	%xmm1, %xmm5
	paddd	%xmm2, %xmm6
	paddd	%xmm2, %xmm5
	psrad	%xmm4, %xmm6
	psrad	%xmm4, %xmm5
	pshufd	$27, %xmm6, %xmm3               ## xmm3 = xmm6[3,2,1,0]
	movdqu	%xmm3, (%rcx,%r8,4)
	pshufd	$27, %xmm5, %xmm3               ## xmm3 = xmm5[3,2,1,0]
	movdqu	%xmm3, -16(%rcx,%r8,4)
	addq	$-8, %r8
	cmpq	%r8, %rax
	jne	LBB0_9
## %bb.10:
	cmpq	%r14, -64(%rbp)                 ## 8-byte Folded Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_15
	jmp	LBB0_17
LBB0_14:
	movq	%r9, %rdi
LBB0_15:
	incq	%rdi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rdi), %ecx
	movl	(%rbx,%rcx,4), %edx
	imull	%r10d, %edx
	addl	$16384, %edx                    ## imm = 0x4000
	sarl	$15, %edx
	addl	-4(%rbx,%rdi,4), %edx
	imull	%r11d, %edx
	addl	%r12d, %edx
	movl	%r13d, %ecx
	sarl	%cl, %edx
	movl	%edx, -4(%rsi,%rdi,4)
	decq	%rdi
	cmpq	$1, %rdi
	ja	LBB0_16
LBB0_17:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	imull	%r14d, %ecx
	leal	(%rcx,%rcx), %edx
	addl	$16384, %edx                    ## imm = 0x4000
	sarl	$15, %edx
	addl	(%rbx), %edx
	imull	%r11d, %edx
	addl	%r12d, %edx
	movl	%r13d, %ecx
	sarl	%cl, %edx
	movl	%edx, (%rsi)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_G729_TILT_FACTOR_PLUS,4,2      ## @G729_TILT_FACTOR_PLUS
	.comm	_G729_TILT_FACTOR_MINUS,4,2     ## @G729_TILT_FACTOR_MINUS
	.no_dead_strip	_apply_tilt_comp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_tilt_comp
_apply_tilt_comp:                       ; @apply_tilt_comp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x20, x1
	mov	x19, x0
	mov	w8, #2048
	mov	w9, #16384
	cmp	w2, #0
	csel	w23, w9, w8, gt
	mov	w8, #12
	mov	w9, #15
	csel	w24, w9, w8, gt
Lloh0:
	adrp	x8, _G729_TILT_FACTOR_PLUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G729_TILT_FACTOR_PLUS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _G729_TILT_FACTOR_MINUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _G729_TILT_FACTOR_MINUS@GOTPAGEOFF]
	csel	x8, x8, x9, gt
	ldr	w8, [x8]
	orr	w9, wzr, #0x4000
	madd	w25, w8, w2, w9
	asr	w0, w25, #15
	lsl	w26, w23, #15
	bl	_FFABS
	mov	w8, #32768
	sub	x0, x8, x0
	bl	_av_clip_int16
	asr	w8, w25, #16
	sdiv	w9, w26, w0
	subs	w14, w22, #1
	ldr	w0, [x20, w14, sxtw #2]
	b.le	LBB0_3
; %bb.1:
	lsl	w10, w8, #1
	lsl	w9, w9, #1
	cmp	w14, #0
	cset	w11, ne
	sub	x11, x14, x11
	add	x11, x11, #1
	cmp	x11, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x12, x14
	b	LBB0_15
LBB0_3:
	lsl	w9, w9, #1
	b	LBB0_16
LBB0_4:
	cmp	w14, #0
	cset	w13, ne
	sub	w12, w22, #2
	sub	x13, x14, x13
	cmp	w12, w13
	b.lo	LBB0_11
; %bb.5:
	lsr	x13, x13, #32
	cbnz	x13, LBB0_12
; %bb.6:
	lsl	x15, x14, #2
	add	x16, x15, x20
	add	x13, x15, x19
	sub	x16, x16, x13
	cmp	x16, #64
	b.lo	LBB0_14
; %bb.7:
	add	x12, x20, w12, uxtw #2
	sub	x12, x12, x13
	cmp	x12, #64
	b.lo	LBB0_13
; %bb.8:
	and	x13, x11, #0xfffffffffffffff0
	dup.4s	v0, w10
	dup.4s	v1, w9
	sub	x12, x14, x13
	dup.4s	v2, w23
	dup.4s	v3, w24
	mov	w16, #-1
	add	x14, x14, x16
	sub	x16, x15, #28
	add	x15, x19, x16
	add	x16, x20, x16
	neg.4s	v3, v3
	mov	x17, x13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x20, w14, uxtw #2
	ldur	q4, [x1, #-12]
	rev64.4s	v4, v4
	ext.16b	v4, v4, v4, #8
	ldur	q5, [x1, #-28]
	rev64.4s	v5, v5
	ext.16b	v5, v5, v5, #8
	ldur	q6, [x1, #-44]
	rev64.4s	v6, v6
	ext.16b	v6, v6, v6, #8
	ldur	q7, [x1, #-60]
	rev64.4s	v7, v7
	ext.16b	v7, v7, v7, #8
	movi.4s	v16, #64, lsl #8
	mla.4s	v16, v0, v4
	movi.4s	v4, #64, lsl #8
	mla.4s	v4, v0, v5
	movi.4s	v5, #64, lsl #8
	mla.4s	v5, v0, v6
	movi.4s	v6, #64, lsl #8
	mla.4s	v6, v0, v7
	ldp	q17, q7, [x16]
	rev64.4s	v7, v7
	ext.16b	v7, v7, v7, #8
	rev64.4s	v17, v17
	ext.16b	v17, v17, v17, #8
	ldp	q19, q18, [x16, #-32]
	rev64.4s	v18, v18
	ext.16b	v18, v18, v18, #8
	rev64.4s	v19, v19
	ext.16b	v19, v19, v19, #8
	ssra.4s	v7, v16, #15
	ssra.4s	v17, v4, #15
	ssra.4s	v18, v5, #15
	ssra.4s	v19, v6, #15
	mov.16b	v4, v2
	mla.4s	v4, v1, v7
	mov.16b	v5, v2
	mla.4s	v5, v1, v17
	mov.16b	v6, v2
	mla.4s	v6, v1, v18
	mov.16b	v7, v2
	mla.4s	v7, v1, v19
	sshl.4s	v4, v4, v3
	sshl.4s	v5, v5, v3
	sshl.4s	v6, v6, v3
	sshl.4s	v7, v7, v3
	rev64.4s	v4, v4
	ext.16b	v4, v4, v4, #8
	rev64.4s	v5, v5
	ext.16b	v5, v5, v5, #8
	stp	q5, q4, [x15]
	rev64.4s	v4, v6
	ext.16b	v4, v4, v4, #8
	rev64.4s	v5, v7
	ext.16b	v5, v5, v5, #8
	stp	q5, q4, [x15, #-32]
	sub	x14, x14, #16
	sub	x15, x15, #64
	sub	x16, x16, #64
	sub	x17, x17, #16
	cbnz	x17, LBB0_9
; %bb.10:
	cmp	x11, x13
	b.ne	LBB0_15
	b	LBB0_16
LBB0_11:
	mov	x12, x14
	b	LBB0_15
LBB0_12:
	mov	x12, x14
	b	LBB0_15
LBB0_13:
	mov	x12, x14
	b	LBB0_15
LBB0_14:
	mov	x12, x14
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	subs	x11, x12, #1
	ldr	w13, [x20, w11, uxtw #2]
	lsl	x12, x12, #2
	mul	w13, w10, w13
	add	w13, w13, #4, lsl #12           ; =16384
	ldr	w14, [x20, x12]
	add	w13, w14, w13, asr #15
	mul	w13, w9, w13
	add	w13, w13, w23
	asr	w13, w13, w24
	str	w13, [x19, x12]
	mov	x12, x11
	b.hi	LBB0_15
LBB0_16:
	mul	w8, w21, w8
	lsl	w8, w8, #1
	add	w8, w8, #4, lsl #12             ; =16384
	ldr	w10, [x20]
	add	w8, w10, w8, asr #15
	madd	w8, w9, w8, w23
	asr	w8, w8, w24
	str	w8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_G729_TILT_FACTOR_PLUS,4,2      ; @G729_TILT_FACTOR_PLUS
	.comm	_G729_TILT_FACTOR_MINUS,4,2     ; @G729_TILT_FACTOR_MINUS
	.no_dead_strip	_apply_tilt_comp
.subsections_via_symbols
