	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sws_diffVec
_sws_diffVec:                           ## @sws_diffVec
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movl	(%rsi), %esi
	callq	_FFMAX
	movl	%eax, %r15d
	pxor	%xmm0, %xmm0
	movl	%eax, %edi
	callq	_sws_getConstVec
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movl	(%rbx), %r11d
	testl	%r11d, %r11d
	jle	LBB0_9
## %bb.2:
	movq	8(%rbx), %r12
	movq	8(%rax), %rsi
	leal	-1(%r15), %ecx
	shrl	$31, %ecx
	leal	(%r15,%rcx), %edi
	decl	%edi
	sarl	%edi
	leal	-1(%r11), %r8d
	shrl	%r8d
	cmpl	$4, %r11d
	jae	LBB0_18
LBB0_3:
	xorl	%r9d, %r9d
LBB0_4:
	movq	%r9, %rcx
	notq	%rcx
	testb	$1, %r11b
	je	LBB0_6
## %bb.5:
	movq	(%r12,%r9,8), %rdx
	leal	(%rdi,%r9), %ebx
	subl	%r8d, %ebx
	movslq	%ebx, %rbx
	addq	%rdx, (%rsi,%rbx,8)
	orq	$1, %r9
LBB0_6:
	negq	%r11
	cmpq	%r11, %rcx
	je	LBB0_9
## %bb.7:
	leaq	1(%r9), %rcx
	addl	%r9d, %edi
	subl	%r8d, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%r12,%rcx,8), %rdx
	movslq	%edi, %rdi
	addq	%rdx, (%rsi,%rdi,8)
	movq	(%r12,%rcx,8), %rdx
	leal	1(%rdi), %ebx
	movslq	%ebx, %rbx
	addq	%rdx, (%rsi,%rbx,8)
	leaq	(%r11,%rcx), %rdx
	addq	$2, %rdx
	addq	$2, %rcx
	addl	$2, %edi
	cmpq	$1, %rdx
	jne	LBB0_8
LBB0_9:
	movl	(%r14), %r11d
	testl	%r11d, %r11d
	jle	LBB0_17
## %bb.10:
	movq	8(%r14), %r14
	movq	8(%rax), %rsi
	movl	%r15d, %ecx
	decl	%ecx
	shrl	$31, %ecx
	leal	(%r15,%rcx), %edi
	decl	%edi
	sarl	%edi
	leal	-1(%r11), %r8d
	shrl	%r8d
	cmpl	$4, %r11d
	jae	LBB0_23
LBB0_11:
	xorl	%r9d, %r9d
LBB0_12:
	movq	%r9, %rcx
	notq	%rcx
	testb	$1, %r11b
	je	LBB0_14
## %bb.13:
	movq	(%r14,%r9,8), %rdx
	leal	(%rdi,%r9), %ebx
	subl	%r8d, %ebx
	movslq	%ebx, %rbx
	subq	%rdx, (%rsi,%rbx,8)
	orq	$1, %r9
LBB0_14:
	negq	%r11
	cmpq	%r11, %rcx
	je	LBB0_17
## %bb.15:
	leaq	1(%r9), %rcx
	addl	%r9d, %edi
	subl	%r8d, %edi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%r14,%rcx,8), %rdx
	movslq	%edi, %rdi
	subq	%rdx, (%rsi,%rdi,8)
	movq	(%r14,%rcx,8), %rdx
	leal	1(%rdi), %ebx
	movslq	%ebx, %rbx
	subq	%rdx, (%rsi,%rbx,8)
	leaq	(%r11,%rcx), %rdx
	addq	$2, %rdx
	addq	$2, %rcx
	addl	$2, %edi
	cmpq	$1, %rdx
	jne	LBB0_16
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	leaq	-1(%r11), %rcx
	movl	%edi, %ebx
	subl	%r8d, %ebx
	leal	(%rcx,%rbx), %edx
	xorl	%r9d, %r9d
	cmpl	%ebx, %edx
	jl	LBB0_4
## %bb.19:
	shrq	$32, %rcx
	jne	LBB0_4
## %bb.20:
	movl	%edi, %ecx
	subl	%r8d, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%r11), %rdx
	leaq	(%rsi,%rdx,8), %rdx
	cmpq	%rdx, %r12
	jae	LBB0_28
## %bb.21:
	leaq	(%r12,%r11,8), %rdx
	leaq	(%rsi,%rcx,8), %rcx
	cmpq	%rdx, %rcx
	jb	LBB0_3
LBB0_28:
	movl	%r11d, %r9d
	andl	$-4, %r9d
	leaq	-4(%r9), %rcx
	movq	%rcx, %r10
	shrq	$2, %r10
	incq	%r10
	testq	%rcx, %rcx
	je	LBB0_40
