	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ivi_decode_frame            ## -- Begin function ff_ivi_decode_frame
	.p2align	4, 0x90
_ff_ivi_decode_frame:                   ## @ff_ivi_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	$72, %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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	(%rdi), %r15
	movq	8(%rcx), %rbx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r14d
	leaq	112(%r15), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	%rbx, 160(%r15)
	movl	%r14d, (%r15)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	*8(%r15)
	testl	%eax, %eax
	movq	%r13, %rbx
	je	LBB0_4
## %bb.2:
	movl	%eax, %r12d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_7
LBB0_4:
	cmpq	$0, 152(%r15)
	je	LBB0_8
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r12d
	jmp	LBB0_7
LBB0_8:
	cmpq	$0, 120(%r15)
	je	LBB0_12
## %bb.9:
	movq	16(%r15), %rax
	movq	_IVI4_FRAMETYPE_NULL_LAST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:
	cmpl	$0, 24(%r15)
	je	LBB0_35
## %bb.11:
	movq	104(%r15), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_frame_move_ref
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	$0, 24(%r15)
	jmp	LBB0_36
LBB0_12:
	movq	_IVI5_IS_PROTECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 28(%r15)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_14:
	movq	128(%r15), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_37
## %bb.15:
	movq	%r15, %rdi
	callq	*144(%r15)
	movq	%r15, %rdi
	callq	*136(%r15)
	testq	%rax, %rax
	je	LBB0_38
