	.file	"extr_mu-office-lib.c_MuOfficeDoc_providePassword.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.text
	.p2align 4
	.globl	MuOfficeDoc_providePassword
	.type	MuOfficeDoc_providePassword, @function
MuOfficeDoc_providePassword:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR 4[rdi]
	test	eax, eax
	jne	.L10
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rsi, rsi
	je	.L5
	mov	rdi, rsi
	call	strlen@PLT
	lea	rdi, 1[rax]
.L4:
	call	Pal_Mem_malloc@PLT
	mov	rsi, r12
	mov	DWORD PTR 4[rbp], eax
	mov	edi, eax
	call	strcpy@PLT
	mov	rdi, rbp
	call	mu_trigger_semaphore@PLT
	mov	eax, DWORD PTR MuError_OK[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore 6
	.cfi_restore 12
	mov	eax, DWORD PTR MuError_PasswordPending[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	mov	edi, 1
	lea	r12, .LC0[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	MuOfficeDoc_providePassword, .-MuOfficeDoc_providePassword
	.comm	MuError_PasswordPending,4,4
	.comm	MuError_OK,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_mu-office-lib.c_MuOfficeDoc_providePassword.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.text
	.align	2
	.global	MuOfficeDoc_providePassword
	.syntax unified
	.arm
	.fpu softvfp
	.type	MuOfficeDoc_providePassword, %function
MuOfficeDoc_providePassword:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L10
	cmp	r1, #0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	beq	.L5
	mov	r0, r1
	bl	strlen
	add	r0, r0, #1
.L4:
	bl	Pal_Mem_malloc
	mov	r1, r5
	str	r0, [r4, #4]
	bl	strcpy
	mov	r0, r4
	bl	mu_trigger_semaphore
	ldr	r3, .L11
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L11+4
	ldr	r0, [r3]
	bx	lr
.L5:
	mov	r0, #1
	ldr	r5, .L11+8
	b	.L4
.L12:
	.align	2
.L11:
	.word	MuError_OK
	.word	MuError_PasswordPending
	.word	.LC0
	.size	MuOfficeDoc_providePassword, .-MuOfficeDoc_providePassword
	.comm	MuError_PasswordPending,4,4
	.comm	MuError_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
