	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dnxhd_mb_var_thread
_dnxhd_mb_var_thread:                   ## @dnxhd_mb_var_thread
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	movl	24(%rdi), %ecx
	decl	%ecx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	cmpl	%edx, %ecx
	jne	LBB0_1
## %bb.2:
	movl	(%r15), %esi
	movb	(%rdi), %cl
	sarl	%cl, %esi
	testb	$15, %sil
	setne	%cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	56(%rdi), %rcx
	cltq
	movq	(%rcx,%rax,8), %r9
	cmpl	$8, 4(%r9)
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	jne	LBB0_28
## %bb.4:
	movl	32(%r9), %edx
	testl	%edx, %edx
	jle	LBB0_45
## %bb.5:
	movq	56(%r9), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	shll	$4, %ecx
	movslq	28(%r9), %r12
	movslq	%ecx, %rcx
	imulq	%rcx, %r12
	shlq	$2, %r12
	addq	(%rax), %r12
	negl	%ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	imull	%ebx, %ebx
	shrl	$8, %ebx
	subl	%ebx, %ecx
	subl	$-128, %ecx
	shrl	$8, %ecx
	movq	16(%r9), %rax
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %edx
	movl	%ecx, (%rax,%rdx,8)
	movl	%esi, 4(%rax,%rdx,8)
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	incl	%esi
	addq	$64, %r12
	movl	32(%r9), %edx
	cmpl	%edx, %esi
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jge	LBB0_45
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
                                        ##       Child Loop BB0_25 Depth 3
	imull	-48(%rbp), %edx                 ## 4-byte Folded Reload
	addl	%esi, %edx
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	movl	%edx, -88(%rbp)                 ## 4-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r15), %edi
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%esi, %eax
	shll	$4, %eax
	subl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$16, %esi
	movq	%r9, %r14
	callq	_FFMIN
	movl	%eax, %r13d
	movl	(%r15), %edi
	movb	(%r14), %cl
	sarl	%cl, %edi
	addl	-72(%rbp), %edi                 ## 4-byte Folded Reload
	movl	$16, %esi
	callq	_FFMIN
	testl	%eax, %eax
	jle	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %r11d
	movl	%r11d, %r15d
	andl	$-8, %r15d
	leaq	-8(%r15), %r10
	movq	%r10, -96(%rbp)                 ## 8-byte Spill
	shrq	$3, %r10
	incq	%r10
	movq	%r10, %rcx
	andq	$-2, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=2
	incl	%r14d
	cmpl	%eax, %r14d
	je	LBB0_27
