	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on2avc_apply_ms
_on2avc_apply_ms:                       ## @on2avc_apply_ms
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_26
## %bb.1:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	movl	12(%rsi), %r8d
	movslq	%r8d, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_26
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_22 Depth 3
	testl	%r8d, %r8d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jle	LBB0_25
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r12
	movq	24(%rax), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=2
	movslq	4(%r12,%rbx,4), %rax
	movslq	(%r12,%rbx,4), %rsi
	incq	%rbx
	subq	%rsi, %rax
	leaq	(%rcx,%rax,4), %rcx
	leaq	(%rdx,%rax,4), %rdx
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpq	%r8, %rbx
	je	LBB0_25
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_22 Depth 3
	leaq	(%rbx,%r15), %rax
	cmpq	$0, (%r14,%rax,8)
	je	LBB0_27
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r12,%rbx,4), %r13d
	movl	4(%r12,%rbx,4), %eax
	incq	%rbx
	cmpl	%eax, %r13d
	jge	LBB0_24
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, %esi
	notl	%esi
	addl	%eax, %esi
	cmpl	$7, %esi
	jb	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	(%rdx,%rsi,4), %rdi
	addq	$4, %rdi
	cmpq	%rdi, %rcx
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	(%rcx,%rsi,4), %rdi
	addq	$4, %rdi
	cmpq	%rdi, %rdx
	jb	LBB0_18
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rsi
	movq	%rsi, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rdi
	movq	%rdi, %r11
	shrq	$3, %r11
	incq	%r11
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	%r11, %r10
	andq	$-2, %r10
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movups	(%rcx,%r9,4), %xmm0
	movups	16(%rcx,%r9,4), %xmm1
	movups	(%rdx,%r9,4), %xmm2
	movups	16(%rdx,%r9,4), %xmm3
	movaps	%xmm0, %xmm4
	addps	%xmm2, %xmm4
	movaps	%xmm1, %xmm5
	addps	%xmm3, %xmm5
	movups	%xmm4, (%rcx,%r9,4)
	movups	%xmm5, 16(%rcx,%r9,4)
	subps	%xmm2, %xmm0
	subps	%xmm3, %xmm1
	movups	%xmm0, (%rdx,%r9,4)
	movups	%xmm1, 16(%rdx,%r9,4)
	movups	32(%rcx,%r9,4), %xmm0
	movups	48(%rcx,%r9,4), %xmm1
	movups	32(%rdx,%r9,4), %xmm2
	movups	48(%rdx,%r9,4), %xmm3
	movaps	%xmm0, %xmm4
	addps	%xmm2, %xmm4
	movaps	%xmm1, %xmm5
	addps	%xmm3, %xmm5
	movups	%xmm4, 32(%rcx,%r9,4)
	movups	%xmm5, 48(%rcx,%r9,4)
	subps	%xmm2, %xmm0
	subps	%xmm3, %xmm1
	movups	%xmm0, 32(%rdx,%r9,4)
	movups	%xmm1, 48(%rdx,%r9,4)
	addq	$16, %r9
	addq	$-2, %r10
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	testb	$1, %r11b
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=2
	movups	(%rcx,%r9,4), %xmm0
	movups	16(%rcx,%r9,4), %xmm1
	movups	(%rdx,%r9,4), %xmm2
	movups	16(%rdx,%r9,4), %xmm3
	movaps	%xmm0, %xmm4
	addps	%xmm2, %xmm4
	movaps	%xmm1, %xmm5
	addps	%xmm3, %xmm5
	movups	%xmm4, (%rcx,%r9,4)
	movups	%xmm5, 16(%rcx,%r9,4)
	subps	%xmm2, %xmm0
	subps	%xmm3, %xmm1
	movups	%xmm0, (%rdx,%r9,4)
	movups	%xmm1, 16(%rdx,%r9,4)
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	leaq	(%rdx,%r8,4), %rdx
	leaq	(%rcx,%r8,4), %rcx
	cmpq	%r8, %rsi
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_24
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=2
	addl	%r8d, %r13d
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, %edi
	subl	%r13d, %edi
	leal	1(%r13), %esi
	testb	$1, %dil
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=2
	movss	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	(%rdx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	movss	%xmm2, (%rcx)
	addq	$4, %rcx
	subss	%xmm1, %xmm0
	movss	%xmm0, (%rdx)
	addq	$4, %rdx
	movl	%esi, %r13d
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%esi, %eax
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=2
	subl	%r13d, %eax
	xorl	%edi, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movss	(%rcx,%rdi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	(%rdx,%rdi,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	movss	%xmm2, (%rcx,%rdi,4)
	subss	%xmm1, %xmm0
	movss	%xmm0, (%rdx,%rdi,4)
	movss	4(%rcx,%rdi,4), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rdx,%rdi,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	movss	%xmm2, 4(%rcx,%rdi,4)
	subss	%xmm1, %xmm0
	movss	%xmm0, 4(%rdx,%rdi,4)
	addq	$-8, %rsi
	addq	$2, %rdi
	cmpl	%edi, %eax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=2
	subq	%rsi, %rdx
	subq	%rsi, %rcx
	jmp	LBB0_24
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r9d, %r9d
	testb	$1, %r11b
	jne	LBB0_14
	jmp	LBB0_15
LBB0_26:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_on2avc_apply_ms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on2avc_apply_ms
_on2avc_apply_ms:                       ; @on2avc_apply_ms
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x9, #0
	mov	w10, #0
	ldr	x11, [x0]
	ldp	x17, x16, [x11]
	ldr	w11, [x0, #12]
	sxtw	x12, w11
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, x12
	add	w10, w10, #1
	cmp	w10, w8
	b.eq	LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	cmp	w12, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x15, #0
	ldp	x14, x13, [x0, #16]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	w1, [x14, x15, lsl #2]
	add	x15, x15, #1
	ldr	w2, [x14, x15, lsl #2]
	sub	w1, w2, w1
	sbfiz	x1, x1, #2, #32
	add	x17, x17, x1
	add	x16, x16, x1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	cmp	x15, x11
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	add	x1, x15, x9
	ldr	x1, [x13, x1, lsl #3]
	cbz	x1, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w1, [x14, x15, lsl #2]
	add	x15, x15, #1
	ldr	w2, [x14, x15, lsl #2]
	cmp	w1, w2
	b.ge	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mvn	w3, w1
	add	w3, w2, w3
	cmp	w3, #7
	b.lo	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	lsl	x4, x3, #2
	add	x5, x17, x4
	add	x5, x5, #4
	add	x4, x16, x4
	add	x4, x4, #4
	cmp	x17, x4
	ccmp	x16, x5, #2, lo
	b.lo	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	add	x5, x3, #1
	and	x6, x5, #0x1fffffff8
	lsl	x4, x6, #2
	add	x3, x16, x4
	add	x4, x17, x4
	add	w1, w1, w6
	add	x17, x17, #16
	add	x16, x16, #16
	mov	x7, x6
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	q0, q1, [x17, #-16]
	ldp	q2, q3, [x16, #-16]
	fadd.4s	v4, v0, v2
	fadd.4s	v5, v1, v3
	stp	q4, q5, [x17, #-16]
	fsub.4s	v0, v0, v2
	fsub.4s	v1, v1, v3
	stp	q0, q1, [x16, #-16]
	add	x17, x17, #32
	add	x16, x16, #32
	subs	x7, x7, #8
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	cmp	x5, x6
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x17, x4
	mov	x16, x3
	b	LBB0_6
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x3, x16
	mov	x4, x17
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=2
	sub	w1, w2, w1
	mov	x16, x3
	mov	x17, x4
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	s0, [x17]
	ldr	s1, [x16]
	fadd	s2, s0, s1
	str	s2, [x17], #4
	fsub	s0, s0, s1
	str	s0, [x16], #4
	subs	w1, w1, #1
	b.ne	LBB0_17
	b	LBB0_6
LBB0_18:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_on2avc_apply_ms
.subsections_via_symbols
