	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ape_probe
_ape_probe:                             ## @ape_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, %rbx
	movq	(%rdi), %rdi
	addq	$4, %rdi
	callq	_AV_RL16
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_AV_RL32
	movq	%rax, %rbx
	movl	$77, %edi
	movl	$65, %esi
	movl	$67, %edx
	movl	$32, %ecx
	callq	_MKTAG
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	jne	LBB0_4
## %bb.1:
	movq	_APE_MIN_VERSION@GOTPCREL(%rip), %rcx
	movq	_AVPROBE_SCORE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%rcx), %r14d
	jl	LBB0_3
## %bb.2:
	movq	_APE_MAX_VERSION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	jle	LBB0_4
LBB0_3:
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, %eax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APE_MIN_VERSION,4,2            ## @APE_MIN_VERSION
	.comm	_APE_MAX_VERSION,4,2            ## @APE_MAX_VERSION
	.comm	_AVPROBE_SCORE_MAX,4,2          ## @AVPROBE_SCORE_MAX
	.no_dead_strip	_ape_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ape_probe
_ape_probe:                             ; @ape_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	x20, x0
	ldr	x8, [x0]
	add	x0, x8, #4
	bl	_AV_RL16
	mov	x19, x0
	ldr	x0, [x20]
	bl	_AV_RL32
	mov	x20, x0
	mov	w0, #77
	mov	w1, #65
	mov	w2, #67
	mov	w3, #32
	bl	_MKTAG
	cmp	x20, x0
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _APE_MIN_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APE_MIN_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _APE_MAX_VERSION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _APE_MAX_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _AVPROBE_SCORE_MAX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AVPROBE_SCORE_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x10]
	cmp	w19, w8
	ccmp	w19, w9, #0, ge
	b.le	LBB0_4
; %bb.2:
	add	w8, w0, #3
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w0, w8, #2
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_APE_MIN_VERSION,4,2            ; @APE_MIN_VERSION
	.comm	_APE_MAX_VERSION,4,2            ; @APE_MAX_VERSION
	.comm	_AVPROBE_SCORE_MAX,4,2          ; @AVPROBE_SCORE_MAX
	.no_dead_strip	_ape_probe
.subsections_via_symbols
