	.file	"328878.c"
	.intel_syntax noprefix
	.text
	.globl	name_length
	.type	name_length, @function
name_length:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L3
	add	DWORD PTR -8[rbp], 1
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L4
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	name_length, .-name_length
	.globl	sort
	.type	sort, @function
sort:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L7
.L11:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 5
	sub	rax, rcx
	mov	rsi, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rsi
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jle	.L9
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, [rcx+rax]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 5
	sub	rax, rcx
	mov	rsi, rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rsi
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, [rcx+rax]
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
.L9:
	add	DWORD PTR -52[rbp], 1
.L8:
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, DWORD PTR -56[rbp]
	sub	eax, 1
	cmp	DWORD PTR -52[rbp], eax
	jl	.L10
	add	DWORD PTR -56[rbp], 1
.L7:
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, 1
	cmp	DWORD PTR -56[rbp], eax
	jl	.L11
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sort, .-sort
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"names.txt"
.LC2:
	.string	"File could not be opened."
.LC3:
	.string	" %[^\n]"
	.align 8
.LC4:
	.string	"Smallest name (length):- %s (%d)\n"
	.align 8
.LC5:
	.string	"Largest name (length):- %s (%d)\n"
.LC6:
	.string	"w"
.LC7:
	.string	"sorted_names.txt"
	.align 8
.LC8:
	.string	"Second file could not be opened."
