	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_io_pktfile_open   ## -- Begin function vc_container_io_pktfile_open
	.p2align	4, 0x90
_vc_container_io_pktfile_open:          ## @vc_container_io_pktfile_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)
	movl	$1, -44(%rbp)
	movq	%rsi, %rdi
	callq	_VC_CONTAINER_PARAM_UNUSED
	leaq	-56(%rbp), %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_open_file
	movq	%rax, %r12
	movq	-56(%rbp), %rax
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.1:
	movq	_VC_CONTAINER_IO_MODE_WRITE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_write_byte_order
	jmp	LBB0_4
LBB0_3:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_read_byte_order
LBB0_4:
	movq	%rax, -56(%rbp)
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.5:
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%rbx, 16(%r14)
	movq	%r12, 8(%rbx)
	movl	-44(%rbp), %eax
	movl	%eax, (%rbx)
	movq	_io_pktfile_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_io_pktfile_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_io_pktfile_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_VC_CONTAINER_IO_CAPS_CANT_SEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_10
LBB0_6:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
LBB0_7:
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_fclose
LBB0_9:
	movq	%r15, %r13
LBB0_10:
	movq	(%r13), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_IO_MODE_WRITE,8,3 ## @VC_CONTAINER_IO_MODE_WRITE
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_io_pktfile_close,4,2           ## @io_pktfile_close
	.comm	_io_pktfile_read,4,2            ## @io_pktfile_read
	.comm	_io_pktfile_write,4,2           ## @io_pktfile_write
	.comm	_VC_CONTAINER_IO_CAPS_CANT_SEEK,4,2 ## @VC_CONTAINER_IO_CAPS_CANT_SEEK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_io_pktfile_open   ; -- Begin function vc_container_io_pktfile_open
	.p2align	2
_vc_container_io_pktfile_open:          ; @vc_container_io_pktfile_open
	.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	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x22, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [sp, #8]
	mov	w8, #1
	str	w8, [sp, #4]
	mov	x0, x1
	bl	_VC_CONTAINER_PARAM_UNUSED
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_open_file
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
Lloh2:
	adrp	x8, _VC_CONTAINER_IO_MODE_WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC_CONTAINER_IO_MODE_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_write_byte_order
	b	LBB0_4
LBB0_3:
	add	x1, sp, #4
	mov	x0, x20
	bl	_read_byte_order
LBB0_4:
	str	x0, [sp, #8]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.6:
	mov	x21, x0
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	x21, [x19, #16]
	str	x20, [x21, #8]
	ldr	w8, [sp, #4]
	str	w8, [x21]
Lloh5:
	adrp	x8, _io_pktfile_close@GOTPAGE
Lloh6:
	ldr	x8, [x8, _io_pktfile_close@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _io_pktfile_read@GOTPAGE
Lloh9:
	ldr	x9, [x9, _io_pktfile_read@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
Lloh11:
	adrp	x8, _io_pktfile_write@GOTPAGE
Lloh12:
	ldr	x8, [x8, _io_pktfile_write@GOTPAGEOFF]
Lloh13:
	adrp	x9, _VC_CONTAINER_IO_CAPS_CANT_SEEK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VC_CONTAINER_IO_CAPS_CANT_SEEK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
Lloh17:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh19:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [sp, #8]
LBB0_8:
	cbz	x20, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_fclose
LBB0_10:
	add	x8, sp, #8
LBB0_11:
	ldr	x0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_IO_MODE_WRITE,8,3 ; @VC_CONTAINER_IO_MODE_WRITE
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_io_pktfile_close,4,2           ; @io_pktfile_close
	.comm	_io_pktfile_read,4,2            ; @io_pktfile_read
	.comm	_io_pktfile_write,4,2           ; @io_pktfile_write
	.comm	_VC_CONTAINER_IO_CAPS_CANT_SEEK,4,2 ; @VC_CONTAINER_IO_CAPS_CANT_SEEK
.subsections_via_symbols
