	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dnxhd_decode_frame
_dnxhd_decode_frame:                    ## @dnxhd_decode_frame
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	8(%rcx), %r14
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r15d
	movq	40(%rdi), %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_ff_dlog
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.1:
	movq	40(%r13), %rax
	leaq	-1(%rdx), %rsi
	movl	%edx, %ecx
	andl	$3, %ecx
	cmpq	$3, %rsi
	jae	LBB0_12
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_3
LBB0_12:
	andl	$-4, %edx
	leaq	48(%rax), %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	$-1, -48(%rdi)
	movl	$-1, -32(%rdi)
	movl	$-1, -16(%rdi)
	movl	$-1, (%rdi)
	addq	$4, %rsi
	addq	$64, %rdi
	cmpq	%rsi, %rdx
	jne	LBB0_13
LBB0_3:
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:
	shlq	$4, %rsi
	addq	%rsi, %rax
	shlq	$4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_5
LBB0_6:
	movl	$1, %ebx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movl	$1, %r8d
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	callq	_dnxhd_decode_header
	testl	%eax, %eax
	js	LBB0_55
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rcx
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 16(%r12)
	je	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %r9
	cmpq	%rcx, %r9
	jne	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %rax
	movq	16(%r12), %r8
	cmpq	%r8, %rax
	jne	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r12), %r8
	movq	8(%r13), %rax
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %ebx
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r12), %rdi
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	16(%r13), %rdi
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_av_get_pix_fmt_name
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rdi
	callq	_av_get_pix_fmt_name
	movq	%r12, %rdi
	movl	%ebx, %esi
	leaq	L_.str.2(%rip), %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %ebx
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %rax
	movq	%rax, 24(%r12)
	movq	(%r13), %rsi
	movq	8(%r13), %rdx
	movq	%r12, %rdi
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_55
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	leaq	-80(%rbp), %rsi
	xorl	%edx, %edx
	callq	_ff_thread_get_buffer
	testl	%eax, %eax
	js	LBB0_55
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 16(%rbx)
	movl	$1, (%rbx)
	movslq	28(%r13), %rax
	movl	%r15d, %ecx
	subl	%eax, %ecx
	movl	%ecx, 24(%r13)
	leaq	(%r14,%rax,4), %rax
	movq	%rax, 72(%r13)
	movq	_dnxhd_decode_row@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	64(%r13), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	*32(%r12)
	cmpq	$0, 8(%rbx)
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	56(%r13), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax,4), %r14
	subl	%eax, %r15d
	movq	%rbx, %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_7
LBB0_24:
	movslq	28(%r13), %rax
	subl	%eax, %r15d
	movl	%r15d, 24(%r13)
	leaq	(%r14,%rax,4), %rax
	movq	%rax, 72(%r13)
	movq	_dnxhd_decode_row@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	64(%r13), %r8d
	movq	%r12, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	*32(%r12)
LBB0_25:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_26
## %bb.27:
	movq	40(%r13), %r8
	leaq	-1(%rax), %rdx
	movl	%eax, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_29
## %bb.28:
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_26:
	xorl	%ebx, %ebx
	jmp	LBB0_34
LBB0_29:
	movl	%eax, %edi
	andl	$-4, %edi
	leaq	56(%r8), %rdx
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	addl	-48(%rdx), %ebx
	movq	$0, -48(%rdx)
	addl	-32(%rdx), %ebx
	movq	$0, -32(%rdx)
	addl	-16(%rdx), %ebx
	movq	$0, -16(%rdx)
	addl	(%rdx), %ebx
	movq	$0, (%rdx)
	addq	$4, %rsi
	addq	$64, %rdx
	cmpq	%rsi, %rdi
	jne	LBB0_30
LBB0_31:
	testq	%rcx, %rcx
	je	LBB0_34
## %bb.32:
	shlq	$4, %rsi
	leaq	(%r8,%rsi), %rdx
	addq	$8, %rdx
	shlq	$4, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rdx,%rsi), %ebx
	movq	$0, (%rdx,%rsi)
	addq	$16, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_33
LBB0_34:
	cmpq	$0, 48(%r13)
	je	LBB0_51
## %bb.35:
	movq	40(%r13), %rdx
	movl	(%rdx), %ecx
	cmpl	$2, %eax
	jl	LBB0_42
