	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_ltp
_apply_ltp:                             ## @apply_ltp
	.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
	movq	16(%rsi), %rax
	movq	(%rax), %rax
	movq	_EIGHT_SHORT_SEQUENCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	8(%rsi), %r13
	movq	8(%rsi), %r12
	movq	72(%rsi), %rdx
	movq	16(%rdi), %rbx
	movl	32(%rsi), %eax
	leal	1024(%rax), %esi
	cmpl	$1024, %eax                     ## imm = 0x400
	movl	$2048, %ecx                     ## imm = 0x800
	cmovgel	%ecx, %esi
	testl	%esi, %esi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.3:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	64(%r14), %rdx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	movl	(%rdx,%rax,4), %edi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	48(%r14), %esi
	callq	_AAC_MUL30
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
	cmpl	$1, %ecx
	je	LBB0_7
## %bb.4:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r15d
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	64(%r14), %rax
	movl	32(%r14), %ecx
	movl	%r13d, %edx
	subl	%ecx, %edx
	addl	$2048, %edx                     ## imm = 0x800
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	48(%r14), %esi
	callq	_AAC_MUL30
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%r13,8)
	incq	%r13
	cmpq	%r13, %r15
	jne	LBB0_5
## %bb.6:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_2:
	xorl	%ecx, %ecx
LBB0_7:
	movl	%ecx, %eax
	leaq	(%rdx,%rax,8), %rdi
	shll	$3, %ecx
	movq	%rdx, %r13
	movl	$16384, %edx                    ## imm = 0x4000
	subl	%ecx, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	*8(%r15)
	cmpq	$0, 56(%r14)
	je	LBB0_9
## %bb.8:
	leaq	56(%r14), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	*(%r15)
LBB0_9:
	movl	24(%r14), %edi
	movq	_MAX_LTP_LONG_SFB@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_FFMIN
	testl	%eax, %eax
	jle	LBB0_17
## %bb.10:
	xorl	%eax, %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rax
	movq	%rax, %r13
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	24(%r14), %edi
	movl	(%r15), %esi
	callq	_FFMIN
	movslq	%eax, %rcx
	movq	%r13, %rax
	cmpq	%rcx, %r13
	jge	LBB0_17
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	40(%r14), %rcx
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	(%r12,%rax,4), %rcx
	leaq	1(%rax), %r13
	cmpl	4(%r12,%rax,4), %ecx
	jge	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %rdx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%rcx,8), %esi
	addl	%esi, (%rdx,%rcx,4)
	incq	%rcx
	movslq	4(%r12,%rax,4), %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_15
	jmp	LBB0_16
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIGHT_SHORT_SEQUENCE,8,3       ## @EIGHT_SHORT_SEQUENCE
	.comm	_MAX_LTP_LONG_SFB,4,2           ## @MAX_LTP_LONG_SFB
	.no_dead_strip	_apply_ltp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_ltp
_apply_ltp:                             ; @apply_ltp
	.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, x1
	ldp	x24, x8, [x21, #8]!
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _EIGHT_SHORT_SEQUENCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EIGHT_SHORT_SEQUENCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.1:
	mov	x19, x1
	mov	x22, x0
	ldr	x23, [x1, #72]
	ldr	x20, [x0, #16]
	ldr	w8, [x1, #32]
	add	w10, w8, #1024
	mov	w9, #2048
	cmp	w8, #1024
	csel	w25, w10, w9, lt
	cmp	w25, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	x10, [x19, #64]
	sub	w8, w9, w8
	ldr	w0, [x10, w8, sxtw #2]
	ldr	w1, [x19, #48]
	bl	_AAC_MUL30
	str	x0, [x23]
	cmp	w25, #1
	b.eq	LBB0_6
; %bb.3:
	mov	w26, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #32]
	ldr	x9, [x19, #64]
	sub	w8, w26, w8
	add	w8, w8, #2048
	ldr	w0, [x9, w8, sxtw #2]
	ldr	w1, [x19, #48]
	bl	_AAC_MUL30
	str	x0, [x23, x26, lsl #3]
	add	x26, x26, #1
	cmp	x25, x26
	b.ne	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w25, #0
LBB0_6:
	add	x0, x23, w25, uxtw #3
	mov	w8, #16384
	sub	w2, w8, w25, lsl #3
	mov	w1, #0
	bl	_memset
	ldr	x8, [x22, #8]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	mov	x3, x21
	blr	x8
	mov	x1, x19
	ldr	x8, [x1, #56]!
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x22]
	mov	x0, x20
	mov	x2, x21
	mov	w3, #0
	blr	x8
LBB0_8:
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x21, _MAX_LTP_LONG_SFB@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_LTP_LONG_SFB@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.9:
	mov	x22, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x19, #24]
	ldr	w1, [x21]
	bl	_FFMIN
	cmp	x22, w0, sxtw
	b.ge	LBB0_16
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x22, lsl #3]
	cbz	x8, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrsw	x8, [x24, x22, lsl #2]
	add	x22, x22, #1
	ldr	w9, [x24, x22, lsl #2]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x19]
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x20, x8, lsl #3]
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	add	w10, w12, w10
	str	w10, [x9, x11]
	add	x8, x8, #1
	ldrsw	x10, [x24, x22, lsl #2]
	cmp	x8, x10
	b.lt	LBB0_15
	b	LBB0_11
LBB0_16:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIGHT_SHORT_SEQUENCE,8,3       ; @EIGHT_SHORT_SEQUENCE
	.comm	_MAX_LTP_LONG_SFB,4,2           ; @MAX_LTP_LONG_SFB
	.no_dead_strip	_apply_ltp
.subsections_via_symbols
