	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_pic_hdr
_decode_pic_hdr:                        ## @decode_pic_hdr
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	40(%rdi), %r15
	movq	%r15, %rdi
	movl	$18, %esi
	callq	_get_bits
	cmpl	$262136, %eax                   ## imm = 0x3FFF8
	jne	LBB0_1
## %bb.3:
	movl	4(%rbx), %eax
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, 4(%rbx)
	cmpl	$7, %eax
	jne	LBB0_5
## %bb.4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$7, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_55
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_5:
	movq	_IVI4_FRAMETYPE_BIDIR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movl	$1, 8(%rbx)
LBB0_7:
	movq	%r15, %rdi
	callq	_get_bits1
	movq	%rax, 120(%rbx)
	movq	%r15, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_55:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_71:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_get_bits
	jmp	LBB0_12
LBB0_10:
	xorl	%eax, %eax
LBB0_12:
	movl	%eax, 12(%rbx)
	movl	4(%rbx), %eax
	movq	_IVI4_FRAMETYPE_NULL_FIRST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_13
## %bb.14:
	movq	%r15, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_skip_bits_long
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_ff_dlog
LBB0_16:
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	movq	_IVI4_PIC_SIZE_ESC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_ff_dlog
LBB0_70:
	xorl	%eax, %eax
	jmp	LBB0_71
LBB0_18:
	movq	_ivi4_common_pic_sizes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %edx
	addl	%eax, %edx
	addl	%eax, %eax
	incl	%eax
	cltq
	movl	(%rcx,%rax,8), %r12d
	movslq	%edx, %rax
	movl	(%rcx,%rax,8), %r13d
LBB0_19:
	movl	%r12d, -72(%rbp)
	movl	%r13d, -68(%rbp)
	movq	%r15, %rdi
	callq	_get_bits1
	movq	%rax, %rcx
	movq	%rax, 112(%rbx)
	movl	%r12d, %edx
	movl	%r13d, %eax
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.20:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_scale_tile_size
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_scale_tile_size
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
LBB0_21:
	movl	%edx, -64(%rbp)
	movl	%eax, -60(%rbp)
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_get_bits
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_2
LBB0_23:
	leal	3(%r12), %eax
	sarl	$2, %eax
	movl	%eax, -56(%rbp)
	leal	3(%r13), %eax
	sarl	$2, %eax
	movl	%eax, -52(%rbp)
	movq	%r15, %rdi
	callq	_decode_plane_subdivision
	movl	%eax, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	je	LBB0_24
## %bb.25:
	movq	%r15, %rdi
	callq	_decode_plane_subdivision
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)
	jmp	LBB0_26
LBB0_24:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
LBB0_26:
	movl	(%r14), %edx
	movq	_AV_PIX_FMT_YUV410P@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	movl	%r12d, %esi
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_av_image_check_size2
	testq	%rax, %rax
	js	LBB0_27
## %bb.29:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$1, %ecx
	setne	%al
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	cmpl	$1, %r8d
	setne	%sil
	orb	%sil, %al
	movzbl	%al, %edx
	movl	%edx, 16(%rbx)
	cmpl	$4, %ecx
	setne	%al
	cmpb	$1, %dl
	jne	LBB0_32
## %bb.30:
	orb	%sil, %al
	je	LBB0_32
## %bb.31:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	jmp	LBB0_28
LBB0_27:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
LBB0_28:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_55
LBB0_32:
	leaq	72(%rbx), %r12
	leaq	-72(%rbp), %rdi
	movq	%r12, %rsi
	callq	_ivi_pic_config_cmp
	testq	%rax, %rax
	je	LBB0_48
## %bb.33:
	movq	104(%rbx), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_ff_ivi_init_planes
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	$0, 96(%rbx)
	jmp	LBB0_47
LBB0_35:
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%r12)
	movups	%xmm0, (%r12)
	cmpl	$0, -48(%rbp)
	jle	LBB0_38
## %bb.36:
	movq	104(%rbx), %rax
	xorl	%ecx, %ecx
	cmpl	$0, 16(%rbx)
	movq	(%rax), %rax
	sete	%cl
	leal	8(,%rcx,8), %ecx
	xorl	%edx, %edx
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rax,%rdx,8)
	movl	$8, 4(%rax,%rdx,8)
	incq	%rdx
	movslq	-48(%rbp), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_37