LBB0_14:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
                                        ##       Child Loop BB0_25 Depth 3
	testl	%r13d, %r13d
	jle	LBB0_26
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	28(%r9), %esi
	imull	%r14d, %esi
	movslq	%esi, %r8
	cmpl	$8, %r13d
	jae	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	xorl	%esi, %esi
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	movd	%ebx, %xmm0
	movd	%ecx, %xmm1
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=2
	leaq	(%r12,%r8,4), %rbx
	pxor	%xmm2, %xmm2
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	xorl	%ecx, %ecx
	movdqa	%xmm1, %xmm5
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movdqu	(%rbx,%rcx,4), %xmm6
	movdqu	16(%rbx,%rcx,4), %xmm7
	movdqu	32(%rbx,%rcx,4), %xmm1
	movdqu	48(%rbx,%rcx,4), %xmm3
	paddd	%xmm6, %xmm0
	paddd	%xmm7, %xmm2
	pmulld	%xmm6, %xmm6
	paddd	%xmm5, %xmm6
	pmulld	%xmm7, %xmm7
	paddd	%xmm4, %xmm7
	paddd	%xmm1, %xmm0
	paddd	%xmm3, %xmm2
	pmulld	%xmm1, %xmm1
	paddd	%xmm6, %xmm1
	pmulld	%xmm3, %xmm3
	paddd	%xmm7, %xmm3
	addq	$16, %rcx
	movdqa	%xmm1, %xmm5
	movdqa	%xmm3, %xmm4
	addq	$-2, %r9
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=2
	testb	$1, %r10b
	je	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=2
	addq	%r8, %rcx
	movdqu	(%r12,%rcx,4), %xmm4
	movdqu	16(%r12,%rcx,4), %xmm5
	paddd	%xmm4, %xmm0
	paddd	%xmm5, %xmm2
	pmulld	%xmm4, %xmm4
	paddd	%xmm4, %xmm1
	pmulld	%xmm5, %xmm5
	paddd	%xmm5, %xmm3
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=2
	paddd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	pshufd	$238, %xmm1, %xmm2              ## xmm2 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm2
	pshufd	$85, %xmm2, %xmm1               ## xmm1 = xmm2[1,1,1,1]
	paddd	%xmm2, %xmm1
	movd	%xmm1, %ecx
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ebx
	movq	%r15, %rsi
	cmpq	%r11, %r15
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	je	LBB0_26
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=2
	leaq	(%r12,%r8,4), %rdi
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rdi,%rsi,4), %edx
	addl	%edx, %ebx
	imull	%edx, %edx
	addl	%edx, %ecx
	incq	%rsi
	cmpq	%rsi, %r11
	jne	LBB0_25
	jmp	LBB0_26
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=2
	pxor	%xmm2, %xmm2
	xorl	%ecx, %ecx
	pxor	%xmm3, %xmm3
	testb	$1, %r10b
	jne	LBB0_22
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%esi, %eax
	shll	$4, %eax
	movl	4(%r15), %edi
	leal	-16(%rdi), %ecx
	cmpl	%ecx, %eax
	jg	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%edi, %eax
	andl	$15, %eax
	jne	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	28(%r9), %esi
	movq	%r12, %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*40(%rax)
	movl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %esi
	movq	%r12, %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*48(%rax)
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movl	%eax, %ecx
	jmp	LBB0_27
LBB0_28:
	movl	32(%r9), %r14d
	testl	%r14d, %r14d
	jle	LBB0_45
## %bb.29:
	movl	28(%r9), %eax
	sarl	%eax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ecx
	imull	%eax, %ecx
	shll	$4, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	shll	$4, %edx
	negl	%edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movslq	%eax, %r13
	shlq	$3, %r13
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_30 Depth=1
	sarl	$8, %edx
	sarl	$8, %r15d
	imull	%edx, %edx
	subl	%edx, %r15d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	16(%r9), %rax
	movl	%r14d, %ecx
	movl	%r15d, (%rax,%rcx,8)
	movl	%r14d, 4(%rax,%rcx,8)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movslq	32(%r9), %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	$16, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	%r14, %rcx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jge	LBB0_45
LBB0_30:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
                                        ##       Child Loop BB0_38 Depth 3
                                        ##       Child Loop BB0_42 Depth 3
	movq	56(%r9), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	imull	-48(%rbp), %r14d                ## 4-byte Folded Reload
	addl	%ecx, %r14d
	movl	4(%r15), %edi
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	shll	$4, %eax
	subl	%eax, %edi
	movl	$16, %esi
	movq	%r9, %rbx
	callq	_FFMIN
	movl	%eax, %r12d
	movl	(%r15), %edi
	movb	(%rbx), %cl
	sarl	%cl, %edi
	addl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	movl	$16, %esi
	callq	_FFMIN
	movl	$0, %edx
	movl	$0, %r15d
	testl	%eax, %eax
	jle	LBB0_44
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movslq	-64(%rbp), %rdx                 ## 4-byte Folded Reload
	movl	%r12d, %ecx
	movl	%ecx, %r11d
	andl	$-4, %r11d
	leaq	-4(%r11), %r9
	movq	%r9, %r10
	shrq	$2, %r10
	incq	%r10
	movq	%r10, %rsi
	andq	$-2, %rsi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rsi,8), %rsi
	leaq	(%rsi,%rdx,8), %rsi
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_32 Depth=2
	addq	%r13, %rsi
	incl	%edi
	cmpl	%eax, %edi
	je	LBB0_44
