	.file	"extr_ui_lib.c_general_allocate_prompt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	general_allocate_prompt, @function
general_allocate_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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	rsi, rsi
	je	.L14
	cmp	DWORD PTR UIT_PROMPT[rip], ecx
	mov	r12, rsi
	mov	ebp, edx
	mov	ebx, ecx
	mov	r13d, r8d
	mov	r14, r9
	je	.L4
	cmp	DWORD PTR UIT_VERIFY[rip], ecx
	je	.L4
	cmp	DWORD PTR UIT_BOOLEAN[rip], ecx
	jne	.L5
.L4:
	test	r14, r14
	je	.L15
.L5:
	mov	edi, 32
	call	OPENSSL_malloc@PLT
	test	rax, rax
	je	.L1
	test	ebp, ebp
	cmovne	ebp, DWORD PTR OUT_STRING_FREEABLE[rip]
	mov	QWORD PTR [rax], r12
	mov	DWORD PTR 8[rax], r13d
	mov	DWORD PTR 24[rax], ebp
	mov	DWORD PTR 12[rax], ebx
	mov	QWORD PTR 16[rax], r14
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L14:
	.cfi_restore_state
	mov	esi, DWORD PTR ERR_R_PASSED_NULL_PARAMETER[rip]
	mov	edi, DWORD PTR UI_F_GENERAL_ALLOCATE_PROMPT[rip]
	call	UIerr@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR UI_R_NO_RESULT_BUFFER[rip]
	mov	edi, DWORD PTR UI_F_GENERAL_ALLOCATE_PROMPT[rip]
	call	UIerr@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	general_allocate_prompt, .-general_allocate_prompt
	.comm	UI_R_NO_RESULT_BUFFER,4,4
	.comm	UI_F_GENERAL_ALLOCATE_PROMPT,4,4
	.comm	UIT_VERIFY,4,4
	.comm	UIT_PROMPT,4,4
	.comm	UIT_BOOLEAN,4,4
	.comm	OUT_STRING_FREEABLE,4,4
	.comm	ERR_R_PASSED_NULL_PARAMETER,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_general_allocate_prompt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	general_allocate_prompt, %function
general_allocate_prompt:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r1, #0
	ldr	r7, [sp, #28]
	beq	.L15
	mov	r4, r3
	ldr	r3, .L17
	mov	r6, r2
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L4
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L4
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L5
.L4:
	cmp	r7, #0
	beq	.L16
.L5:
	mov	r0, #20
	bl	OPENSSL_malloc
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	cmp	r6, #0
	ldrne	r3, .L17+12
	str	r5, [r0]
	ldrne	r6, [r3]
	ldr	r3, [sp, #24]
	str	r6, [r0, #16]
	stmib	r0, {r3, r4, r7}
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r2, .L17+16
	ldr	r3, .L17+20
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	UIerr
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r2, .L17+24
	ldr	r3, .L17+20
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	UIerr
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	UIT_PROMPT
	.word	UIT_VERIFY
	.word	UIT_BOOLEAN
	.word	OUT_STRING_FREEABLE
	.word	ERR_R_PASSED_NULL_PARAMETER
	.word	UI_F_GENERAL_ALLOCATE_PROMPT
	.word	UI_R_NO_RESULT_BUFFER
	.size	general_allocate_prompt, .-general_allocate_prompt
	.comm	UI_R_NO_RESULT_BUFFER,4,4
	.comm	UI_F_GENERAL_ALLOCATE_PROMPT,4,4
	.comm	UIT_VERIFY,4,4
	.comm	UIT_PROMPT,4,4
	.comm	UIT_BOOLEAN,4,4
	.comm	OUT_STRING_FREEABLE,4,4
	.comm	ERR_R_PASSED_NULL_PARAMETER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
