	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_io_file_open      ## -- Begin function vc_container_io_file_open
	.p2align	4, 0x90
_vc_container_io_file_open:             ## @vc_container_io_file_open
	.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	%rdx, %r14
	movq	%rdi, %r12
	movq	_VC_CONTAINER_IO_MODE_WRITE@GOTPCREL(%rip), %r13
	cmpq	%rdx, (%r13)
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	(%rdi), %r15
	movq	%rsi, %rdi
	callq	_VC_CONTAINER_PARAM_UNUSED
	movl	52(%r12), %edi
	callq	_vc_uri_path
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	52(%r12), %edi
	callq	_vc_uri_path
	movq	%rax, %r15
LBB0_2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	movq	__IONBF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_setvbuf
	movl	$8, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%rbx, 24(%r12)
	movq	%r15, (%rbx)
	movq	_io_file_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	_io_file_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r12)
	movq	_io_file_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	_io_file_seek@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	cmpq	%r14, (%r13)
	jne	LBB0_8
## %bb.5:
	movq	$2147483647, 8(%r12)            ## imm = 0x7FFFFFFF
	jmp	LBB0_9
LBB0_6:
	movq	_VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_fclose
	jmp	LBB0_11
LBB0_8:
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	24(%r12), %rax
	movq	(%rax), %rdi
	callq	_ftell
	movl	%eax, 32(%r12)
	movq	24(%r12), %rax
	movq	(%rax), %rdi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_fseek
LBB0_9:
	movq	_VC_CONTAINER_IO_CAPS_NO_CACHING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_IO_MODE_WRITE,8,3 ## @VC_CONTAINER_IO_MODE_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wb+"

L_.str.1:                               ## @.str.1
	.asciz	"rb"

	.comm	_VC_CONTAINER_ERROR_URI_NOT_FOUND,4,2 ## @VC_CONTAINER_ERROR_URI_NOT_FOUND
	.comm	__IONBF,4,2                     ## @_IONBF
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_io_file_close,4,2              ## @io_file_close
	.comm	_io_file_read,4,2               ## @io_file_read
	.comm	_io_file_write,4,2              ## @io_file_write
	.comm	_io_file_seek,4,2               ## @io_file_seek
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_VC_CONTAINER_IO_CAPS_NO_CACHING,4,2 ## @VC_CONTAINER_IO_CAPS_NO_CACHING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_io_file_open      ; -- Begin function vc_container_io_file_open
	.p2align	2
_vc_container_io_file_open:             ; @vc_container_io_file_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x23, _VC_CONTAINER_IO_MODE_WRITE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VC_CONTAINER_IO_MODE_WRITE@GOTPAGEOFF]
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	ldr	x9, [x23]
Lloh4:
	adrp	x10, l_.str@PAGE
Lloh5:
	add	x10, x10, l_.str@PAGEOFF
	cmp	x9, x2
	csel	x21, x10, x8, eq
	ldr	x22, [x0]
	mov	x0, x1
	bl	_VC_CONTAINER_PARAM_UNUSED
	ldr	w0, [x19, #52]
	bl	_vc_uri_path
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #52]
	bl	_vc_uri_path
	mov	x22, x0
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	bl	_fopen
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh6:
	adrp	x8, __IONBF@GOTPAGE
Lloh7:
	ldr	x8, [x8, __IONBF@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, #0
	mov	w3, #0
	bl	_setvbuf
	mov	w0, #8
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x22, x0
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x22, [x19, #24]
	str	x21, [x22]
Lloh9:
	adrp	x8, _io_file_close@GOTPAGE
Lloh10:
	ldr	x8, [x8, _io_file_close@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _io_file_read@GOTPAGE
Lloh13:
	ldr	x9, [x9, _io_file_read@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #44]
Lloh15:
	adrp	x8, _io_file_write@GOTPAGE
Lloh16:
	ldr	x8, [x8, _io_file_write@GOTPAGEOFF]
Lloh17:
	adrp	x9, _io_file_seek@GOTPAGE
Lloh18:
	ldr	x9, [x9, _io_file_seek@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #36]
	ldr	x8, [x23]
	cmp	x8, x20
	b.ne	LBB0_8
; %bb.5:
	mov	w8, #2147483647
	str	x8, [x19, #8]
	b	LBB0_9
LBB0_6:
Lloh21:
	adrp	x8, _VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh23:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh25:
	ldr	w19, [x8]
	mov	x0, x21
	bl	_fclose
	b	LBB0_11
LBB0_8:
Lloh26:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_fseek
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	bl	_ftell
	str	w0, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
Lloh29:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
LBB0_9:
Lloh32:
	adrp	x8, _VC_CONTAINER_IO_CAPS_NO_CACHING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VC_CONTAINER_IO_CAPS_NO_CACHING@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh35:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_10:
	ldr	w19, [x8]
LBB0_11:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_IO_MODE_WRITE,8,3 ; @VC_CONTAINER_IO_MODE_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wb+"

l_.str.1:                               ; @.str.1
	.asciz	"rb"

	.comm	_VC_CONTAINER_ERROR_URI_NOT_FOUND,4,2 ; @VC_CONTAINER_ERROR_URI_NOT_FOUND
	.comm	__IONBF,4,2                     ; @_IONBF
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_io_file_close,4,2              ; @io_file_close
	.comm	_io_file_read,4,2               ; @io_file_read
	.comm	_io_file_write,4,2              ; @io_file_write
	.comm	_io_file_seek,4,2               ; @io_file_seek
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_VC_CONTAINER_IO_CAPS_NO_CACHING,4,2 ; @VC_CONTAINER_IO_CAPS_NO_CACHING
.subsections_via_symbols
