	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_video_private_data
_get_video_private_data:                ## @get_video_private_data
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	(%rsi), %rax
	movq	_AV_CODEC_ID_VC1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_private_data               ## TAILCALL
LBB0_1:
	leaq	-48(%rbp), %rdi
	callq	_avio_open_dyn_buf
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	cmpl	$11, 8(%rbx)
	jl	LBB0_8
## %bb.4:
	movq	16(%rbx), %rdi
	cmpl	$1, (%rdi)
	jne	LBB0_8
## %bb.5:
	addq	$24, %rdi
	callq	_AV_RB16
	movl	%eax, %r12d
	leal	11(%r12), %r13d
	cmpl	8(%rbx), %r13d
	jg	LBB0_8
## %bb.6:
	movq	-48(%rbp), %rdi
	movl	$1, %esi
	callq	_avio_wb32
	movq	-48(%rbp), %rdi
	movq	16(%rbx), %rsi
	addq	$32, %rsi
	movl	%r12d, %edx
	callq	_avio_write
	movq	16(%rbx), %rax
	movslq	%r12d, %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$36, %rdi
	callq	_AV_RB16
	movl	%eax, %r12d
	leal	(%r12,%r13), %eax
	cmpl	8(%rbx), %eax
	jg	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rdi
	movl	$1, %esi
	callq	_avio_wb32
	movq	-48(%rbp), %rdi
	movslq	%r13d, %rsi
	shlq	$2, %rsi
	addq	16(%rbx), %rsi
	movl	%r12d, %edx
	callq	_avio_write
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_2:
	movl	%eax, %r15d
LBB0_8:
	movq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_avio_close_dyn_buf
	movl	%eax, 4(%r14)
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_VC1,8,3            ## @AV_CODEC_ID_VC1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_get_video_private_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_video_private_data
_get_video_private_data:                ; @get_video_private_data
	.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	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _AV_CODEC_ID_VC1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_VC1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	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
	b	_get_private_data
LBB0_2:
	add	x0, sp, #8
	bl	_avio_open_dyn_buf
	tbnz	w0, #31, LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	ldr	w8, [x20, #8]
	cmp	w8, #11
	b.lt	LBB0_9
; %bb.4:
	ldr	x8, [x20, #16]
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_9
; %bb.5:
	add	x0, x8, #24
	bl	_AV_RB16
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	add	x23, x22, #11
	ldr	w8, [x20, #8]
	cmp	w23, w8
	b.gt	LBB0_9
; %bb.6:
	ldr	x0, [sp, #8]
	mov	w1, #1
	bl	_avio_wb32
	ldr	x0, [sp, #8]
	ldr	x8, [x20, #16]
	add	x1, x8, #32
	mov	x2, x22
	bl	_avio_write
	ldr	x8, [x20, #16]
	add	x8, x8, x22, lsl #2
	add	x0, x8, #36
	bl	_AV_RB16
	ldr	w8, [x20, #8]
	add	w9, w0, w23
	cmp	w9, w8
	b.gt	LBB0_9
; %bb.7:
	mov	x22, x0
	ldr	x0, [sp, #8]
	mov	w1, #1
	bl	_avio_wb32
	ldr	x0, [sp, #8]
	ldr	x8, [x20, #16]
	add	x1, x8, x23, lsl #2
	mov	x2, x22
	bl	_avio_write
	mov	w21, #0
	b	LBB0_9
LBB0_8:
	mov	x21, x0
LBB0_9:
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_avio_close_dyn_buf
	str	w0, [x19, #4]
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_VC1,8,3            ; @AV_CODEC_ID_VC1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_get_video_private_data
.subsections_via_symbols
