	.file	"extr_ui_lib.c_UI_construct_prompt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	UI_construct_prompt
	.type	UI_construct_prompt, @function
UI_construct_prompt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L2
	call	rax
	mov	r12, rax
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, 8306
	mov	edx, 32
	mov	ecx, 58
	mov	DWORD PTR 17[rsp], 1702129221
	mov	WORD PTR 21[rsp], ax
	mov	BYTE PTR 23[rsp], 0
	mov	DWORD PTR 11[rsp], 1919903264
	mov	WORD PTR 15[rsp], dx
	mov	WORD PTR 9[rsp], cx
	test	rsi, rsi
	je	.L4
	mov	rdi, rsi
	call	strlen@PLT
	mov	r14d, eax
	test	r13, r13
	je	.L5
	mov	rdi, r13
	call	strlen@PLT
	lea	r14d, 13[r14+rax]
	mov	edi, r14d
	call	OPENSSL_malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
	lea	rsi, 17[rsp]
	mov	edx, r14d
	mov	rdi, rax
	call	OPENSSL_strlcpy@PLT
	mov	edx, r14d
	mov	rsi, rbp
	mov	rdi, r12
	call	OPENSSL_strlcat@PLT
	lea	rsi, 11[rsp]
	mov	edx, r14d
	mov	rdi, r12
	call	OPENSSL_strlcat@PLT
	mov	edx, r14d
	mov	rsi, r13
	mov	rdi, r12
	call	OPENSSL_strlcat@PLT
.L7:
	lea	rsi, 9[rsp]
	mov	edx, r14d
	mov	rdi, r12
	call	OPENSSL_strlcat@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	add	r14d, 8
	mov	edi, r14d
	call	OPENSSL_malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
	lea	rsi, 17[rsp]
	mov	edx, r14d
	mov	rdi, r12
	call	OPENSSL_strlcpy@PLT
	mov	edx, r14d
	mov	rsi, rbp
	mov	rdi, r12
	call	OPENSSL_strlcat@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edi, DWORD PTR UI_F_UI_CONSTRUCT_PROMPT[rip]
	call	UIerr@PLT
.L4:
	xor	r12d, r12d
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	UI_construct_prompt, .-UI_construct_prompt
	.comm	UI_F_UI_CONSTRUCT_PROMPT,4,4
	.comm	ERR_R_MALLOC_FAILURE,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_ui_lib.c_UI_construct_prompt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Enter \000"
	.align	2
.LC1:
	.ascii	" for \000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	UI_construct_prompt
	.syntax unified
	.arm
	.fpu softvfp
	.type	UI_construct_prompt, %function
UI_construct_prompt:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0]
	ldr	ip, .L21
	ldr	r3, [r3]
	sub	sp, sp, #28
	cmp	r3, #0
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	beq	.L2
	blx	r3
	mov	r4, r0
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	ip, #58
	mov	r7, r2
	ldr	r2, .L21+4
	ldr	r3, .L21+8
	mov	r5, r1
	cmp	r1, #0
	ldm	r2, {r0, r1}
	lsr	r2, r1, #16
	str	r0, [sp, #12]
	strh	r1, [sp, #16]	@ movhi
	strh	ip, [sp]	@ movhi
	ldm	r3, {r0, r1}
	strb	r2, [sp, #18]
	str	r0, [sp, #4]
	strh	r1, [sp, #8]	@ movhi
	beq	.L4
	mov	r0, r5
	bl	strlen
	cmp	r7, #0
	mov	r6, r0
	beq	.L5
	mov	r0, r7
	bl	strlen
	add	r6, r6, #13
	add	r6, r6, r0
	mov	r0, r6
	bl	OPENSSL_malloc
	subs	r4, r0, #0
	beq	.L8
	mov	r2, r6
	add	r1, sp, #12
	bl	OPENSSL_strlcpy
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	OPENSSL_strlcat
	mov	r2, r6
	add	r1, sp, #4
	mov	r0, r4
	bl	OPENSSL_strlcat
	mov	r2, r6
	mov	r1, r7
	mov	r0, r4
	bl	OPENSSL_strlcat
.L7:
	mov	r2, r6
	mov	r1, sp
	mov	r0, r4
	bl	OPENSSL_strlcat
	b	.L1
.L5:
	add	r6, r0, #8
	mov	r0, r6
	bl	OPENSSL_malloc
	subs	r4, r0, #0
	beq	.L8
	mov	r2, r6
	add	r1, sp, #12
	bl	OPENSSL_strlcpy
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	OPENSSL_strlcat
	b	.L7
.L8:
	ldr	r2, .L21+12
	ldr	r3, .L21+16
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	UIerr
.L4:
	mov	r4, #0
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	ERR_R_MALLOC_FAILURE
	.word	UI_F_UI_CONSTRUCT_PROMPT
	.size	UI_construct_prompt, .-UI_construct_prompt
	.comm	UI_F_UI_CONSTRUCT_PROMPT,4,4
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