## %bb.16:
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	32(%r15), %rax
	movq	40(%r15), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	128(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_20
## %bb.17:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_decode_band
	testl	%eax, %eax
	js	LBB0_43
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%r14
	movq	128(%r15), %rax
	movslq	(%rax), %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r14
	jl	LBB0_18
LBB0_20:
	cmpl	$0, 24(%rax)
	jle	LBB0_24
## %bb.21:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_decode_band
	testl	%eax, %eax
	js	LBB0_44
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	incq	%r14
	movq	128(%r15), %rax
	movslq	24(%rax), %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r14
	jl	LBB0_22
LBB0_24:
	cmpl	$0, 48(%rax)
	jle	LBB0_28
## %bb.25:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_decode_band
	testl	%eax, %eax
	js	LBB0_45
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	incq	%r14
	movq	128(%r15), %rax
	movslq	48(%rax), %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r14
	jl	LBB0_26
LBB0_28:
	movq	32(%r15), %rax
	movq	40(%r15), %rcx
	movl	$0, (%rax,%rcx,4)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	-68(%rbp), %r14d                ## 4-byte Reload
LBB0_29:
	movq	%r15, %rdi
	callq	*136(%r15)
	testq	%rax, %rax
	je	LBB0_36
## %bb.30:
	movq	128(%r15), %rax
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_3
## %bb.31:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_3
## %bb.32:
	cmpq	$0, 96(%r15)
	je	LBB0_49
## %bb.33:
	cmpq	$0, 120(%r15)
	movq	128(%r15), %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_50
## %bb.34:
	callq	_ff_ivi_recompose_haar
	jmp	LBB0_51
LBB0_3:
	movl	%eax, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
LBB0_36:
	movl	%r14d, %r12d
	jmp	LBB0_7
LBB0_37:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_5
LBB0_38:
	cmpq	$0, 96(%r15)
	jne	LBB0_5
## %bb.39:
	movq	128(%r15), %rax
	movq	16(%rax), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_5
## %bb.40:
	movq	40(%rax), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_5
## %bb.41:
	movq	64(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.42:
	movq	32(%r15), %rax
	movq	40(%r15), %rcx
	movl	$-1, %r12d
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_7
	jmp	LBB0_29
LBB0_43:
	movl	%eax, %r12d
	jmp	LBB0_46
LBB0_44:
	movl	%eax, %r12d
	movl	$1, %r13d
	jmp	LBB0_46
LBB0_45:
	movl	%eax, %r12d
	movl	$2, %r13d
LBB0_46:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_7
LBB0_49:
	movq	128(%r15), %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	callq	_ivi_output_plane
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_51
LBB0_50:
	callq	_ff_ivi_recompose53
LBB0_51:
	movq	128(%r15), %rdi
	addq	$48, %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	4(%rcx), %esi
	movl	4(%rax), %edx
	callq	_ivi_output_plane
	movq	128(%r15), %rdi
	addq	$24, %rdi
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	8(%rcx), %esi
	movl	8(%rax), %edx
	callq	_ivi_output_plane
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	cmpq	$0, 120(%r15)
	je	LBB0_58
## %bb.52:
	movq	16(%r15), %rax
	movq	_IVI4_FRAMETYPE_INTRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_58
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=1
	callq	_get_bits_left
	cmpl	$8, %eax
	jge	LBB0_53
	jmp	LBB0_5
LBB0_55:
	callq	_get_bits_count
	andl	$24, %eax
	movl	$64, %esi
	subl	%eax, %esi
	movq	%r12, %rdi
	callq	_skip_bits_long
	movq	%r12, %rdi
	callq	_get_bits_left
	cmpl	$19, %eax
	jl	LBB0_58
## %bb.56:
	movq	%r12, %rdi
	movl	$21, %esi
	callq	_show_bits_long
	cmpl	$786424, %eax                   ## imm = 0xBFFF8
	jne	LBB0_58
## %bb.57:
	movq	%r12, %r13
	movq	%rbx, %r12
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	%r13, %rdi
	callq	_get_bits_count
	sarl	$3, %eax
	cltq
	leaq	(%rbx,%rax,4), %rax
	movq	%r12, %rbx
	movq	%rax, -96(%rbp)
	movq	%r13, %rdi
	callq	_get_bits_left
	sarl	$3, %eax
	movl	%eax, -104(%rbp)
	movq	104(%r15), %rsi
	leaq	24(%r15), %rdx
	leaq	-104(%rbp), %rcx
	movq	%r12, %rdi
	callq	_ff_ivi_decode_frame
LBB0_58:
	cmpq	$0, 48(%r15)
	je	LBB0_36
## %bb.59:
	cmpq	$0, 96(%r15)
	je	LBB0_61
## %bb.60:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_61:
	cmpq	$0, 88(%r15)
	je	LBB0_63
## %bb.62:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_63:
	cmpq	$0, 80(%r15)
	je	LBB0_65
## %bb.64:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_65:
	cmpq	$0, 72(%r15)
	je	LBB0_67
## %bb.66:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_67:
	cmpq	$0, 64(%r15)
	je	LBB0_69
## %bb.68:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_69:
	cmpq	$0, 56(%r15)
	je	LBB0_71
## %bb.70:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_71:
	movq	$0, 48(%r15)
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error while decoding picture header: %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_IVI4_FRAMETYPE_NULL_LAST,8,3   ## @IVI4_FRAMETYPE_NULL_LAST
	.comm	_IVI5_IS_PROTECTED,4,2          ## @IVI5_IS_PROTECTED
L_.str.1:                               ## @.str.1
	.asciz	"Password-protected clip"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
L_.str.2:                               ## @.str.2
	.asciz	"Color planes not initialized yet\n"

L_.str.3:                               ## @.str.3
	.asciz	"Error while decoding band: %d, plane: %d\n"

	.comm	_IVI4_FRAMETYPE_INTRA,8,3       ## @IVI4_FRAMETYPE_INTRA
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"This video uses scalability mode\n"

L_.str.5:                               ## @.str.5
	.asciz	"This video uses local decoding\n"

L_.str.6:                               ## @.str.6
	.asciz	"This video contains B-frames\n"

L_.str.7:                               ## @.str.7
	.asciz	"Transparency mode is enabled\n"

L_.str.8:                               ## @.str.8
	.asciz	"This video uses Haar transform\n"

L_.str.9:                               ## @.str.9
	.asciz	"This video uses fullpel motion vectors\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ivi_decode_frame            ; -- Begin function ff_ivi_decode_frame
	.p2align	2
_ff_ivi_decode_frame:                   ; @ff_ivi_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x26, [x3, #8]
	ldr	w19, [x3]
	add	x22, x21, #112
	mov	x0, x22
	mov	x1, x26
	mov	x2, x19
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_33
; %bb.1:
	str	x26, [x21, #160]
	str	w19, [x21]
	ldr	x8, [x21, #8]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	cbz	w0, LBB0_3
; %bb.2:
	mov	x26, x0
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	x26, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	x19, x26
	b	LBB0_34
LBB0_3:
	ldr	x8, [x21, #152]
	cbz	x8, LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_5:
	ldr	w19, [x8]
	b	LBB0_34
LBB0_6:
	ldr	x8, [x21, #120]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	x8, [x21, #16]
Lloh7:
	adrp	x9, _IVI4_FRAMETYPE_NULL_LAST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IVI4_FRAMETYPE_NULL_LAST@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_35
; %bb.9:
	ldr	x1, [x21, #104]
	mov	x0, x25
	bl	_av_frame_move_ref
	mov	w8, #1
	str	w8, [x24]
	str	wzr, [x21, #24]
	b	LBB0_34
LBB0_10:
	ldr	w8, [x21, #28]
Lloh10:
	adrp	x9, _IVI5_IS_PROTECTED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IVI5_IS_PROTECTED@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_avpriv_report_missing_feature
Lloh15:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
	ldr	x8, [x21, #128]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_36
; %bb.13:
	ldr	x8, [x21, #144]
	mov	x0, x21
	blr	x8
	ldr	x8, [x21, #136]
	mov	x0, x21
	blr	x8
	cbz	x0, LBB0_37
; %bb.14:
	ldp	x8, x9, [x21, #32]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
	ldr	x8, [x21, #128]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.15:
	mov	x27, #0
	mov	x26, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #16]
	add	x1, x8, x27
	mov	x0, x21
	mov	x2, x20
	bl	_decode_band
	tbnz	w0, #31, LBB0_43
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x26, x26, #1
	ldr	x8, [x21, #128]
	ldrsw	x9, [x8]
	add	x27, x27, #4
	cmp	x26, x9
	b.lt	LBB0_16
LBB0_18:
	ldr	w9, [x8, #24]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.19:
	mov	x27, #0
	mov	x26, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #40]
	add	x1, x8, x27
	mov	x0, x21
	mov	x2, x20
	bl	_decode_band
	tbnz	w0, #31, LBB0_44
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x26, x26, #1
	ldr	x8, [x21, #128]
	ldrsw	x9, [x8, #24]
	add	x27, x27, #4
	cmp	x26, x9
	b.lt	LBB0_20
LBB0_22:
	ldr	w9, [x8, #48]
	cmp	w9, #1
	b.lt	LBB0_26
; %bb.23:
	mov	x27, #0
	mov	x26, #0
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #64]
	add	x1, x8, x27
	mov	x0, x21
	mov	x2, x20
	bl	_decode_band
	tbnz	w0, #31, LBB0_45
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x26, x26, #1
	ldr	x8, [x21, #128]
	ldrsw	x9, [x8, #48]
	add	x27, x27, #4
	cmp	x26, x9
	b.lt	LBB0_24
LBB0_26:
	ldp	x8, x9, [x21, #32]
	str	wzr, [x8, x9, lsl #2]
LBB0_27:
	ldr	x8, [x21, #136]
	mov	x0, x21
	blr	x8
	cbz	x0, LBB0_34
; %bb.28:
	ldr	x8, [x21, #128]
	ldp	w2, w1, [x8, #4]
	mov	x0, x20
	bl	_ff_set_dimensions
	tbnz	w0, #31, LBB0_33
; %bb.29:
	mov	x0, x20
	mov	x1, x25
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_33
; %bb.30:
	ldr	x8, [x21, #96]
	cbz	x8, LBB0_47
; %bb.31:
	ldp	x8, x0, [x21, #120]
	ldp	x10, x9, [x25]
	ldr	w1, [x9]
	ldr	w2, [x10]
	cbz	x8, LBB0_48
; %bb.32:
	bl	_ff_ivi_recompose_haar
	b	LBB0_49
LBB0_33:
	mov	x19, x0
LBB0_34:
	mov	x0, x19
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_35:
	str	wzr, [x24]
	b	LBB0_34
LBB0_36:
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
	b	LBB0_4
LBB0_37:
	ldr	x8, [x21, #96]
	cbnz	x8, LBB0_4
; %bb.38:
	ldr	x8, [x21, #128]
	ldr	x9, [x8, #16]
	ldr	w9, [x9]
	cbz	w9, LBB0_4
; %bb.39:
	ldr	x9, [x8, #40]
	ldr	w9, [x9]
	cbz	w9, LBB0_4
; %bb.40:
	ldr	x8, [x8, #64]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.41:
	ldp	x8, x9, [x21, #32]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_27
; %bb.42:
	mov	w19, #-1
	b	LBB0_34
LBB0_43:
	mov	w8, #0
	b	LBB0_46
LBB0_44:
	mov	w8, #1
	b	LBB0_46
LBB0_45:
	mov	w8, #2
LBB0_46:
	mov	x19, x0
Lloh22:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x9]
	stp	x26, x8, [sp]
Lloh25:
	adrp	x2, l_.str.3@PAGE
Lloh26:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_av_log
	b	LBB0_34
LBB0_47:
	ldr	x0, [x21, #128]
	ldp	x9, x8, [x25]
	ldr	w1, [x8]
	ldr	w2, [x9]
	bl	_ivi_output_plane
	b	LBB0_49
LBB0_48:
	bl	_ff_ivi_recompose53
LBB0_49:
	ldr	x8, [x21, #128]
	add	x0, x8, #48
	ldp	x9, x8, [x25]
	ldr	w1, [x8, #4]
	ldr	w2, [x9, #4]
	bl	_ivi_output_plane
	ldr	x8, [x21, #128]
	add	x0, x8, #24
	ldp	x9, x8, [x25]
	ldr	w1, [x8, #8]
	ldr	w2, [x9, #8]
	bl	_ivi_output_plane
	mov	w8, #1
	str	w8, [x24]
	ldr	x8, [x21, #120]
	cbz	x8, LBB0_56
; %bb.50:
	ldr	x8, [x21, #16]
Lloh27:
	adrp	x9, _IVI4_FRAMETYPE_INTRA@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IVI4_FRAMETYPE_INTRA@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_56
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #8
	bl	_get_bits
	cbz	x0, LBB0_53
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=1
	mov	x0, x22
	bl	_get_bits_left
	cmp	w0, #8
	b.ge	LBB0_51
	b	LBB0_4
LBB0_53:
	mov	x0, x22
	bl	_get_bits_count
	and	w8, w0, #0x18
	mov	w9, #64
	sub	w1, w9, w8
	mov	x0, x22
	bl	_skip_bits_long
	mov	x0, x22
	bl	_get_bits_left
	cmp	w0, #19
	b.lt	LBB0_56
; %bb.54:
	mov	x0, x22
	mov	w1, #21
	bl	_show_bits_long
	sub	w8, w0, #191, lsl #12           ; =782336
	cmp	w8, #4088
	b.ne	LBB0_56
; %bb.55:
	ldr	x23, [x23, #8]
	mov	x0, x22
	bl	_get_bits_count
	asr	w8, w0, #3
	add	x8, x23, w8, sxtw #2
	str	x8, [sp, #24]
	mov	x0, x22
	bl	_get_bits_left
	asr	w8, w0, #3
	str	w8, [sp, #16]
	ldr	x1, [x21, #104]
	add	x2, x21, #24
	add	x3, sp, #16
	mov	x0, x20
	bl	_ff_ivi_decode_frame
LBB0_56:
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_34
; %bb.57:
	ldr	x8, [x21, #96]
Lloh30:
	adrp	x22, _AV_LOG_DEBUG@GOTPAGE
Lloh31:
	ldr	x22, [x22, _AV_LOG_DEBUG@GOTPAGEOFF]
	cbz	x8, LBB0_59
; %bb.58:
	ldr	w1, [x22]
Lloh32:
	adrp	x2, l_.str.4@PAGE
Lloh33:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_59:
	ldr	x8, [x21, #88]
	cbz	x8, LBB0_61
; %bb.60:
	ldr	w1, [x22]
Lloh34:
	adrp	x2, l_.str.5@PAGE
Lloh35:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_61:
	ldr	x8, [x21, #80]
	cbz	x8, LBB0_63
; %bb.62:
	ldr	w1, [x22]
Lloh36:
	adrp	x2, l_.str.6@PAGE
Lloh37:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_63:
	ldr	x8, [x21, #72]
	cbz	x8, LBB0_65
; %bb.64:
	ldr	w1, [x22]
Lloh38:
	adrp	x2, l_.str.7@PAGE
Lloh39:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_65:
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_67
; %bb.66:
	ldr	w1, [x22]
Lloh40:
	adrp	x2, l_.str.8@PAGE
Lloh41:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_67:
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_69
; %bb.68:
	ldr	w1, [x22]
Lloh42:
	adrp	x2, l_.str.9@PAGE
Lloh43:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_69:
	str	xzr, [x21, #48]
	b	LBB0_34
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error while decoding picture header: %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_IVI4_FRAMETYPE_NULL_LAST,8,3   ; @IVI4_FRAMETYPE_NULL_LAST
	.comm	_IVI5_IS_PROTECTED,4,2          ; @IVI5_IS_PROTECTED
l_.str.1:                               ; @.str.1
	.asciz	"Password-protected clip"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
l_.str.2:                               ; @.str.2
	.asciz	"Color planes not initialized yet\n"

l_.str.3:                               ; @.str.3
	.asciz	"Error while decoding band: %d, plane: %d\n"

	.comm	_IVI4_FRAMETYPE_INTRA,8,3       ; @IVI4_FRAMETYPE_INTRA
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"This video uses scalability mode\n"

l_.str.5:                               ; @.str.5
	.asciz	"This video uses local decoding\n"

l_.str.6:                               ; @.str.6
	.asciz	"This video contains B-frames\n"

l_.str.7:                               ; @.str.7
	.asciz	"Transparency mode is enabled\n"

l_.str.8:                               ; @.str.8
	.asciz	"This video uses Haar transform\n"

l_.str.9:                               ; @.str.9
	.asciz	"This video uses fullpel motion vectors\n"

.subsections_via_symbols
