	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsd_probe
_rsd_probe:                             ## @rsd_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_memcmp
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.1:
	movq	(%rbx), %rdi
	movl	12(%rdi), %ecx
	addl	$-55, %ecx
	cmpl	$-5, %ecx
	jb	LBB0_8
## %bb.2:
	addq	$32, %rdi
	callq	_AV_RL32
	cmpl	$256, %eax                      ## imm = 0x100
	jg	LBB0_4
## %bb.3:
	movq	(%rbx), %rdi
	addq	$32, %rdi
	callq	_AV_RL32
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rdi
	addq	$64, %rdi
	callq	_AV_RL32
	cmpl	$384000, %eax                   ## imm = 0x5DC00
	jg	LBB0_4
## %bb.6:
	movq	(%rbx), %rdi
	addq	$64, %rdi
	callq	_AV_RL32
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movq	_AVPROBE_SCORE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_4:
	movq	_AVPROBE_SCORE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSD"

	.comm	_AVPROBE_SCORE_MAX,4,2          ## @AVPROBE_SCORE_MAX
	.no_dead_strip	_rsd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsd_probe
_rsd_probe:                             ; @rsd_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]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_memcmp
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w9, [x8, #12]
	sub	w9, w9, #55
	cmn	w9, #5
	b.hs	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	add	x0, x8, #32
	bl	_AV_RL32
	cmp	w0, #256
	b.gt	LBB0_9
; %bb.5:
	ldr	x8, [x19]
	add	x0, x8, #32
	bl	_AV_RL32
	cbz	w0, LBB0_9
; %bb.6:
	ldr	x8, [x19]
	add	x0, x8, #64
	bl	_AV_RL32
	mov	w8, #56320
	movk	w8, #5, lsl #16
	cmp	w0, w8
	b.gt	LBB0_9
; %bb.7:
	ldr	x8, [x19]
	add	x0, x8, #64
	bl	_AV_RL32
	cbz	w0, LBB0_9
; %bb.8:
Lloh2:
	adrp	x8, _AVPROBE_SCORE_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVPROBE_SCORE_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_9:
Lloh5:
	adrp	x8, _AVPROBE_SCORE_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVPROBE_SCORE_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSD"

	.comm	_AVPROBE_SCORE_MAX,4,2          ; @AVPROBE_SCORE_MAX
	.no_dead_strip	_rsd_probe
.subsections_via_symbols
