	.file	"extr_make_index.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
.LC1:
	.string	"fopen(%s)"
.LC2:
	.string	"malloc(pp)"
.LC3:
	.string	"Unterminated line encountered"
.LC4:
	.string	"realloc(pp)"
.LC5:
	.string	"fgetln(%s)"
.LC6:
	.string	"fclose(%s)"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	edi, 2
	je	.L2
	call	usage@PLT
.L2:
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC0[rip]
	mov	rdi, QWORD PTR 8[rax]
	call	fopen@PLT
	mov	r13, rax
	test	rax, rax
	je	.L38
.L3:
	mov	edi, 8192
	call	malloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L39
.L4:
	mov	QWORD PTR [rsp], 1024
	xor	ebx, ebx
	lea	r14, 16[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r15
	lea	r12, 0[rbp+rbx*8]
	add	rbx, 1
	call	portify@PLT
	mov	QWORD PTR [r12], rax
.L5:
	mov	rsi, r14
	mov	rdi, r13
	call	fgetln@PLT
	mov	r15, rax
	test	rax, rax
	je	.L40
	mov	rax, QWORD PTR 16[rsp]
	lea	rax, -1[r15+rax]
	cmp	BYTE PTR [rax], 10
	je	.L6
	lea	rsi, .LC3[rip]
	mov	edi, 1
	call	errx@PLT
	mov	rax, QWORD PTR 16[rsp]
	lea	rax, -1[r15+rax]
.L6:
	mov	BYTE PTR [rax], 0
	cmp	QWORD PTR [rsp], rbx
	ja	.L7
	mov	rax, QWORD PTR [rsp]
	mov	rdi, rbp
	lea	r12, [rax+rax]
	sal	rax, 4
	mov	rsi, rax
	call	realloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L41
	mov	QWORD PTR [rsp], r12
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L40:
	lea	r12, 0[0+rbx*8]
	mov	rdi, rbp
	mov	rsi, r12
	call	realloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L42
.L9:
	mov	rdi, r13
	call	feof@PLT
	test	eax, eax
	je	.L43
.L10:
	mov	rdi, r13
	call	fclose@PLT
	test	rax, rax
	jne	.L44
.L11:
	mov	r13, rbx
	test	rbx, rbx
	je	.L18
	.p2align 4,,10
	.p2align 3
.L12:
	sub	r13, 1
	mov	rsi, rbx
	mov	rdi, rbp
	mov	rdx, r13
	call	heapifyports@PLT
	test	r13, r13
	jne	.L12
	mov	r13, rbx
	sub	r13, 1
	je	.L15
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdx, QWORD PTR 0[rbp+r13*8]
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, r13
	mov	rdi, rbp
	mov	QWORD PTR 0[rbp], rdx
	xor	edx, edx
	mov	QWORD PTR 0[rbp+r13*8], rax
	call	heapifyports@PLT
	sub	r13, 1
	jne	.L13
.L15:
	mov	r13, rbp
	add	r12, rbp
	mov	r14, rbp
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdx, QWORD PTR [r14]
	mov	rsi, rbx
	mov	rdi, rbp
	add	r14, 8
	call	translateport@PLT
	cmp	r14, r12
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, QWORD PTR 0[rbp]
	add	rbp, 8
	call	recurse@PLT
	cmp	rbp, r12
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, QWORD PTR 0[r13]
	add	r13, 8
	call	printport@PLT
	cmp	r12, r13
	jne	.L17
.L18:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L45
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L43:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC5[rip]
	mov	edi, 1
	mov	rdx, QWORD PTR 8[rax]
	xor	eax, eax
	call	err@PLT
	jmp	.L10
.L44:
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC6[rip]
	mov	edi, 1
	mov	rdx, QWORD PTR 8[rax]
	xor	eax, eax
	call	err@PLT
	jmp	.L11
.L38:
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	rdx, QWORD PTR 8[rax]
	xor	eax, eax
	call	err@PLT
	jmp	.L3
.L41:
	lea	rsi, .LC4[rip]
	mov	edi, 1
	xor	eax, eax
	call	err@PLT
	mov	QWORD PTR [rsp], r12
	jmp	.L7
.L45:
	call	__stack_chk_fail@PLT
.L39:
	lea	rsi, .LC2[rip]
	mov	edi, 1
	xor	eax, eax
	call	err@PLT
	jmp	.L4
.L42:
	lea	rsi, .LC4[rip]
	mov	edi, 1
	xor	eax, eax
	call	err@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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_make_index.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"fopen(%s)\000"
	.align	2
.LC2:
	.ascii	"malloc(pp)\000"
	.align	2
.LC3:
	.ascii	"Unterminated line encountered\000"
	.align	2
.LC4:
	.ascii	"realloc(pp)\000"
	.align	2
.LC5:
	.ascii	"fgetln(%s)\000"
	.align	2
.LC6:
	.ascii	"fclose(%s)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L47
	sub	sp, sp, #12
	cmp	r0, #2
	mov	r9, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L2
	bl	usage
.L2:
	ldr	r1, .L47+4
	ldr	r0, [r9, #4]
	bl	fopen
	subs	r7, r0, #0
	beq	.L40
.L3:
	mov	r0, #4096
	bl	malloc
	subs	r5, r0, #0
	beq	.L41
.L4:
	mov	r4, #0
	mov	r6, #1024
	ldr	r8, .L47+8
	ldr	r10, .L47+12
	b	.L5
.L7:
	mov	r0, fp
	bl	portify
	str	r0, [r5, r4, lsl #2]
	add	r4, r4, #1
.L5:
	mov	r1, sp
	mov	r0, r7
	bl	fgetln
	subs	fp, r0, #0
	beq	.L42
	ldr	r3, [sp]
	sub	r3, r3, #1
	ldrb	r2, [fp, r3]	@ zero_extendqisi2
	add	r3, fp, r3
	cmp	r2, #10
	beq	.L6
	mov	r1, r8
	mov	r0, #1
	bl	errx
	ldr	r3, [sp]
	sub	r3, r3, #1
	add	r3, fp, r3
.L6:
	mov	r2, #0
	cmp	r6, r4
	strb	r2, [r3]
	bhi	.L7
	mov	r0, r5
	lsl	r1, r6, #3
	bl	realloc
	subs	r5, r0, #0
	lsl	r6, r6, #1
	bne	.L7
	mov	r1, r10
	mov	r0, #1
	bl	err
	b	.L7
.L42:
	lsl	r8, r4, #2
	mov	r0, r5
	mov	r1, r8
	bl	realloc
	subs	r5, r0, #0
	beq	.L43
.L9:
	mov	r0, r7
	bl	feof
	cmp	r0, #0
	beq	.L44
.L10:
	mov	r0, r7
	bl	fclose
	cmp	r0, #0
	bne	.L45
.L11:
	cmp	r4, #0
	movne	r6, r4
	beq	.L19
.L12:
	sub	r6, r6, #1
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	heapifyports
	cmp	r6, #0
	bne	.L12
	add	r8, r5, r8
	subs	r6, r4, #1
	movne	r7, r8
	beq	.L16
.L15:
	ldr	r1, [r7, #-4]!
	ldr	r3, [r5]
	mov	r2, #0
	str	r1, [r5]
	mov	r0, r5
	mov	r1, r6
	str	r3, [r7]
	bl	heapifyports
	subs	r6, r6, #1
	bne	.L15
.L16:
	sub	r7, r5, #4
	sub	r6, r8, #4
	mov	r8, r7
.L14:
	ldr	r2, [r8, #4]!
	mov	r1, r4
	mov	r0, r5
	bl	translateport
	cmp	r8, r6
	bne	.L14
	mov	r4, r7
.L17:
	ldr	r0, [r4, #4]!
	bl	recurse
	cmp	r4, r6
	bne	.L17
.L18:
	ldr	r0, [r7, #4]!
	bl	printport
	cmp	r6, r7
	bne	.L18
.L19:
	ldr	r3, .L47
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L46
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L45:
	ldr	r2, [r9, #4]
	ldr	r1, .L47+16
	mov	r0, #1
	bl	err
	b	.L11
.L44:
	ldr	r2, [r9, #4]
	ldr	r1, .L47+20
	mov	r0, #1
	bl	err
	b	.L10
.L40:
	ldr	r2, [r9, #4]
	ldr	r1, .L47+24
	mov	r0, #1
	bl	err
	b	.L3
.L46:
	bl	__stack_chk_fail
.L43:
	ldr	r1, .L47+12
	mov	r0, #1
	bl	err
	b	.L9
.L41:
	ldr	r1, .L47+28
	mov	r0, #1
	bl	err
	b	.L4
.L48:
	.align	2
.L47:
	.word	.LC7
	.word	.LC0
	.word	.LC3
	.word	.LC4
	.word	.LC6
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
