	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aptx_prediction_filtering
_aptx_prediction_filtering:             ## @aptx_prediction_filtering
	.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
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r12
	movl	(%rdi), %edi
	addl	%esi, %edi
	movl	$23, %esi
	callq	_av_clip_intp2
	movq	%rax, %r14
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movl	16(%r12), %esi
	callq	_MUL64
	movl	%eax, %ebx
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	movl	%r14d, %esi
	callq	_MUL64
	addl	%eax, %ebx
	sarl	$22, %ebx
	movl	%ebx, %edi
	movl	$23, %esi
	callq	_av_clip_intp2
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, 16(%r12)
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_aptx_reconstructed_differences_update
	movq	%rax, %r14
	xorl	%ebx, %ebx
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_FFDIFFSIGN
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.1:
	shll	$23, %eax
	negl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-4(%r14), %r13
	movl	-4(%r14), %edi
	callq	_FF_SIGNBIT
	orl	$1, %eax
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	24(%r12), %rcx
	addl	(%rcx,%r15,4), %eax
	movl	%eax, %edi
	movl	$8, %esi
	callq	_rshift32
	movq	24(%r12), %rcx
	movl	(%rcx,%r15,4), %esi
	subl	%eax, %esi
	movl	%esi, (%rcx,%r15,4)
	movl	(%r14), %edi
	callq	_MUL64
	addl	%eax, %ebx
	incq	%r15
	movq	%r13, %r14
	cmpq	%r15, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
## %bb.3:
	sarl	$22, %ebx
LBB0_4:
	movl	%ebx, %edi
	movl	$23, %esi
	callq	_av_clip_intp2
	movl	%eax, 32(%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$23, %esi
	callq	_av_clip_intp2
	movl	%eax, (%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_aptx_prediction_filtering
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aptx_prediction_filtering
_aptx_prediction_filtering:             ; @aptx_prediction_filtering
	.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, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w8, [x0]
	add	w0, w8, w1
	mov	w1, #23
	bl	_av_clip_intp2
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_MUL64
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	mov	x1, x22
	bl	_MUL64
	add	w8, w0, w20
	asr	w0, w8, #22
	mov	w1, #23
	bl	_av_clip_intp2
	mov	x20, x0
	str	w22, [x19, #16]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_aptx_reconstructed_differences_update
	mov	x22, x0
	mov	x0, x23
	mov	w1, #0
	bl	_FFDIFFSIGN
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x24, #0
	mov	w23, #0
	neg	w25, w0, lsl #23
	mov	w8, w21
	lsl	x21, x8, #2
	mov	x26, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26, #-4]!
	bl	_FF_SIGNBIT
	orr	w8, w0, #0x1
	ldr	x9, [x19, #24]
	ldr	w9, [x9, x24]
	madd	w0, w25, w8, w9
	mov	w1, #8
	bl	_rshift32
	ldr	x8, [x19, #24]
	ldr	w9, [x8, x24]
	sub	w1, w9, w0
	str	w1, [x8, x24]
	ldr	w0, [x22]
	bl	_MUL64
	add	w23, w0, w23
	add	x24, x24, #4
	mov	x22, x26
	cmp	x21, x24
	b.ne	LBB0_2
; %bb.3:
	asr	w0, w23, #22
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	mov	w1, #23
	bl	_av_clip_intp2
	str	w0, [x19, #32]
	add	w0, w0, w20
	mov	w1, #23
	bl	_av_clip_intp2
	str	w0, [x19]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_aptx_prediction_filtering
.subsections_via_symbols
