	.file	"921878.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.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
	sub	rsp, 2048
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -2040[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -2036[rbp], 0
	jmp	.L2
.L3:
	lea	rax, -2032[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -1024[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -1024[rbp]
	lea	rax, -2032[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	LCS
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -2036[rbp], 1
.L2:
	mov	eax, DWORD PTR -2040[rbp]
	cmp	DWORD PTR -2036[rbp], eax
	jl	.L3
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	max
	.type	max, @function
max:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -8[rbp], eax
	cmovge	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	max, .-max
	.globl	LCS
	.type	LCS, @function
LCS:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -4005888[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2160
	mov	QWORD PTR -4008040[rbp], rdi
	mov	QWORD PTR -4008048[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4008040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4008024[rbp], eax
	mov	rax, QWORD PTR -4008048[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4008020[rbp], eax
	mov	DWORD PTR -4008032[rbp], 0
	jmp	.L9
.L16:
	mov	DWORD PTR -4008028[rbp], 0
	jmp	.L10
.L15:
	cmp	DWORD PTR -4008032[rbp], 0
	je	.L11
	cmp	DWORD PTR -4008028[rbp], 0
	jne	.L12
.L11:
	mov	eax, DWORD PTR -4008028[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4008032[rbp]
	cdqe
	imul	rax, rax, 1001
	add	rax, rdx
	mov	DWORD PTR -4008016[rbp+rax*4], 0
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -4008032[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -4008040[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4008028[rbp]
	cdqe
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -4008048[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L14
	mov	eax, DWORD PTR -4008032[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4008028[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rax, edx
	imul	rax, rax, 1001
	add	rax, rcx
	mov	eax, DWORD PTR -4008016[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4008028[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4008032[rbp]
	cdqe
	imul	rax, rax, 1001
	add	rax, rcx
	mov	DWORD PTR -4008016[rbp+rax*4], edx
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -4008032[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4008028[rbp]
	movsx	rcx, eax
	movsx	rax, edx
	imul	rax, rax, 1001
	add	rax, rcx
	mov	edx, DWORD PTR -4008016[rbp+rax*4]
	mov	eax, DWORD PTR -4008028[rbp]
	sub	eax, 1
	movsx	rcx, eax
	mov	eax, DWORD PTR -4008032[rbp]
	cdqe
	imul	rax, rax, 1001
	add	rax, rcx
	mov	eax, DWORD PTR -4008016[rbp+rax*4]
	mov	esi, edx
	mov	edi, eax
	call	max
	mov	edx, DWORD PTR -4008028[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -4008032[rbp]
	movsx	rdx, edx
	imul	rdx, rdx, 1001
	add	rdx, rcx
	mov	DWORD PTR -4008016[rbp+rdx*4], eax
.L13:
	add	DWORD PTR -4008028[rbp], 1
.L10:
	mov	eax, DWORD PTR -4008028[rbp]
	cmp	eax, DWORD PTR -4008020[rbp]
	jle	.L15
	add	DWORD PTR -4008032[rbp], 1
.L9:
	mov	eax, DWORD PTR -4008032[rbp]
	cmp	eax, DWORD PTR -4008024[rbp]
	jle	.L16
	mov	eax, DWORD PTR -4008020[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4008024[rbp]
	cdqe
	imul	rax, rax, 1001
	add	rax, rdx
	mov	eax, DWORD PTR -4008016[rbp+rax*4]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	LCS, .-LCS
	.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	"921878.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2016
	sub	sp, sp, #8
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #2016
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L6+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-2020]
	b	.L2
.L3:
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	sub	r3, fp, #1012
	mov	r1, r3
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	sub	r2, fp, #1012
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	LCS
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L6+12
	bl	printf
	ldr	r3, [fp, #-2020]
	add	r3, r3, #1
	str	r3, [fp, #-2020]
.L2:
	ldr	r3, [fp, #-2024]
	ldr	r2, [fp, #-2020]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	max
	.syntax unified
	.arm
	.fpu softvfp
	.type	max, %function
max:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	max, .-max
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	LCS
	.syntax unified
	.arm
	.fpu softvfp
	.type	LCS, %function
LCS:
	@ args = 0, pretend = 0, frame = 4008032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3997696
	sub	sp, sp, #10304
	sub	sp, sp, #32
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	str	r0, [r3, #-2140]
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	str	r1, [r3, #-2144]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r0, [r3, #-2140]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	str	r2, [r3, #-2128]
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r0, [r3, #-2144]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	str	r2, [r3, #-2124]
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2136]
	b	.L11
.L18:
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2132]
	b	.L12
.L17:
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2136]
	cmp	r3, #0
	beq	.L13
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2132]
	cmp	r3, #0
	bne	.L14
.L13:
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r1, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2136]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2132]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, #0
	str	r2, [r3, #-2120]
	b	.L15
.L14:
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2136]
	sub	r2, r3, #1
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2140]
	add	r3, r3, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2132]
	sub	r1, r3, #1
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2144]
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L16
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2136]
	sub	r2, r3, #1
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2132]
	sub	r1, r3, #1
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r0, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	add	r3, r2, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #-2120]
	add	r1, r3, #1
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r0, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2136]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2132]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3, #-2120]
	b	.L15
.L16:
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2132]
	sub	r1, r3, #1
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r0, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2136]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	add	r3, r2, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r0, [r3, #-2120]
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2136]
	sub	r2, r3, #1
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r1, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2132]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-2120]
	mov	r1, r3
	bl	max
	mov	r1, r0
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r0, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2136]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2132]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3, #-2120]
.L15:
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2132]
	add	r3, r3, #1
	str	r3, [r2, #-2132]
.L12:
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r2, [r2, #-2132]
	ldr	r3, [r3, #-2124]
	cmp	r2, r3
	ble	.L17
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2136]
	add	r3, r3, #1
	str	r3, [r2, #-2136]
.L11:
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r2, [r2, #-2136]
	ldr	r3, [r3, #-2128]
	cmp	r2, r3
	ble	.L18
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	mov	r1, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r2, [r3, #-2128]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #8192
	ldr	r3, [r3, #-2124]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-2120]
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC4
	.size	LCS, .-LCS
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
