	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_read_probe
_img_read_probe:                        ## @img_read_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	callq	_ff_guess_image2_codec
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	8(%rbx), %rdi
	callq	_av_filename_number_test
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	8(%rbx), %rdi
	callq	_is_glob
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	_AVPROBE_SCORE_MAX@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rbx), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcspn
	cmpq	$0, (%r15,%rax,8)
	je	LBB0_7
## %bb.6:
	movq	_AVPROBE_SCORE_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	addl	$2, %r14d
	jmp	LBB0_12
LBB0_7:
	cmpq	$0, (%rbx)
	je	LBB0_12
## %bb.8:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_av_match_ext
	movl	$5, %r14d
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_av_match_ext
	movl	$5, %r14d
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movq	_AVPROBE_SCORE_EXTENSION@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AVPROBE_SCORE_MAX,4,2          ## @AVPROBE_SCORE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*?{"

	.comm	_AVPROBE_SCORE_EXTENSION,4,2    ## @AVPROBE_SCORE_EXTENSION
L_.str.1:                               ## @.str.1
	.asciz	"raw"

L_.str.2:                               ## @.str.2
	.asciz	"gif"

	.no_dead_strip	_img_read_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_read_probe
_img_read_probe:                        ; @img_read_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
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_10
; %bb.1:
	bl	_ff_guess_image2_codec
	cbz	x0, LBB0_10
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_av_filename_number_test
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_is_glob
	cbz	x0, LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _AVPROBE_SCORE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVPROBE_SCORE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_5:
	ldr	x20, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcspn
	ldr	x8, [x20, x0, lsl #3]
	cbz	x8, LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _AVPROBE_SCORE_EXTENSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVPROBE_SCORE_EXTENSION@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w20, w8, #2
	b	LBB0_11
LBB0_7:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_av_match_ext
	mov	w20, #5
	cbnz	x0, LBB0_11
; %bb.9:
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_av_match_ext
Lloh12:
	adrp	x8, _AVPROBE_SCORE_EXTENSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVPROBE_SCORE_EXTENSION@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w8, w20, eq
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AVPROBE_SCORE_MAX,4,2          ; @AVPROBE_SCORE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*?{"

	.comm	_AVPROBE_SCORE_EXTENSION,4,2    ; @AVPROBE_SCORE_EXTENSION
l_.str.1:                               ; @.str.1
	.asciz	"raw"

l_.str.2:                               ; @.str.2
	.asciz	"gif"

	.no_dead_strip	_img_read_probe
.subsections_via_symbols