LBB0_38:
	cmpl	$0, -44(%rbp)
	jle	LBB0_42
## %bb.39:
	movq	104(%rbx), %rax
	movq	8(%rax), %rcx
	xorl	%edx, %edx
	movabsq	$17179869188, %rax              ## imm = 0x400000004
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rcx,%rdx,8)
	incq	%rdx
	movslq	-44(%rbp), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_40
## %bb.41:
	testl	%esi, %esi
	jle	LBB0_42
## %bb.43:
	movq	104(%rbx), %rdi
	movq	16(%rdi), %rcx
	xorl	%edx, %edx
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rcx,%rdx,8)
	incq	%rdx
	movslq	-44(%rbp), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_44
	jmp	LBB0_45
LBB0_42:
	movq	104(%rbx), %rdi
LBB0_45:
	movl	80(%rbx), %edx
	movl	84(%rbx), %esi
	callq	_ff_ivi_init_tiles
	testq	%rax, %rax
	je	LBB0_48
## %bb.46:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_47:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_71
LBB0_48:
	movq	%r15, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_49
## %bb.50:
	movq	%r15, %rdi
	movl	$20, %esi
	callq	_get_bits
	jmp	LBB0_51
LBB0_49:
	xorl	%eax, %eax
LBB0_51:
	movl	%eax, 20(%rbx)
	movq	%r15, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_53
## %bb.52:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_skip_bits
LBB0_53:
	movq	%r15, %rdi
	callq	_get_bits1
	movq	_IVI_MB_HUFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	68(%rbx), %rcx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r14, %r8
	callq	_ff_ivi_dec_huff_desc
	testq	%rax, %rax
	jne	LBB0_55
## %bb.54:
	movq	%r15, %rdi
	callq	_get_bits1
	movq	_IVI_BLK_HUFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	64(%rbx), %rcx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r14, %r8
	callq	_ff_ivi_dec_huff_desc
	testq	%rax, %rax
	jne	LBB0_55
## %bb.56:
	movq	%r15, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_57
## %bb.58:
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_get_bits
	jmp	LBB0_59
LBB0_57:
	movl	$8, %eax
LBB0_59:
	movl	%eax, 24(%rbx)
	movq	%r15, %rdi
	callq	_get_bits1
	movq	%rax, 56(%rbx)
	movq	%r15, %rdi
	callq	_get_bits1
	movq	%rax, 48(%rbx)
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, 28(%rbx)
	movq	%r15, %rdi
	callq	_get_bits1
	movq	%rax, %rcx
	xorl	%r12d, %r12d
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_61
## %bb.60:
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_get_bits
LBB0_61:
	movl	%eax, 32(%rbx)
	movq	%r15, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_63
## %bb.62:
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, %r12d
LBB0_63:
	movl	%r12d, 36(%rbx)
	movq	%r15, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_67
## %bb.64:
	leaq	L_.str.10(%rip), %rbx
LBB0_65:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ff_dlog
	movq	%r15, %rdi
	callq	_get_bits_left
	cmpl	$9, %eax
	jle	LBB0_55
## %bb.66:                              ##   in Loop: Header=BB0_65 Depth=1
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	jne	LBB0_65
LBB0_67:
	movq	%r15, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_69
## %bb.68:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.11(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_69:
	movq	%r15, %rdi
	callq	_align_get_bits
	jmp	LBB0_70
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid picture start code!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Invalid frame type: %d\n"

	.comm	_IVI4_FRAMETYPE_BIDIR,4,2       ## @IVI4_FRAMETYPE_BIDIR
L_.str.2:                               ## @.str.2
	.asciz	"Sync bit is set!\n"

	.comm	_IVI4_FRAMETYPE_NULL_FIRST,4,2  ## @IVI4_FRAMETYPE_NULL_FIRST
L_.str.3:                               ## @.str.3
	.asciz	"Null frame encountered!\n"

L_.str.4:                               ## @.str.4
	.asciz	"Password-protected clip!\n"

	.comm	_IVI4_PIC_SIZE_ESC,4,2          ## @IVI4_PIC_SIZE_ESC
	.comm	_ivi4_common_pic_sizes,8,3      ## @ivi4_common_pic_sizes
