	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmd_probe
_vmd_probe:                             ## @vmd_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpl	$806, (%rdi)                    ## imm = 0x326
	jl	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	callq	_AV_RL16
	movq	_VMD_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$-2, %ecx
	cmpl	%ecx, %eax
	jne	LBB0_3
## %bb.2:
	movq	8(%r14), %rdi
	addq	$48, %rdi
	callq	_AV_RL16
	movl	%eax, %r15d
	movq	8(%r14), %rdi
	addq	$56, %rdi
	callq	_AV_RL16
	movl	%eax, %r12d
	movl	$3216, %edi                     ## imm = 0xC90
	addq	8(%r14), %rdi
	callq	_AV_RL16
	xorl	%ecx, %ecx
	cmpl	$22050, %eax                    ## imm = 0x5622
	movq	_AVPROBE_SCORE_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmovel	%ebx, %ecx
	cmpl	$2049, %r12d                    ## imm = 0x801
	cmovgel	%ecx, %ebx
	testl	%r12d, %r12d
	cmovel	%ecx, %ebx
	cmpl	$2049, %r15d                    ## imm = 0x801
	cmovgel	%ecx, %ebx
	testl	%r15d, %r15d
	cmovel	%ecx, %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMD_HEADER_SIZE,4,2            ## @VMD_HEADER_SIZE
	.comm	_AVPROBE_SCORE_EXTENSION,4,2    ## @AVPROBE_SCORE_EXTENSION
	.no_dead_strip	_vmd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmd_probe
_vmd_probe:                             ; @vmd_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cmp	w8, #806
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_AV_RL16
Lloh0:
	adrp	x8, _VMD_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMD_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #2
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	add	x0, x8, #48
	bl	_AV_RL16
	mov	x20, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #56
	bl	_AV_RL16
	mov	x21, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #3216
	bl	_AV_RL16
	cmp	w21, #2048
	ccmp	w21, #0, #4, le
	mov	w8, #2048
	ccmp	w20, w8, #0, ne
	ccmp	w20, #0, #4, le
	mov	w8, #22050
	ccmp	w0, w8, #4, eq
Lloh3:
	adrp	x8, _AVPROBE_SCORE_EXTENSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVPROBE_SCORE_EXTENSION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	csel	w0, wzr, w8, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VMD_HEADER_SIZE,4,2            ; @VMD_HEADER_SIZE
	.comm	_AVPROBE_SCORE_EXTENSION,4,2    ; @AVPROBE_SCORE_EXTENSION
	.no_dead_strip	_vmd_probe
.subsections_via_symbols
