	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_frame
_decode_frame:                          ## @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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	(%rcx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	8(%rcx), %r15d
	movq	24(%rdi), %r12
	movl	(%rdi), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r12), %r14d
	movq	8(%r12), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_39
## %bb.1:
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	_AV_PIX_FMT_0RGB32@GOTPCREL(%rip), %rcx
	xorl	%r10d, %r10d
	cmpq	(%rcx), %rax
	sete	%al
	testq	%r14, %r14
	je	LBB0_34
## %bb.2:
	movq	%r14, %rdx
	movslq	-44(%rbp), %r11                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	%ecx, %ecx
	movb	%al, %r10b
	addl	%edx, %r10d
	movl	%edx, %r12d
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	imull	%ecx, %r12d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %r12
	addq	%rax, %r11
	movl	%r10d, %r13d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -144(%rbp)                ## 8-byte Spill
	movq	%r11, -96(%rbp)                 ## 8-byte Spill
	movl	%r10d, -80(%rbp)                ## 4-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##         Child Loop BB0_21 Depth 4
                                        ##         Child Loop BB0_24 Depth 4
                                        ##         Child Loop BB0_16 Depth 4
                                        ##         Child Loop BB0_27 Depth 4
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_33
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-76(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	imull	-56(%rbp), %eax                 ## 4-byte Folded Reload
	addq	-104(%rbp), %rax                ## 8-byte Folded Reload
	movq	%r11, %rcx
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	subq	%rax, %rcx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##         Child Loop BB0_21 Depth 4
                                        ##         Child Loop BB0_24 Depth 4
                                        ##         Child Loop BB0_16 Depth 4
                                        ##         Child Loop BB0_27 Depth 4
	leal	(%r14,%r14), %eax
	addl	$2, %eax
	cmpq	%rax, -160(%rbp)                ## 8-byte Folded Reload
	jl	LBB0_38
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rcx), %r15d
	movl	%r15d, %ebx
	imull	%r14d, %ebx
	addq	(%rax), %rbx
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movzbl	(%rax,%rcx), %eax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	leal	(%r14,%r14), %eax
	movl	%eax, %eax
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movzwl	(%rcx,%rax), %edi
	callq	_av_be2ne16
	testl	%eax, %eax
	je	LBB0_29
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	addq	-168(%rbp), %rbx                ## 8-byte Folded Reload
	addq	%rbx, %r15
	movl	-80(%rbp), %r10d                ## 4-byte Reload
	movq	-96(%rbp), %r11                 ## 8-byte Reload
	movq	%r15, %rsi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=3
	addq	$2, %r12
	movl	$-2, %r9d
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=3
	addl	%r9d, %eax
	je	LBB0_32
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_21 Depth 4
                                        ##         Child Loop BB0_24 Depth 4
                                        ##         Child Loop BB0_16 Depth 4
                                        ##         Child Loop BB0_27 Depth 4
	movq	%r11, %rcx
	subq	%r12, %rcx
	cmpq	$1, %rcx
	jle	LBB0_38
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	leaq	1(%r12), %rcx
	movb	(%r12), %r8b
	testb	%r8b, %r8b
	js	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=3
	leal	1(%r8), %edi
	movzbl	%dil, %r9d
	subq	%rbx, %rsi
	movl	%r10d, %edx
	imull	%r9d, %edx
	cmpq	%rdx, %rsi
	jl	LBB0_31
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	%r11, %rdx
	subq	%rcx, %rdx
	cmpq	%r9, %rdx
	jl	LBB0_38
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=3
	testb	$7, %dil
	je	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=3
	leal	1(%r8), %edx
	movzbl	%dl, %edi
	andl	$7, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ##       Parent Loop BB0_10 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movzbl	(%rcx,%rsi), %edx
	movb	%dl, (%rbx)
	addq	%r13, %rbx
	incq	%rsi
	cmpb	%sil, %dil
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=3
	movl	%r9d, %edi
	subl	%esi, %edi
	addq	%rsi, %rcx
	movq	%rcx, %r12
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=3
	movb	$1, %r9b
	subb	%r8b, %r9b
	subq	%rbx, %rsi
	movzbl	%r9b, %edi
	imull	%r10d, %edi
	cmpq	%rdi, %rsi
	jl	LBB0_31
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=3
	movl	%r9d, %esi
	andb	$7, %sil
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=3
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ##       Parent Loop BB0_10 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movzbl	(%rcx), %edx
	movb	%dl, (%rbx)
	addq	%r13, %rbx
	incb	%dil
	cmpb	%dil, %sil
	jne	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=3
	subb	%dil, %r9b
