	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_extradata_vc1
_extract_extradata_vc1:                 ## @extract_extradata_vc1
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rdi
	movq	8(%rsi), %r13
	movslq	(%rsi), %rax
	movq	_UINT32_MAX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	movq	%rbx, -48(%rbp)
	testq	%rax, %rax
	jle	LBB0_13
## %bb.1:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rbx
	addq	%r13, %rbx
	xorl	%r15d, %r15d
	movq	_VC1_CODE_SEQHDR@GOTPCREL(%rip), %r12
	jmp	LBB0_4
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %r15d
	cmpq	%rbx, %r13
	jae	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	leaq	-48(%rbp), %rdx
	callq	_avpriv_find_start_code
	movq	%rax, %r13
	movq	-48(%rbp), %rdi
	movl	$1, %r14d
	cmpq	(%r12), %rdi
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_VC1_CODE_ENTRYPOINT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_IS_MARKER
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	subq	%rax, %r13
	addq	$-16, %r13
	shrq	$2, %r13
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.9:
	movslq	%r13d, %r14
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	%r14, %rdi
	callq	_av_malloc
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	8(%r15), %rsi
	movq	%rax, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	shlq	$2, %r14
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	movq	(%r12), %rdx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_memset
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.11:
	addq	%r14, 8(%r15)
	subl	%r13d, (%r15)
	jmp	LBB0_14
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT32_MAX,8,3                 ## @UINT32_MAX
	.comm	_VC1_CODE_SEQHDR,8,3            ## @VC1_CODE_SEQHDR
	.comm	_VC1_CODE_ENTRYPOINT,8,3        ## @VC1_CODE_ENTRYPOINT
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_extract_extradata_vc1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_extradata_vc1
_extract_extradata_vc1:                 ; @extract_extradata_vc1
	.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
	ldr	x24, [x0]
	ldr	x22, [x1, #8]
	ldrsw	x8, [x1]
Lloh0:
	adrp	x9, _UINT32_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UINT32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	w27, #0
Lloh3:
	adrp	x25, _VC1_CODE_SEQHDR@GOTPAGE
Lloh4:
	ldr	x25, [x25, _VC1_CODE_SEQHDR@GOTPAGEOFF]
Lloh5:
	adrp	x26, _VC1_CODE_ENTRYPOINT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _VC1_CODE_ENTRYPOINT@GOTPAGEOFF]
	add	x23, x22, x8, lsl #2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x22, x23
	b.hs	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x23
	bl	_avpriv_find_start_code
	mov	x22, x0
	ldr	x0, [sp, #8]
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w27, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_IS_MARKER
	cbz	x0, LBB0_2
; %bb.7:
	ldr	x8, [x19, #8]
	sub	x8, x22, x8
	sub	x8, x8, #16
	lsr	x22, x8, #2
	cbz	w22, LBB0_11
; %bb.8:
	sbfx	x23, x8, #2, #32
Lloh7:
	adrp	x25, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x0, x8, x23
	bl	_av_malloc
	str	x0, [x21]
	cbz	x0, LBB0_13
; %bb.9:
	ldr	x1, [x19, #8]
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x21]
	add	x0, x8, x23, lsl #2
	ldr	x2, [x25]
	mov	w1, #0
	bl	_memset
	str	w22, [x20]
	ldr	x8, [x24]
	cbz	x8, LBB0_11
; %bb.10:
	mov	w0, #0
	ldr	x8, [x19, #8]
	add	x8, x8, x23, lsl #2
	str	x8, [x19, #8]
	ldr	w8, [x19]
	sub	w8, w8, w22
	str	w8, [x19]
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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_13:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT32_MAX,8,3                 ; @UINT32_MAX
	.comm	_VC1_CODE_SEQHDR,8,3            ; @VC1_CODE_SEQHDR
	.comm	_VC1_CODE_ENTRYPOINT,8,3        ; @VC1_CODE_ENTRYPOINT
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_extract_extradata_vc1
.subsections_via_symbols
