	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_lowcomp
_calc_lowcomp:                          ## @calc_lowcomp
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -80(%rbp)
	movdqa	%xmm0, -96(%rbp)
	movdqa	%xmm0, -112(%rbp)
	movdqa	%xmm0, -128(%rbp)
	movl	$0, -64(%rbp)
	movl	$4, -132(%rbp)                  ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%r12
	incl	-132(%rbp)                      ## 4-byte Folded Spill
	cmpq	$11, %r12
	je	LBB0_18
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	-3(%r12), %edi
	xorl	%esi, %esi
	callq	_FFMAX
	leaq	3(%r12), %rdx
	movslq	%eax, %rcx
	movl	$0, %r14d
	movl	$0, %eax
	cmpq	%rcx, %rdx
	movq	%r12, %rdx
	jl	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-132(%rbp), %eax                ## 4-byte Reload
	movl	%eax, %r13d
	subl	%ecx, %r13d
	movq	-144(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movl	%ecx, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_lwc_gain_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx,%r12,4), %esi
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	addl	(%rcx,%r12,4), %esi
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	addl	%r12d, %ecx
	cmpl	%ebx, %esi
	cmovgl	%ecx, %r14d
	cmovgl	%esi, %ebx
	movl	%eax, %edi
	movq	%rdx, %r15
	callq	_log_add
	movq	%r15, %rdx
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_3
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-144(%rbp), %r15                ## 8-byte Reload
	cmpl	%eax, (%r15,%rdx,4)
	movq	%rdx, %r12
	jge	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-3(%r14), %edi
	xorl	%esi, %esi
	callq	_FFMAX
	movl	%eax, %r13d
	movl	$3, %edi
	subl	%r14d, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	leal	3(%r14), %ecx
	cmpl	%ecx, %r13d
	jg	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_lwc_adj_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movslq	%r13d, %r10
	movslq	%eax, %r9
	movl	%r14d, %esi
	subl	%r13d, %esi
	addl	$3, %esi
	cmpl	$3, %esi
	jb	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rsi
	movq	%rsi, %r11
	andq	$-4, %r11
	leaq	-4(%r11), %rcx
	movq	%rcx, %rax
	shrq	$2, %rax
	incq	%rax
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	andq	$-2, %rbx
	leaq	-104(%rbp), %rcx
	leaq	(%rcx,%r10,4), %rcx
	leaq	(%r8,%r9,8), %rdi
	addq	$48, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-48(%rdi,%rdx,8), %xmm0
	movdqu	-32(%rdi,%rdx,8), %xmm1
	movq	-24(%rcx,%rdx,4), %xmm2         ## xmm2 = mem[0],zero
	movq	-16(%rcx,%rdx,4), %xmm3         ## xmm3 = mem[0],zero
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm1, %xmm1              ## xmm1 = xmm1[0,2,2,3]
	paddd	%xmm3, %xmm1
	movq	%xmm0, -24(%rcx,%rdx,4)
	movq	%xmm1, -16(%rcx,%rdx,4)
	movdqu	-16(%rdi,%rdx,8), %xmm0
	movdqu	(%rdi,%rdx,8), %xmm1
	movq	-8(%rcx,%rdx,4), %xmm2          ## xmm2 = mem[0],zero
	movq	(%rcx,%rdx,4), %xmm3            ## xmm3 = mem[0],zero
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm1, %xmm1              ## xmm1 = xmm1[0,2,2,3]
	paddd	%xmm3, %xmm1
	movq	%xmm0, -8(%rcx,%rdx,4)
	movq	%xmm1, (%rcx,%rdx,4)
	addq	$8, %rdx
	addq	$-2, %rbx
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, %al
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%rdx,%r10), %rax
	addq	%r9, %rdx
	movdqu	(%r8,%rdx,8), %xmm0
	movdqu	16(%r8,%rdx,8), %xmm1
	movq	-128(%rbp,%rax,4), %xmm2        ## xmm2 = mem[0],zero
	movq	-120(%rbp,%rax,4), %xmm3        ## xmm3 = mem[0],zero
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm1, %xmm1              ## xmm1 = xmm1[0,2,2,3]
	paddd	%xmm3, %xmm1
	movq	%xmm0, -128(%rbp,%rax,4)
	movq	%xmm1, -120(%rbp,%rax,4)
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r11, %rsi
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	addq	%r11, %r9
	addq	%r11, %r10
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%r8,%r9,8), %rax
	leaq	-128(,%r10,4), %rcx
	addq	%rbp, %rcx
	subl	%r10d, %r14d
	addl	$4, %r14d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rdx,8), %esi
	addl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	cmpl	%edx, %r14d
	jne	LBB0_16
	jmp	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edx, %edx
	testb	$1, %al
	jne	LBB0_12
	jmp	LBB0_13