## %bb.36:
	shlq	$4, %rax
	movl	$16, %esi
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_38 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %rax
	je	LBB0_42
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi), %edi
	cmpl	%ecx, %edi
	je	LBB0_37
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	cmpl	$-1, %edi
	je	LBB0_37
	jmp	LBB0_40
LBB0_42:
	incl	%ecx
	cmpl	$3, %ecx
	ja	LBB0_51
## %bb.43:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_40:
	cmpb	$0, _dnxhd_decode_frame.act_warned(%rip)
	jne	LBB0_51
## %bb.41:
	movb	$1, _dnxhd_decode_frame.act_warned(%rip)
	movslq	36(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_51
LBB0_44:
	cmpl	$10, 32(%r13)
	jne	LBB0_45
## %bb.46:
	movq	_AV_PIX_FMT_GBRP10@GOTPCREL(%rip), %rax
	jmp	LBB0_50
LBB0_47:
	cmpl	$10, 32(%r13)
	jne	LBB0_48
## %bb.49:
	movq	_AV_PIX_FMT_YUV444P10@GOTPCREL(%rip), %rax
	jmp	LBB0_50
LBB0_45:
	movq	_AV_PIX_FMT_GBRP12@GOTPCREL(%rip), %rax
	jmp	LBB0_50
LBB0_48:
	movq	_AV_PIX_FMT_YUV444P12@GOTPCREL(%rip), %rax
LBB0_50:
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
LBB0_51:
	movq	16(%r13), %rax
	movq	%rax, 24(%r12)
	testl	%ebx, %ebx
	je	LBB0_53
## %bb.52:
	movslq	36(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_54
LBB0_53:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
LBB0_54:
	movl	(%rax), %eax
LBB0_55:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_44, LBB0_44-LJTI0_0
.set L0_0_set_47, LBB0_47-LJTI0_0
LJTI0_0:
	.long	L0_0_set_40
	.long	L0_0_set_44
	.long	L0_0_set_47
	.long	L0_0_set_40
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame size %d\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"frame size changed: %dx%d -> %ux%u\n"

	.comm	_AV_PIX_FMT_NONE,8,3            ## @AV_PIX_FMT_NONE
L_.str.2:                               ## @.str.2
	.asciz	"pix_fmt changed: %s -> %s\n"

	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_dnxhd_decode_row,4,2           ## @dnxhd_decode_row
.zerofill __DATA,__bss,_dnxhd_decode_frame.act_warned,1,2 ## @dnxhd_decode_frame.act_warned
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"Unsupported: variable ACT flag.\n"

	.comm	_AV_PIX_FMT_GBRP10,8,3          ## @AV_PIX_FMT_GBRP10
	.comm	_AV_PIX_FMT_GBRP12,8,3          ## @AV_PIX_FMT_GBRP12
	.comm	_AV_PIX_FMT_YUV444P10,8,3       ## @AV_PIX_FMT_YUV444P10
	.comm	_AV_PIX_FMT_YUV444P12,8,3       ## @AV_PIX_FMT_YUV444P12
L_.str.4:                               ## @.str.4
	.asciz	"%d lines with errors\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_dnxhd_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dnxhd_decode_frame
_dnxhd_decode_frame:                    ; @dnxhd_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x24, [x3, #8]
	ldr	w25, [x3]
	ldr	x22, [x0, #40]
	str	x1, [sp, #56]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	bl	_ff_dlog
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x9, [x22, #40]
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #32
	mov	w12, #-1
	mov	x13, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stur	w12, [x11, #-32]
	stur	w12, [x11, #-16]
	str	w12, [x11]
	str	w12, [x11, #16]
	add	x11, x11, #64
	subs	x13, x13, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x8
	b.eq	LBB0_8
LBB0_6:
	add	x9, x9, x10, lsl #4
	sub	x8, x8, x10
	mov	w10, #-1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	w10, [x9], #16
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	mov	w26, #1
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	mov	w4, #1
	bl	_dnxhd_decode_header
	tbnz	w0, #31, LBB0_50
; %bb.9:
	stp	x19, x20, [sp, #40]             ; 16-byte Folded Spill
Lloh2:
	adrp	x27, _AV_PIX_FMT_NONE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh4:
	adrp	x19, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh5:
	ldr	x19, [x19, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh6:
	adrp	x28, _dnxhd_decode_row@GOTPAGE
Lloh7:
	ldr	x28, [x28, _dnxhd_decode_row@GOTPAGEOFF]
	mov	w20, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x22]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x11, [x22, #8]
	ldr	x10, [x21, #16]
	cmp	x11, x10
	b.ne	LBB0_15
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x21, #16]
	ldr	x11, [x22, #8]
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh8:
	adrp	x12, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x12, [x12, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x12]
	stp	x9, x11, [sp, #16]
	stp	x8, x10, [sp]
	mov	x0, x21
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	mov	w20, #1
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x21, #24]
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22, #16]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x26, x19
	mov	x19, x28
Lloh13:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w28, [x8]
	bl	_av_get_pix_fmt_name
	mov	x20, x0
	ldr	x0, [x22, #16]
	bl	_av_get_pix_fmt_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
	mov	x0, x21
	mov	x1, x28
	mov	x28, x19
	mov	x19, x26
	mov	w26, #1
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	mov	w20, #1
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22, #16]
	str	x8, [x21, #24]
	ldp	x1, x2, [x22]
	mov	x0, x21
	bl	_ff_set_dimensions
	tbnz	w0, #31, LBB0_50
; %bb.20:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	w20, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x1, sp, #56
	mov	x0, x21
	mov	w2, #0
	bl	_ff_thread_get_buffer
	tbnz	w0, #31, LBB0_50
; %bb.22:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x19]
	str	w8, [x23, #16]
	str	w26, [x23]
	ldrsw	x8, [x22, #28]
	sub	w9, w25, w8
	str	w9, [x22, #24]
	add	x8, x24, x8, lsl #2
	str	x8, [x22, #72]
	ldr	x8, [x21, #32]
	ldr	w1, [x28]
	ldr	w4, [x22, #64]
	mov	x0, x21
	mov	x2, x23
	mov	x3, #0
	blr	x8
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22, #56]
	ldr	x8, [x8]
	add	x24, x24, x8, lsl #2
	sub	w25, w25, w8
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	mov	w4, #0
	bl	_dnxhd_decode_header
	mov	w20, #0
	tbz	w0, #31, LBB0_10
	b	LBB0_50
LBB0_24:
	ldrsw	x8, [x22, #28]
	sub	w9, w25, w8
	str	w9, [x22, #24]
	add	x8, x24, x8, lsl #2
	str	x8, [x22, #72]
	ldr	x8, [x21, #32]
	ldr	w1, [x28]
	ldr	w4, [x22, #64]
	mov	x0, x21
	mov	x2, x23
	mov	x3, #0
	blr	x8
LBB0_25:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.26:
	ldr	x9, [x22, #40]
	cmp	w8, #9
	ldr	x20, [sp, #48]                  ; 8-byte Folded Reload
	b.hs	LBB0_29
; %bb.27:
	mov	x10, #0
	mov	w19, #0
	b	LBB0_32
LBB0_28:
	mov	w19, #0
	ldr	x20, [sp, #48]                  ; 8-byte Folded Reload
	b	LBB0_34
LBB0_29:
	ands	x10, x8, #0x7
	mov	w11, #8
	csel	x10, x11, x10, eq
	sub	x10, x8, x10
	add	x11, x9, #72
	movi.2d	v0, #0000000000000000
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	sub	x13, x11, #64
	ld2.2d	{ v4, v5 }, [x13]
	sub	x13, x11, #32
	ld2.2d	{ v6, v7 }, [x13]
	mov	x13, x11
	ld2.2d	{ v16, v17 }, [x13], #32
	ld2.2d	{ v18, v19 }, [x13]
	xtn.2s	v4, v4
	xtn.2s	v5, v6
	xtn.2s	v6, v16
	xtn.2s	v7, v18
	add.2s	v0, v0, v4
	stur	xzr, [x11, #-64]
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	stur	xzr, [x11, #-48]
	add.2s	v3, v3, v7
	stur	xzr, [x11, #-32]
	stur	xzr, [x11, #-16]
	str	xzr, [x11]
	str	xzr, [x11, #16]
	str	xzr, [x13]
	str	xzr, [x11, #48]
	add	x11, x11, #128
	subs	x12, x12, #8
	b.ne	LBB0_30
; %bb.31:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w19, s0
LBB0_32:
	add	x9, x9, x10, lsl #4
	add	x9, x9, #8
	sub	x10, x8, x10
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	add	w19, w19, w11
	str	xzr, [x9], #16
	subs	x10, x10, #1
	b.ne	LBB0_33
LBB0_34:
	ldr	x9, [x22, #48]
	cbz	x9, LBB0_46
; %bb.35:
	ldr	x10, [x22, #40]
	ldr	w9, [x10]
	cmp	w8, #2
	b.lt	LBB0_39
; %bb.36:
	add	x10, x10, #16
	sub	x8, x8, #1
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, w9
	ccmn	w11, #1, #4, ne
	b.ne	LBB0_41
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	add	x10, x10, #16
	subs	x8, x8, #1
	b.ne	LBB0_37
LBB0_39:
	add	w8, w9, #1
	cmp	w8, #3
	b.hi	LBB0_46
; %bb.40:
Lloh18:
	adrp	x9, lJTI0_0@PAGE
Lloh19:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_41
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_41:
	adrp	x8, _dnxhd_decode_frame.act_warned@PAGE
	ldrb	w9, [x8, _dnxhd_decode_frame.act_warned@PAGEOFF]
	tbnz	w9, #0, LBB0_46
; %bb.42:
	mov	w9, #1
	strb	w9, [x8, _dnxhd_decode_frame.act_warned@PAGEOFF]
	ldrsw	x0, [x22, #36]
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
	b	LBB0_46
LBB0_43:
	ldr	w8, [x22, #32]
Lloh25:
	adrp	x9, _AV_PIX_FMT_GBRP10@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AV_PIX_FMT_GBRP10@GOTPAGEOFF]
Lloh27:
	adrp	x10, _AV_PIX_FMT_GBRP12@GOTPAGE
Lloh28:
	ldr	x10, [x10, _AV_PIX_FMT_GBRP12@GOTPAGEOFF]
	b	LBB0_45
LBB0_44:
	ldr	w8, [x22, #32]
Lloh29:
	adrp	x9, _AV_PIX_FMT_YUV444P10@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AV_PIX_FMT_YUV444P10@GOTPAGEOFF]
Lloh31:
	adrp	x10, _AV_PIX_FMT_YUV444P12@GOTPAGE
Lloh32:
	ldr	x10, [x10, _AV_PIX_FMT_YUV444P12@GOTPAGEOFF]
LBB0_45:
	cmp	w8, #10
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	str	x8, [x22, #16]
LBB0_46:
	ldr	x8, [x22, #16]
	str	x8, [x21, #24]
	cbz	w19, LBB0_48
; %bb.47:
	ldrsw	x0, [x22, #36]
Lloh33:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	str	x19, [sp]
Lloh36:
	adrp	x2, l_.str.4@PAGE
Lloh37:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_av_log
Lloh38:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_49
LBB0_48:
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
LBB0_49:
	ldr	w0, [x8]
LBB0_50:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_41-LBB0_41)>>2
	.byte	(LBB0_43-LBB0_41)>>2
	.byte	(LBB0_44-LBB0_41)>>2
	.byte	(LBB0_41-LBB0_41)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame size %d\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"frame size changed: %dx%d -> %ux%u\n"

	.comm	_AV_PIX_FMT_NONE,8,3            ; @AV_PIX_FMT_NONE
l_.str.2:                               ; @.str.2
	.asciz	"pix_fmt changed: %s -> %s\n"

	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_dnxhd_decode_row,4,2           ; @dnxhd_decode_row
.zerofill __DATA,__bss,_dnxhd_decode_frame.act_warned,1,2 ; @dnxhd_decode_frame.act_warned
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"Unsupported: variable ACT flag.\n"

	.comm	_AV_PIX_FMT_GBRP10,8,3          ; @AV_PIX_FMT_GBRP10
	.comm	_AV_PIX_FMT_GBRP12,8,3          ; @AV_PIX_FMT_GBRP12
	.comm	_AV_PIX_FMT_YUV444P10,8,3       ; @AV_PIX_FMT_YUV444P10
	.comm	_AV_PIX_FMT_YUV444P12,8,3       ; @AV_PIX_FMT_YUV444P12
l_.str.4:                               ; @.str.4
	.asciz	"%d lines with errors\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_dnxhd_decode_frame
.subsections_via_symbols
