	.file	"extr_rdesktop.c_str_handle_lines.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	str_handle_lines
	.type	str_handle_lines, @function
str_handle_lines:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR True[rip]
	mov	QWORD PTR [rsp], rdx
	mov	DWORD PTR 20[rsp], eax
	call	strlen@PLT
	mov	rdi, QWORD PTR [r14]
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L2
	call	strlen@PLT
.L2:
	mov	rcx, QWORD PTR 8[rsp]
	lea	r14, 1[rax+rcx]
	mov	rdi, r14
	mov	QWORD PTR 24[rsp], r14
	call	xmalloc@PLT
	mov	BYTE PTR [rax], 0
	mov	r13, rax
	mov	rax, QWORD PTR [rsp]
	mov	rsi, QWORD PTR [rax]
	test	rsi, rsi
	je	.L3
	mov	rdx, r14
	mov	rdi, r13
	call	STRNCPY@PLT
.L3:
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, r15
	mov	rdi, r13
	mov	r15, r13
	call	strncat@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, r15
	mov	BYTE PTR [rax], 0
	mov	rdx, r12
	mov	rdi, rbx
	call	rbp
	lea	r15, 1[r14]
	test	eax, eax
	je	.L18
.L5:
	mov	esi, 10
	mov	rdi, r15
	call	strchr@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L19
.L4:
	mov	r14, QWORD PTR 24[rsp]
	mov	rbx, QWORD PTR [rsp]
	add	r14, r13
	mov	rbp, QWORD PTR [rbx]
	sub	r14, r15
	mov	rdi, r14
	call	xmalloc@PLT
	mov	rdx, r14
	mov	rsi, r15
	mov	QWORD PTR [rbx], rax
	mov	rdi, rax
	call	STRNCPY@PLT
	mov	rdi, rbp
	call	xfree@PLT
	mov	rdi, r13
	call	xfree@PLT
	mov	eax, DWORD PTR 20[rsp]
	add	rsp, 40
	.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
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR False[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	str_handle_lines, .-str_handle_lines
	.comm	True,4,4
	.comm	False,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_rdesktop.c_str_handle_lines.c"
	.text
	.align	2
	.global	str_handle_lines
	.syntax unified
	.arm
	.fpu softvfp
	.type	str_handle_lines, %function
str_handle_lines:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r7, r2
	str	r2, [sp]
	ldr	r2, .L18
	mov	r6, r3
	ldr	r3, [r2]
	mov	r5, r0
	mov	r0, r1
	mov	r4, r1
	str	r3, [sp, #4]
	bl	strlen
	ldr	r7, [r7]
	mov	r8, r0
	subs	r0, r7, #0
	ldr	r9, [sp, #48]
	beq	.L2
	bl	strlen
.L2:
	add	r7, r8, #1
	add	r7, r7, r0
	mov	r0, r7
	bl	xmalloc
	mov	r3, #0
	strb	r3, [r0]
	ldr	r3, [sp]
	mov	r10, r0
	ldr	r1, [r3]
	cmp	r1, #0
	beq	.L3
	mov	r2, r7
	bl	STRNCPY
.L3:
	mov	r2, r8
	mov	r1, r4
	mov	r0, r10
	bl	strncat
	mov	fp, r10
	mov	r8, #0
	b	.L5
.L17:
	mov	r1, fp
	mov	r2, r9
	mov	r0, r5
	strb	r8, [r4]
	blx	r6
	cmp	r0, #0
	add	fp, r4, #1
	beq	.L16
.L5:
	mov	r1, #10
	mov	r0, fp
	bl	strchr
	subs	r4, r0, #0
	bne	.L17
.L4:
	add	r7, r10, r7
	ldr	r5, [sp]
	sub	r7, r7, fp
	mov	r0, r7
	ldr	r4, [r5]
	bl	xmalloc
	mov	r2, r7
	mov	r1, fp
	str	r0, [r5]
	bl	STRNCPY
	mov	r0, r4
	bl	xfree
	mov	r0, r10
	bl	xfree
	ldr	r0, [sp, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r2, .L18+4
	ldr	r3, [r2]
	str	r3, [sp, #4]
	b	.L4
.L19:
	.align	2
.L18:
	.word	True
	.word	False
	.size	str_handle_lines, .-str_handle_lines
	.comm	True,4,4
	.comm	False,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
