	.file	"extr_unc.c_Open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"smb-domain"
.LC1:
	.string	"smb-pwd"
.LC2:
	.string	"smb-user"
	.text
	.p2align 4
	.type	Open, @function
Open:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	esi, DWORD PTR 24[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	lea	r15, 32[rsp]
	mov	QWORD PTR 24[rsp], 0
	mov	rdi, r15
	call	vlc_UrlParseFixup@PLT
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	jne	.L21
	mov	rbp, QWORD PTR 40[rsp]
	test	rbp, rbp
	je	.L4
	mov	rdi, rbp
	call	vlc_uri_decode_duplicate@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L21
.L4:
	lea	r12, 48[rsp]
	mov	rsi, r15
	lea	r13, 24[rsp]
	mov	rdi, r12
	lea	r14, 64[rsp]
	call	vlc_credential_init@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbx
	call	var_InheritString@PLT
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rsi, rbx
	mov	QWORD PTR 8[rsp], rax
	lea	rcx, .LC1[rip]
	mov	rdi, r12
	lea	rdx, .LC2[rip]
	mov	QWORD PTR 48[rsp], rax
	xor	eax, eax
	call	vlc_credential_get@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, r14
	call	stat@PLT
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR EACCES[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L8
	sub	rsp, 8
	.cfi_def_cfa_offset 168
	mov	r9d, DWORD PTR SMB_LOGIN_DIALOG_TEXT[rip]
	mov	r8d, DWORD PTR SMB_LOGIN_DIALOG_TITLE[rip]
	lea	rcx, .LC1[rip]
	mov	eax, DWORD PTR 40[rsp]
	lea	rdx, .LC2[rip]
	mov	rsi, rbx
	mov	rdi, r12
	mov	QWORD PTR errno[rip], 0
	push	rax
	.cfi_def_cfa_offset 176
	xor	eax, eax
	call	vlc_credential_get@PLT
	pop	rdx
	.cfi_def_cfa_offset 168
	pop	rcx
	.cfi_def_cfa_offset 160
	test	eax, eax
	je	.L8
.L9:
	sub	rsp, 8
	.cfi_def_cfa_offset 168
	mov	rsi, r13
	mov	rdi, rbx
	mov	r9, rbp
	push	0
	.cfi_def_cfa_offset 176
	mov	r8d, DWORD PTR 48[rsp]
	mov	ecx, DWORD PTR 72[rsp]
	mov	edx, DWORD PTR 76[rsp]
	call	smb_get_uri@PLT
	pop	rsi
	.cfi_def_cfa_offset 168
	pop	rdi
	.cfi_def_cfa_offset 160
	cmp	eax, -1
	jne	.L5
	mov	rdi, r12
	call	vlc_credential_clean@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	free@PLT
	mov	rdi, rbp
	call	free@PLT
	mov	rdi, r15
	call	vlc_UrlClean@PLT
	mov	eax, DWORD PTR VLC_ENOMEM[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r13d, 1
.L7:
	mov	rsi, rbx
	mov	rdi, r12
	call	vlc_credential_store@PLT
	mov	rdi, r12
	call	vlc_credential_clean@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	free@PLT
	mov	rdi, rbp
	call	free@PLT
	mov	rdi, rbx
	mov	edx, 32
	mov	esi, 1
	call	vlc_obj_calloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L24
	mov	QWORD PTR 16[rbx], rbp
	mov	rdi, QWORD PTR 24[rsp]
	test	r13d, r13d
	je	.L11
	mov	eax, DWORD PTR DirRead[rip]
	movdqa	xmm0, XMMWORD PTR 32[rsp]
	movups	XMMWORD PTR 16[rbp], xmm0
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR access_vaDirectoryControlHelper[rip]
	mov	DWORD PTR 4[rbx], eax
	mov	ebx, -1
.L12:
	call	free@PLT
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR 0[rbp], ebx
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
.L1:
	mov	rcx, QWORD PTR 88[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L25
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L21:
	.cfi_restore_state
	mov	rdi, r15
	call	vlc_UrlClean@PLT
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, DWORD PTR 72[rsp]
	xor	r13d, r13d
	call	S_ISDIR@PLT
	test	rax, rax
	mov	rax, QWORD PTR 64[rsp]
	setne	r13b
	mov	QWORD PTR [rsp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR Read[rip]
	mov	esi, DWORD PTR O_RDONLY[rip]
	xor	edx, edx
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR Control[rip]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR Seek[rip]
	mov	DWORD PTR [rbx], eax
	call	open@PLT
	mov	rdi, r15
	mov	ebx, eax
	call	vlc_UrlClean@PLT
	mov	rdi, QWORD PTR 24[rsp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, QWORD PTR 24[rsp]
	call	free@PLT
	mov	rdi, r15
	call	vlc_UrlClean@PLT
	mov	eax, DWORD PTR VLC_ENOMEM[rip]
	jmp	.L1
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Open, .-Open
	.comm	errno,8,8
	.comm	access_vaDirectoryControlHelper,4,4
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_ENOMEM,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	Seek,4,4
	.comm	SMB_LOGIN_DIALOG_TITLE,4,4
	.comm	SMB_LOGIN_DIALOG_TEXT,4,4
	.comm	Read,4,4
	.comm	O_RDONLY,4,4
	.comm	EACCES,8,8
	.comm	DirRead,4,4
	.comm	Control,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_unc.c_Open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"smb-domain\000"
	.align	2
.LC1:
	.ascii	"smb-pwd\000"
	.align	2
.LC2:
	.ascii	"smb-user\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Open, %function
Open:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L27
	sub	sp, sp, #76
	ldr	r1, [r0, #20]
	mov	r4, r0
	add	r0, sp, #40
	ldr	r2, [r2]
	str	r2, [sp, #68]
	mov	r2,#0
	str	r3, [sp, #36]
	bl	vlc_UrlParseFixup
	subs	r3, r0, #0
	str	r3, [sp, #24]
	bne	.L22
	ldr	r3, [sp, #44]
	cmp	r3, #0
	str	r3, [sp, #20]
	beq	.L4
	mov	r0, r3
	bl	vlc_uri_decode_duplicate
	subs	r3, r0, #0
	str	r3, [sp, #20]
	beq	.L22
.L4:
	add	r1, sp, #40
	add	r0, sp, #56
	bl	vlc_credential_init
	ldr	r1, .L27+4
	mov	r0, r4
	bl	var_InheritString
	mov	r3, #0
	mov	ip, r0
	str	r0, [sp, #28]
	str	r3, [sp, #4]
	str	r3, [sp]
	mov	r1, r4
	ldr	r3, .L27+8
	ldr	r2, .L27+12
	add	r0, sp, #56
	str	ip, [sp, #56]
	ldr	r6, .L27+16
	bl	vlc_credential_get
	ldr	r7, .L27+20
	ldr	fp, .L27+24
	ldr	r10, .L27+28
	ldr	r9, .L27+8
	ldr	r8, .L27+12
	b	.L9
.L5:
	ldr	r0, [sp, #36]
	add	r1, sp, #48
	bl	stat
	cmp	r0, #0
	beq	.L24
	ldr	r2, [r6]
	ldr	r3, [r7]
	cmp	r2, r3
	bne	.L8
	ldr	r1, [sp, #40]
	ldr	r2, [fp]
	ldr	r3, [r10]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, r8
	mov	r3, r9
	mov	r1, r4
	add	r0, sp, #56
	str	r5, [r6]
	bl	vlc_credential_get
	cmp	r0, #0
	beq	.L8
.L9:
	mov	r5, #0
	ldr	r3, [sp, #40]
	ldr	r2, [sp, #20]
	str	r3, [sp]
	stmib	sp, {r2, r5}
	mov	r0, r4
	ldr	r3, [sp, #60]
	ldr	r2, [sp, #64]
	add	r1, sp, #36
	bl	smb_get_uri
	cmn	r0, #1
	bne	.L5
	add	r0, sp, #56
	bl	vlc_credential_clean
	ldr	r0, [sp, #28]
	bl	free
	ldr	r0, [sp, #20]
.L21:
	bl	free
	add	r0, sp, #40
	bl	vlc_UrlClean
	ldr	r3, .L27+32
	ldr	r0, [r3]
	b	.L1
.L8:
	mov	r6, #1
.L7:
	mov	r1, r4
	add	r0, sp, #56
	bl	vlc_credential_store
	add	r0, sp, #56
	bl	vlc_credential_clean
	ldr	r0, [sp, #28]
	bl	free
	ldr	r0, [sp, #20]
	bl	free
	mov	r2, #16
	mov	r1, #1
	mov	r0, r4
	bl	vlc_obj_calloc
	mov	r5, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L25
	cmp	r6, #0
	ldr	r3, [sp, #36]
	str	r5, [r4, #16]
	beq	.L11
	mvn	r6, #0
	add	r2, sp, #40
	ldr	ip, .L27+36
	ldm	r2, {r0, r1}
	ldr	r2, .L27+40
	ldr	lr, [ip]
	ldr	ip, [r2]
	add	r2, r5, #8
	stm	r2, {r0, r1}
	str	lr, [r4, #12]
	str	ip, [r4, #4]
.L12:
	mov	r0, r3
	bl	free
	ldr	r3, .L27+44
	ldr	r2, [sp, #24]
	ldr	r0, [r3]
	str	r2, [r5, #4]
	str	r6, [r5]
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	add	r0, sp, #40
	bl	vlc_UrlClean
	ldr	r3, .L27+48
	ldr	r0, [r3]
	b	.L1
.L24:
	ldr	r0, [sp, #52]
	bl	S_ISDIR
	ldr	r3, [sp, #48]
	subs	r6, r0, #0
	movne	r6, #1
	str	r3, [sp, #24]
	b	.L7
.L11:
	ldr	r0, .L27+52
	ldr	r1, .L27+56
	ldr	r2, .L27+60
	ldr	lr, [r0]
	ldr	ip, [r1]
	mov	r0, r3
	ldr	r1, [r2]
	ldr	r3, .L27+64
	mov	r2, r6
	stmib	r4, {ip, lr}
	str	r1, [r4]
	ldr	r1, [r3]
	bl	open
	mov	r6, r0
	add	r0, sp, #40
	bl	vlc_UrlClean
	ldr	r3, [sp, #36]
	b	.L12
.L25:
	ldr	r0, [sp, #36]
	b	.L21
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	errno
	.word	EACCES
	.word	SMB_LOGIN_DIALOG_TEXT
	.word	SMB_LOGIN_DIALOG_TITLE
	.word	VLC_ENOMEM
	.word	DirRead
	.word	access_vaDirectoryControlHelper
	.word	VLC_SUCCESS
	.word	VLC_EGENERIC
	.word	Read
	.word	Control
	.word	Seek
	.word	O_RDONLY
	.size	Open, .-Open
	.comm	errno,4,4
	.comm	access_vaDirectoryControlHelper,4,4
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_ENOMEM,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	Seek,4,4
	.comm	SMB_LOGIN_DIALOG_TITLE,4,4
	.comm	SMB_LOGIN_DIALOG_TEXT,4,4
	.comm	Read,4,4
	.comm	O_RDONLY,4,4
	.comm	EACCES,4,4
	.comm	DirRead,4,4
	.comm	Control,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
