	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_parse_vc1_frame
_mov_parse_vc1_frame:                   ## @mov_parse_vc1_frame
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movslq	(%rdi), %rcx
	leaq	(%rax,%rcx,4), %r15
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rdi), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_find_next_marker
	xorl	%r14d, %r14d
	movl	$0, %r13d
	cmpq	%r15, %rax
	jae	LBB0_9
## %bb.1:
	movq	%rax, %r12
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 16(%rax)
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r15, %r12
	jae	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	leaq	16(%r12), %rdi
	movq	%r15, %rsi
	callq	_find_next_marker
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_AV_RB32
	cmpl	$128, %eax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$130, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %eax
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %r13d
	jmp	LBB0_3
LBB0_9:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	cmpl	$0, 20(%rbx)
	je	LBB0_12
## %bb.11:
	movl	$1, 24(%rbx)
	jmp	LBB0_13
LBB0_12:
	cmpl	$0, 24(%rbx)
	je	LBB0_41
LBB0_13:
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.14:
	cmpl	$0, 36(%rbx)
	je	LBB0_17
LBB0_15:
	testl	%r13d, %r13d
	je	LBB0_43
## %bb.16:
	cmpl	$0, 40(%rbx)
	jne	LBB0_43
LBB0_17:
	testl	%eax, %eax
	jle	LBB0_31
## %bb.18:
	movq	8(%rbx), %rcx
	cmpl	$8, %eax
	jb	LBB0_19
## %bb.20:
	movq	_MOV_SYNC_SAMPLE@GOTPCREL(%rip), %rsi
	leaq	4(%rsi), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_23
## %bb.21:
	leaq	(%rcx,%rax,4), %rdx
	cmpq	_MOV_SYNC_SAMPLE@GOTPCREL(%rip), %rdx
	jbe	LBB0_23
LBB0_19:
	xorl	%edx, %edx
LBB0_26:
	movq	%rdx, %rsi
	notq	%rsi
	testb	$1, %al
	je	LBB0_28
## %bb.27:
	movq	_MOV_SYNC_SAMPLE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	notl	%edi
	andl	%edi, (%rcx,%rdx,4)
	orq	$1, %rdx
LBB0_28:
	addq	%rax, %rsi
	je	LBB0_31
## %bb.29:
	movq	_MOV_SYNC_SAMPLE@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	notl	%edi
	andl	%edi, (%rcx,%rdx,4)
	movl	(%rsi), %edi
	notl	%edi
	andl	%edi, 4(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_30
	jmp	LBB0_31
LBB0_23:
	movl	%eax, %edx
	andl	$-8, %edx
	movd	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	pcmpeqd	%xmm0, %xmm0
	pxor	%xmm1, %xmm0
	leaq	(,%rax,4), %rsi
	andq	$-32, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi), %xmm1
	movdqu	16(%rcx,%rdi), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, (%rcx,%rdi)
	movdqu	%xmm2, 16(%rcx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_24
## %bb.25:
	cmpq	%rax, %rdx
	jne	LBB0_26
LBB0_31:
	movl	$0, 4(%rbx)
	testl	%r14d, %r14d
	je	LBB0_33
## %bb.32:
	movl	$1, 36(%rbx)
LBB0_33:
	testl	%r13d, %r13d
	je	LBB0_35
## %bb.34:
	movl	$1, 40(%rbx)
LBB0_35:
	cmpl	$0, 24(%rbx)
	jne	LBB0_43
## %bb.36:
	testl	%r14d, %r14d
	je	LBB0_38
## %bb.37:
	cmpl	$0, 28(%rbx)
	je	LBB0_43
LBB0_38:
	testl	%r13d, %r13d
	je	LBB0_40
## %bb.39:
	cmpl	$0, 32(%rbx)
	je	LBB0_43
LBB0_40:
	leaq	4(%rbx), %rcx
	movq	_MOV_SYNC_SAMPLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	8(%rbx), %rsi
	orl	%edx, (%rsi)
	jmp	LBB0_42
LBB0_41:
	leaq	20(%rbx), %rcx
	movl	%r14d, 28(%rbx)
	movl	%r13d, 32(%rbx)
LBB0_42:
	movl	$1, (%rcx)
LBB0_43:
	cmpl	$0, 36(%rbx)
	movl	40(%rbx), %ecx
	je	LBB0_49
## %bb.44:
	testl	%ecx, %ecx
	je	LBB0_46
## %bb.45:
	testl	%r14d, %r14d
	setne	%cl
	testl	%r13d, %r13d
	setne	%dl
	andb	%cl, %dl
	movzbl	%dl, %r14d
LBB0_46:
	testl	%r14d, %r14d
	je	LBB0_48
LBB0_47:
	cltq
	movq	_MOV_SYNC_SAMPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rbx), %rdx
	orl	%ecx, (%rdx,%rax,4)
	incl	4(%rbx)
LBB0_48:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_49:
	testl	%ecx, %ecx
	cmovel	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movl	%r13d, %r14d
	testl	%r14d, %r14d
	jne	LBB0_47
	jmp	LBB0_48
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_MOV_SYNC_SAMPLE,4,2            ## @MOV_SYNC_SAMPLE
	.no_dead_strip	_mov_parse_vc1_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_parse_vc1_frame
