	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc1_split
_vc1_split:                             ## @vc1_split
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$-1, -48(%rbp)
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movslq	%edx, %rax
	leaq	(%rsi,%rax,4), %r15
	xorl	%r14d, %r14d
	movq	_VC1_CODE_SEQHDR@GOTPCREL(%rip), %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %r14d
	cmpq	%r15, %rbx
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	leaq	-48(%rbp), %rdx
	callq	_avpriv_find_start_code
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	movl	$1, %r12d
	cmpq	(%r13), %rdi
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_VC1_CODE_ENTRYPOINT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_IS_MARKER
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	subq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	$-16, %rbx
	shrq	$2, %rbx
	jmp	LBB0_10
LBB0_7:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC1_CODE_SEQHDR,8,3            ## @VC1_CODE_SEQHDR
	.comm	_VC1_CODE_ENTRYPOINT,8,3        ## @VC1_CODE_ENTRYPOINT
	.no_dead_strip	_vc1_split
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc1_split
_vc1_split:                             ; @vc1_split
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x8, #-1
	str	x8, [sp, #8]
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	w24, #0
Lloh0:
	adrp	x22, _VC1_CODE_SEQHDR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VC1_CODE_SEQHDR@GOTPAGEOFF]
Lloh2:
	adrp	x23, _VC1_CODE_ENTRYPOINT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _VC1_CODE_ENTRYPOINT@GOTPAGEOFF]
	mov	x21, x1
	add	x20, x1, w2, sxtw #2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x21, x20
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_avpriv_find_start_code
	mov	x21, x0
	ldr	x0, [sp, #8]
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w24, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_IS_MARKER
	cbz	x0, LBB0_2
; %bb.7:
	sub	x8, x21, x19
	sub	x8, x8, #16
	lsr	x0, x8, #2
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VC1_CODE_SEQHDR,8,3            ; @VC1_CODE_SEQHDR
	.comm	_VC1_CODE_ENTRYPOINT,8,3        ; @VC1_CODE_ENTRYPOINT
	.no_dead_strip	_vc1_split
.subsections_via_symbols
