	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sub_left_prediction
_sub_left_prediction:                   ## @sub_left_prediction
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	%ecx, %edi
	movl	$32, %esi
	callq	_FFMIN
	cmpl	$9, (%rbx)
	jge	LBB0_1
## %bb.18:
	testl	%eax, %eax
	jle	LBB0_33
## %bb.19:
	movl	%eax, %ecx
	xorl	%edx, %edx
	cmpl	$8, %eax
	jb	LBB0_28
## %bb.20:
	movq	%r13, %rax
	subq	%r12, %rax
	cmpq	$32, %rax
	jb	LBB0_28
## %bb.21:
	movl	%ecx, %edx
	andl	$-8, %edx
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rax
	movq	%rax, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%r12,%rax,4), %xmm1
	movdqu	16(%r12,%rax,4), %xmm2
	movdqa	%xmm1, %xmm3
	palignr	$12, %xmm0, %xmm3               ## xmm3 = xmm0[12,13,14,15],xmm3[0,1,2,3,4,5,6,7,8,9,10,11]
	movdqa	%xmm2, %xmm0
	palignr	$12, %xmm1, %xmm0               ## xmm0 = xmm1[12,13,14,15],xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
	psubd	%xmm3, %xmm1
	movdqa	%xmm2, %xmm3
	psubd	%xmm0, %xmm3
	movdqu	%xmm1, (%r13,%rax,4)
	movdqu	%xmm3, 16(%r13,%rax,4)
	movdqu	32(%r12,%rax,4), %xmm1
	movdqu	48(%r12,%rax,4), %xmm0
	movdqa	%xmm1, %xmm3
	palignr	$12, %xmm2, %xmm3               ## xmm3 = xmm2[12,13,14,15],xmm3[0,1,2,3,4,5,6,7,8,9,10,11]
	movdqa	%xmm0, %xmm2
	palignr	$12, %xmm1, %xmm2               ## xmm2 = xmm1[12,13,14,15],xmm2[0,1,2,3,4,5,6,7,8,9,10,11]
	psubd	%xmm3, %xmm1
	movdqa	%xmm0, %xmm3
	psubd	%xmm2, %xmm3
	movdqu	%xmm1, 32(%r13,%rax,4)
	movdqu	%xmm3, 48(%r13,%rax,4)
	addq	$16, %rax
	addq	$-2, %rdi
	jne	LBB0_24
## %bb.25:
	testb	$1, %sil
	je	LBB0_27
LBB0_26:
	movdqu	(%r12,%rax,4), %xmm1
	movdqu	16(%r12,%rax,4), %xmm2
	movdqa	%xmm1, %xmm3
	palignr	$12, %xmm0, %xmm3               ## xmm3 = xmm0[12,13,14,15],xmm3[0,1,2,3,4,5,6,7,8,9,10,11]
	movdqa	%xmm2, %xmm4
	movdqa	%xmm2, %xmm0
	palignr	$12, %xmm1, %xmm2               ## xmm2 = xmm1[12,13,14,15],xmm2[0,1,2,3,4,5,6,7,8,9,10,11]
	psubd	%xmm3, %xmm1
	psubd	%xmm2, %xmm4
	movdqu	%xmm1, (%r13,%rax,4)
	movdqu	%xmm4, 16(%r13,%rax,4)
LBB0_27:
	pextrd	$3, %xmm0, %r15d
	cmpq	%rcx, %rdx
	je	LBB0_33
LBB0_28:
	movq	%rbx, %r8
	movq	%rdx, %rax
	notq	%rax
	addq	%rcx, %rax
	movq	%rcx, %rsi
	andq	$3, %rsi
	je	LBB0_31
## %bb.29:
	movl	%r15d, %edi
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rdx,4), %r15d
	movl	%r15d, %ebx
	subl	%edi, %ebx
	movl	%ebx, (%r13,%rdx,4)
	incq	%rdx
	movl	%r15d, %edi
	decq	%rsi
	jne	LBB0_30