## %bb.29:
	movq	%r10, %r13
	andq	$-2, %r13
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%r12,%rcx,8), %xmm0
	movdqu	16(%r12,%rcx,8), %xmm1
	movslq	%ebx, %rbx
	movdqu	(%rsi,%rbx,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rsi,%rbx,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	%xmm2, (%rsi,%rbx,8)
	movdqu	%xmm0, 16(%rsi,%rbx,8)
	movdqu	32(%r12,%rcx,8), %xmm0
	movdqu	48(%r12,%rcx,8), %xmm1
	leal	4(%rbx), %edx
	movslq	%edx, %rdx
	movdqu	(%rsi,%rdx,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rsi,%rdx,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	%xmm2, (%rsi,%rdx,8)
	movdqu	%xmm0, 16(%rsi,%rdx,8)
	addq	$8, %rcx
	addl	$8, %ebx
	addq	$-2, %r13
	jne	LBB0_30
## %bb.31:
	testb	$1, %r10b
	je	LBB0_33
LBB0_32:
	movdqu	(%r12,%rcx,8), %xmm0
	movdqu	16(%r12,%rcx,8), %xmm1
	addl	%edi, %ecx
	subl	%r8d, %ecx
	movslq	%ecx, %rcx
	movdqu	(%rsi,%rcx,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rsi,%rcx,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	%xmm2, (%rsi,%rcx,8)
	movdqu	%xmm0, 16(%rsi,%rcx,8)
LBB0_33:
	cmpq	%r11, %r9
	jne	LBB0_4
	jmp	LBB0_9
LBB0_23:
	leaq	-1(%r11), %rcx
	movl	%edi, %ebx
	subl	%r8d, %ebx
	leal	(%rcx,%rbx), %edx
	xorl	%r9d, %r9d
	cmpl	%ebx, %edx
	jl	LBB0_12
## %bb.24:
	shrq	$32, %rcx
	jne	LBB0_12
## %bb.25:
	movl	%edi, %ecx
	subl	%r8d, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%r11), %rdx
	leaq	(%rsi,%rdx,8), %rdx
	cmpq	%rdx, %r14
	jae	LBB0_34
## %bb.26:
	leaq	(%r14,%r11,8), %rdx
	leaq	(%rsi,%rcx,8), %rcx
	cmpq	%rdx, %rcx
	jb	LBB0_11
LBB0_34:
	movl	%r11d, %r9d
	andl	$-4, %r9d
	leaq	-4(%r9), %rcx
	movq	%rcx, %r10
	shrq	$2, %r10
	incq	%r10
	testq	%rcx, %rcx
	je	LBB0_41
## %bb.35:
	movq	%r10, %r15
	andq	$-2, %r15
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%r14,%rcx,8), %xmm0
	movdqu	16(%r14,%rcx,8), %xmm1
	movslq	%ebx, %rbx
	movdqu	(%rsi,%rbx,8), %xmm2
	psubq	%xmm0, %xmm2
	movdqu	16(%rsi,%rbx,8), %xmm0
	psubq	%xmm1, %xmm0
	movdqu	%xmm2, (%rsi,%rbx,8)
	movdqu	%xmm0, 16(%rsi,%rbx,8)
	movdqu	32(%r14,%rcx,8), %xmm0
	movdqu	48(%r14,%rcx,8), %xmm1
	leal	4(%rbx), %edx
	movslq	%edx, %rdx
	movdqu	(%rsi,%rdx,8), %xmm2
	psubq	%xmm0, %xmm2
	movdqu	16(%rsi,%rdx,8), %xmm0
	psubq	%xmm1, %xmm0
	movdqu	%xmm2, (%rsi,%rdx,8)
	movdqu	%xmm0, 16(%rsi,%rdx,8)
	addq	$8, %rcx
	addl	$8, %ebx
	addq	$-2, %r15
	jne	LBB0_36
## %bb.37:
	testb	$1, %r10b
	je	LBB0_39
LBB0_38:
	movdqu	(%r14,%rcx,8), %xmm0
	movdqu	16(%r14,%rcx,8), %xmm1
	addl	%edi, %ecx
	subl	%r8d, %ecx
	movslq	%ecx, %rcx
	movdqu	(%rsi,%rcx,8), %xmm2
	psubq	%xmm0, %xmm2
	movdqu	16(%rsi,%rcx,8), %xmm0
	psubq	%xmm1, %xmm0
	movdqu	%xmm2, (%rsi,%rcx,8)
	movdqu	%xmm0, 16(%rsi,%rcx,8)
LBB0_39:
	cmpq	%r11, %r9
	jne	LBB0_12
	jmp	LBB0_17
LBB0_40:
	xorl	%ecx, %ecx
	testb	$1, %r10b
	jne	LBB0_32
	jmp	LBB0_33
LBB0_41:
	xorl	%ecx, %ecx
	testb	$1, %r10b
	jne	LBB0_38
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sws_diffVec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sws_diffVec
_sws_diffVec:                           ; @sws_diffVec
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x0]
	ldr	w1, [x1]
	bl	_FFMAX
	mov	x20, x0
	movi	d0, #0000000000000000
	bl	_sws_getConstVec
	cbz	x0, LBB0_21
