	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_open_reader_with_io ## -- Begin function vc_container_open_reader_with_io
	.p2align	4, 0x90
_vc_container_open_reader_with_io:      ## @vc_container_open_reader_with_io
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rcx, %rdi
	callq	_VC_CONTAINER_PARAM_UNUSED
	movq	%rbx, %rdi
	callq	_VC_CONTAINER_PARAM_UNUSED
	movq	%r15, %rdi
	callq	_VC_CONTAINER_PARAM_UNUSED
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	cmpl	$0, 12(%r12)
	je	LBB0_3
## %bb.2:
	cmpl	$0, 8(%r12)
	je	LBB0_3
## %bb.4:
	movl	$52, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$52, %edx
	callq	_memset
	movq	%r15, %rax
	addq	$24, %rax
	movq	%rax, (%r15)
	xorl	%eax, %eax
	callq	_vc_container_log_get_default_verbosity
	movq	(%r15), %rcx
	movl	%eax, 16(%rcx)
	leaq	24(%rcx), %rax
	movq	%rax, 8(%r15)
	movl	4(%r12), %eax
	movl	%eax, 16(%r15)
	movq	%r12, (%rcx)
	movl	(%r12), %edi
	movl	%edi, 12(%rcx)
	callq	_vc_uri_path_extension
	movq	%rax, -48(%rbp)
	movq	(%r15), %rax
	movl	12(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	callq	_vc_uri_find_query
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vc_container_load_reader
	movq	%rax, -40(%rbp)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.9:
	movl	$100, %edi
	movl	$114, %esi
	movl	$109, %edx
	movl	$32, %ecx
	callq	_VC_FOURCC
	movl	%eax, %ebx
	movl	$117, %edi
	movl	$110, %esi
	movl	$107, %edx
	movl	$110, %ecx
	callq	_VC_FOURCC
	leaq	-40(%rbp), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_vc_container_filter_open
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx)
	movq	-40(%rbp), %rdx
	movq	(%r12), %rax
	cmpq	%rax, %rdx
	je	LBB0_13
## %bb.10:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.11:
	movq	$0, 8(%r15)
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%r12, %rdx
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_12:
	movq	%rax, -40(%rbp)
LBB0_13:
	testq	%r14, %r14
	je	LBB0_15
## %bb.14:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
LBB0_15:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_7:
	movq	(%r15), %rcx
LBB0_8:
	movq	$0, (%rcx)
	movq	%r15, %rdi
	callq	_vc_container_close
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid i/o instance: %p"

	.comm	_VC_CONTAINER_ERROR_INVALID_ARGUMENT,8,3 ## @VC_CONTAINER_ERROR_INVALID_ARGUMENT
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"container"

	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_open_reader_with_io ; -- Begin function vc_container_open_reader_with_io
	.p2align	2
_vc_container_open_reader_with_io:      ; @vc_container_open_reader_with_io
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x4
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x3
	bl	_VC_CONTAINER_PARAM_UNUSED
	mov	x0, x20
	bl	_VC_CONTAINER_PARAM_UNUSED
	mov	x0, x22
	bl	_VC_CONTAINER_PARAM_UNUSED
	cbz	x21, LBB0_8
; %bb.1:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_8
; %bb.2:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_8
; %bb.3:
	mov	w0, #52
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #52
	bl	_memset
	add	x8, x20, #24
	str	x8, [x20]
	bl	_vc_container_log_get_default_verbosity
	ldr	x8, [x20]
	str	w0, [x8, #16]
	add	x9, x8, #24
	str	x9, [x20, #8]
	ldr	w9, [x21, #4]
	str	w9, [x20, #16]
	str	x21, [x8]
	ldr	w0, [x21]
	str	w0, [x8, #12]
	bl	_vc_uri_path_extension
	str	x0, [sp]
	ldr	x8, [x20]
	ldr	w0, [x8, #12]
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, sp
	mov	w1, #0
	bl	_vc_uri_find_query
	ldr	x1, [sp]
	mov	x0, x20
	bl	_vc_container_load_reader
	str	x0, [sp, #8]
Lloh2:
	adrp	x22, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.5:
	mov	w0, #100
	mov	w1, #114
	mov	w2, #109
	mov	w3, #32
	bl	_VC_FOURCC
	mov	x21, x0
	mov	w0, #117
	mov	w1, #110
	mov	w2, #107
	mov	w3, #110
	bl	_VC_FOURCC
	mov	x1, x0
	add	x3, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_vc_container_filter_open
	ldr	x8, [x20]
	str	w0, [x8, #8]
	ldr	x10, [sp, #8]
	ldr	x9, [x22]
	cmp	x10, x9
	b.eq	LBB0_10
; %bb.6:
Lloh4:
	adrp	x11, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh5:
	ldr	x11, [x11, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_15
; %bb.7:
	str	xzr, [x20, #8]
	str	x9, [sp, #8]
	cbnz	x19, LBB0_11
	b	LBB0_12
LBB0_8:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	x2, x21
	bl	_LOG_ERROR
	mov	x20, #0
Lloh9:
	adrp	x8, _VC_CONTAINER_ERROR_INVALID_ARGUMENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_INVALID_ARGUMENT@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	str	x8, [sp, #8]
LBB0_10:
	cbz	x19, LBB0_12
LBB0_11:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
Lloh11:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
	b	LBB0_9
LBB0_14:
	ldr	x8, [x20]
LBB0_15:
	str	xzr, [x8]
	mov	x0, x20
	bl	_vc_container_close
	mov	x20, #0
	cbnz	x19, LBB0_11
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid i/o instance: %p"

	.comm	_VC_CONTAINER_ERROR_INVALID_ARGUMENT,8,3 ; @VC_CONTAINER_ERROR_INVALID_ARGUMENT
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"container"

	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
.subsections_via_symbols
