	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function get_lag
LCPI0_0:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_get_lag:                               ## @get_lag
	.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	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorps	%xmm0, %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	decl	%r14d
	cmpl	$2048, %r12d                    ## imm = 0x800
	je	LBB0_15
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	leal	-1024(%r12), %esi
	xorl	%edi, %edi
	callq	_FFMAX
	movq	%rax, %r13
	xorps	%xmm1, %xmm1
	cmpl	$2047, %r13d                    ## imm = 0x7FF
	jg	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r13d, %rax
	xorps	%xmm2, %xmm2
	testb	$1, %r13b
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1024, %ecx                     ## imm = 0x400
	subl	%r12d, %ecx
	movl	%r13d, %edx
	addl	%ecx, %edx
	movslq	%edx, %rcx
	movss	(%rbx,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	insertps	$16, (%r15,%rax,4), %xmm1       ## xmm1 = xmm1[0],mem[0],xmm1[2,3]
	movsldup	%xmm0, %xmm2                    ## xmm2 = xmm0[0,0,2,2]
	mulps	%xmm1, %xmm2
	addps	LCPI0_1(%rip), %xmm2
	incq	%rax
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$2047, %r13d                    ## imm = 0x7FF
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rax), %rcx
	addl	%r14d, %eax
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	1024(%rax), %edx
	movslq	%edx, %rdx
	movss	(%rbx,%rdx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movsldup	%xmm0, %xmm1                    ## xmm1 = xmm0[0,0,2,2]
	insertps	$16, -4(%r15,%rcx,4), %xmm0     ## xmm0 = xmm0[0],mem[0],xmm0[2,3]
	mulps	%xmm0, %xmm1
	addps	%xmm2, %xmm1
	leal	1025(%rax), %edx
	movslq	%edx, %rdx
	movss	(%rbx,%rdx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movsldup	%xmm0, %xmm2                    ## xmm2 = xmm0[0,0,2,2]
	insertps	$16, (%r15,%rcx,4), %xmm0       ## xmm0 = xmm0[0],mem[0],xmm0[2,3]
	mulps	%xmm0, %xmm2
	addps	%xmm1, %xmm2
	addq	$2, %rcx
	addl	$2, %eax
	cmpl	$2049, %ecx                     ## imm = 0x801
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm2
	jbe	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	ucomiss	LCPI0_0(%rip), %xmm2
	jb	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	xorps	%xmm0, %xmm0
	sqrtss	%xmm2, %xmm0
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movaps	%xmm2, %xmm0
	movaps	%xmm2, -80(%rbp)                ## 16-byte Spill
	callq	_sqrt
	movaps	-80(%rbp), %xmm2                ## 16-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movshdup	%xmm2, %xmm1                    ## xmm1 = xmm2[1,1,3,3]
	divss	%xmm0, %xmm1
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-52(%rbp), %xmm0        ## 4-byte Folded Reload
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	cvttss2si	%xmm1, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$2048, %eax                     ## imm = 0x800
	subl	%r13d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	divss	%xmm0, %xmm1
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, %eax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_14
LBB0_15:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$11, %esi
	callq	_av_clip_uintp2
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	_ltp_coef@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	$8, %esi
	callq	_quant_array_idx
	movq	%rax, (%rbx)
	movq	(%r14), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 8(%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ltp_coef,8,3                   ## @ltp_coef
	.no_dead_strip	_get_lag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_lag
_get_lag:                               ; @get_lag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -88
	.cfi_offset b9, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w23, #0
	mov	w22, #0
	mov	w24, #0
	movi	d8, #0000000000000000
	mov	w25, #1024
	mov	w26, #2048
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	sub	w25, w25, #1
	cmp	w23, #2048
	b.eq	LBB0_11
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	sub	w1, w23, #1024
	mov	w0, #0
	bl	_FFMAX
	movi	d1, #0000000000000000
	cmp	w0, #2047
	b.gt	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x20, w0, sxtw #2
	movi	d0, #0000000000000000
	mov	x9, x0
	movi	d2, #0000000000000000
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w10, w25, w9
	ldr	s1, [x8], #4
	ldr	s3, [x21, w10, sxtw #2]
	fmadd	s2, s1, s3, s2
	fmadd	s0, s3, s3, s0
	add	w9, w9, #1
	cmp	w9, #2048
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	movi	d1, #0000000000000000
	fcmp	s0, #0.0
	b.le	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	fsqrt	s1, s0
	fcmp	s1, s1
	b.vs	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	fdiv	s1, s2, s1
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	scvtf	s0, w24
	fcmp	s1, s0
	b.le	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	fcvtzs	w24, s1
	sub	w8, w26, w0
	scvtf	s0, w8
	fdiv	s8, s1, s0
	mov	x22, x23
	b	LBB0_1
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	str	s2, [sp, #4]                    ; 4-byte Folded Spill
	bl	_sqrt
	ldr	s2, [sp, #4]                    ; 4-byte Folded Reload
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	fmov	s1, s0
	b	LBB0_7
LBB0_11:
	mov	x0, x22
	mov	w1, #11
	bl	_av_clip_uintp2
	mov	w1, #0
	bl	_FFMAX
	str	x0, [x19, #16]
Lloh0:
	adrp	x20, _ltp_coef@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ltp_coef@GOTPAGEOFF]
	ldr	x0, [x20]
	fmov	s0, s8
	mov	w1, #8
	bl	_quant_array_idx
	str	x0, [x19]
	ldr	x8, [x20]
	ldr	w8, [x8, x0, lsl #2]
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ltp_coef,8,3                   ; @ltp_coef
	.no_dead_strip	_get_lag
.subsections_via_symbols
