	.file	"296694.c"
	.intel_syntax noprefix
	.text
	.globl	imalloc
	.type	imalloc, @function
imalloc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L2
	mov	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	imalloc, .-imalloc
	.globl	icalloc
	.type	icalloc, @function
icalloc:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -4[rbp], 0
	je	.L5
	cmp	DWORD PTR -8[rbp], 0
	jne	.L6
.L5:
	mov	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
.L6:
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	eax, eax
	mov	rsi, rdx
	mov	rdi, rax
	call	calloc@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	icalloc, .-icalloc
	.globl	irealloc
	.type	irealloc, @function
irealloc:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L9
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	imalloc
	jmp	.L10
.L9:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L11
	mov	DWORD PTR -12[rbp], 1
.L11:
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	irealloc, .-irealloc
	.globl	icatalloc
	.type	icatalloc, @function
icatalloc:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -24[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	jmp	.L14
.L13:
	mov	eax, 0
.L14:
	mov	r12d, eax
	cmp	QWORD PTR -32[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	jmp	.L16
.L15:
	mov	eax, 0
.L16:
	mov	ebx, eax
	lea	eax, [r12+rbx]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	irealloc
	mov	rbx, rax
	test	rbx, rbx
	je	.L17
	cmp	QWORD PTR -32[rbp], 0
	je	.L17
	movsx	rax, r12d
	lea	rdx, [rbx+rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
.L17:
	mov	rax, rbx
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	icatalloc, .-icatalloc
	.globl	icpyalloc
	.type	icpyalloc, @function
icpyalloc:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	icatalloc
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	icpyalloc, .-icpyalloc
	.globl	ifree
	.type	ifree, @function
ifree:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L23
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L23:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	ifree, .-ifree
	.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	"296694.c"
	.text
	.align	2
	.global	imalloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	imalloc, %function
imalloc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	imalloc, .-imalloc
	.align	2
	.global	icalloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	icalloc, %function
icalloc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L6
.L5:
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mov	r1, r2
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	icalloc, .-icalloc
	.align	2
	.global	irealloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	irealloc, %function
irealloc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
	ldr	r0, [fp, #-12]
	bl	imalloc
	mov	r3, r0
	b	.L10
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L11
	mov	r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	realloc
	mov	r3, r0
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	irealloc, .-irealloc
	.align	2
	.global	icatalloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	icatalloc, %function
icatalloc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L13
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	b	.L14
.L13:
	mov	r3, #0
.L14:
	mov	r5, r3
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L15
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	b	.L16
.L15:
	mov	r3, #0
.L16:
	mov	r4, r3
	add	r3, r5, r4
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	irealloc
	mov	r4, r0
	cmp	r4, #0
	beq	.L17
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L17
	mov	r3, r5
	add	r3, r4, r3
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
.L17:
	mov	r3, r4
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	icatalloc, .-icatalloc
	.align	2
	.global	icpyalloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	icpyalloc, %function
icpyalloc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	mov	r0, #0
	bl	icatalloc
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	icpyalloc, .-icpyalloc
	.align	2
	.global	ifree
	.syntax unified
	.arm
	.fpu softvfp
	.type	ifree, %function
ifree:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L23
	ldr	r0, [fp, #-8]
	bl	free
.L23:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ifree, .-ifree
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
