	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s337m_probe
_s337m_probe:                           ## @s337m_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	cmpl	$0, (%rdi)
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_IS_20LE_MARKER
	cmpq	$1, %rax
	movl	$0, %eax
	adcq	$1, %rax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	-64(%rbp,%rax,4)
	movl	%r13d, %edi
	callq	_IS_16LE_MARKER
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	addl	-68(%rbp), %r14d
	leal	(%r14,%rcx,2), %r14d
	addl	$4, %r14d
	xorl	%r13d, %r13d
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	cmpl	(%r15), %r14d
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %r13d
	movq	8(%r15), %rax
	movslq	%r14d, %rbx
	orl	(%rax,%rbx,4), %r13d
	movl	%r13d, %edi
	callq	_IS_LE_MARKER
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	leaq	(%rax,%rbx,4), %rbx
	addq	$4, %rbx
	movl	%r13d, %edi
	callq	_IS_16LE_MARKER
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_AV_RL16
	movl	%eax, %r12d
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_AV_RL16
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_AV_RL24
	movl	%eax, %r12d
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_AV_RL24
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	leaq	-68(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_s337m_get_offset_and_codec
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_IS_16LE_MARKER
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_5:
	leaq	-64(%rbp), %rdi
	callq	_FF_ARRAY_ELEMS
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	LBB0_6
## %bb.14:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r15
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	addl	%ecx, %r12d
	incq	%rbx
	movq	%r15, %rdi
	callq	_FF_ARRAY_ELEMS
	movslq	%eax, %rcx
	movl	%r13d, %eax
	cmpq	%rcx, %rbx
	jge	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp,%rbx,4), %ecx
	movslq	%eax, %rdx
	movl	%ebx, %r13d
	cmpl	%ecx, -64(%rbp,%rdx,4)
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%eax, %r13d
	jmp	LBB0_17
LBB0_18:
	movslq	%r13d, %rax
	leal	(%r12,%r12,2), %ecx
	jmp	LBB0_19
LBB0_6:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
LBB0_19:
	movl	-64(%rbp,%rax,4), %edx
	leal	(,%rdx,4), %esi
	movq	_AVPROBE_SCORE_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	cmpl	%ecx, %esi
	cmovlel	%r14d, %eax
	cmpl	$4, %edx
	cmovll	%r14d, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVPROBE_SCORE_EXTENSION,4,2    ## @AVPROBE_SCORE_EXTENSION
	.no_dead_strip	_s337m_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s337m_probe
_s337m_probe:                           ; @s337m_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x0
	mov	w23, #0
	mov	w20, #0
	mov	w24, #1
	add	x25, sp, #8
	mov	w26, #4
	mov	w27, #6
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_IS_20LE_MARKER
	cmp	x0, #0
	cinc	x8, x24, eq
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	x8, x8, #2
	ldr	w9, [x25, x8]
	add	w9, w9, #1
	str	w9, [x25, x8]
	mov	x0, x20
	bl	_IS_16LE_MARKER
	mov	w20, #0
	cmp	x0, #0
	csel	w8, w27, w26, eq
	ldr	w9, [sp, #4]
	add	w9, w9, w23
	add	w23, w9, w8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w23, #1
	ldr	w8, [x19]
	cmp	w23, w8
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, w23, sxtw #2]
	orr	w20, w8, w20, lsl #8
	mov	x0, x20
	bl	_IS_LE_MARKER
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w23
	ldr	x9, [x19, #8]
	add	x8, x9, x8, lsl #2
	add	x22, x8, #4
	mov	x0, x20
	bl	_IS_16LE_MARKER
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_AV_RL16
	mov	x21, x0
	add	x0, x22, #8
	bl	_AV_RL16
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_AV_RL24
	mov	x21, x0
	add	x0, x22, #12
	bl	_AV_RL24
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x3, x0
	add	x4, sp, #4
	mov	x0, #0
	mov	x1, x20
	mov	x2, x21
	mov	x5, #0
	bl	_s337m_get_offset_and_codec
	cbnz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_IS_16LE_MARKER
	cbz	x0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
	b	LBB0_3
LBB0_12:
	add	x19, sp, #8
	add	x0, sp, #8
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.13:
	mov	x22, #0
	mov	w21, #0
	mov	w20, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, x22, lsl #2]
	add	w20, w8, w20
	ldr	w9, [x19, w21, sxtw #2]
	cmp	w9, w8
	csel	w21, w22, w21, lt
	add	x22, x22, #1
	add	x0, sp, #8
	bl	_FF_ARRAY_ELEMS
	cmp	x22, w0, sxtw
	b.lt	LBB0_14
; %bb.15:
	sxtw	x9, w21
	add	w8, w20, w20, lsl #1
	b	LBB0_17
LBB0_16:
	mov	w8, #0
	mov	x9, #0
LBB0_17:
	ldr	w9, [x19, x9, lsl #2]
	lsl	w10, w9, #2
	cmp	w10, w8
Lloh3:
	adrp	x8, _AVPROBE_SCORE_EXTENSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVPROBE_SCORE_EXTENSION@GOTPAGEOFF]
	ccmp	w9, #3, #4, gt
Lloh5:
	ldr	w8, [x8]
	csinc	w0, wzr, w8, le
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVPROBE_SCORE_EXTENSION,4,2    ; @AVPROBE_SCORE_EXTENSION
	.no_dead_strip	_s337m_probe
.subsections_via_symbols
