	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_opus_psy_postencode_update  ## -- Begin function ff_opus_psy_postencode_update
	.p2align	4, 0x90
_ff_opus_psy_postencode_update:         ## @ff_opus_psy_postencode_update
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	36(%rdi), %edi
	callq	_OPUS_BLOCK_SIZE
	movslq	%eax, %rcx
	imulq	$-2004318071, %rcx, %r15        ## imm = 0x88888889
	shrq	$32, %r15
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	addl	%eax, %r15d
	movl	%r15d, %eax
	shrl	$31, %eax
	sarl	$6, %r15d
	addl	%eax, %r15d
	imull	32(%r12), %r15d
	movq	_FF_BUFQUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	movl	%r15d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	64(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_2
LBB0_3:
	movl	(%r12), %r14d
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.4:
	movq	64(%r12), %rsi
	leaq	(,%r14,8), %rdx
	movq	%r13, %rdi
	callq	_memcpy
	cmpl	$1, %r14d
	jne	LBB0_16
## %bb.5:
	xorl	%eax, %eax
	testb	$1, %r14b
	jne	LBB0_8
	jmp	LBB0_9
LBB0_16:
	movl	%r15d, %ecx
	negl	%ecx
	movl	%r14d, %edx
	andl	$-2, %edx
	negq	%rdx
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%r13,%rax,8), %rsi
	movq	64(%r12), %rdi
	movl	%ecx, %ebx
	sarl	$31, %ebx
	andl	%r14d, %ebx
	addl	%ecx, %ebx
	movslq	%ebx, %rbx
	movq	%rsi, (%rdi,%rbx,8)
	leal	1(%rcx), %esi
	movq	(%r13,%rax,8), %rdi
	movq	64(%r12), %rbx
	sarl	$31, %esi
	andl	%r14d, %esi
	addl	%ecx, %esi
	incl	%esi
	movslq	%esi, %rsi
	movq	%rdi, (%rbx,%rsi,8)
	addl	$2, %ecx
	leaq	(%rdx,%rax), %rsi
	addq	$2, %rsi
	addq	$2, %rax
	cmpq	$1, %rsi
	jne	LBB0_17
## %bb.6:
	decq	%rax
	testb	$1, %r14b
	je	LBB0_9
LBB0_8:
	movl	%eax, %ecx
	subl	%r15d, %ecx
	movq	(%r13,%rax,8), %rax
	movq	64(%r12), %rdx
	movl	%ecx, %esi
	sarl	$31, %esi
	andl	%r14d, %esi
	addl	%ecx, %esi
	movslq	%esi, %rcx
	movq	%rax, (%rdx,%rcx,8)
LBB0_9:
	movslq	4(%r12), %rdi
	cmpl	%r15d, %edi
	jle	LBB0_14
## %bb.10:
	movq	64(%r12), %rax
	movslq	%r15d, %rcx
	movl	%edi, %esi
	subl	%r15d, %esi
	movq	%rcx, %rdx
	notq	%rdx
	addq	%rdi, %rdx
	andq	$3, %rsi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rbx
	subl	%r15d, (%rbx)
	incq	%rcx
	decq	%rsi
	jne	LBB0_11
LBB0_12:
	cmpq	$3, %rdx
	jb	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	subl	%r15d, (%rdx)
	movq	8(%rax,%rcx,8), %rdx
	subl	%r15d, (%rdx)
	movq	16(%rax,%rcx,8), %rdx
	subl	%r15d, (%rdx)
	movq	24(%rax,%rcx,8), %rdx
	subl	%r15d, (%rdx)
	addq	$4, %rcx
	cmpq	%rcx, %rdi
	jne	LBB0_13
LBB0_14:
	movq	56(%r12), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	cltd
	idivl	-52(%rbp)                       ## 4-byte Folded Reload
	movl	%eax, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	32(%r12), %r8d
	testl	%r8d, %r8d
	jle	LBB0_15
## %bb.18:
	cvtsi2ss	%eax, %xmm0
	movl	8(%r12), %eax
	movss	12(%r12), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	cmpl	$1, %r8d
	jne	LBB0_20
## %bb.19:
	xorl	%edx, %edx
	jmp	LBB0_22
LBB0_15:
	movl	8(%r12), %eax
	jmp	LBB0_25
