	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function paf_video_decode
_paf_video_decode:                      ## @paf_video_decode
	.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, %r13
	movl	(%rcx), %edx
	cmpl	$1, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rcx, %rbx
	movq	%rdi, %r15
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	56(%rax), %r14
	movl	4(%rcx), %esi
	movq	%r14, %rdi
	callq	_bytestream2_init
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %r12d
	andl	$15, %r12d
	cmpl	$4, %r12d
	ja	LBB0_4
## %bb.3:
	cmpl	$3, %r12d
	je	LBB0_4
## %bb.5:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	jne	LBB0_7
## %bb.6:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %eax
	leal	31(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$5, %ebx
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	subl	%eax, %ebx
	movl	(%r13), %eax
	leal	31(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$5, %ecx
	imull	(%r15), %ecx
	movslq	%ecx, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	cmpl	%eax, %ebx
	jg	LBB0_1
LBB0_7:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	40(%r13), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_44
## %bb.8:
	movq	40(%r13), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testb	$32, %dl
	movq	%r13, %r15
	jne	LBB0_10
## %bb.9:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_avpriv_request_sample
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_44:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	$0, 8(%r15)
	movq	40(%r15), %rax
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
LBB0_11:
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%ebx, 8(%rax)
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	testb	$64, %dl
	jne	LBB0_12
LBB0_18:
	movq	8(%r15), %rcx
	movq	16(%r15), %rax
	movl	$1, (%rax,%rcx,4)
	testb	$32, %dl
	je	LBB0_28
## %bb.19:
	cmpl	$0, (%rax)
	je	LBB0_21
## %bb.20:
	movq	24(%r15), %rax
	movq	(%rax), %rdi
	movl	32(%r15), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	16(%r15), %rax
LBB0_21:
	movl	$0, (%rax)
	cmpl	$0, 4(%rax)
	je	LBB0_23
## %bb.22:
	movq	24(%r15), %rax
	movq	8(%rax), %rdi
	movl	32(%r15), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	16(%r15), %rax
LBB0_23:
	movl	$0, 4(%rax)
	cmpl	$0, 8(%rax)
	je	LBB0_25
## %bb.24:
	movq	24(%r15), %rax
	movq	16(%rax), %rdi
	movl	32(%r15), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	16(%r15), %rax
LBB0_25:
	movl	$0, 8(%rax)
	cmpl	$0, 12(%rax)
	je	LBB0_27
## %bb.26:
	movq	24(%r15), %rax
	movq	24(%rax), %rdi
	movl	32(%r15), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	16(%r15), %rax
LBB0_27:
	movl	$0, 12(%rax)
LBB0_28:
	cmpl	$4, %r12d
	ja	LBB0_41
## %bb.29:
	movl	%r12d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_30:
	movl	4(%r13), %esi
	movq	%r15, %rdi
	callq	_decode_0
	testl	%eax, %eax
	jns	LBB0_42
	jmp	LBB0_44
LBB0_12:
	movq	(%rax), %rax
	movq	8(%rax), %r13
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %ebx
	leal	(%rbx,%r15), %eax
	incl	%eax
	cmpl	$257, %eax                      ## imm = 0x101
	jge	LBB0_1
## %bb.13:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leal	1(%rbx), %r13d
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	leal	(%r13,%r13,2), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_1
## %bb.14:
	testl	%ebx, %ebx
	js	LBB0_17
## %bb.15:
	movslq	%r15d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_byteu
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_bytestream2_get_byteu
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_bytestream2_get_byteu
	leal	(,%rax,4), %ecx
	shrl	$4, %eax
	orl	%ecx, %eax
	movl	%r15d, %ecx
	shll	$18, %ecx
	shll	$12, %r15d
	andl	$16711680, %r15d                ## imm = 0xFF0000
	movl	%ebx, %edx
	shll	$10, %edx
	orl	%ecx, %edx
	orl	%r15d, %edx
	shll	$4, %ebx
	andl	$16776960, %ebx                 ## imm = 0xFFFF00
	orl	%eax, %ebx
	orl	%edx, %ebx
	orl	$-16777216, %ebx                ## imm = 0xFF000000
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r13,4)
	incq	%r13
	cmpl	%r13d, -88(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_16
LBB0_17:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	40(%r15), %rax
	movl	$1, 12(%rax)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_18
LBB0_31:
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	movq	(%rcx,%rax,8), %rbx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_bytestream2_skip
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	movl	(%r15), %edx
	cmpl	%edx, %eax
	jl	LBB0_1
## %bb.32:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bytestream2_get_bufferu
	jmp	LBB0_42
LBB0_33:
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	cmpl	$4, %eax
	jge	LBB0_1
## %bb.34:
	cltq
	movq	8(%r15), %rcx
	cmpq	%rax, %rcx
	je	LBB0_42
## %bb.35:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rdx
	movq	(%rdx,%rcx,8), %rdi
	movq	(%rdx,%rax,8), %rsi
	movl	32(%rbx), %edx
	callq	_memcpy
	jmp	LBB0_42
LBB0_41:
	xorl	%edi, %edi
	callq	_av_assert0
	jmp	LBB0_42
LBB0_36:
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	movq	(%rcx,%rax,8), %r12
	movslq	(%r15), %rbx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_bytestream2_skip
	testq	%rbx, %rbx
	jle	LBB0_42
## %bb.37:
	leaq	(%r12,%rbx,4), %r15
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$1, %eax
	jle	LBB0_1
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_byteu
	movq	%rax, %rdi
	callq	_FFABS
	movslq	%eax, %rcx
	leaq	(%r12,%rcx,4), %rbx
	addq	$4, %rbx
	cmpq	%r15, %rbx
	ja	LBB0_1
## %bb.40:                              ##   in Loop: Header=BB0_38 Depth=1
	incl	%eax
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_bytestream2_get_buffer
	movq	%rbx, %r12
	cmpq	%r15, %rbx
	jb	LBB0_38
LBB0_42:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	40(%rbx), %rax
	movq	(%rax), %rcx
	movq	16(%rax), %rax
	movq	(%rcx), %rdi
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdx
	movl	52(%rbx), %ecx
	movl	48(%rbx), %r9d
	movl	%ecx, %r8d
	callq	_av_image_copy_plane
	movl	8(%rbx), %eax
	incl	%eax
	andl	$3, %eax
	movq	%rax, 8(%rbx)
	movq	40(%rbx), %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_44
## %bb.43:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r13), %eax
	jmp	LBB0_44
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
LJTI0_0:
	.long	L0_0_set_30
	.long	L0_0_set_31
	.long	L0_0_set_33
	.long	L0_0_set_41
	.long	L0_0_set_36
	.end_data_region
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown/invalid code"

	.comm	_AVPALETTE_SIZE,4,2             ## @AVPALETTE_SIZE
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.no_dead_strip	_paf_video_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function paf_video_decode
_paf_video_decode:                      ; @paf_video_decode
	.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	x26, x2
	ldr	w2, [x3]
	cmp	w2, #1
	b.le	LBB0_3
; %bb.1:
	mov	x19, x3
	mov	x21, x1
	mov	x25, x0
	ldr	x22, [x0, #8]
	add	x23, x22, #56
	ldr	w1, [x3, #4]
	mov	x0, x23
	bl	_bytestream2_init
	mov	x0, x23
	bl	_bytestream2_get_byte
	and	w27, w0, #0xf
	cmp	w27, #4
	ccmp	w27, #3, #4, ls
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_avpriv_request_sample
LBB0_3:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_4:
	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
LBB0_5:
	mov	x24, x0
	cbnz	w27, LBB0_7
; %bb.6:
	ldr	w8, [x22]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w20, w8, #5
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	sub	w8, w20, w0
	ldr	w9, [x22]
	add	w10, w9, #31
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #5
	ldr	w10, [x25]
	mul	w9, w9, w10
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	cmp	w8, w9
	b.gt	LBB0_3
LBB0_7:
	ldr	x1, [x22, #40]
	mov	x0, x25
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_4
; %bb.8:
	ldr	x8, [x22, #40]
	tbnz	w24, #5, LBB0_10
; %bb.9:
	mov	w9, #0
Lloh5:
	adrp	x10, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
Lloh7:
	adrp	x8, _AVPALETTE_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVPALETTE_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_memset
	str	xzr, [x22, #8]
	ldr	x8, [x22, #40]
	mov	w9, #1
Lloh10:
	adrp	x10, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh11:
	ldr	x10, [x10, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
LBB0_11:
	str	w9, [x8, #8]
	ldr	w9, [x10]
	str	w9, [x8, #24]
	tbnz	w24, #6, LBB0_25
LBB0_12:
	ldp	x9, x8, [x22, #8]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
	tbz	w24, #5, LBB0_22
; %bb.13:
	ldr	w9, [x8]
	cbz	w9, LBB0_15
; %bb.14:
	ldr	x8, [x22, #24]
	ldr	x0, [x8]
	ldr	w2, [x22, #32]
	mov	x1, #0
	bl	_memset
	ldr	x8, [x22, #16]
LBB0_15:
	str	wzr, [x8]
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_17
; %bb.16:
	ldr	x8, [x22, #24]
	ldr	x0, [x8, #8]
	ldr	w2, [x22, #32]
	mov	x1, #0
	bl	_memset
	ldr	x8, [x22, #16]
LBB0_17:
	str	wzr, [x8, #4]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_19
; %bb.18:
	ldr	x8, [x22, #24]
	ldr	x0, [x8, #16]
	ldr	w2, [x22, #32]
	mov	x1, #0
	bl	_memset
	ldr	x8, [x22, #16]
LBB0_19:
	str	wzr, [x8, #8]
	ldr	w9, [x8, #12]
	cbz	w9, LBB0_21
; %bb.20:
	ldr	x8, [x22, #24]
	ldr	x0, [x8, #24]
	ldr	w2, [x22, #32]
	mov	x1, #0
	bl	_memset
	ldr	x8, [x22, #16]
LBB0_21:
	str	wzr, [x8, #12]
LBB0_22:
	cmp	w27, #4
	b.hi	LBB0_36
; %bb.23:
Lloh12:
	adrp	x8, lJTI0_0@PAGE
Lloh13:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_24
	ldrb	w10, [x8, x27]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_24:
	ldr	w1, [x19, #4]
	mov	x0, x22
	mov	x2, x24
	bl	_decode_0
	tbz	w0, #31, LBB0_42
	b	LBB0_4
LBB0_25:
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x8, [x8]
	ldr	x20, [x8, #8]
	mov	x0, x23
	bl	_bytestream2_get_byte
	mov	x25, x0
	mov	x0, x23
	bl	_bytestream2_get_byte
	add	w28, w0, #1
	add	w8, w28, w25
	cmp	w8, #257
	b.ge	LBB0_3
; %bb.26:
	mov	x26, x0
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	add	w8, w28, w28, lsl #1
	cmp	w0, w8
	b.lt	LBB0_3
; %bb.27:
	tbnz	w26, #31, LBB0_30
; %bb.28:
	add	x20, x20, w25, sxtw #2
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_bytestream2_get_byteu
	mov	x25, x0
	mov	x0, x23
	bl	_bytestream2_get_byteu
	mov	x26, x0
	mov	x0, x23
	bl	_bytestream2_get_byteu
	lsl	w8, w25, #12
	and	w8, w8, #0xff0000
	lsl	w9, w26, #4
	and	w9, w9, #0xffff00
	orr	w8, w8, w25, lsl #18
	orr	w8, w8, w26, lsl #10
	orr	w8, w8, w0, lsr #4
	orr	w8, w8, w0, lsl #2
	orr	w8, w8, w9
	orr	w8, w8, #0xff000000
	str	w8, [x20], #4
	subs	w28, w28, #1
	b.ne	LBB0_29
LBB0_30:
	ldr	x8, [x22, #40]
	mov	w9, #1
	str	w9, [x8, #12]
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_12
LBB0_31:
	ldr	x8, [x22, #24]
	ldr	x9, [x22, #8]
	ldr	x24, [x8, x9, lsl #3]
	mov	x0, x23
	mov	w1, #2
	bl	_bytestream2_skip
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	ldr	w2, [x22]
	cmp	w0, w2
	b.lt	LBB0_3
; %bb.32:
	mov	x0, x23
	mov	x1, x24
	bl	_bytestream2_get_bufferu
	b	LBB0_42
LBB0_33:
	mov	x0, x23
	bl	_bytestream2_get_byte
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #4
	b.ge	LBB0_3
; %bb.34:
	sxtw	x8, w0
	ldr	x9, [x22, #8]
	cmp	x9, x8
	b.eq	LBB0_42
; %bb.35:
	ldr	x10, [x22, #24]
	ldr	x0, [x10, x9, lsl #3]
	ldr	x1, [x10, x8, lsl #3]
	ldr	w2, [x22, #32]
	bl	_memcpy
	b	LBB0_42
LBB0_36:
	mov	w0, #0
	bl	_av_assert0
	b	LBB0_42
LBB0_37:
	ldr	x8, [x22, #24]
	ldr	x9, [x22, #8]
	ldr	x24, [x8, x9, lsl #3]
	ldrsw	x20, [x22]
	mov	x0, x23
	mov	w1, #2
	bl	_bytestream2_skip
	cmp	w20, #1
	b.lt	LBB0_42
; %bb.38:
	add	x20, x24, x20, lsl #2
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	cmp	w0, #1
	b.le	LBB0_3
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x0, x23
	bl	_bytestream2_get_byteu
	bl	_FFABS
	add	w2, w0, #1
	add	x25, x24, w2, sxtw #2
	cmp	x25, x20
	b.hi	LBB0_3
; %bb.41:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_bytestream2_get_buffer
	mov	x24, x25
	cmp	x25, x20
	b.lo	LBB0_39
LBB0_42:
	ldr	x8, [x22, #40]
	ldr	x9, [x8]
	ldr	x0, [x9]
	ldr	x8, [x8, #16]
	ldr	w1, [x8]
	ldr	x8, [x22, #24]
	ldr	x9, [x22, #8]
	ldr	x2, [x8, x9, lsl #3]
	ldp	w5, w3, [x22, #48]
	mov	x4, x3
	bl	_av_image_copy_plane
	ldr	w8, [x22, #8]
	add	w8, w8, #1
	and	x8, x8, #0x3
	str	x8, [x22, #8]
	ldr	x1, [x22, #40]
	mov	x0, x21
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_4
; %bb.43:
	mov	w8, #1
	str	w8, [x26]
	ldr	w0, [x19]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_24-LBB0_24)>>2
	.byte	(LBB0_31-LBB0_24)>>2
	.byte	(LBB0_33-LBB0_24)>>2
	.byte	(LBB0_36-LBB0_24)>>2
	.byte	(LBB0_37-LBB0_24)>>2
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown/invalid code"

	.comm	_AVPALETTE_SIZE,4,2             ; @AVPALETTE_SIZE
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.no_dead_strip	_paf_video_decode
.subsections_via_symbols
