	.file	"extr_containers_io.c_vc_container_io_open_core.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"tmp"
	.text
	.p2align 4
	.type	vc_container_io_open_core, @function
vc_container_io_open_core:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR MAX_NUM_MEMORY_AREAS[rip]
	mov	r14, QWORD PTR VC_CONTAINER_SUCCESS[rip]
	mov	DWORD PTR 8[rsp], ecx
	mov	DWORD PTR 12[rsp], eax
	call	strlen@PLT
	lea	edx, 89[rax]
	lea	ecx, 1[rax]
	mov	edi, edx
	mov	DWORD PTR [rsp], edx
	mov	DWORD PTR 4[rsp], ecx
	call	malloc@PLT
	mov	edx, DWORD PTR [rsp]
	test	rax, rax
	mov	r15, rax
	je	.L47
	xor	esi, esi
	mov	rdi, rax
	call	memset@PLT
	lea	rdi, 88[r15]
	lea	rax, 32[r15]
	mov	rsi, rbp
	mov	QWORD PTR [r15], rdi
	mov	edx, DWORD PTR 4[rsp]
	mov	QWORD PTR 16[r15], rax
	call	memcpy@PLT
	xor	eax, eax
	call	vc_uri_create@PLT
	mov	DWORD PTR 12[r15], eax
	mov	edi, eax
	test	eax, eax
	je	.L48
	mov	rsi, rbp
	call	vc_uri_parse@PLT
	mov	edx, DWORD PTR 8[rsp]
	test	edx, edx
	jne	.L49
	mov	DWORD PTR 8[r15], ebx
.L12:
	and	ebx, DWORD PTR VC_CONTAINER_IO_CAPS_NO_CACHING[rip]
	cmp	DWORD PTR VC_CONTAINER_IO_MODE_WRITE[rip], r13d
	mov	ebp, DWORD PTR MEM_CACHE_READ_MAX_SIZE[rip]
	je	.L50
.L15:
	test	ebx, ebx
	jne	.L16
.L17:
	mov	rbx, QWORD PTR 16[r15]
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L18
	cmp	DWORD PTR VC_CONTAINER_IO_MODE_WRITE[rip], r13d
	je	.L51
	.p2align 4,,10
	.p2align 3
.L3:
	test	r12, r12
	je	.L1
	mov	QWORD PTR [r12], r14
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L50:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[r15]
	mov	ebp, DWORD PTR MEM_CACHE_WRITE_MAX_SIZE[rip]
	call	vc_uri_path_extension@PLT
	test	rax, rax
	je	.L15
	mov	edi, DWORD PTR 12[r15]
	call	vc_uri_path_extension@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR NUM_TMP_MEMORY_AREAS[rip]
	mov	ebp, DWORD PTR MEM_CACHE_TMP_MAX_SIZE[rip]
	mov	DWORD PTR 12[rsp], eax
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rbx, QWORD PTR 16[r15]
	mov	edi, ebp
	mov	DWORD PTR 16[rbx], ebp
	mov	DWORD PTR 20[rbx], ebp
	mov	QWORD PTR 48[rbx], r15
	call	malloc@PLT
	mov	QWORD PTR 24[rbx], rax
	test	rax, rax
	je	.L17
	mov	edx, DWORD PTR 20[rbx]
	mov	QWORD PTR 40[rbx], rax
	add	rax, rdx
	mov	QWORD PTR 32[rbx], rax
	mov	rbx, QWORD PTR 16[r15]
	mov	DWORD PTR [rbx], 1
.L18:
	lea	rax, 16[rbx]
	cmp	DWORD PTR VC_CONTAINER_IO_MODE_WRITE[rip], r13d
	mov	QWORD PTR 8[rbx], rax
	jne	.L3
.L51:
	cmp	QWORD PTR 8[rbx], 0
	je	.L3
	mov	eax, DWORD PTR 12[rsp]
	cmp	eax, 1
	jbe	.L3
	xor	edx, edx
	mov	esi, eax
	mov	rdi, r15
	call	async_io_start@PLT
	mov	DWORD PTR 4[rbx], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L48:
	mov	r14, QWORD PTR VC_CONTAINER_ERROR_OUT_OF_MEMORY[rip]
