	.file	"572318.c"
	.intel_syntax noprefix
	.text
	.type	ftoc_string, @function
ftoc_string:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	cmp	DWORD PTR -36[rbp], 1023
	jle	.L2
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 1024[rax], rdx
	jmp	.L3
.L2:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 1024[rax], rdx
.L3:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1024[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 1024[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L9
	sub	DWORD PTR -4[rbp], 1
.L4:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L8
	jmp	.L10
.L9:
	nop
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ftoc_string, .-ftoc_string
	.type	wr__min, @function
wr__min:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jge	.L12
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -8[rbp]
.L13:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	wr__min, .-wr__min
	.type	ctof_string, @function
ctof_string:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1024[rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	mov	edi, edx
	call	wr__min
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 1024[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1024[rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	mov	edi, edx
	call	wr__min
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L15
.L16:
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jg	.L16
	cmp	DWORD PTR -36[rbp], 1023
	jle	.L18
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 1024[rax]
	mov	rax, QWORD PTR -24[rbp]
	cmp	rdx, rax
	je	.L18
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 1024[rax]
	mov	rdi, rax
	call	free@PLT
.L18:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	ctof_string, .-ctof_string
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"572318.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ftoc_string, %function
ftoc_string:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #1024
	blt	.L2
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #1024]
	b	.L3
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #1024]
.L3:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #1024]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L4
.L8:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #1024]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L9
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L8
	b	.L10
.L9:
	nop
.L10:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ftoc_string, .-ftoc_string
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wr__min, %function
wr__min:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L12
	ldr	r3, [fp, #-8]
	b	.L13
.L12:
	ldr	r3, [fp, #-12]
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	wr__min, .-wr__min
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ctof_string, %function
ctof_string:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #1024]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1024]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	wr__min
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-28]
	bl	memcpy
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1024]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	wr__min
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L15
.L16:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L15:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bgt	.L16
	ldr	r3, [fp, #-32]
	cmp	r3, #1024
	blt	.L18
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #1024]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L18
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #1024]
	mov	r0, r3
	bl	free
.L18:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	ctof_string, .-ctof_string
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
