	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flic_probe
_flic_probe:                            ## @flic_probe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_FLIC_HEADER_SIZE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	addq	$16, %rdi
	callq	_AV_RL16
	movq	_FLIC_FILE_MAGIC_1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.2:
	movq	_FLIC_FILE_MAGIC_2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	_FLIC_FILE_MAGIC_3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
LBB0_4:
	movq	8(%rbx), %rdi
	addq	$64, %rdi
	callq	_AV_RL16
	movq	_FLIC_CHUNK_MAGIC_1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	addq	$64, %rdi
	callq	_AV_RL32
	cmpl	$2000, %eax                     ## imm = 0x7D0
	jg	LBB0_9
LBB0_6:
	movq	8(%rbx), %rdi
	addq	$32, %rdi
	callq	_AV_RL16
	cmpl	$4096, %eax                     ## imm = 0x1000
	jg	LBB0_9
## %bb.7:
	movq	8(%rbx), %rdi
	addq	$40, %rdi
	callq	_AV_RL16
	cmpl	$4096, %eax                     ## imm = 0x1000
	jg	LBB0_9
## %bb.8:
	movq	_AVPROBE_SCORE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	decl	%r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLIC_HEADER_SIZE,8,3           ## @FLIC_HEADER_SIZE
	.comm	_FLIC_FILE_MAGIC_1,4,2          ## @FLIC_FILE_MAGIC_1
	.comm	_FLIC_FILE_MAGIC_2,4,2          ## @FLIC_FILE_MAGIC_2
	.comm	_FLIC_FILE_MAGIC_3,4,2          ## @FLIC_FILE_MAGIC_3
	.comm	_FLIC_CHUNK_MAGIC_1,4,2         ## @FLIC_CHUNK_MAGIC_1
	.comm	_AVPROBE_SCORE_MAX,4,2          ## @AVPROBE_SCORE_MAX
	.no_dead_strip	_flic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flic_probe
_flic_probe:                            ; @flic_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _FLIC_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLIC_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	add	x0, x8, #16
	bl	_AV_RL16
Lloh3:
	adrp	x8, _FLIC_FILE_MAGIC_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLIC_FILE_MAGIC_1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FLIC_FILE_MAGIC_2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FLIC_FILE_MAGIC_2@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _FLIC_FILE_MAGIC_3@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FLIC_FILE_MAGIC_3@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	ccmp	w0, w10, #4, ne
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	add	x0, x8, #64
	bl	_AV_RL16
Lloh12:
	adrp	x8, _FLIC_CHUNK_MAGIC_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FLIC_CHUNK_MAGIC_1@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	add	x0, x8, #64
	bl	_AV_RL32
	cmp	w0, #2000
	b.gt	LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
	add	x0, x8, #32
	bl	_AV_RL16
	cmp	w0, #1, lsl #12                 ; =4096
	b.gt	LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
	add	x0, x8, #40
	bl	_AV_RL16
	cmp	w0, #1, lsl #12                 ; =4096
	b.le	LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh15:
	adrp	x8, _AVPROBE_SCORE_MAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVPROBE_SCORE_MAX@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	sub	w0, w8, #1
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FLIC_HEADER_SIZE,8,3           ; @FLIC_HEADER_SIZE
	.comm	_FLIC_FILE_MAGIC_1,4,2          ; @FLIC_FILE_MAGIC_1
	.comm	_FLIC_FILE_MAGIC_2,4,2          ; @FLIC_FILE_MAGIC_2
	.comm	_FLIC_FILE_MAGIC_3,4,2          ; @FLIC_FILE_MAGIC_3
	.comm	_FLIC_CHUNK_MAGIC_1,4,2         ; @FLIC_CHUNK_MAGIC_1
	.comm	_AVPROBE_SCORE_MAX,4,2          ; @AVPROBE_SCORE_MAX
	.no_dead_strip	_flic_probe
.subsections_via_symbols
