	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_aac_apply_tns               ## -- Begin function ff_aac_apply_tns
	.p2align	4, 0x90
_ff_aac_apply_tns:                      ## @ff_aac_apply_tns
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	16(%rsi), %edi
	movl	20(%rsi), %esi
	callq	_FFMIN
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_TNS_MAX_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movl	24(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.1:
	movq	40(%r15), %rax
	xorl	%r12d, %r12d
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r15), %ecx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%ecx, %rdx
	subl	$-128, -56(%rbp)                ## 4-byte Folded Spill
	cmpq	%rdx, %r12
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##         Child Loop BB0_9 Depth 4
	cmpl	$0, (%rax,%r12,4)
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	28(%r15), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	40(%r15), %rax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movslq	(%rax,%r12,4), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_12
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##         Child Loop BB0_9 Depth 4
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movslq	%r14d, %rsi
	movq	72(%r15), %rax
	movq	(%rax,%r12,8), %rax
	subq	(%rax,%rbx,8), %rsi
	xorl	%edi, %edi
	callq	_FFMAX
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rbx,4), %ebx
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	64(%r12), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edi
	movl	%ebx, %esi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_compute_lpc_coefs
	movq	32(%r12), %r15
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-84(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_FFMIN
	cltq
	movl	(%r15,%rax,4), %r15d
	movq	32(%r12), %r12
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	_FFMIN
	cltq
	movl	(%r12,%rax,4), %eax
	movl	%eax, %ecx
	subl	%r15d, %ecx
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	56(%rcx), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	decl	%eax
	testq	%rcx, %rcx
	cmovel	%r15d, %eax
	xorl	%edx, %edx
	negq	%rcx
	movl	$0, %ecx
	sbbq	%rcx, %rcx
	orq	$1, %rcx
	addl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	movslq	%eax, %rsi
	movq	%rsi, %rax
	subq	%rcx, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=3
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	incl	%edx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	addq	%rax, %rsi
	addq	%rax, -104(%rbp)                ## 8-byte Folded Spill
	cmpl	-88(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%r14d, %ebx
	je	LBB0_11
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_9 Depth 4
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, %rdi
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%ebx, %esi
	callq	_FFMIN
	testl	%eax, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	%ebx, %r14d
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=3
	movq	-104(%rbp), %r13                ## 8-byte Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_7 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movss	(%r15,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	8(%r12), %rax
	mulss	(%rax,%r13,4), %xmm0
	movq	(%r12), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addss	(%rax,%rcx,4), %xmm0
	movss	%xmm0, (%rax,%rcx,4)
	movq	-128(%rbp), %rdi                ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r14d, %esi
	callq	_FFMIN
	cltq
	incq	%rbx
	subq	-112(%rbp), %r13                ## 8-byte Folded Reload
	cmpq	%rax, %rbx
	jl	LBB0_9
	jmp	LBB0_10
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TNS_MAX_ORDER,4,2              ## @TNS_MAX_ORDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_aac_apply_tns               ; -- Begin function ff_aac_apply_tns
	.p2align	2
_ff_aac_apply_tns:                      ; @ff_aac_apply_tns
	.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, #48
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	w0, w1, [x1, #16]
	bl	_FFMIN
	stur	w0, [x29, #-124]                ; 4-byte Folded Spill
Lloh3:
	adrp	x8, _TNS_MAX_ORDER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TNS_MAX_ORDER@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	x21, x9, x8
	mov	sp, x21
	ldr	w9, [x19, #24]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x11, #0
	stur	wzr, [x29, #-128]               ; 4-byte Folded Spill
	ldr	x8, [x19, #40]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19, #24]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #1
	ldur	w10, [x29, #-128]               ; 4-byte Folded Reload
	add	w10, w10, #128
	stur	w10, [x29, #-128]               ; 4-byte Folded Spill
	cmp	x11, w9, sxtw
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;         Child Loop BB0_13 Depth 4
	ldr	w10, [x8, x11, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
	ldr	w8, [x19, #28]
	stur	w8, [x29, #-108]                ; 4-byte Folded Spill
	stur	x11, [x29, #-120]               ; 8-byte Folded Spill
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldur	x22, [x29, #-104]               ; 8-byte Folded Reload
	add	x22, x22, #1
	ldr	x8, [x19, #40]
	ldur	x11, [x29, #-120]               ; 8-byte Folded Reload
	ldrsw	x9, [x8, x11, lsl #2]
	cmp	x22, x9
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;         Child Loop BB0_13 Depth 4
	ldur	w24, [x29, #-108]               ; 4-byte Folded Reload
	sxtw	x8, w24
	ldr	x9, [x19, #72]
	lsl	x20, x11, #3
	ldr	x9, [x9, x20]
	ldr	x9, [x9, x22, lsl #3]
	sub	x1, x8, x9
	mov	w0, #0
	bl	_FFMAX
	stur	w0, [x29, #-108]                ; 4-byte Folded Spill
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x20]
	stur	x22, [x29, #-104]               ; 8-byte Folded Spill
	ldr	w23, [x8, x22, lsl #2]
	cbz	w23, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x19, #64]
	ldur	x9, [x29, #-120]                ; 8-byte Folded Reload
	ldr	x8, [x8, x9, lsl #3]
	ldur	x9, [x29, #-104]                ; 8-byte Folded Reload
	ldr	w0, [x8, x9, lsl #2]
	mov	x1, x23
	mov	x2, x21
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_compute_lpc_coefs
	ldr	x20, [x19, #32]
	ldur	w0, [x29, #-108]                ; 4-byte Folded Reload
	ldur	w25, [x29, #-124]               ; 4-byte Folded Reload
	mov	x1, x25
	bl	_FFMIN
	ldr	w20, [x20, w0, sxtw #2]
	ldr	x22, [x19, #32]
	mov	x0, x24
	mov	x1, x25
	bl	_FFMIN
	ldr	w8, [x22, w0, sxtw #2]
	sub	w9, w8, w20
	stur	w9, [x29, #-92]                 ; 4-byte Folded Spill
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w24, #0
	ldr	x9, [x19, #56]
	ldur	x10, [x29, #-120]               ; 8-byte Folded Reload
	ldr	x9, [x9, x10, lsl #3]
	ldur	x10, [x29, #-104]               ; 8-byte Folded Reload
	ldr	x9, [x9, x10, lsl #3]
	sub	w8, w8, #1
	cmp	x9, #0
	csel	w8, w20, w8, eq
	mov	w9, #1
	cneg	x26, x9, ne
	ldur	w9, [x29, #-128]                ; 4-byte Folded Reload
	add	w8, w9, w8
	sxtw	x20, w8
	sbfiz	x8, x8, #2, #32
	lsl	x25, x26, #2
	sub	x27, x8, x25
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=3
	add	w24, w24, #1
	add	x20, x20, x26
	add	x27, x27, x25
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cmp	w24, w8
	b.eq	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_13 Depth 4
	mov	x0, x24
	mov	x1, x23
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	mov	x28, #0
	mov	x22, x27
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ;       Parent Loop BB0_11 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	s0, [x21, x28, lsl #2]
	ldp	x9, x8, [x19]
	ldr	s1, [x8, x22]
	lsl	x8, x20, #2
	ldr	s2, [x9, x8]
	fmadd	s0, s0, s1, s2
	str	s0, [x9, x8]
	mov	x0, x24
	mov	x1, x23
	bl	_FFMIN
	add	x28, x28, #1
	sub	x22, x22, x25
	cmp	x28, w0, sxtw
	b.lt	LBB0_13
	b	LBB0_10
LBB0_14:
	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_16
; %bb.15:
	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_16:
	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	_TNS_MAX_ORDER,4,2              ; @TNS_MAX_ORDER
.subsections_via_symbols