LBB0_31:
	cmpq	$3, %rax
	movq	%r8, %rbx
	jb	LBB0_33
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rdx,4), %eax
	movl	%eax, %esi
	subl	%r15d, %esi
	movl	%esi, (%r13,%rdx,4)
	movl	4(%r12,%rdx,4), %esi
	movl	%esi, %edi
	subl	%eax, %edi
	movl	%edi, 4(%r13,%rdx,4)
	movl	8(%r12,%rdx,4), %eax
	movl	%eax, %edi
	subl	%esi, %edi
	movl	%edi, 8(%r13,%rdx,4)
	movl	12(%r12,%rdx,4), %r15d
	movl	%r15d, %esi
	subl	%eax, %esi
	movl	%esi, 12(%r13,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_32
LBB0_33:
	cmpl	$32, %r14d
	jl	LBB0_36
## %bb.34:
	subq	$-128, %r13
	leaq	128(%r12), %rsi
	leaq	124(%r12), %rdx
	leal	-32(%r14), %ecx
	movq	%r13, %rdi
	callq	*24(%rbx)
	jmp	LBB0_35
LBB0_1:
	testl	%eax, %eax
	jle	LBB0_16
## %bb.2:
	movl	%eax, %ecx
	xorl	%edx, %edx
	cmpl	$8, %eax
	jb	LBB0_11
## %bb.3:
	movq	%r13, %rax
	subq	%r12, %rax
	cmpq	$32, %rax
	jb	LBB0_11
## %bb.4:
	movl	%ecx, %edx
	andl	$-8, %edx
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rax
	movq	%rax, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r12,%rax,4), %xmm1
	movdqu	16(%r12,%rax,4), %xmm2
	movdqa	%xmm1, %xmm3
	palignr	$12, %xmm0, %xmm3               ## xmm3 = xmm0[12,13,14,15],xmm3[0,1,2,3,4,5,6,7,8,9,10,11]
	movdqa	%xmm2, %xmm0
	palignr	$12, %xmm1, %xmm0               ## xmm0 = xmm1[12,13,14,15],xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
	psubd	%xmm3, %xmm1
	movdqa	%xmm2, %xmm3
	psubd	%xmm0, %xmm3
	movdqu	%xmm1, (%r13,%rax,4)
	movdqu	%xmm3, 16(%r13,%rax,4)
	movdqu	32(%r12,%rax,4), %xmm1
	movdqu	48(%r12,%rax,4), %xmm0
	movdqa	%xmm1, %xmm3
	palignr	$12, %xmm2, %xmm3               ## xmm3 = xmm2[12,13,14,15],xmm3[0,1,2,3,4,5,6,7,8,9,10,11]
	movdqa	%xmm0, %xmm2
	palignr	$12, %xmm1, %xmm2               ## xmm2 = xmm1[12,13,14,15],xmm2[0,1,2,3,4,5,6,7,8,9,10,11]
	psubd	%xmm3, %xmm1
	movdqa	%xmm0, %xmm3
	psubd	%xmm2, %xmm3
	movdqu	%xmm1, 32(%r13,%rax,4)
	movdqu	%xmm3, 48(%r13,%rax,4)
	addq	$16, %rax
	addq	$-2, %rdi
	jne	LBB0_7
## %bb.8:
	testb	$1, %sil
	je	LBB0_10
LBB0_9:
	movdqu	(%r12,%rax,4), %xmm1
	movdqu	16(%r12,%rax,4), %xmm2
	movdqa	%xmm1, %xmm3
	palignr	$12, %xmm0, %xmm3               ## xmm3 = xmm0[12,13,14,15],xmm3[0,1,2,3,4,5,6,7,8,9,10,11]
	movdqa	%xmm2, %xmm4
	movdqa	%xmm2, %xmm0
	palignr	$12, %xmm1, %xmm2               ## xmm2 = xmm1[12,13,14,15],xmm2[0,1,2,3,4,5,6,7,8,9,10,11]
	psubd	%xmm3, %xmm1
	psubd	%xmm2, %xmm4
	movdqu	%xmm1, (%r13,%rax,4)
	movdqu	%xmm4, 16(%r13,%rax,4)
LBB0_10:
	pextrd	$3, %xmm0, %r15d
	cmpq	%rcx, %rdx
	je	LBB0_16
LBB0_11:
	movq	%rbx, %r8
	movq	%rdx, %rax
	notq	%rax
	addq	%rcx, %rax
	movq	%rcx, %rsi
	andq	$3, %rsi
	je	LBB0_14
## %bb.12:
	movl	%r15d, %edi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rdx,4), %r15d
	movl	%r15d, %ebx
	subl	%edi, %ebx
	movl	%ebx, (%r13,%rdx,4)
	incq	%rdx
	movl	%r15d, %edi
	decq	%rsi
	jne	LBB0_13