; %bb.1:
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.2:
	ldr	x10, [x21, #8]
	ldr	x8, [x0, #8]
	sub	w11, w20, #1
	cmp	w11, #0
	csel	w11, w20, w11, lt
	asr	w11, w11, #1
	sub	w12, w9, #1
	lsr	w12, w12, #1
	cmp	w9, #8
	b.lo	LBB0_8
; %bb.3:
	sub	x13, x9, #1
	sub	w14, w11, w12
	add	w15, w14, w13
	cmp	w15, w14
	lsr	x13, x13, #32
	ccmp	x13, #0, #0, ge
	b.ne	LBB0_8
; %bb.4:
	add	x13, x10, x9, lsl #3
	add	x15, x8, w14, sxtw #3
	add	x16, x9, w14, sxtw
	add	x16, x8, x16, lsl #3
	cmp	x10, x16
	ccmp	x15, x13, #2, lo
	b.lo	LBB0_8
; %bb.5:
	and	x13, x9, #0xfffffff8
	add	x15, x10, #32
	mov	x16, x13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x15, #-32]
	ldp	q2, q3, [x15], #64
	add	x17, x8, w14, sxtw #3
	ldp	q4, q5, [x17]
	ldp	q6, q7, [x17, #32]
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	stp	q0, q1, [x17]
	stp	q2, q3, [x17, #32]
	add	w14, w14, #8
	subs	x16, x16, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x13, x9
	b.ne	LBB0_9
	b	LBB0_11
LBB0_8:
	mov	x13, #0
LBB0_9:
	add	w11, w11, w13
	sub	w11, w11, w12
	sub	x9, x9, x13
	add	x10, x10, x13, lsl #3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10], #8
	sbfiz	x13, x11, #3, #32
	ldr	x14, [x8, x13]
	add	x12, x14, x12
	str	x12, [x8, x13]
	add	w11, w11, #1
	subs	x9, x9, #1
	b.ne	LBB0_10
LBB0_11:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_21
; %bb.12:
	ldr	x10, [x19, #8]
	ldr	x8, [x0, #8]
	sub	w11, w20, #1
	cmp	w11, #0
	csel	w11, w20, w11, lt
	asr	w11, w11, #1
	sub	w12, w9, #1
	lsr	w12, w12, #1
	cmp	w9, #8
	b.lo	LBB0_18
; %bb.13:
	sub	x13, x9, #1
	sub	w14, w11, w12
	add	w15, w14, w13
	cmp	w15, w14
	lsr	x13, x13, #32
	ccmp	x13, #0, #0, ge
	b.ne	LBB0_18
; %bb.14:
	add	x13, x10, x9, lsl #3
	add	x15, x8, w14, sxtw #3
	add	x16, x9, w14, sxtw
	add	x16, x8, x16, lsl #3
	cmp	x10, x16
	ccmp	x15, x13, #2, lo
	b.lo	LBB0_18
; %bb.15:
	and	x13, x9, #0xfffffff8
	add	x15, x10, #32
	mov	x16, x13
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x15, #-32]
	ldp	q2, q3, [x15], #64
	add	x17, x8, w14, sxtw #3
	ldp	q4, q5, [x17]
	ldp	q6, q7, [x17, #32]
	sub.2d	v0, v4, v0
	sub.2d	v1, v5, v1
	sub.2d	v2, v6, v2
	sub.2d	v3, v7, v3
	stp	q0, q1, [x17]
	stp	q2, q3, [x17, #32]
	add	w14, w14, #8
	subs	x16, x16, #8
	b.ne	LBB0_16
; %bb.17:
	cmp	x13, x9
	b.ne	LBB0_19
	b	LBB0_21
LBB0_18:
	mov	x13, #0
LBB0_19:
	add	w11, w11, w13
	sub	w11, w11, w12
	sub	x9, x9, x13
	add	x10, x10, x13, lsl #3
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10], #8
	sbfiz	x13, x11, #3, #32
	ldr	x14, [x8, x13]
	sub	x12, x14, x12
	str	x12, [x8, x13]
	add	w11, w11, #1
	subs	x9, x9, #1
	b.ne	LBB0_20
LBB0_21:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sws_diffVec
.subsections_via_symbols
