	.file	"extr_cmd3.c_alternates.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s "
.LC1:
	.string	"Out of memory"
	.text
	.p2align 4
	.globl	alternates
	.type	alternates, @function
alternates:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	argcount@PLT
	test	eax, eax
	je	.L25
	mov	rdi, QWORD PTR altnames[rip]
	lea	r12d, 1[rax]
	test	rdi, rdi
	je	.L6
	call	free@PLT
.L6:
	mov	edi, r12d
	mov	esi, 8
	call	calloc@PLT
	mov	QWORD PTR altnames[rip], rax
	mov	r12, rax
	test	rax, rax
	jne	.L23
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L9:
	call	strlen@PLT
	mov	esi, 1
	add	rbp, 8
	add	r12, 8
	lea	edi, 1[rax]
	call	calloc@PLT
	mov	rsi, QWORD PTR -8[rbp]
	mov	rbx, rax
	mov	rdi, rax
	call	strcpy@PLT
	mov	QWORD PTR -8[r12], rbx
.L23:
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	jne	.L9
	mov	QWORD PTR [r12], 0
.L3:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rbx, QWORD PTR altnames[rip]
	test	rbx, rbx
	je	.L3
	mov	rsi, QWORD PTR [rbx]
	lea	rbp, .LC0[rip]
	test	rsi, rsi
	je	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	xor	eax, eax
	add	rbx, 8
	call	printf@PLT
	mov	rsi, QWORD PTR [rbx]
	test	rsi, rsi
	jne	.L4
.L5:
	mov	edi, 10
	call	putchar@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	err@PLT
	mov	r12, QWORD PTR altnames[rip]
	jmp	.L23
	.cfi_endproc
.LFE0:
	.size	alternates, .-alternates
	.comm	altnames,8,8
	.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_cmd3.c_alternates.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s \000"
	.align	2
.LC1:
	.ascii	"Out of memory\000"
	.text
	.align	2
	.global	alternates
	.syntax unified
	.arm
	.fpu softvfp
	.type	alternates, %function
alternates:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	bl	argcount
	cmp	r0, #0
	beq	.L24
	ldr	r5, .L26
	add	r4, r0, #1
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L6
	bl	free
.L6:
	mov	r0, r4
	mov	r1, #4
	bl	calloc
	cmp	r0, #0
	mov	r7, r0
	str	r0, [r5]
	beq	.L25
.L7:
	ldr	r4, [r6]
	cmp	r4, #0
	beq	.L8
.L9:
	mov	r0, r4
	bl	strlen
	mov	r1, #1
	add	r0, r0, r1
	bl	calloc
	mov	r5, r0
	mov	r1, r4
	bl	strcpy
	str	r5, [r7], #4
	ldr	r4, [r6, #4]!
	cmp	r4, #0
	bne	.L9
.L8:
	mov	r3, #0
	str	r3, [r7]
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	ldr	r3, .L26
	ldr	r4, [r3]
	cmp	r4, #0
	beq	.L3
	ldr	r1, [r4]
	cmp	r1, #0
	beq	.L5
	ldr	r5, .L26+4
.L4:
	mov	r0, r5
	bl	printf
	ldr	r1, [r4, #4]!
	cmp	r1, #0
	bne	.L4
.L5:
	mov	r0, #10
	bl	putchar
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	mov	r0, #1
	ldr	r1, .L26+8
	bl	err
	ldr	r7, [r5]
	b	.L7
.L27:
	.align	2
.L26:
	.word	altnames
	.word	.LC0
	.word	.LC1
	.size	alternates, .-alternates
	.comm	altnames,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
