	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flic_decode_frame
_flic_decode_frame:                     ## @flic_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
	movq	%rcx, %rax
	movq	8(%rcx), %rcx
	movl	(%rax), %r8d
	movq	(%rdi), %r9
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r9
	jne	LBB0_1
## %bb.5:
	popq	%rbp
	jmp	_flic_decode_frame_8BPP         ## TAILCALL
LBB0_1:
	movq	_AV_PIX_FMT_RGB555@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r9
	je	LBB0_6
## %bb.2:
	movq	_AV_PIX_FMT_RGB565@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r9
	je	LBB0_6
## %bb.3:
	movq	_AV_PIX_FMT_BGR24@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r9
	jne	LBB0_4
## %bb.7:
	popq	%rbp
	jmp	_flic_decode_frame_24BPP        ## TAILCALL
LBB0_6:
	popq	%rbp
	jmp	_flic_decode_frame_15_16BPP     ## TAILCALL
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_PAL8,8,3            ## @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_RGB555,8,3          ## @AV_PIX_FMT_RGB555
	.comm	_AV_PIX_FMT_RGB565,8,3          ## @AV_PIX_FMT_RGB565
	.comm	_AV_PIX_FMT_BGR24,8,3           ## @AV_PIX_FMT_BGR24
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown FLC format, my science cannot explain how this happened.\n"

	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
	.no_dead_strip	_flic_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flic_decode_frame
_flic_decode_frame:                     ; @flic_decode_frame
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x3
	ldr	x3, [x3, #8]
	ldr	w4, [x8]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_flic_decode_frame_8BPP
LBB0_2:
Lloh3:
	adrp	x9, _AV_PIX_FMT_RGB555@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_PIX_FMT_RGB555@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _AV_PIX_FMT_RGB565@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_PIX_FMT_RGB565@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_flic_decode_frame_15_16BPP
LBB0_4:
Lloh9:
	adrp	x9, _AV_PIX_FMT_BGR24@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_PIX_FMT_BGR24@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_flic_decode_frame_24BPP
LBB0_6:
Lloh12:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh17:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_PAL8,8,3            ; @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_RGB555,8,3          ; @AV_PIX_FMT_RGB555
	.comm	_AV_PIX_FMT_RGB565,8,3          ; @AV_PIX_FMT_RGB565
	.comm	_AV_PIX_FMT_BGR24,8,3           ; @AV_PIX_FMT_BGR24
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown FLC format, my science cannot explain how this happened.\n"

	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
	.no_dead_strip	_flic_decode_frame
.subsections_via_symbols