LBB0_23:                                ##   in Loop: Header=BB0_10 Depth=3
	addb	$6, %r8b
	cmpb	$7, %r8b
	movq	%r15, %rsi
	jb	LBB0_8
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ##       Parent Loop BB0_10 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movzbl	(%rcx), %edx
	movb	%dl, (%rbx)
	movzbl	(%rcx), %edx
	movb	%dl, (%rbx,%r13)
	addq	%r13, %rbx
	movzbl	(%rcx), %edx
	movb	%dl, (%r13,%rbx)
	addq	%r13, %rbx
	movzbl	(%rcx), %edx
	movb	%dl, (%r13,%rbx)
	addq	%r13, %rbx
	movzbl	(%rcx), %edx
	movb	%dl, (%r13,%rbx)
	addq	%r13, %rbx
	movzbl	(%rcx), %edx
	movb	%dl, (%r13,%rbx)
	addq	%r13, %rbx
	movzbl	(%rcx), %edx
	movb	%dl, (%r13,%rbx)
	addq	%r13, %rbx
	movzbl	(%rcx), %edx
	movb	%dl, (%r13,%rbx)
	addq	%r13, %rbx
	addq	%r13, %rbx
	addb	$-8, %r9b
	jne	LBB0_24
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_10 Depth=3
                                        ## implicit-def: $r12
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=3
	notl	%r9d
	cmpb	$7, %r8b
	movq	%r15, %rsi
	jb	LBB0_9
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ##       Parent Loop BB0_10 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movzbl	(%rcx), %edx
	movb	%dl, (%rbx)
	movzbl	1(%rcx), %edx
	movb	%dl, (%rbx,%r13)
	addq	%r13, %rbx
	movzbl	2(%rcx), %edx
	movb	%dl, (%r13,%rbx)
	addq	%r13, %rbx
	movzbl	3(%rcx), %edx
	movb	%dl, (%r13,%rbx)
	addq	%r13, %rbx
	movzbl	4(%rcx), %edx
	movb	%dl, (%r13,%rbx)
	addq	%r13, %rbx
	movzbl	5(%rcx), %edx
	movb	%dl, (%r13,%rbx)
	addq	%r13, %rbx
	movzbl	6(%rcx), %edx
	movb	%dl, (%r13,%rbx)
	addq	%r13, %rbx
	movzbl	7(%rcx), %edx
	movb	%dl, (%r13,%rbx)
	addq	%r13, %rbx
	addq	$8, %rcx
	addq	%r13, %rbx
	addb	$-8, %dil
	jne	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	%rcx, %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-96(%rbp), %r11                 ## 8-byte Reload
	jmp	LBB0_32
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%rcx, %r12
LBB0_32:                                ##   in Loop: Header=BB0_5 Depth=2
	incq	%r14
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	%rax, %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rdx, %rax
	jne	LBB0_3
LBB0_34:
	movq	-128(%rbp), %r12                ## 8-byte Reload
	cmpl	$8, 16(%r12)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-136(%rbp), %r14                ## 8-byte Reload
	jg	LBB0_42
## %bb.35:
	movq	_AV_PKT_DATA_PALETTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-84(%rbp), %rdx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_av_packet_get_side_data
	testq	%rax, %rax
	movq	-120(%rbp), %r15                ## 8-byte Reload
	je	LBB0_41
## %bb.36:
	movl	-84(%rbp), %ecx
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_40
## %bb.37:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, 16(%rdx)
	movq	16(%r15), %rdi
	movq	%rax, %rsi
	movl	%ecx, %edx
	callq	_memcpy
	jmp	LBB0_41
LBB0_38:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_43
LBB0_39:
	movl	%eax, %ebx
	jmp	LBB0_43
LBB0_40:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
LBB0_41:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	movq	16(%r15), %rsi
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_42:
	movl	$1, (%r14)
LBB0_43:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_0RGB32,8,3          ## @AV_PIX_FMT_0RGB32
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PKT_DATA_PALETTE,4,2        ## @AV_PKT_DATA_PALETTE
	.comm	_AVPALETTE_SIZE,4,2             ## @AVPALETTE_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Palette size %d is wrong\n"

	.no_dead_strip	_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_frame