LBB0_18:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	-128(%rbp,%rbx,4), %edi
	movl	$-512, %esi                     ## imm = 0xFE00
	callq	_FFMAX
	addl	(%r15,%rbx,4), %eax
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	cmpq	$16, %rbx
	jne	LBB0_19
## %bb.20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MIN,4,2                    ## @INT_MIN
	.comm	_lwc_gain_tab,8,3               ## @lwc_gain_tab
	.comm	_lwc_adj_tab,8,3                ## @lwc_adj_tab
	.no_dead_strip	_calc_lowcomp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_lowcomp
_calc_lowcomp:                          ; @calc_lowcomp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x19, x0
	mov	x21, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	str	wzr, [sp, #80]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	add	x8, sp, #16
	add	x8, x8, #16
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w25, #4
Lloh3:
	adrp	x28, _lwc_gain_tab@GOTPAGE
Lloh4:
	ldr	x28, [x28, _lwc_gain_tab@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	add	w25, w25, #1
	cmp	x21, #11
	b.eq	LBB0_14
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
Lloh5:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	sub	w0, w21, #3
	mov	w1, #0
	bl	_FFMAX
	mov	x8, x0
	mov	w22, #0
	mov	w0, #0
	add	x9, x21, #3
	sxtw	x8, w8
	cmp	x9, x8
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, #0
	mov	w0, #0
	mov	w22, #0
	sub	w23, w25, w8
	and	x26, x8, #0xffffffff
	add	x24, x19, x8, lsl #2
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x8, x27, #2
	ldr	w9, [x24, x8]
	ldr	x10, [x28]
	ldr	x10, [x10, x21, lsl #3]
	ldr	w8, [x10, x8]
	add	w10, w26, w27
	add	w1, w8, w9
	cmp	w1, w20
	csel	w22, w10, w22, gt
	csel	w20, w1, w20, gt
	bl	_log_add
	add	x27, x27, #1
	cmp	x23, x27
	b.ne	LBB0_4
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, x21, lsl #2]
	cmp	w8, w0
	b.ge	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w0, w22, #3
	mov	w1, #0
	bl	_FFMAX
	mov	x20, x0
	mov	w8, #3
	sub	w0, w8, w22
	mov	w1, #0
	bl	_FFMAX
                                        ; kill: def $w0 killed $w0 def $x0
	add	w8, w22, #3
	cmp	w20, w8
	b.gt	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh8:
	adrp	x8, _lwc_adj_tab@GOTPAGE
Lloh9:
	ldr	x8, [x8, _lwc_adj_tab@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	sxtw	x13, w20
	sxtw	x14, w0
	sub	w9, w22, w20
	add	w9, w9, #3
	cmp	w9, #7
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, x14
	mov	x9, x13
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x9, #1
	and	x12, x11, #0x1fffffff8
	add	x10, x12, x14
	add	x9, x12, x13
	ldr	x15, [sp, #8]                   ; 8-byte Folded Reload
	add	x13, x15, x13, lsl #2
	add	x14, x8, x14, lsl #3
	add	x14, x14, #32
	mov	x15, x12
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	ldp	d4, d5, [x13, #-16]
	ldp	d6, d7, [x13]
	xtn.2s	v0, v0
	xtn.2s	v1, v1
	xtn.2s	v2, v2
	xtn.2s	v3, v3
	add.2s	v0, v4, v0
	add.2s	v1, v5, v1
	add.2s	v2, v6, v2
	add.2s	v3, v7, v3
	stp	d0, d1, [x13, #-16]
	stp	d2, d3, [x13], #32
	subs	x15, x15, #8
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	x11, x12
	b.eq	LBB0_1
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, x10, lsl #3
	add	x10, sp, #16
	add	x10, x10, x9, lsl #2
	sub	w9, w22, w9
	add	w9, w9, #4
LBB0_13:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x8], #8
	ldr	w12, [x10]
	add	w11, w12, w11
	str	w11, [x10], #4
	subs	w9, w9, #1
	b.ne	LBB0_13
	b	LBB0_1
LBB0_14:
	mov	x20, #0
	add	x21, sp, #16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, x20]
	mov	w1, #-512
	bl	_FFMAX
	ldr	w8, [x19, x20]
	add	w0, w8, w0
	mov	w1, #0
	bl	_FFMAX
	str	w0, [x19, x20]
	add	x20, x20, #4
	cmp	x20, #64
	b.ne	LBB0_15
; %bb.16:
	ldr	x8, [sp, #88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MIN,4,2                    ; @INT_MIN
	.comm	_lwc_gain_tab,8,3               ; @lwc_gain_tab
	.comm	_lwc_adj_tab,8,3                ; @lwc_adj_tab
	.no_dead_strip	_calc_lowcomp
.subsections_via_symbols