.L5:
	call	vc_uri_release@PLT
	mov	rdi, r15
	xor	r15d, r15d
	call	free@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L47:
	mov	r14, QWORD PTR VC_CONTAINER_ERROR_OUT_OF_MEMORY[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L49:
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, r15
	call	vc_container_io_null_open@PLT
	test	rax, rax
	jne	.L7
.L9:
	xor	r14d, r14d
.L8:
	cmp	QWORD PTR VC_CONTAINER_SUCCESS[rip], r14
	jne	.L10
	cmp	QWORD PTR 24[r15], 0
	mov	ebx, DWORD PTR 8[r15]
	mov	eax, DWORD PTR VC_CONTAINER_IO_CAPS_CANT_SEEK[rip]
	je	.L11
	test	eax, ebx
	je	.L12
.L11:
	or	ebx, eax
	mov	rax, QWORD PTR io_seek_not_seekable[rip]
	mov	DWORD PTR 8[r15], ebx
	mov	QWORD PTR 24[r15], rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, r15
	call	vc_container_io_net_open@PLT
	test	rax, rax
	je	.L9
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, r15
	call	vc_container_io_pktfile_open@PLT
	test	rax, rax
	je	.L9
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, r15
	call	vc_container_io_file_open@PLT
	mov	r14, rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR 12[r15]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	vc_container_io_open_core, .-vc_container_io_open_core
	.comm	io_seek_not_seekable,8,8
	.comm	VC_CONTAINER_SUCCESS,8,8
	.comm	VC_CONTAINER_IO_MODE_WRITE,4,4
	.comm	VC_CONTAINER_IO_CAPS_NO_CACHING,4,4
	.comm	VC_CONTAINER_IO_CAPS_CANT_SEEK,4,4
	.comm	VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,8
	.comm	NUM_TMP_MEMORY_AREAS,4,4
	.comm	MEM_CACHE_WRITE_MAX_SIZE,4,4
	.comm	MEM_CACHE_TMP_MAX_SIZE,4,4
	.comm	MEM_CACHE_READ_MAX_SIZE,4,4
	.comm	MAX_NUM_MEMORY_AREAS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_containers_io.c_vc_container_io_open_core.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tmp\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vc_container_io_open_core, %function
vc_container_io_open_core:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L58
	mov	r8, r3
	ldr	r3, [ip]
	sub	sp, sp, #12
	mov	r6, r1
	mov	r7, r2
	str	r3, [sp, #4]
	mov	r5, r0
	bl	strlen
	ldr	r10, .L58+4
	add	r2, r0, #57
	mov	r4, r0
	mov	r0, r2
	ldr	r9, [r10]
	str	r2, [sp]
	bl	malloc
	subs	fp, r0, #0
	ldr	r2, [sp]
	ldreq	r2, .L58+8
	ldreq	r9, [r2]
	beq	.L3
	mov	r1, #0
	bl	memset
	add	r4, r4, #1
	add	r1, fp, #20
	add	r0, fp, #56
	mov	r2, r4
	str	r1, [fp, #12]
	str	r0, [fp]
	mov	r1, r5
	bl	memcpy
	bl	vc_uri_create
	cmp	r0, #0
	mov	r2, r0
	str	r0, [fp, #8]
	beq	.L53
	mov	r1, r5
	bl	vc_uri_parse
	cmp	r8, #0
	streq	r7, [fp, #4]
	bne	.L54
.L12:
	ldr	r4, .L58+12
	ldr	r2, .L58+16
	ldr	r5, [r4]
	ldr	r2, [r2]
	cmp	r5, r6
	and	r7, r7, r2
	beq	.L55
	ldr	r2, .L58+20
	cmp	r7, #0
	ldr	r8, [r2]
	bne	.L18
.L19:
	ldr	r4, [fp, #12]
	ldr	r2, [r4]
	cmp	r2, #0
	bne	.L20
.L21:
	cmp	r5, r6
	bne	.L3
	ldr	r2, [r4, #8]
	ldr	r3, [sp, #4]
	cmp	r2, #0
	cmpne	r3, #1
	bhi	.L56
.L3:
	mov	r0, fp
	ldr	r3, [sp, #48]
	cmp	r3, #0
	strne	r9, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L54:
	mov	r2, r6
	mov	r1, r5
	mov	r0, fp
	bl	vc_container_io_null_open
	cmp	r0, #0
	bne	.L7
.L9:
	mov	r9, #0
.L8:
	ldr	r2, [r10]
	cmp	r2, r9
	bne	.L10
	ldr	r1, [fp, #16]
	ldr	r2, .L58+24
	cmp	r1, #0
	ldr	r2, [r2]
	ldr	r7, [fp, #4]
	beq	.L11
	tst	r2, r7
	beq	.L12
.L11:
	ldr	r1, .L58+28
	orr	r7, r7, r2
	ldr	r2, [r1]
	str	r7, [fp, #4]
	str	r2, [fp, #16]
	b	.L12
.L55:
	ldr	r2, .L58+32
	ldr	r0, [fp, #8]
	ldr	r8, [r2]
	bl	vc_uri_path_extension
	cmp	r0, #0
	bne	.L57
.L50:
	cmp	r7, #0
	ldr	r5, [r4]
	beq	.L19
.L18:
	ldr	r4, [fp, #12]
	mov	r0, r8
	str	r8, [r4, #12]
	str	r8, [r4, #16]
	str	fp, [r4, #32]
	bl	malloc
	cmp	r0, #0
	str	r0, [r4, #20]
	beq	.L19
	mov	r1, #1
	add	r2, r0, r8
	str	r2, [r4, #24]
	str	r0, [r4, #28]
	str	r1, [r4]
.L20:
	add	r2, r4, #12
	str	r2, [r4, #8]
	b	.L21
.L53:
	ldr	r1, .L58+8
	ldr	r9, [r1]
.L5:
	mov	r0, r2
	bl	vc_uri_release
	mov	r0, fp
	bl	free
	mov	fp, #0
	b	.L3
.L7:
	mov	r2, r6
	mov	r1, r5
	mov	r0, fp
	bl	vc_container_io_net_open
	cmp	r0, #0
	beq	.L9
	mov	r2, r6
	mov	r1, r5
	mov	r0, fp
	bl	vc_container_io_pktfile_open
	cmp	r0, #0
	beq	.L9
	mov	r1, r5
	mov	r2, r6
	mov	r0, fp
	bl	vc_container_io_file_open
	mov	r9, r0
	b	.L8
.L56:
	mov	r1, r3
	mov	r2, #0
	mov	r0, fp
	bl	async_io_start
	str	r0, [r4, #4]
	b	.L3
.L10:
	ldr	r2, [fp, #8]
	b	.L5
.L57:
	ldr	r0, [fp, #8]
	bl	vc_uri_path_extension
	ldr	r1, .L58+36
	bl	strcasecmp
	cmp	r0, #0
	bne	.L50
	ldr	r2, .L58+40
	ldr	r1, .L58+44
	ldr	r3, [r2]
	ldr	r5, [r4]
	ldr	r8, [r1]
	str	r3, [sp, #4]
	b	.L18
.L59:
	.align	2
.L58:
	.word	MAX_NUM_MEMORY_AREAS
	.word	VC_CONTAINER_SUCCESS
	.word	VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.word	VC_CONTAINER_IO_MODE_WRITE
	.word	VC_CONTAINER_IO_CAPS_NO_CACHING
	.word	MEM_CACHE_READ_MAX_SIZE
	.word	VC_CONTAINER_IO_CAPS_CANT_SEEK
	.word	io_seek_not_seekable
	.word	MEM_CACHE_WRITE_MAX_SIZE
	.word	.LC0
	.word	NUM_TMP_MEMORY_AREAS
	.word	MEM_CACHE_TMP_MAX_SIZE
	.size	vc_container_io_open_core, .-vc_container_io_open_core
	.comm	io_seek_not_seekable,4,4
	.comm	VC_CONTAINER_SUCCESS,4,4
	.comm	VC_CONTAINER_IO_MODE_WRITE,4,4
	.comm	VC_CONTAINER_IO_CAPS_NO_CACHING,4,4
	.comm	VC_CONTAINER_IO_CAPS_CANT_SEEK,4,4
	.comm	VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,4
	.comm	NUM_TMP_MEMORY_AREAS,4,4
	.comm	MEM_CACHE_WRITE_MAX_SIZE,4,4
	.comm	MEM_CACHE_TMP_MAX_SIZE,4,4
	.comm	MEM_CACHE_READ_MAX_SIZE,4,4
	.comm	MAX_NUM_MEMORY_AREAS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