LBB0_32:                                ##   Parent Loop BB0_30 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_38 Depth 3
                                        ##       Child Loop BB0_42 Depth 3
	testl	%r12d, %r12d
	jle	LBB0_43
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=2
	cmpl	$4, %r12d
	jae	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=2
	xorl	%ebx, %ebx
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_32 Depth=2
	movd	%r15d, %xmm0
	movd	%edx, %xmm1
	pxor	%xmm2, %xmm2
	testq	%r9, %r9
	je	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_32 Depth=2
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	xorl	%edx, %edx
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_38:                                ##   Parent Loop BB0_30 Depth=1
                                        ##     Parent Loop BB0_32 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movdqu	(%rsi,%rdx,8), %xmm4
	movdqu	16(%rsi,%rdx,8), %xmm5
	movdqu	32(%rsi,%rdx,8), %xmm8
	movdqu	48(%rsi,%rdx,8), %xmm7
	pshufd	$232, %xmm4, %xmm6              ## xmm6 = xmm4[0,2,2,3]
	pshufd	$232, %xmm5, %xmm4              ## xmm4 = xmm5[0,2,2,3]
	psrld	$6, %xmm6
	psrld	$6, %xmm4
	paddd	%xmm6, %xmm1
	paddd	%xmm4, %xmm3
	pmulld	%xmm6, %xmm6
	paddd	%xmm0, %xmm6
	pmulld	%xmm4, %xmm4
	paddd	%xmm2, %xmm4
	pshufd	$232, %xmm8, %xmm0              ## xmm0 = xmm8[0,2,2,3]
	pshufd	$232, %xmm7, %xmm2              ## xmm2 = xmm7[0,2,2,3]
	psrld	$6, %xmm0
	psrld	$6, %xmm2
	paddd	%xmm0, %xmm1
	paddd	%xmm2, %xmm3
	pmulld	%xmm0, %xmm0
	paddd	%xmm6, %xmm0
	pmulld	%xmm2, %xmm2
	paddd	%xmm4, %xmm2
	addq	$8, %rdx
	addq	$-2, %rbx
	jne	LBB0_38
## %bb.39:                              ##   in Loop: Header=BB0_32 Depth=2
	testb	$1, %r10b
	je	LBB0_41
LBB0_40:                                ##   in Loop: Header=BB0_32 Depth=2
	movdqu	(%rsi,%rdx,8), %xmm4
	movdqu	16(%rsi,%rdx,8), %xmm5
	pshufd	$232, %xmm4, %xmm4              ## xmm4 = xmm4[0,2,2,3]
	pshufd	$232, %xmm5, %xmm5              ## xmm5 = xmm5[0,2,2,3]
	psrld	$6, %xmm4
	psrld	$6, %xmm5
	paddd	%xmm4, %xmm1
	paddd	%xmm5, %xmm3
	pmulld	%xmm4, %xmm4
	paddd	%xmm4, %xmm0
	pmulld	%xmm5, %xmm5
	paddd	%xmm5, %xmm2
LBB0_41:                                ##   in Loop: Header=BB0_32 Depth=2
	paddd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	pshufd	$85, %xmm1, %xmm2               ## xmm2 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm2
	movd	%xmm2, %edx
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r15d
	movq	%r11, %rbx
	cmpq	%rcx, %r11
	je	LBB0_43
	.p2align	4, 0x90
LBB0_42:                                ##   Parent Loop BB0_30 Depth=1
                                        ##     Parent Loop BB0_32 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rsi,%rbx,8), %r8d
	shrl	$6, %r8d
	addl	%r8d, %edx
	imull	%r8d, %r8d
	addl	%r8d, %r15d
	incq	%rbx
	cmpq	%rbx, %rcx
	jne	LBB0_42
	jmp	LBB0_43
LBB0_36:                                ##   in Loop: Header=BB0_32 Depth=2
	xorl	%edx, %edx
	pxor	%xmm3, %xmm3
	testb	$1, %r10b
	jne	LBB0_40
	jmp	LBB0_41
LBB0_45:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dnxhd_mb_var_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dnxhd_mb_var_thread
_dnxhd_mb_var_thread:                   ; @dnxhd_mb_var_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8, #24]
	sub	w9, w9, #1
	cmp	w9, w2
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x20]
	ldr	w10, [x8]
	asr	w9, w9, w10
	tst	w9, #0xf
	cset	w25, ne
	b	LBB0_3
LBB0_2:
	mov	w25, #0