L_.str.5:                               ## @.str.5
	.asciz	"Only YVU9 picture format is supported!\n"

	.comm	_AV_PIX_FMT_YUV410P,4,2         ## @AV_PIX_FMT_YUV410P
L_.str.6:                               ## @.str.6
	.asciz	"picture dimensions %d %d cannot be decoded\n"

L_.str.7:                               ## @.str.7
	.asciz	"Scalability: unsupported subdivision! Luma bands: %d, chroma bands: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"Couldn't reallocate color planes!\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.9:                               ## @.str.9
	.asciz	"Couldn't reallocate internal structures!\n"

	.comm	_IVI_MB_HUFF,4,2                ## @IVI_MB_HUFF
	.comm	_IVI_BLK_HUFF,4,2               ## @IVI_BLK_HUFF
L_.str.10:                              ## @.str.10
	.asciz	"Pic hdr extension encountered!\n"

L_.str.11:                              ## @.str.11
	.asciz	"Bad blocks bits encountered!\n"

	.no_dead_strip	_decode_pic_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_pic_hdr
_decode_pic_hdr:                        ; @decode_pic_hdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	mov	x21, x0
	add	x20, x0, #40
	mov	x0, x20
	mov	w1, #18
	bl	_get_bits
	mov	w8, #262136
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21, #4]
	str	w8, [x21]
	mov	x0, x20
	mov	w1, #3
	bl	_get_bits
	str	w0, [x21, #4]
	cmp	w0, #7
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w8, #7
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_3:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _IVI4_FRAMETYPE_BIDIR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IVI4_FRAMETYPE_BIDIR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x21, #8]
LBB0_6:
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x21, #120]
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_11
; %bb.7:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_av_log
LBB0_9:
Lloh18:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x20
	mov	w1, #24
	bl	_get_bits
LBB0_13:
	str	w0, [x21, #12]
	ldr	w8, [x21, #4]
Lloh21:
	adrp	x9, _IVI4_FRAMETYPE_NULL_FIRST@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IVI4_FRAMETYPE_NULL_FIRST@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_18
; %bb.14:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x20
	mov	w1, #32
	bl	_skip_bits_long
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ff_dlog
LBB0_16:
	mov	x0, x20
	mov	w1, #3
	bl	_get_bits
                                        ; kill: def $w0 killed $w0 def $x0
Lloh26:
	adrp	x8, _IVI4_PIC_SIZE_ESC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IVI4_PIC_SIZE_ESC@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_20
; %bb.17:
	mov	x0, x20
	mov	w1, #16
	bl	_get_bits
	mov	x22, x0
	mov	x0, x20
	mov	w1, #16
	bl	_get_bits
	mov	x23, x0
	b	LBB0_21
LBB0_18:
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ff_dlog
LBB0_19:
	mov	w0, #0
	b	LBB0_10
LBB0_20:
Lloh31:
	adrp	x8, _ivi4_common_pic_sizes@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ivi4_common_pic_sizes@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	lsl	w9, w0, #1
	add	x9, x8, w9, sxtw #3
	ldr	w22, [x9, #8]
	sbfiz	x9, x0, #4, #32
	ldr	w23, [x8, x9]
LBB0_21:
	stp	w22, w23, [sp, #16]
	mov	x0, x20
	bl	_get_bits1
	mov	x8, x0
	str	x0, [x21, #112]
	mov	x24, x22
	mov	x0, x23
	cbz	x8, LBB0_23
; %bb.22:
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	mov	x1, x0
	mov	x0, x22
	bl	_scale_tile_size
	mov	x24, x0
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	mov	x1, x0
	mov	x0, x23
	bl	_scale_tile_size
LBB0_23:
	stp	w24, w0, [sp, #24]
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	cbz	w0, LBB0_25
; %bb.24:
Lloh34:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x2, l_.str.5@PAGE
Lloh38:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_8
LBB0_25:
	add	w8, w22, #3
	asr	w8, w8, #2
	add	w9, w23, #3
	asr	w9, w9, #2
	stp	w8, w9, [sp, #32]
	mov	x0, x20
	bl	_decode_plane_subdivision
	mov	x24, x0
	stp	w24, wzr, [sp, #40]
	cbz	w24, LBB0_27
; %bb.26:
	mov	x0, x20
	bl	_decode_plane_subdivision
	mov	x25, x0
	str	w25, [sp, #44]
	b	LBB0_28
LBB0_27:
	mov	w25, #0
LBB0_28:
	ldr	w2, [x19]
Lloh39:
	adrp	x8, _AV_PIX_FMT_YUV410P@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AV_PIX_FMT_YUV410P@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x22
	mov	w4, #0
	mov	x5, x19
	bl	_av_image_check_size2
	tbnz	x0, #63, LBB0_32
; %bb.29:
	cmp	w24, #1
	cset	w9, ne
	cmp	w25, #1
	cset	w8, ne
	orr	w10, w9, w8
	str	w10, [x21, #16]
	cmp	w24, #4
	cset	w9, ne
	cmp	w10, #1
	b.ne	LBB0_33
; %bb.30:
	orr	w8, w9, w8
	cbz	w8, LBB0_33
; %bb.31:
Lloh42:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	stp	x24, x25, [sp]
Lloh45:
	adrp	x2, l_.str.7@PAGE
Lloh46:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_8
LBB0_32:
Lloh47:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	stp	x23, x22, [sp]
Lloh50:
	adrp	x2, l_.str.6@PAGE
Lloh51:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_8
LBB0_33:
	add	x22, x21, #72
	add	x0, sp, #16
	mov	x1, x22
	bl	_ivi_pic_config_cmp
	cbz	x0, LBB0_49
; %bb.34:
	ldr	x1, [x21, #104]
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #1
	bl	_ff_ivi_init_planes
	cbz	x0, LBB0_36
; %bb.35:
Lloh52:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
Lloh55:
	adrp	x2, l_.str.8@PAGE
Lloh56:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_av_log
	str	wzr, [x21, #96]
	b	LBB0_48
LBB0_36:
	ldp	q0, q1, [sp, #16]
	stp	q0, q1, [x22]
	ldr	w8, [sp, #40]
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.37:
	mov	x8, #0
	ldr	x9, [x21, #104]
	ldr	x11, [x9]
	ldr	w10, [x21, #16]
	mov	w9, #8
	mov	w12, #16
	cmp	w10, #0
	csel	w10, w12, w9, eq
	add	x11, x11, #4
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	stp	w10, w9, [x11, #-4]
	add	x8, x8, #1
	ldrsw	x12, [sp, #40]
	add	x11, x11, #8
	cmp	x8, x12
	b.lt	LBB0_38
LBB0_39:
	ldr	w8, [sp, #44]
	cmp	w8, #1
	b.lt	LBB0_45
; %bb.40:
	mov	x8, #0
	ldr	x9, [x21, #104]
	ldr	x9, [x9, #8]
	movi.2s	v0, #4
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	str	d0, [x9, x8, lsl #3]
	add	x8, x8, #1
	ldrsw	x10, [sp, #44]
	cmp	x8, x10
	b.lt	LBB0_41
; %bb.42:
	cmp	w10, #0
	b.le	LBB0_45
; %bb.43:
	mov	x8, #0
	ldr	x0, [x21, #104]
	ldr	x9, [x0, #16]
	movi.2s	v0, #4
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	str	d0, [x9, x8, lsl #3]
	add	x8, x8, #1
	ldrsw	x10, [sp, #44]
	cmp	x8, x10
	b.lt	LBB0_44
	b	LBB0_46
LBB0_45:
	ldr	x0, [x21, #104]
LBB0_46:
	ldp	w2, w1, [x21, #80]
	bl	_ff_ivi_init_tiles
	cbz	x0, LBB0_49
; %bb.47:
Lloh57:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
Lloh60:
	adrp	x2, l_.str.9@PAGE
Lloh61:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_48:
Lloh62:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_10
LBB0_49:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_51
; %bb.50:
	mov	x0, x20
	mov	w1, #20
	bl	_get_bits
LBB0_51:
	str	w0, [x21, #20]
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_53
; %bb.52:
	mov	x0, x20
	mov	w1, #8
	bl	_skip_bits
LBB0_53:
	mov	x0, x20
	bl	_get_bits1
	mov	x1, x0
Lloh65:
	adrp	x8, _IVI_MB_HUFF@GOTPAGE
Lloh66:
	ldr	x8, [x8, _IVI_MB_HUFF@GOTPAGEOFF]
Lloh67:
	ldr	w2, [x8]
	add	x3, x21, #68
	mov	x0, x20
	mov	x4, x19
	bl	_ff_ivi_dec_huff_desc
	cbnz	x0, LBB0_9
; %bb.54:
	mov	x0, x20
	bl	_get_bits1
	mov	x1, x0
Lloh68:
	adrp	x8, _IVI_BLK_HUFF@GOTPAGE
Lloh69:
	ldr	x8, [x8, _IVI_BLK_HUFF@GOTPAGEOFF]
Lloh70:
	ldr	w2, [x8]
	add	x3, x21, #64
	mov	x0, x20
	mov	x4, x19
	bl	_ff_ivi_dec_huff_desc
	cbnz	x0, LBB0_9
; %bb.55:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_57
; %bb.56:
	mov	x0, x20
	mov	w1, #3
	bl	_get_bits
	b	LBB0_58
LBB0_57:
	mov	w0, #8
LBB0_58:
	str	w0, [x21, #24]
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x21, #56]
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x21, #48]
	mov	x0, x20
	mov	w1, #5
	bl	_get_bits
	str	w0, [x21, #28]
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_60
; %bb.59:
	mov	x0, x20
	mov	w1, #3
	bl	_get_bits
LBB0_60:
	str	w0, [x21, #32]
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_62
; %bb.61:
	mov	x0, x20
	mov	w1, #16
	bl	_get_bits
LBB0_62:
	str	w0, [x21, #36]
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_66
; %bb.63:
Lloh71:
	adrp	x21, l_.str.10@PAGE
Lloh72:
	add	x21, x21, l_.str.10@PAGEOFF
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_ff_dlog
	mov	x0, x20
	bl	_get_bits_left
	cmp	w0, #9
	b.le	LBB0_9
; %bb.65:                               ;   in Loop: Header=BB0_64 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_skip_bits
	mov	x0, x20
	bl	_get_bits1
	cbnz	x0, LBB0_64
LBB0_66:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_68
; %bb.67:
Lloh73:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh74:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
Lloh76:
	adrp	x2, l_.str.11@PAGE
Lloh77:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_68:
	mov	x0, x20
	bl	_align_get_bits
	b	LBB0_19
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid picture start code!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Invalid frame type: %d\n"

	.comm	_IVI4_FRAMETYPE_BIDIR,4,2       ; @IVI4_FRAMETYPE_BIDIR
l_.str.2:                               ; @.str.2
	.asciz	"Sync bit is set!\n"

	.comm	_IVI4_FRAMETYPE_NULL_FIRST,4,2  ; @IVI4_FRAMETYPE_NULL_FIRST
l_.str.3:                               ; @.str.3
	.asciz	"Null frame encountered!\n"

l_.str.4:                               ; @.str.4
	.asciz	"Password-protected clip!\n"

	.comm	_IVI4_PIC_SIZE_ESC,4,2          ; @IVI4_PIC_SIZE_ESC
	.comm	_ivi4_common_pic_sizes,8,3      ; @ivi4_common_pic_sizes
l_.str.5:                               ; @.str.5
	.asciz	"Only YVU9 picture format is supported!\n"

	.comm	_AV_PIX_FMT_YUV410P,4,2         ; @AV_PIX_FMT_YUV410P
l_.str.6:                               ; @.str.6
	.asciz	"picture dimensions %d %d cannot be decoded\n"

l_.str.7:                               ; @.str.7
	.asciz	"Scalability: unsupported subdivision! Luma bands: %d, chroma bands: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"Couldn't reallocate color planes!\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.9:                               ; @.str.9
	.asciz	"Couldn't reallocate internal structures!\n"

	.comm	_IVI_MB_HUFF,4,2                ; @IVI_MB_HUFF
	.comm	_IVI_BLK_HUFF,4,2               ; @IVI_BLK_HUFF
l_.str.10:                              ; @.str.10
	.asciz	"Pic hdr extension encountered!\n"

l_.str.11:                              ; @.str.11
	.asciz	"Bad blocks bits encountered!\n"

	.no_dead_strip	_decode_pic_hdr
.subsections_via_symbols
