	.file	"extr_write_sltg.c_add_name.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"add_name: %s\n"
	.text
	.p2align 4
	.type	add_name, @function
add_name:
.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, rsi
	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
	mov	rbx, rdi
	mov	r14d, DWORD PTR [rdi]
	mov	rdi, rsi
	call	strlen@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, r13
	lea	r12d, [rax+r14]
	call	chat@PLT
	lea	ebp, 40[r12]
	lea	eax, 9[r12]
	mov	edi, DWORD PTR 4[rbx]
	and	ebp, -32
	add	r12d, 10
	mov	ecx, ebp
	and	r12d, -2
	sub	ecx, eax
	cmp	ecx, 4
	cmovge	ebp, r12d
	cmp	edi, ebp
	jl	.L3
	mov	rax, QWORD PTR 8[rbx]
.L4:
	movsx	rdx, DWORD PTR [rbx]
	mov	esi, 255
	lea	rdi, [rax+rdx*8]
	mov	edx, 8
	call	memset@PLT
	movsx	rdx, DWORD PTR [rbx]
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, r13
	lea	rdi, 64[rax+rdx*8]
	call	strcpy@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR [rbx], ebp
	movsx	rbp, ebp
	mov	QWORD PTR -8[rax+rbp*8], 0
	mov	eax, r14d
	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
.L3:
	.cfi_restore_state
	add	edi, edi
	mov	esi, ebp
	call	max@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	DWORD PTR 4[rbx], eax
	mov	esi, eax
	call	xrealloc@PLT
	mov	QWORD PTR 8[rbx], rax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	add_name, .-add_name
	.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_write_sltg.c_add_name.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"add_name: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_name, %function
add_name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r7, r1
	bl	strlen
	ldr	r8, [r4]
	mov	r1, r7
	add	r6, r0, r8
	add	r5, r6, #40
	ldr	r0, .L7
	bic	r5, r5, #31
	bl	chat
	add	r3, r6, #9
	sub	r3, r5, r3
	cmp	r3, #3
	addgt	r5, r6, #10
	ldr	r0, [r4, #4]
	bicgt	r5, r5, #1
	cmp	r0, r5
	blt	.L3
	ldr	r0, [r4, #8]
.L4:
	ldr	r3, [r4]
	mov	r2, #8
	mov	r1, #255
	add	r0, r0, r3, lsl #2
	bl	memset
	ldr	r3, [r4]
	ldr	r0, [r4, #8]
	add	r3, r3, #8
	mov	r1, r7
	add	r0, r0, r3, lsl #2
	bl	strcpy
	mov	r1, #0
	ldr	r3, [r4, #8]
	sub	r2, r5, #-1073741823
	str	r5, [r4]
	mov	r0, r8
	str	r1, [r3, r2, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r1, r5
	lsl	r0, r0, #1
	bl	max
	mov	r1, r0
	ldr	r0, [r4, #8]
	str	r1, [r4, #4]
	bl	xrealloc
	str	r0, [r4, #8]
	b	.L4
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	add_name, .-add_name
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
