	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lmlm4_probe
_lmlm4_probe:                           ## @lmlm4_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
	movq	(%rdi), %rbx
	leaq	2(%rbx), %rdi
	callq	_AV_RB16
	movl	%eax, %r15d
	leaq	4(%rbx), %rdi
	callq	_AV_RB32
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_AV_RB16
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_1
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_LMLM4_MPEG1L2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	ja	LBB0_11
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.3:
	movq	_LMLM4_INVALID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	je	LBB0_11
## %bb.4:
	movq	_LMLM4_MAX_PACKET_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	ja	LBB0_11
## %bb.5:
	addq	$8, %rbx
	movq	%rbx, %rdi
	cmpl	%eax, %r15d
	jne	LBB0_8
## %bb.6:
	callq	_AV_RB16
	andl	$65534, %eax                    ## imm = 0xFFFE
	cmpl	$65532, %eax                    ## imm = 0xFFFC
	jne	LBB0_11
## %bb.7:
	movq	_AVPROBE_SCORE_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1431655766, %rax, %r14         ## imm = 0x55555556
	movq	%r14, %rax
	shrq	$63, %rax
	shrq	$32, %r14
	jmp	LBB0_10
LBB0_8:
	callq	_AV_RB24
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.9:
	movq	_AVPROBE_SCORE_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %r14         ## imm = 0x66666667
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$33, %r14
LBB0_10:
	addl	%eax, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_LMLM4_MPEG1L2,4,2              ## @LMLM4_MPEG1L2
	.comm	_LMLM4_INVALID,4,2              ## @LMLM4_INVALID
	.comm	_LMLM4_MAX_PACKET_SIZE,4,2      ## @LMLM4_MAX_PACKET_SIZE
	.comm	_AVPROBE_SCORE_MAX,4,2          ## @AVPROBE_SCORE_MAX
	.no_dead_strip	_lmlm4_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lmlm4_probe
_lmlm4_probe:                           ; @lmlm4_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	x19, [x0]
	add	x0, x19, #2
	bl	_AV_RB16
	mov	x20, x0
	add	x0, x19, #4
	bl	_AV_RB32
	mov	x21, x0
	mov	x0, x19
	bl	_AV_RB16
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LMLM4_MPEG1L2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LMLM4_MPEG1L2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LMLM4_INVALID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LMLM4_INVALID@GOTPAGEOFF]
Lloh5:
	adrp	x10, _LMLM4_MAX_PACKET_SIZE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _LMLM4_MAX_PACKET_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	cmp	w20, w8
	ccmp	w21, #0, #4, ls
	ccmp	w20, w9, #4, ne
	ccmp	w21, w10, #2, ne
	b.ls	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
LBB0_4:
	add	x0, x19, #8
	cmp	w20, w8
	b.ne	LBB0_7
; %bb.5:
	bl	_AV_RB16
	and	w8, w0, #0xfffe
	mov	w9, #65532
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.6:
Lloh9:
	adrp	x8, _AVPROBE_SCORE_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVPROBE_SCORE_MAX@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	b	LBB0_9
LBB0_7:
	bl	_AV_RB24
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.8:
Lloh12:
	adrp	x8, _AVPROBE_SCORE_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVPROBE_SCORE_MAX@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #33
LBB0_9:
	add	w0, w8, w9
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LMLM4_MPEG1L2,4,2              ; @LMLM4_MPEG1L2
	.comm	_LMLM4_INVALID,4,2              ; @LMLM4_INVALID
	.comm	_LMLM4_MAX_PACKET_SIZE,4,2      ; @LMLM4_MAX_PACKET_SIZE
	.comm	_AVPROBE_SCORE_MAX,4,2          ; @AVPROBE_SCORE_MAX
	.no_dead_strip	_lmlm4_probe
.subsections_via_symbols