_decode_frame:                          ; @decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x24, x3
	mov	x20, x2
	mov	x22, x0
	ldr	x9, [x3]
	ldr	w19, [x3, #8]
	ldr	x23, [x0, #24]
	ldr	w26, [x0]
	ldr	w21, [x23]
	ldr	x8, [x23, #8]
	stp	x9, x8, [sp, #64]               ; 16-byte Folded Spill
	str	x1, [sp, #80]                   ; 8-byte Folded Spill
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_27
; %bb.1:
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x9, _AV_PIX_FMT_0RGB32@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PIX_FMT_0RGB32@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cinc	w20, w21, eq
	mov	x11, x21
	cbz	w11, LBB0_22
; %bb.2:
	mov	x25, #0
	sxtw	x8, w19
	lsl	w9, w26, #1
	str	w9, [sp, #36]                   ; 4-byte Folded Spill
	mul	w9, w11, w9
	ldr	x10, [sp, #64]                  ; 8-byte Folded Reload
	add	x24, x10, x9
	add	x28, x10, x8
	stp	x11, x19, [sp]                  ; 16-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_16 Depth 4
                                        ;         Child Loop BB0_14 Depth 4
	cbz	w26, LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	mul	w8, w8, w25
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	add	x8, x9, x8
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	sub	x8, x28, x8
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_16 Depth 4
                                        ;         Child Loop BB0_14 Depth 4
	lsl	w8, w19, #1
	add	w9, w8, #2
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	cmp	x10, x9
	b.lt	LBB0_26
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x21, x26
	ldr	x10, [sp, #80]                  ; 8-byte Folded Reload
	ldp	x9, x10, [x10]
	ldr	x27, [x9]
	ldr	w26, [x10]
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldrb	w23, [x9, x25]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldrh	w0, [x9, w8, uxtw]
	bl	_av_be2ne16
	cbz	w0, LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	mul	w8, w26, w19
	add	x8, x27, x8
	add	x9, x8, x23
	add	x10, x9, x26
	mov	x26, x21
	mov	w14, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=3
	mov	x24, x8
	adds	w0, w11, w0
	b.eq	LBB0_19
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_16 Depth 4
                                        ;         Child Loop BB0_14 Depth 4
	sub	x8, x28, x24
	cmp	x8, #1
	b.le	LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	mov	x8, x24
	ldrsb	w11, [x8], #1
	tbnz	w11, #31, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=3
	and	x11, x11, #0xff
	add	x12, x11, #1
	mul	w11, w20, w12
	sub	x13, x10, x9
	cmp	x13, x11
	b.lt	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=3
	sub	x11, x28, x8
	cmp	x11, x12
	b.lt	LBB0_26
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=3
	mvn	w11, w12
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ;       Parent Loop BB0_9 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	sub	w12, w12, #1
	ldrb	w13, [x8], #1
	strb	w13, [x9]
	add	x9, x9, x20
	tst	w12, #0xff
	b.ne	LBB0_14
	b	LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=3
	and	w11, w11, #0xff
	sub	w11, w14, w11
	and	w12, w11, #0xff
	mul	w12, w20, w12
	sub	x13, x10, x9
	cmp	x13, x12
	b.lt	LBB0_19
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ;       Parent Loop BB0_9 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	sub	w11, w11, #1
	ldrb	w12, [x8]
	strb	w12, [x9]
	add	x9, x9, x20
	tst	w11, #0xff
	b.ne	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=3
	add	x8, x24, #2
	mov	w11, #-2
	b	LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x8, x24
	mov	x26, x21
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x19, x19, #1
	mov	x24, x8
	cmp	x19, x26
	b.ne	LBB0_5
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x24
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	mov	x24, x8
	ldp	x11, x19, [sp]                  ; 16-byte Folded Reload
	cmp	x25, x11
	b.ne	LBB0_3
LBB0_22:
	ldr	w8, [x22, #16]
	cmp	w8, #8
	b.gt	LBB0_30
; %bb.23:
	mov	x20, x19
Lloh3:
	adrp	x8, _AV_PKT_DATA_PALETTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PKT_DATA_PALETTE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	sub	x2, x29, #84
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_av_packet_get_side_data
Lloh6:
	adrp	x19, _AVPALETTE_SIZE@GOTPAGE
Lloh7:
	ldr	x19, [x19, _AVPALETTE_SIZE@GOTPAGEOFF]
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_29
; %bb.24:
	ldur	w3, [x29, #-84]
	ldr	w8, [x19]
	cmp	w3, w8
	b.ne	LBB0_28
; %bb.25:
	mov	x1, x0
	mov	w8, #1
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	str	w8, [x9, #16]
	ldr	x0, [x23, #16]
	mov	x2, x3
	bl	_memcpy
	b	LBB0_29
LBB0_26:
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	b	LBB0_31
LBB0_27:
	mov	x19, x0
	b	LBB0_31
LBB0_28:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
LBB0_29:
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	ldr	x1, [x23, #16]
	ldr	w2, [x19]
	bl	_memcpy
	mov	x19, x20
LBB0_30:
	mov	w8, #1
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_31:
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_0RGB32,8,3          ; @AV_PIX_FMT_0RGB32
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PKT_DATA_PALETTE,4,2        ; @AV_PKT_DATA_PALETTE
	.comm	_AVPALETTE_SIZE,4,2             ; @AVPALETTE_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Palette size %d is wrong\n"

	.no_dead_strip	_decode_frame
.subsections_via_symbols