.LC9:
	.string	"%s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 3168
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -3128[rbp], rax
	cmp	QWORD PTR -3128[rbp], 0
	jne	.L14
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L14:
	mov	DWORD PTR -3160[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -3160[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -3160[rbp], edx
	lea	rcx, -3120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -3128[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
.L15:
	mov	rax, QWORD PTR -3128[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L16
	mov	rax, QWORD PTR -3128[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -3156[rbp], 0
	mov	DWORD PTR -3152[rbp], 2147483647
	mov	DWORD PTR -3148[rbp], -1
	mov	DWORD PTR -3144[rbp], -1
	mov	DWORD PTR -3140[rbp], 0
	jmp	.L17
.L20:
	lea	rcx, -3120[rbp]
	mov	eax, DWORD PTR -3140[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	add	rax, rcx
	mov	rdi, rax
	call	name_length
	mov	DWORD PTR -3132[rbp], eax
	mov	eax, DWORD PTR -3132[rbp]
	cmp	eax, DWORD PTR -3156[rbp]
	jle	.L18
	mov	eax, DWORD PTR -3132[rbp]
	mov	DWORD PTR -3156[rbp], eax
	mov	eax, DWORD PTR -3140[rbp]
	mov	DWORD PTR -3148[rbp], eax
.L18:
	mov	eax, DWORD PTR -3132[rbp]
	cmp	eax, DWORD PTR -3152[rbp]
	jge	.L19
	mov	eax, DWORD PTR -3132[rbp]
	mov	DWORD PTR -3152[rbp], eax
	mov	eax, DWORD PTR -3140[rbp]
	mov	DWORD PTR -3144[rbp], eax
.L19:
	add	DWORD PTR -3140[rbp], 1
.L17:
	mov	eax, DWORD PTR -3140[rbp]
	cmp	eax, DWORD PTR -3160[rbp]
	jl	.L20
	lea	rcx, -3120[rbp]
	mov	eax, DWORD PTR -3144[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	add	rcx, rax
	mov	eax, DWORD PTR -3152[rbp]
	mov	edx, eax
	mov	rsi, rcx
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -3120[rbp]
	mov	eax, DWORD PTR -3148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	add	rcx, rax
	mov	eax, DWORD PTR -3156[rbp]
	mov	edx, eax
	mov	rsi, rcx
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -3160[rbp]
	lea	rax, -3120[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sort
	lea	rsi, .LC6[rip]
	lea	rdi, .LC7[rip]
	call	fopen@PLT
	mov	QWORD PTR -3128[rbp], rax
	cmp	QWORD PTR -3128[rbp], 0
	jne	.L21
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L21:
	mov	DWORD PTR -3136[rbp], 0
	jmp	.L22
.L23:
	lea	rcx, -3120[rbp]
	mov	eax, DWORD PTR -3136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	sub	rax, rdx
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -3128[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -3136[rbp], 1
.L22:
	mov	eax, DWORD PTR -3136[rbp]
	cmp	eax, DWORD PTR -3160[rbp]
	jl	.L23
	mov	rax, QWORD PTR -3128[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.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	"328878.c"
	.text
	.align	2
	.global	name_length
	.syntax unified
	.arm
	.fpu softvfp
	.type	name_length, %function
name_length:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L4:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	name_length, .-name_length
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort, %function
sort:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L7
.L11:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L8
.L10:
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	ldr	r2, [fp, #-56]
	add	r0, r2, r3
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	ble	.L9
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	ldr	r2, [fp, #-56]
	add	r2, r2, r3
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	ldr	r2, [fp, #-56]
	add	r0, r2, r3
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	mov	r1, r3
	bl	strcpy
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	sub	r2, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
.L9:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L8:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L7:
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L11
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	sort, .-sort
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"names.txt\000"
	.align	2
.LC3:
	.ascii	"File could not be opened.\000"
	.align	2
.LC4:
	.ascii	" %[^\012]\000"
	.align	2
.LC5:
	.ascii	"Smallest name (length):- %s (%d)\012\000"
	.align	2
.LC6:
	.ascii	"Largest name (length):- %s (%d)\012\000"
	.align	2
.LC7:
	.ascii	"w\000"
	.align	2
.LC8:
	.ascii	"sorted_names.txt\000"
	.align	2
.LC9:
	.ascii	"Second file could not be opened.\000"
	.align	2
.LC10:
	.ascii	"%s\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 3144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3136
	sub	sp, sp, #8
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L28+4
	ldr	r0, .L28+8
	bl	fopen
	str	r0, [fp, #-3116]
	ldr	r3, [fp, #-3116]
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L28+12
	bl	printf
	mov	r0, #0
	bl	exit
.L16:
	mov	r3, #0
	str	r3, [fp, #-3144]
	b	.L17
.L18:
	ldr	r2, [fp, #-3144]
	add	r3, r2, #1
	str	r3, [fp, #-3144]
	sub	r1, fp, #3104
	sub	r1, r1, #4
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	add	r3, r1, r3
	mov	r2, r3
	ldr	r1, .L28+16
	ldr	r0, [fp, #-3116]
	bl	__isoc99_fscanf
.L17:
	ldr	r0, [fp, #-3116]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r0, [fp, #-3116]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-3140]
	mvn	r3, #-2147483648
	str	r3, [fp, #-3136]
	mvn	r3, #0
	str	r3, [fp, #-3132]
	mvn	r3, #0
	str	r3, [fp, #-3128]
	mov	r3, #0
	str	r3, [fp, #-3124]
	b	.L19
.L22:
	sub	r1, fp, #3104
	sub	r1, r1, #4
	ldr	r2, [fp, #-3124]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	add	r3, r1, r3
	mov	r0, r3
	bl	name_length
	str	r0, [fp, #-3112]
	ldr	r2, [fp, #-3112]
	ldr	r3, [fp, #-3140]
	cmp	r2, r3
	ble	.L20
	ldr	r3, [fp, #-3112]
	str	r3, [fp, #-3140]
	ldr	r3, [fp, #-3124]
	str	r3, [fp, #-3132]
.L20:
	ldr	r2, [fp, #-3112]
	ldr	r3, [fp, #-3136]
	cmp	r2, r3
	bge	.L21
	ldr	r3, [fp, #-3112]
	str	r3, [fp, #-3136]
	ldr	r3, [fp, #-3124]
	str	r3, [fp, #-3128]
.L21:
	ldr	r3, [fp, #-3124]
	add	r3, r3, #1
	str	r3, [fp, #-3124]
.L19:
	ldr	r2, [fp, #-3124]
	ldr	r3, [fp, #-3144]
	cmp	r2, r3
	blt	.L22
	sub	r1, fp, #3104
	sub	r1, r1, #4
	ldr	r2, [fp, #-3128]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	add	r3, r1, r3
	ldr	r2, [fp, #-3136]
	mov	r1, r3
	ldr	r0, .L28+20
	bl	printf
	sub	r1, fp, #3104
	sub	r1, r1, #4
	ldr	r2, [fp, #-3132]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	add	r3, r1, r3
	ldr	r2, [fp, #-3140]
	mov	r1, r3
	ldr	r0, .L28+24
	bl	printf
	sub	r3, fp, #3104
	sub	r3, r3, #4
	ldr	r1, [fp, #-3144]
	mov	r0, r3
	bl	sort
	ldr	r1, .L28+28
	ldr	r0, .L28+32
	bl	fopen
	str	r0, [fp, #-3116]
	ldr	r3, [fp, #-3116]
	cmp	r3, #0
	bne	.L23
	ldr	r0, .L28+36
	bl	printf
	mov	r0, #0
	bl	exit
.L23:
	mov	r3, #0
	str	r3, [fp, #-3120]
	b	.L24
.L25:
	sub	r1, fp, #3104
	sub	r1, r1, #4
	ldr	r2, [fp, #-3120]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	add	r3, r1, r3
	mov	r2, r3
	ldr	r1, .L28+40
	ldr	r0, [fp, #-3116]
	bl	fprintf
	ldr	r3, [fp, #-3120]
	add	r3, r3, #1
	str	r3, [fp, #-3120]
.L24:
	ldr	r2, [fp, #-3120]
	ldr	r3, [fp, #-3144]
	cmp	r2, r3
	blt	.L25
	ldr	r0, [fp, #-3116]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC11
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
