	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg4video_probe
_mpeg4video_probe:                      ## @mpeg4video_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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %edx
	xorl	%eax, %eax
	movl	$0, %r11d
	movl	$0, %r9d
	movl	$0, %ecx
	movl	$0, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_16
## %bb.1:
	movq	8(%rdi), %rdi
	movq	_VOP_STARTCODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_VISUAL_OBJ_STARTCODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	_SLICE_STARTCODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	_EXT_STARTCODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	$-1, %r12d
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	xorl	%r11d, %r11d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %rdx
	je	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	shll	$8, %r12d
	movl	(%rdi,%rbx,4), %r15d
	leal	(%r15,%r12), %r8d
	addl	$-512, %r8d                     ## imm = 0xFE00
	addl	%r15d, %r12d
	cmpl	$-510, %r8d                     ## imm = 0xFE02
	jb	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r10d, %r12d
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %r12d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	jmp	LBB0_15
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %esi
	andl	$-32, %esi
	cmpl	$256, %esi                      ## imm = 0x100
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r11d
	jmp	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %esi
	andl	$-16, %esi
	cmpl	$288, %esi                      ## imm = 0x120
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%r9d
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	-439(%r12), %esi
	cmpl	$-7, %esi
	setb	%r8b
	leal	-452(%r12), %esi
	cmpl	$-10, %esi
	setb	%al
	andb	%r8b, %al
	movzbl	%al, %eax
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	incl	%esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
LBB0_16:
	cmpl	%r13d, %ecx
	jl	LBB0_24
## %bb.17:
	cmpl	%r9d, %ecx
	jl	LBB0_24
## %bb.18:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rdx,%rdx), %eax
	cmpl	%ecx, %eax
	movl	$0, %esi
	cmovll	%edx, %esi
	testl	%edx, %edx
	cmovel	%edx, %esi
	cmpl	%r9d, %r11d
	setge	%al
	testl	%r9d, %r9d
	setg	%dl
	andb	%al, %dl
	addl	%r11d, %ecx
	cmpb	$1, %dl
	jne	LBB0_22
## %bb.19:
	negl	%esi
	cmpl	%esi, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.20:
	movq	_AVPROBE_SCORE_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$4, %ecx
	jg	LBB0_24
## %bb.21:
	movq	%rax, %rcx
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_24
LBB0_22:
	cmpl	$5, %ecx
	setge	%al
	andb	%al, %dl
	cmpb	$1, %dl
	movl	$0, %eax
	jne	LBB0_24
## %bb.23:
	movq	_AVPROBE_SCORE_EXTENSION@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$34, %rcx
	addl	%eax, %ecx
	movq	%rcx, %rax
LBB0_24:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VOP_STARTCODE,4,2              ## @VOP_STARTCODE
	.comm	_VISUAL_OBJ_STARTCODE,4,2       ## @VISUAL_OBJ_STARTCODE
	.comm	_SLICE_STARTCODE,4,2            ## @SLICE_STARTCODE
	.comm	_EXT_STARTCODE,4,2              ## @EXT_STARTCODE
	.comm	_AVPROBE_SCORE_EXTENSION,4,2    ## @AVPROBE_SCORE_EXTENSION
	.no_dead_strip	_mpeg4video_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg4video_probe
_mpeg4video_probe:                      ; @mpeg4video_probe
	.cfi_startproc
; %bb.0:
	ldr	w14, [x0]
	cmp	w14, #1
	b.lt	LBB0_13
; %bb.1:
	mov	w12, #0
	mov	w8, #0
	mov	w13, #0
	mov	w10, #0
	mov	w11, #0
	mov	w9, #0
	ldr	x15, [x0, #8]
Lloh0:
	adrp	x16, _VOP_STARTCODE@GOTPAGE
Lloh1:
	ldr	x16, [x16, _VOP_STARTCODE@GOTPAGEOFF]
Lloh2:
	ldr	w16, [x16]
Lloh3:
	adrp	x17, _VISUAL_OBJ_STARTCODE@GOTPAGE
Lloh4:
	ldr	x17, [x17, _VISUAL_OBJ_STARTCODE@GOTPAGEOFF]
Lloh5:
	ldr	w17, [x17]
Lloh6:
	adrp	x0, _SLICE_STARTCODE@GOTPAGE
Lloh7:
	ldr	x0, [x0, _SLICE_STARTCODE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x0]
Lloh9:
	adrp	x1, _EXT_STARTCODE@GOTPAGE
Lloh10:
	ldr	x1, [x1, _EXT_STARTCODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x1]
	mov	w2, #-1
	mov	w3, #-10
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w10, w10, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x15, x15, #4
	subs	x14, x14, #1
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w4, [x15]
	add	w2, w4, w2, lsl #8
	sub	w4, w2, #512
	cmn	w4, #510
	b.lo	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, w16
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, w17
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w13, w13, #1
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w4, w2, #0xffffffe0
	cmp	w4, #256
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w4, w2, #0xfffffff0
	cmp	w4, #288
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w11, w11, #1
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w4, w2, #439
	sub	w5, w2, #452
	cmn	w4, #7
	ccmp	w5, w3, #2, lo
	cinc	w4, w8, lo
	cmp	w2, w0
	ccmp	w2, w1, #4, ne
	csel	w8, w4, w8, ne
	cinc	w12, w12, eq
	b	LBB0_3
LBB0_13:
	mov	w9, #0
	mov	w11, #0
	mov	w10, #0
	mov	w13, #0
	mov	w8, #0
	mov	w12, #0
LBB0_14:
	mov	w0, #0
	cmp	w10, w13
	b.lt	LBB0_22
; %bb.15:
	cmp	w10, w11
	b.lt	LBB0_22
; %bb.16:
	lsl	w13, w12, #1
	cmp	w13, w10
	ccmp	w12, #0, #4, lt
	csel	w12, w12, wzr, ne
	cmp	w9, w11
	ccmp	w11, #0, #4, ge
	cset	w11, gt
	add	w9, w10, w9
	cmp	w11, #1
	b.ne	LBB0_20
; %bb.17:
	neg	w10, w12
	cmp	w8, w10
	b.ne	LBB0_20
; %bb.18:
Lloh12:
	adrp	x8, _AVPROBE_SCORE_EXTENSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVPROBE_SCORE_EXTENSION@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	cmp	w9, #4
	b.gt	LBB0_22
; %bb.19:
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w0, w8, #1
	ret
LBB0_20:
	cmp	w9, #4
	cset	w8, gt
	and	w8, w11, w8
	cmp	w8, #1
	b.ne	LBB0_23
; %bb.21:
Lloh15:
	adrp	x8, _AVPROBE_SCORE_EXTENSION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVPROBE_SCORE_EXTENSION@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w0, w8, w9
LBB0_22:
	ret
LBB0_23:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_VOP_STARTCODE,4,2              ; @VOP_STARTCODE
	.comm	_VISUAL_OBJ_STARTCODE,4,2       ; @VISUAL_OBJ_STARTCODE
	.comm	_SLICE_STARTCODE,4,2            ; @SLICE_STARTCODE
	.comm	_EXT_STARTCODE,4,2              ; @EXT_STARTCODE
	.comm	_AVPROBE_SCORE_EXTENSION,4,2    ; @AVPROBE_SCORE_EXTENSION
	.no_dead_strip	_mpeg4video_probe
.subsections_via_symbols