LBB0_20:
	movl	%r8d, %esi
	andl	$-2, %esi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	$24, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	addl	-16(%rcx), %eax
	movaps	%xmm0, %xmm2
	divss	-24(%rcx), %xmm2
	mulss	%xmm1, %xmm2
	addl	(%rcx), %eax
	movaps	%xmm0, %xmm1
	divss	-8(%rcx), %xmm1
	mulss	%xmm2, %xmm1
	addq	$2, %rdx
	addq	$32, %rcx
	cmpq	%rdx, %rsi
	jne	LBB0_21
LBB0_22:
	testb	$1, %r8b
	je	LBB0_24
## %bb.23:
	shlq	$4, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	8(%rcx,%rdx), %eax
	divss	(%rcx,%rdx), %xmm0
	mulss	%xmm0, %xmm1
LBB0_24:
	movss	%xmm1, 12(%r12)
LBB0_25:
	leal	1(%r8), %ecx
	cltd
	idivl	%ecx
	movl	%eax, 8(%r12)
	subl	%r15d, %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r12)
	movl	%edi, 4(%r12)
	addl	%r8d, 16(%r12)
	movq	$0, 24(%r12)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_BUFQUEUE_SIZE,4,2           ## @FF_BUFQUEUE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_opus_psy_postencode_update  ; -- Begin function ff_opus_psy_postencode_update
	.p2align	2
_ff_opus_psy_postencode_update:         ; @ff_opus_psy_postencode_update
	.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, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w0, [x0, #36]
	bl	_OPUS_BLOCK_SIZE
	mov	x21, x0
	ldr	w24, [x19, #32]
	mov	w8, #34953
	movk	w8, #34952, lsl #16
	smull	x8, w0, w8
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #6
	add	w25, w9, w8, lsr #31
	mul	w23, w24, w25
Lloh3:
	adrp	x8, _FF_BUFQUEUE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FF_BUFQUEUE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	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, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cmp	w23, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x26, #0
	lsl	x27, x23, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #64]
	ldr	x0, [x8, x26]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x26, x26, #8
	cmp	x27, x26
	b.ne	LBB0_2
LBB0_3:
	ldr	w26, [x19]
	cmp	w26, #0
	b.le	LBB0_6
; %bb.4:
	ldr	x1, [x19, #64]
	lsl	x2, x26, #3
	mov	x0, x22
	bl	_memcpy
	mov	x8, #0
	mneg	w9, w24, w25
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x22, x8, lsl #3]
	ldr	x11, [x19, #64]
	add	w12, w9, w8
	and	w13, w26, w12, asr #31
	add	w12, w12, w13
	str	x10, [x11, w12, sxtw #3]
	add	x8, x8, #1
	cmp	x26, x8
	b.ne	LBB0_5
LBB0_6:
	ldrsw	x8, [x19, #4]
	cmp	w8, w23
	b.le	LBB0_9
; %bb.7:
	ldr	x9, [x19, #64]
	add	x9, x9, w23, sxtw #3
	sub	x10, x8, w23, sxtw
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	ldr	w12, [x11]
	sub	w12, w12, w23
	str	w12, [x11]
	subs	x10, x10, #1
	b.ne	LBB0_8
LBB0_9:
	ldr	w9, [x19, #32]
	cmp	w9, #0
	b.le	LBB0_13
; %bb.10:
	ldr	x10, [x19, #56]
	ldp	w11, w10, [x10]
	sdiv	w10, w10, w21
	sdiv	w10, w11, w10
	scvtf	s0, w10
	ldr	w10, [x19, #8]
	ldr	s1, [x19, #12]
	add	x11, x20, #8
	mov	x12, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11]
	add	w10, w10, w13
	ldur	s2, [x11, #-8]
	fdiv	s2, s0, s2
	fmul	s1, s1, s2
	add	x11, x11, #16
	subs	x12, x12, #1
	b.ne	LBB0_11
; %bb.12:
	str	s1, [x19, #12]
	b	LBB0_14
LBB0_13:
	ldr	w10, [x19, #8]
LBB0_14:
	add	w11, w9, #1
	sdiv	w10, w10, w11
	sub	w8, w8, w23
	stp	xzr, xzr, [x19, #40]
	stp	w8, w10, [x19, #4]
	ldr	w8, [x19, #16]
	add	w8, w8, w9
	str	w8, [x19, #16]
	str	xzr, [x19, #24]
	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	_FF_BUFQUEUE_SIZE,4,2           ; @FF_BUFQUEUE_SIZE
.subsections_via_symbols
