	.file	"477295.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\nAdrian\nBruno\nGoran"
.LC3:
	.string	"%d\nAdrian"
.LC4:
	.string	"%d\nBruno"
.LC5:
	.string	"%d\nGoran"
.LC6:
	.string	"%d\nAdrian\nBruno"
.LC7:
	.string	"%d\nBruno\nGoran"
.LC8:
	.string	"%d\nAdrian\nGoran"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 408
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -412[rbp], 0
	mov	DWORD PTR -408[rbp], 0
	mov	DWORD PTR -404[rbp], 0
	lea	rax, -440[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -440[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -432[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -424[rbp], rax
	mov	QWORD PTR -400[rbp], 0
	mov	QWORD PTR -392[rbp], 0
	mov	QWORD PTR -384[rbp], 0
	mov	QWORD PTR -376[rbp], 0
	mov	QWORD PTR -368[rbp], 0
	mov	QWORD PTR -360[rbp], 0
	mov	QWORD PTR -352[rbp], 0
	mov	QWORD PTR -344[rbp], 0
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	DWORD PTR -296[rbp], 0
	mov	WORD PTR -292[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	DWORD PTR -184[rbp], 0
	mov	WORD PTR -180[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	WORD PTR -68[rbp], 0
	mov	rax, QWORD PTR -424[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -436[rbp], 0
	jmp	.L5
.L6:
	lea	rax, -400[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -400[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 4407873
	add	DWORD PTR -436[rbp], 3
.L5:
	mov	eax, DWORD PTR -440[rbp]
	cmp	DWORD PTR -436[rbp], eax
	jl	.L6
	mov	DWORD PTR -436[rbp], 0
	jmp	.L7
.L8:
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -288[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1128415554
	mov	BYTE PTR 4[rax], 0
	add	DWORD PTR -436[rbp], 4
.L7:
	mov	eax, DWORD PTR -440[rbp]
	cmp	DWORD PTR -436[rbp], eax
	jl	.L8
	mov	DWORD PTR -436[rbp], 0
	jmp	.L9
.L10:
	lea	rax, -176[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -176[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1094796099
	mov	WORD PTR 4[rax], 16962
	mov	BYTE PTR 6[rax], 0
	add	DWORD PTR -436[rbp], 6
.L9:
	mov	eax, DWORD PTR -440[rbp]
	cmp	DWORD PTR -436[rbp], eax
	jl	.L10
	mov	DWORD PTR -436[rbp], 0
	jmp	.L11
.L15:
	mov	rdx, QWORD PTR -424[rbp]
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	movzx	eax, BYTE PTR -400[rbp+rax]
	cmp	dl, al
	jne	.L12
	mov	eax, DWORD PTR -412[rbp]
	add	eax, 1
	mov	DWORD PTR -412[rbp], eax
.L12:
	mov	rdx, QWORD PTR -424[rbp]
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	movzx	eax, BYTE PTR -288[rbp+rax]
	cmp	dl, al
	jne	.L13
	mov	eax, DWORD PTR -408[rbp]
	add	eax, 1
	mov	DWORD PTR -408[rbp], eax
.L13:
	mov	rdx, QWORD PTR -424[rbp]
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	movzx	eax, BYTE PTR -176[rbp+rax]
	cmp	dl, al
	jne	.L14
	mov	eax, DWORD PTR -404[rbp]
	add	eax, 1
	mov	DWORD PTR -404[rbp], eax
.L14:
	add	DWORD PTR -436[rbp], 1
.L11:
	mov	eax, DWORD PTR -440[rbp]
	cmp	DWORD PTR -436[rbp], eax
	jl	.L15
	mov	edx, DWORD PTR -412[rbp]
	mov	eax, DWORD PTR -408[rbp]
	cmp	edx, eax
	jne	.L16
	mov	edx, DWORD PTR -408[rbp]
	mov	eax, DWORD PTR -404[rbp]
	cmp	edx, eax
	jne	.L16
	mov	eax, DWORD PTR -412[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L16:
	mov	edx, DWORD PTR -412[rbp]
	mov	eax, DWORD PTR -408[rbp]
	cmp	edx, eax
	jle	.L18
	mov	edx, DWORD PTR -412[rbp]
	mov	eax, DWORD PTR -404[rbp]
	cmp	edx, eax
	jle	.L18
	mov	eax, DWORD PTR -412[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L18:
	mov	edx, DWORD PTR -408[rbp]
	mov	eax, DWORD PTR -412[rbp]
	cmp	edx, eax
	jle	.L19
	mov	edx, DWORD PTR -408[rbp]
	mov	eax, DWORD PTR -404[rbp]
	cmp	edx, eax
	jle	.L19
	mov	eax, DWORD PTR -408[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L19:
	mov	edx, DWORD PTR -404[rbp]
	mov	eax, DWORD PTR -412[rbp]
	cmp	edx, eax
	jle	.L20
	mov	edx, DWORD PTR -404[rbp]
	mov	eax, DWORD PTR -408[rbp]
	cmp	edx, eax
	jle	.L20
	mov	eax, DWORD PTR -404[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L20:
	mov	edx, DWORD PTR -412[rbp]
	mov	eax, DWORD PTR -408[rbp]
	cmp	edx, eax
	jne	.L21
	mov	eax, DWORD PTR -412[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L21:
	mov	edx, DWORD PTR -408[rbp]
	mov	eax, DWORD PTR -404[rbp]
	cmp	edx, eax
	jne	.L22
	mov	eax, DWORD PTR -408[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L22:
	mov	edx, DWORD PTR -412[rbp]
	mov	eax, DWORD PTR -404[rbp]
	cmp	edx, eax
	jne	.L17
	mov	eax, DWORD PTR -412[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"477295.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"ABC\000"
	.align	2
.LC3:
	.ascii	"BABC\000"
	.align	2
.LC4:
	.ascii	"CCAABB\000"
	.align	2
.LC5:
	.ascii	"%d\012Adrian\012Bruno\012Goran\000"
	.align	2
.LC6:
	.ascii	"%d\012Adrian\000"
	.align	2
.LC7:
	.ascii	"%d\012Bruno\000"
	.align	2
.LC8:
	.ascii	"%d\012Goran\000"
	.align	2
.LC9:
	.ascii	"%d\012Adrian\012Bruno\000"
	.align	2
.LC10:
	.ascii	"%d\012Bruno\012Goran\000"
	.align	2
.LC11:
	.ascii	"%d\012Adrian\012Goran\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 368
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #372
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #0
	str	r3, [fp, #-364]
	mov	r3, #0
	str	r3, [fp, #-360]
	mov	r3, #0
	str	r3, [fp, #-356]
	sub	r3, fp, #380
	mov	r1, r3
	ldr	r0, .L22+4
	bl	__isoc99_scanf
	ldr	ip, [fp, #-380]
	sub	r3, ip, #1
	str	r3, [fp, #-372]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-368]
	mov	r3, #0
	str	r3, [fp, #-352]
	sub	r3, fp, #348
	mov	r2, #106
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-240]
	sub	r3, fp, #236
	mov	r2, #106
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-128]
	sub	r3, fp, #124
	mov	r2, #106
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, [fp, #-368]
	ldr	r0, .L22+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L2
.L3:
	sub	r3, fp, #352
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #352
	add	r3, r3, r2
	ldr	r2, .L22+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #4
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-376]
	add	r3, r3, #3
	str	r3, [fp, #-376]
.L2:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-376]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L4
.L5:
	sub	r3, fp, #240
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #240
	add	r3, r3, r2
	ldr	r2, .L22+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-376]
	add	r3, r3, #4
	str	r3, [fp, #-376]
.L4:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-376]
	cmp	r2, r3
	blt	.L5
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L6
.L7:
	sub	r3, fp, #128
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #128
	add	r3, r3, r2
	ldr	r2, .L22+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #7
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-376]
	add	r3, r3, #6
	str	r3, [fp, #-376]
.L6:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-376]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L8
.L12:
	ldr	r2, [fp, #-368]
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #352
	ldr	r3, [fp, #-376]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L9
	ldr	r3, [fp, #-364]
	add	r3, r3, #1
	str	r3, [fp, #-364]
.L9:
	ldr	r2, [fp, #-368]
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #240
	ldr	r3, [fp, #-376]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-360]
	add	r3, r3, #1
	str	r3, [fp, #-360]
.L10:
	ldr	r2, [fp, #-368]
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #128
	ldr	r3, [fp, #-376]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L11
	ldr	r3, [fp, #-356]
	add	r3, r3, #1
	str	r3, [fp, #-356]
.L11:
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L8:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-376]
	cmp	r2, r3
	blt	.L12
	ldr	r2, [fp, #-364]
	ldr	r3, [fp, #-360]
	cmp	r2, r3
	bne	.L13
	ldr	r2, [fp, #-360]
	ldr	r3, [fp, #-356]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [fp, #-364]
	mov	r1, r3
	ldr	r0, .L22+24
	bl	printf
	b	.L14
.L13:
	ldr	r2, [fp, #-364]
	ldr	r3, [fp, #-360]
	cmp	r2, r3
	ble	.L15
	ldr	r2, [fp, #-364]
	ldr	r3, [fp, #-356]
	cmp	r2, r3
	ble	.L15
	ldr	r3, [fp, #-364]
	mov	r1, r3
	ldr	r0, .L22+28
	bl	printf
	b	.L14
.L15:
	ldr	r2, [fp, #-360]
	ldr	r3, [fp, #-364]
	cmp	r2, r3
	ble	.L16
	ldr	r2, [fp, #-360]
	ldr	r3, [fp, #-356]
	cmp	r2, r3
	ble	.L16
	ldr	r3, [fp, #-360]
	mov	r1, r3
	ldr	r0, .L22+32
	bl	printf
	b	.L14
.L16:
	ldr	r2, [fp, #-356]
	ldr	r3, [fp, #-364]
	cmp	r2, r3
	ble	.L17
	ldr	r2, [fp, #-356]
	ldr	r3, [fp, #-360]
	cmp	r2, r3
	ble	.L17
	ldr	r3, [fp, #-356]
	mov	r1, r3
	ldr	r0, .L22+36
	bl	printf
	b	.L14
.L17:
	ldr	r2, [fp, #-364]
	ldr	r3, [fp, #-360]
	cmp	r2, r3
	bne	.L18
	ldr	r3, [fp, #-364]
	mov	r1, r3
	ldr	r0, .L22+40
	bl	printf
	b	.L14
.L18:
	ldr	r2, [fp, #-360]
	ldr	r3, [fp, #-356]
	cmp	r2, r3
	bne	.L19
	ldr	r3, [fp, #-360]
	mov	r1, r3
	ldr	r0, .L22+44
	bl	printf
	b	.L14
.L19:
	ldr	r2, [fp, #-364]
	ldr	r3, [fp, #-356]
	cmp	r2, r3
	bne	.L14
	ldr	r3, [fp, #-364]
	mov	r1, r3
	ldr	r0, .L22+48
	bl	printf
.L14:
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