LBB0_14:
	cmpq	$3, %rax
	movq	%r8, %rbx
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rdx,4), %eax
	movl	%eax, %esi
	subl	%r15d, %esi
	movl	%esi, (%r13,%rdx,4)
	movl	4(%r12,%rdx,4), %esi
	movl	%esi, %edi
	subl	%eax, %edi
	movl	%edi, 4(%r13,%rdx,4)
	movl	8(%r12,%rdx,4), %eax
	movl	%eax, %edi
	subl	%esi, %edi
	movl	%edi, 8(%r13,%rdx,4)
	movl	12(%r12,%rdx,4), %r15d
	movl	%r15d, %esi
	subl	%eax, %esi
	movl	%esi, 12(%r13,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_15
LBB0_16:
	cmpl	$32, %r14d
	jl	LBB0_36
## %bb.17:
	subq	$-128, %r13
	leaq	128(%r12), %rsi
	leaq	124(%r12), %rdx
	movq	8(%rbx), %rcx
	decq	%rcx
	leal	-32(%r14), %r8d
	movq	%r13, %rdi
	callq	*16(%rbx)
LBB0_35:
	decl	%r14d
	movl	(%r12,%r14,4), %r15d
LBB0_36:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	xorl	%eax, %eax
	testb	$1, %sil
	jne	LBB0_26
	jmp	LBB0_27
LBB0_5:
	xorl	%eax, %eax
	testb	$1, %sil
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sub_left_prediction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sub_left_prediction
_sub_left_prediction:                   ; @sub_left_prediction
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x3
	mov	w1, #32
	bl	_FFMIN
	ldr	w8, [x21]
	cmp	w8, #9
	b.ge	LBB0_11
; %bb.1:
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x9, #0
	mov	w8, w0
	cmp	w0, #16
	b.lo	LBB0_7
; %bb.3:
	sub	x10, x22, x19
	cmp	x10, #64
	b.lo	LBB0_7
; %bb.4:
	and	x9, x8, #0xfffffff0
	dup.4s	v0, w23
	add	x10, x22, #32
	add	x11, x19, #32
	mov	x12, x9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ext.16b	v3, v0, v1, #12
	ldp	q4, q0, [x11], #64
	ext.16b	v5, v1, v2, #12
	ext.16b	v6, v2, v4, #12
	ext.16b	v7, v4, v0, #12
	sub.4s	v1, v1, v3
	sub.4s	v2, v2, v5
	sub.4s	v3, v4, v6
	sub.4s	v4, v0, v7
	stp	q1, q2, [x10, #-32]
	stp	q3, q4, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_5
; %bb.6:
	mov.s	w23, v0[3]
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_7:
	lsl	x11, x9, #2
	add	x10, x22, x11
	add	x11, x19, x11
	sub	x8, x8, x9
	mov	x9, x23
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x11], #4
	sub	w9, w23, w9
	str	w9, [x10], #4
	mov	x9, x23
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	subs	w3, w20, #32
	b.lt	LBB0_22
; %bb.10:
	ldr	x8, [x21, #24]
	add	x0, x22, #128
	add	x1, x19, #128
	add	x2, x19, #124
	blr	x8
	b	LBB0_21
LBB0_11:
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.12:
	mov	x9, #0
	mov	w8, w0
	cmp	w0, #16
	b.lo	LBB0_17
; %bb.13:
	sub	x10, x22, x19
	cmp	x10, #64
	b.lo	LBB0_17
; %bb.14:
	and	x9, x8, #0xfffffff0
	dup.4s	v0, w23
	add	x10, x22, #32
	add	x11, x19, #32
	mov	x12, x9
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ext.16b	v3, v0, v1, #12
	ldp	q4, q0, [x11], #64
	ext.16b	v5, v1, v2, #12
	ext.16b	v6, v2, v4, #12
	ext.16b	v7, v4, v0, #12
	sub.4s	v1, v1, v3
	sub.4s	v2, v2, v5
	sub.4s	v3, v4, v6
	sub.4s	v4, v0, v7
	stp	q1, q2, [x10, #-32]
	stp	q3, q4, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_15
; %bb.16:
	mov.s	w23, v0[3]
	cmp	x9, x8
	b.eq	LBB0_19
LBB0_17:
	lsl	x11, x9, #2
	add	x10, x22, x11
	add	x11, x19, x11
	sub	x8, x8, x9
	mov	x9, x23
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x11], #4
	sub	w9, w23, w9
	str	w9, [x10], #4
	mov	x9, x23
	subs	x8, x8, #1
	b.ne	LBB0_18
LBB0_19:
	subs	w4, w20, #32
	b.lt	LBB0_22
; %bb.20:
	add	x0, x22, #128
	add	x1, x19, #128
	add	x2, x19, #124
	ldp	x9, x8, [x21, #8]
	sub	x3, x9, #1
	blr	x8
LBB0_21:
	sub	w8, w20, #1
	ldr	w23, [x19, w8, uxtw #2]
LBB0_22:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sub_left_prediction
.subsections_via_symbols