LBB0_3:
	ldr	x8, [x8, #56]
	ldr	x24, [x8, w3, sxtw #3]
	ldr	w8, [x24, #4]
	cmp	w8, #8
	b.ne	LBB0_23
; %bb.4:
	ldr	w27, [x24, #32]
	cmp	w27, #1
	b.lt	LBB0_37
; %bb.5:
	mov	w26, #0
	ldr	x8, [x24, #56]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	lsl	w9, w19, #4
	ldr	w10, [x24, #28]
	mul	w10, w9, w10
	add	x21, x8, w10, sxtw #2
	neg	w28, w9
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #0
	mov	w23, #0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	madd	w9, w27, w19, w26
	mul	w10, w23, w23
	sub	w8, w8, w10, lsr #8
	add	w8, w8, #128
	lsr	w8, w8, #8
	ldr	x10, [x24, #16]
	add	x10, x10, w9, uxtw #3
	stp	w8, w9, [x10]
	add	w26, w26, #1
	add	x21, x21, #64
	ldr	w27, [x24, #32]
	cmp	w26, w27
	b.ge	LBB0_37
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
                                        ;       Child Loop BB0_21 Depth 3
	cbz	w25, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20, #4]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20, #4]
	sub	w9, w8, #16
	and	w10, w8, #0xf
	cmp	w9, w26, lsl #4
	ccmp	w10, #0, #0, ge
	b.eq	LBB0_22
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w0, w8, w26, lsl #4
	mov	w1, #16
	bl	_FFMIN
	mov	x22, x0
	ldr	w8, [x20]
	ldr	w9, [x24]
	asr	w8, w8, w9
	add	w0, w8, w28
	mov	w1, #16
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w9, #0
	mov	w23, #0
	mov	w8, #0
	mov	w10, w22
	and	x11, x10, #0xfffffff0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	w9, w9, #1
	cmp	w9, w0
	b.eq	LBB0_7
LBB0_14:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
                                        ;       Child Loop BB0_21 Depth 3
	cmp	w22, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	w12, [x24, #28]
	cmp	w22, #16
	b.hs	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x13, #0
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=2
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w23
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	mov.s	v2[0], w8
	mul	w8, w12, w9
	sbfiz	x8, x8, #2, #32
	mov	x13, x11
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
LBB0_18:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_14 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x14, x21, x8
	ldp	q16, q17, [x14]
	ldp	q18, q19, [x14, #32]
	add.4s	v0, v16, v0
	add.4s	v1, v17, v1
	add.4s	v3, v18, v3
	add.4s	v4, v19, v4
	mla.4s	v2, v16, v16
	mla.4s	v5, v17, v17
	mla.4s	v6, v18, v18
	mla.4s	v7, v19, v19
	add	x8, x8, #64
	subs	x13, x13, #16
	b.ne	LBB0_18
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=2
	add.4s	v2, v5, v2
	add.4s	v2, v6, v2
	add.4s	v2, v7, v2
	addv.4s	s2, v2
	fmov	w8, s2
	add.4s	v0, v1, v0
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	addv.4s	s0, v0
	fmov	w23, s0
	mov	x13, x11
	cmp	x11, x10
	b.eq	LBB0_13
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=2
	mul	w12, w12, w9
	add	x12, x13, w12, sxtw
	lsl	x12, x12, #2
	sub	x13, x10, x13
LBB0_21:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_14 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w14, [x21, x12]
	add	w23, w14, w23
	madd	w8, w14, w14, w8
	add	x12, x12, #4
	subs	x13, x13, #1
	b.ne	LBB0_21
	b	LBB0_13
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x24, #40]
	ldr	w1, [x24, #28]
	mov	x0, x21
	blr	x8
	mov	x23, x0
	ldr	x8, [x24, #48]
	ldr	w1, [x24, #28]
	mov	x0, x21
	blr	x8
	mov	x8, x0
	b	LBB0_7
LBB0_23:
	ldr	w25, [x24, #32]
	cmp	w25, #1
	b.lt	LBB0_37
; %bb.24:
	mov	w8, #0
	mov	x22, #0
	ldr	w9, [x24, #28]
	asr	w9, w9, #1
	lsl	w10, w19, #4
	mul	w11, w10, w9
	sxtw	x11, w11
	str	x11, [sp, #8]                   ; 8-byte Folded Spill
	neg	w26, w10
	sbfiz	x27, x9, #3, #32
	b	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_27 Depth=1
	mov	w13, #0
	mov	w14, #0
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	madd	w8, w25, w19, w22
	asr	w9, w13, #8
	asr	w10, w14, #8
	msub	w9, w9, w9, w10
	ldr	x10, [x24, #16]
	add	x10, x10, w8, uxtw #3
	stp	w9, w8, [x10]
	add	x22, x22, #1
	ldrsw	x25, [x24, #32]
	add	w8, w28, #16
	cmp	x22, x25
	b.ge	LBB0_37
LBB0_27:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_30 Depth 2
                                        ;       Child Loop BB0_34 Depth 3
                                        ;       Child Loop BB0_36 Depth 3
	sxtw	x28, w8
	ldr	x8, [x24, #56]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x23, [x8]
	ldr	w8, [x20, #4]
	sub	w0, w8, w22, lsl #4
	mov	w1, #16
	bl	_FFMIN
	mov	x21, x0
	ldr	w8, [x20]
	ldr	w9, [x24]
	asr	w8, w8, w9
	add	w0, w8, w26
	mov	w1, #16
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	w8, #0
	mov	w14, #0
	mov	w13, #0
	mov	w9, w21
	and	x10, x9, #0xfffffff8
	lsl	x11, x9, #3
	and	x11, x11, #0x7ffffffc0
	ldr	x12, [sp, #8]                   ; 8-byte Folded Reload
	add	x12, x23, x12, lsl #3
	add	x12, x12, x28, lsl #3
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=2
	add	w8, w8, #1
	add	x12, x12, x27
	cmp	w8, w0
	b.eq	LBB0_26
LBB0_30:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_34 Depth 3
                                        ;       Child Loop BB0_36 Depth 3
	cmp	w21, #1
	b.lt	LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=2
	cmp	w21, #8
	b.hs	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=2
	mov	x15, #0
	b	LBB0_36
LBB0_33:                                ;   in Loop: Header=BB0_30 Depth=2
	mov	x15, #0
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w14
	movi.2d	v2, #0000000000000000
	mov.s	v2[0], w13
	movi.2d	v1, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
LBB0_34:                                ;   Parent Loop BB0_27 Depth=1
                                        ;     Parent Loop BB0_30 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x13, x12, x15
	ldp	q16, q17, [x13]
	ldp	q18, q19, [x13, #32]
	xtn.2s	v16, v16
	xtn.2s	v17, v17
	xtn.2s	v18, v18
	xtn.2s	v19, v19
	ushr.2s	v20, v16, #6
	ushr.2s	v21, v17, #6
	ushr.2s	v22, v18, #6
	ushr.2s	v23, v19, #6
	usra.2s	v2, v16, #6
	usra.2s	v5, v17, #6
	usra.2s	v6, v18, #6
	usra.2s	v7, v19, #6
	mla.2s	v0, v20, v20
	mla.2s	v1, v21, v21
	mla.2s	v3, v22, v22
	mla.2s	v4, v23, v23
	add	x15, x15, #64
	cmp	x11, x15
	b.ne	LBB0_34
; %bb.35:                               ;   in Loop: Header=BB0_30 Depth=2
	add.2s	v2, v5, v2
	add.2s	v2, v6, v2
	add.2s	v2, v7, v2
	addp.2s	v2, v2, v2
	fmov	w13, s2
	add.2s	v0, v1, v0
	add.2s	v0, v3, v0
	add.2s	v0, v4, v0
	addp.2s	v0, v0, v0
	fmov	w14, s0
	mov	x15, x10
	cmp	x10, x9
	b.eq	LBB0_29
LBB0_36:                                ;   Parent Loop BB0_27 Depth=1
                                        ;     Parent Loop BB0_30 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x16, [x12, x15, lsl #3]
	ubfx	x16, x16, #6, #26
	add	w13, w16, w13
	madd	w14, w16, w16, w14
	add	x15, x15, #1
	cmp	x9, x15
	b.ne	LBB0_36
	b	LBB0_29
LBB0_37:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dnxhd_mb_var_thread
.subsections_via_symbols