_mov_parse_vc1_frame:                   ; @mov_parse_vc1_frame
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	ldr	x8, [x0, #8]
	ldp	w9, w25, [x0]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x20, x8, x9, lsl #2
Lloh0:
	adrp	x9, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x9]
	mov	x0, x8
	mov	x1, x20
	bl	_find_next_marker
	cmp	x0, x20
	b.hs	LBB0_6
; %bb.1:
	mov	x22, x0
	mov	w24, #0
	mov	w23, #0
	mov	w27, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w27, [x19, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x21
	cmp	x21, x20
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x22, #16
	mov	x1, x20
	bl	_find_next_marker
	mov	x21, x0
	mov	x0, x22
	bl	_AV_RB32
	cmp	w0, #128
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #129
	csel	w8, w23, w27, ne
	cmp	w0, #130
	csel	w23, w23, w8, eq
	csel	w24, w27, w24, eq
	b	LBB0_3
LBB0_6:
	mov	w23, #0
	mov	w24, #0
LBB0_7:
	and	w9, w26, w25
	ldr	w10, [x19]
	sxtw	x8, w10
	cbnz	w10, LBB0_11
; %bb.8:
	mov	x11, x19
	ldr	w12, [x11, #20]!
	cbz	w12, LBB0_10
; %bb.9:
	mov	w11, #1
	str	w11, [x19, #24]
	b	LBB0_11
LBB0_10:
	ldr	w12, [x19, #24]
	cbz	w12, LBB0_35
LBB0_11:
	cbz	w23, LBB0_13
; %bb.12:
	ldr	w11, [x19, #36]
	cbz	w11, LBB0_15
LBB0_13:
	cbz	w24, LBB0_37
; %bb.14:
	ldr	w11, [x19, #40]
	cbnz	w11, LBB0_37
LBB0_15:
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.16:
	ldr	x11, [x19, #8]
	cmp	w10, #16
	b.lo	LBB0_19
; %bb.17:
Lloh3:
	adrp	x13, _MOV_SYNC_SAMPLE@GOTPAGE
Lloh4:
	ldr	x13, [x13, _MOV_SYNC_SAMPLE@GOTPAGEOFF]
	add	x12, x13, #4
	cmp	x11, x12
	b.hs	LBB0_32
; %bb.18:
	add	x12, x11, x10, lsl #2
	cmp	x12, x13
	b.ls	LBB0_32
LBB0_19:
	mov	x12, #0
LBB0_20:
	add	x11, x11, x12, lsl #2
	sub	x10, x10, x12
Lloh5:
	adrp	x12, _MOV_SYNC_SAMPLE@GOTPAGE
Lloh6:
	ldr	x12, [x12, _MOV_SYNC_SAMPLE@GOTPAGEOFF]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	ldr	w14, [x11]
	bic	w13, w14, w13
	str	w13, [x11], #4
	subs	x10, x10, #1
	b.ne	LBB0_21
LBB0_22:
	mov	x11, x19
	str	wzr, [x11, #4]!
	cbz	w23, LBB0_24
; %bb.23:
	mov	w10, #1
	str	w10, [x19, #36]
LBB0_24:
	cbz	w24, LBB0_26
; %bb.25:
	mov	w10, #1
	str	w10, [x19, #40]
LBB0_26:
	ldr	w10, [x19, #24]
	cbnz	w10, LBB0_37
; %bb.27:
	cbz	w23, LBB0_29
; %bb.28:
	ldr	w10, [x19, #28]
	cbz	w10, LBB0_37
LBB0_29:
	cbz	w24, LBB0_31
; %bb.30:
	ldr	w10, [x19, #32]
	cbz	w10, LBB0_37
LBB0_31:
Lloh7:
	adrp	x10, _MOV_SYNC_SAMPLE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MOV_SYNC_SAMPLE@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	ldr	x12, [x19, #8]
	ldr	w13, [x12]
	orr	w10, w13, w10
	str	w10, [x12]
	b	LBB0_36
LBB0_32:
	and	x12, x10, #0xfffffff0
	ldr	s0, [x13]
	mvn.16b	v0, v0
	dup.4s	v0, v0[0]
	add	x13, x11, #32
	mov	x14, x12
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x13, #-32]
	ldp	q3, q4, [x13]
	and.16b	v1, v1, v0
	and.16b	v2, v2, v0
	and.16b	v3, v3, v0
	and.16b	v4, v4, v0
	stp	q1, q2, [x13, #-32]
	stp	q3, q4, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_33
; %bb.34:
	cmp	x12, x10
	b.eq	LBB0_22
	b	LBB0_20
LBB0_35:
	stp	w23, w24, [x19, #28]
LBB0_36:
	mov	w10, #1
	str	w10, [x11]
LBB0_37:
	ldp	w10, w11, [x19, #36]
	cmp	w11, #0
	csel	w9, w9, w24, eq
	cmp	w23, #0
	ccmp	w24, #0, #4, ne
	cset	w12, ne
	cmp	w11, #0
	csel	w11, w23, w12, eq
	cmp	w10, #0
	csel	w9, w9, w11, eq
	cbz	w9, LBB0_39
; %bb.38:
Lloh10:
	adrp	x9, _MOV_SYNC_SAMPLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MOV_SYNC_SAMPLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldr	x10, [x19, #8]
	lsl	x8, x8, #2
	ldr	w11, [x10, x8]
	orr	w9, w11, w9
	str	w9, [x10, x8]
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_39:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_MOV_SYNC_SAMPLE,4,2            ; @MOV_SYNC_SAMPLE
	.no_dead_strip	_mov_parse_vc1_frame
.subsections_via_symbols
