	.file	"extr_smb.c_smb_update_shareopts.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	smb_update_shareopts, @function
smb_update_shareopts:
.LFB0:
	.cfi_startproc
	endbr64
	test	edi, edi
	jne	.L2
	mov	eax, DWORD PTR SA_SYSTEM_ERR[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR smb_fstype[rip]
	mov	rbx, QWORD PTR B_FALSE[rip]
	call	FSINFO@PLT
	mov	edi, ebp
	mov	r13, rax
	call	smb_is_share_active@PLT
	mov	esi, DWORD PTR smb_fstype[rip]
	mov	edi, ebp
	mov	QWORD PTR 8[r13], rax
	call	FSINFO@PLT
	mov	esi, DWORD PTR smb_fstype[rip]
	mov	edi, ebp
	mov	r13, QWORD PTR [rax]
	call	FSINFO@PLT
	cmp	QWORD PTR 8[rax], 0
	je	.L4
	test	r13, r13
	je	.L5
	mov	rsi, r12
	mov	rdi, r13
	call	strcmp@PLT
	test	rax, rax
	jne	.L31
.L6:
	mov	rdi, r12
	call	strdup@PLT
	mov	r12, rax
	test	rax, rax
	je	.L10
.L11:
	mov	rdi, r13
	call	free@PLT
.L8:
	mov	esi, DWORD PTR smb_fstype[rip]
	mov	edi, ebp
	call	FSINFO@PLT
	mov	QWORD PTR [rax], r12
	test	rbx, rbx
	jne	.L32
.L9:
	mov	eax, DWORD PTR SA_OK[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, r12
	call	strdup@PLT
	mov	r12, rax
	test	rax, rax
	je	.L10
	test	r13, r13
	jne	.L11
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r12
	call	strdup@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L8
.L10:
	mov	eax, DWORD PTR SA_NO_MEMORY[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	edi, ebp
	call	smb_enable_share@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edi, ebp
	mov	rbx, QWORD PTR B_TRUE[rip]
	call	smb_disable_share@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	smb_update_shareopts, .-smb_update_shareopts
	.comm	smb_fstype,4,4
	.comm	SA_SYSTEM_ERR,4,4
	.comm	SA_OK,4,4
	.comm	SA_NO_MEMORY,4,4
	.comm	B_TRUE,8,8
	.comm	B_FALSE,8,8
	.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_smb.c_smb_update_shareopts.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smb_update_shareopts, %function
smb_update_shareopts:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	bne	.L2
	ldr	r3, .L31
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r6, .L31+4
	ldr	r3, .L31+8
	ldr	r1, [r6]
	mov	r5, r2
	ldr	r7, [r3]
	bl	FSINFO
	mov	r8, r0
	mov	r0, r4
	bl	smb_is_share_active
	ldr	r1, [r6]
	str	r0, [r8, #4]
	mov	r0, r4
	bl	FSINFO
	mov	r3, r0
	ldr	r1, [r6]
	mov	r0, r4
	ldr	r8, [r3]
	bl	FSINFO
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L4
	cmp	r8, #0
	beq	.L5
	mov	r1, r5
	mov	r0, r8
	bl	strcmp
	cmp	r0, #0
	bne	.L29
.L6:
	mov	r0, r5
	bl	strdup
	subs	r5, r0, #0
	beq	.L10
.L11:
	mov	r0, r8
	bl	free
.L8:
	mov	r0, r4
	ldr	r1, [r6]
	bl	FSINFO
	cmp	r7, #0
	str	r5, [r0]
	bne	.L30
.L9:
	ldr	r3, .L31+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r5
	bl	strdup
	subs	r5, r0, #0
	beq	.L10
	cmp	r8, #0
	beq	.L8
	b	.L11
.L5:
	mov	r0, r5
	bl	strdup
	subs	r5, r0, #0
	bne	.L8
.L10:
	ldr	r3, .L31+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L30:
	mov	r0, r4
	bl	smb_enable_share
	b	.L9
.L29:
	ldr	r3, .L31+20
	mov	r0, r4
	ldr	r7, [r3]
	bl	smb_disable_share
	b	.L6
.L32:
	.align	2
.L31:
	.word	SA_SYSTEM_ERR
	.word	smb_fstype
	.word	B_FALSE
	.word	SA_OK
	.word	SA_NO_MEMORY
	.word	B_TRUE
	.size	smb_update_shareopts, .-smb_update_shareopts
	.comm	smb_fstype,4,4
	.comm	SA_SYSTEM_ERR,4,4
	.comm	SA_OK,4,4
	.comm	SA_NO_MEMORY,4,4
	.comm	B_TRUE,4,4
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
