	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cavsvideo_probe
_cavsvideo_probe:                       ## @cavsvideo_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, -44(%rbp)
	movslq	8(%rdi), %rcx
	testq	%rcx, %rcx
	jle	LBB0_20
## %bb.1:
	movq	(%rdi), %rax
	leaq	(%rax,%rcx,8), %rbx
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %r14
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edx
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, %r12d
	cmpq	%rbx, %rax
	jae	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_avpriv_find_start_code
	movl	-44(%rbp), %esi
	movl	%esi, %ecx
	andl	$-256, %ecx
	cmpl	$256, %ecx                      ## imm = 0x100
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_CAVS_SEQ_START_CODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	cmpl	%ecx, %esi
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%esi, %edx
	cmpl	%r12d, %esi
	jl	LBB0_20
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ecx, %esi
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %rcx
	movq	_CAVS_PROFILE_JIZHUN@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_CAVS_PIC_I_START_CODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_CAVS_PIC_PB_START_CODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
	movq	_CAVS_UNDEF_START_CODE@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %esi
	je	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_CAVS_VIDEO_EDIT_CODE@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %esi
	jle	LBB0_3
	jmp	LBB0_21
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%r15d
	jmp	LBB0_3
LBB0_20:
	xorl	%ecx, %ecx
LBB0_21:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%ecx, %ecx
	testl	%r13d, %r13d
	je	LBB0_21
## %bb.17:
	leal	(%r13,%r13,8), %eax
	addl	%r15d, %r15d
	leal	(%r15,%r15,4), %edx
	cmpl	%edx, %eax
	jg	LBB0_21
## %bb.18:
	movq	_AVPROBE_SCORE_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incl	%ecx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_CAVS_SEQ_START_CODE,4,2        ## @CAVS_SEQ_START_CODE
	.comm	_CAVS_PROFILE_JIZHUN,8,3        ## @CAVS_PROFILE_JIZHUN
	.comm	_CAVS_PIC_I_START_CODE,4,2      ## @CAVS_PIC_I_START_CODE
	.comm	_CAVS_PIC_PB_START_CODE,4,2     ## @CAVS_PIC_PB_START_CODE
	.comm	_CAVS_UNDEF_START_CODE,4,2      ## @CAVS_UNDEF_START_CODE
	.comm	_CAVS_VIDEO_EDIT_CODE,4,2       ## @CAVS_VIDEO_EDIT_CODE
	.comm	_AVPROBE_SCORE_EXTENSION,4,2    ## @AVPROBE_SCORE_EXTENSION
	.no_dead_strip	_cavsvideo_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cavsvideo_probe
_cavsvideo_probe:                       ; @cavsvideo_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	w8, #-1
	str	w8, [sp, #12]
	ldrsw	x8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	w22, #0
	mov	w21, #0
	mov	w20, #0
	ldr	x0, [x0]
	add	x19, x0, x8, lsl #3
Lloh0:
	adrp	x23, _CAVS_SEQ_START_CODE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CAVS_SEQ_START_CODE@GOTPAGEOFF]
Lloh2:
	adrp	x24, _CAVS_PROFILE_JIZHUN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CAVS_PROFILE_JIZHUN@GOTPAGEOFF]
Lloh4:
	adrp	x25, _CAVS_PIC_I_START_CODE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _CAVS_PIC_I_START_CODE@GOTPAGEOFF]
Lloh6:
	adrp	x26, _CAVS_PIC_PB_START_CODE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _CAVS_PIC_PB_START_CODE@GOTPAGEOFF]
Lloh8:
	adrp	x27, _CAVS_UNDEF_START_CODE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _CAVS_UNDEF_START_CODE@GOTPAGEOFF]
Lloh10:
	adrp	x28, _CAVS_VIDEO_EDIT_CODE@GOTPAGE
Lloh11:
	ldr	x28, [x28, _CAVS_VIDEO_EDIT_CODE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x0, x19
	b.hs	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x1, x19
	bl	_avpriv_find_start_code
	ldr	w8, [sp, #12]
	and	w9, w8, #0xffffff00
	cmp	w9, #256
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x23]
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w22
	mov	x22, x8
	b.lt	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w9
	b.ne	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	cmp	w8, w9
	b.eq	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x25]
	ldr	w10, [x26]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x27]
	ldr	w10, [x28]
	cmp	w8, w9
	ccmp	w8, w10, #0, ne
	b.le	LBB0_3
	b	LBB0_15
LBB0_13:
	cbz	w21, LBB0_15
; %bb.14:
	add	w8, w21, w21, lsl #3
	add	w9, w20, w20, lsl #2
	cmp	w8, w9, lsl #1
	b.le	LBB0_17
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
Lloh12:
	adrp	x8, _AVPROBE_SCORE_EXTENSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVPROBE_SCORE_EXTENSION@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w0, w8, #1
	b	LBB0_16
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CAVS_SEQ_START_CODE,4,2        ; @CAVS_SEQ_START_CODE
	.comm	_CAVS_PROFILE_JIZHUN,8,3        ; @CAVS_PROFILE_JIZHUN
	.comm	_CAVS_PIC_I_START_CODE,4,2      ; @CAVS_PIC_I_START_CODE
	.comm	_CAVS_PIC_PB_START_CODE,4,2     ; @CAVS_PIC_PB_START_CODE
	.comm	_CAVS_UNDEF_START_CODE,4,2      ; @CAVS_UNDEF_START_CODE
	.comm	_CAVS_VIDEO_EDIT_CODE,4,2       ; @CAVS_VIDEO_EDIT_CODE
	.comm	_AVPROBE_SCORE_EXTENSION,4,2    ; @AVPROBE_SCORE_EXTENSION
	.no_dead_strip	_cavsvideo_probe
.subsections_via_symbols
