	.file	"275731.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -4112[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rax, -2064[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdx, -2064[rbp]
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_lcs
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"Got length: %d\n"
.LC1:
	.string	"Got LCS: '%s'\n"
	.text
	.globl	get_lcs
	.type	get_lcs, @function
get_lcs:
.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, 2144
	mov	QWORD PTR -2136[rbp], rdi
	mov	QWORD PTR -2144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -2136[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -2088[rbp], rax
	mov	rax, QWORD PTR -2144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -2080[rbp], rax
	mov	rdx, QWORD PTR -2080[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -2072[rbp], rax
	mov	DWORD PTR -2112[rbp], 0
	jmp	.L5
.L11:
	mov	DWORD PTR -2108[rbp], 0
	jmp	.L6
.L10:
	mov	BYTE PTR -2113[rbp], 0
	cmp	DWORD PTR -2108[rbp], 0
	jle	.L7
	mov	eax, DWORD PTR -2112[rbp]
	cdqe
	imul	rax, QWORD PTR -2080[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -2108[rbp]
	cdqe
	add	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -2072[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -2113[rbp], al
.L7:
	cmp	DWORD PTR -2112[rbp], 0
	jle	.L8
	mov	eax, DWORD PTR -2112[rbp]
	sub	eax, 1
	cdqe
	imul	rax, QWORD PTR -2080[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -2108[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -2072[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	movzx	eax, BYTE PTR -2113[rbp]
	mov	esi, edx
	mov	edi, eax
	mov	eax, 0
	call	max@PLT
	mov	BYTE PTR -2113[rbp], al
.L8:
	mov	eax, DWORD PTR -2112[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -2136[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -2108[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -2144[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L9
	movzx	eax, BYTE PTR -2113[rbp]
	add	eax, 1
	mov	BYTE PTR -2113[rbp], al
.L9:
	mov	eax, DWORD PTR -2112[rbp]
	cdqe
	imul	rax, QWORD PTR -2080[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -2108[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -2072[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -2113[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -2108[rbp], 1
.L6:
	mov	eax, DWORD PTR -2108[rbp]
	cdqe
	cmp	QWORD PTR -2080[rbp], rax
	ja	.L10
	add	DWORD PTR -2112[rbp], 1
.L5:
	mov	eax, DWORD PTR -2112[rbp]
	cdqe
	cmp	QWORD PTR -2088[rbp], rax
	ja	.L11
	mov	QWORD PTR -2064[rbp], 0
	mov	QWORD PTR -2056[rbp], 0
	lea	rdx, -2048[rbp]
	mov	eax, 0
	mov	ecx, 254
	mov	rdi, rdx
	rep stosq
	mov	rax, QWORD PTR -2088[rbp]
	imul	rax, QWORD PTR -2080[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -2072[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sub	eax, 1
	cdqe
	mov	QWORD PTR -2096[rbp], rax
	mov	rax, QWORD PTR -2088[rbp]
	sub	eax, 1
	mov	DWORD PTR -2104[rbp], eax
	mov	rax, QWORD PTR -2080[rbp]
	sub	eax, 1
	mov	DWORD PTR -2100[rbp], eax
	jmp	.L12
.L16:
	mov	eax, DWORD PTR -2104[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -2136[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -2100[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -2144[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L13
	mov	eax, DWORD PTR -2104[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -2136[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	lea	rcx, -2064[rbp]
	mov	rdx, QWORD PTR -2096[rbp]
	add	rdx, rcx
	mov	BYTE PTR [rdx], al
	sub	QWORD PTR -2096[rbp], 1
	sub	DWORD PTR -2104[rbp], 1
	sub	DWORD PTR -2100[rbp], 1
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -2104[rbp]
	cdqe
	imul	rax, QWORD PTR -2080[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -2100[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -2072[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -2104[rbp]
	sub	eax, 1
	cdqe
	imul	rax, QWORD PTR -2080[rbp]
	mov	rcx, rax
	mov	eax, DWORD PTR -2100[rbp]
	cdqe
	add	rcx, rax
	mov	rax, QWORD PTR -2072[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L14
	sub	DWORD PTR -2104[rbp], 1
	jmp	.L12
.L14:
	sub	DWORD PTR -2100[rbp], 1
.L12:
	cmp	DWORD PTR -2104[rbp], 0
	js	.L15
	cmp	DWORD PTR -2100[rbp], 0
	jns	.L16
.L15:
	mov	rax, QWORD PTR -2088[rbp]
	imul	rax, QWORD PTR -2080[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -2072[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_lcs, .-get_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	"275731.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #8
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	gets
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	gets
	sub	r2, fp, #2048
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	get_lcs
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Got length: %d\012\000"
	.align	2
.LC2:
	.ascii	"Got LCS: '%s'\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_lcs
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_lcs, %function
get_lcs:
	@ args = 0, pretend = 0, frame = 2096
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2096
	str	r0, [fp, #-2096]
	str	r1, [fp, #-2100]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-2096]
	bl	strlen
	str	r0, [fp, #-2068]
	ldr	r0, [fp, #-2100]
	bl	strlen
	str	r0, [fp, #-2064]
	ldr	r1, [fp, #-2064]
	ldr	r0, [fp, #-2068]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-2060]
	mov	r3, #0
	str	r3, [fp, #-2088]
	b	.L7
.L13:
	mov	r3, #0
	str	r3, [fp, #-2084]
	b	.L8
.L12:
	mov	r3, #0
	strb	r3, [fp, #-2089]
	ldr	r3, [fp, #-2084]
	cmp	r3, #0
	ble	.L9
	ldr	r3, [fp, #-2088]
	ldr	r2, [fp, #-2064]
	mul	r2, r3, r2
	ldr	r3, [fp, #-2084]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-2060]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-2089]
.L9:
	ldr	r3, [fp, #-2088]
	cmp	r3, #0
	ble	.L10
	ldrb	r0, [fp, #-2089]	@ zero_extendqisi2
	ldr	r3, [fp, #-2088]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-2064]
	mul	r2, r3, r2
	ldr	r3, [fp, #-2084]
	add	r3, r2, r3
	ldr	r2, [fp, #-2060]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	bl	max
	mov	r3, r0
	strb	r3, [fp, #-2089]
.L10:
	ldr	r3, [fp, #-2088]
	ldr	r2, [fp, #-2096]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-2084]
	ldr	r1, [fp, #-2100]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L11
	ldrb	r3, [fp, #-2089]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-2089]
.L11:
	ldr	r3, [fp, #-2088]
	ldr	r2, [fp, #-2064]
	mul	r2, r3, r2
	ldr	r3, [fp, #-2084]
	add	r3, r2, r3
	ldr	r2, [fp, #-2060]
	add	r3, r2, r3
	ldrb	r2, [fp, #-2089]
	strb	r2, [r3]
	ldr	r3, [fp, #-2084]
	add	r3, r3, #1
	str	r3, [fp, #-2084]
.L8:
	ldr	r3, [fp, #-2084]
	ldr	r2, [fp, #-2064]
	cmp	r2, r3
	bhi	.L12
	ldr	r3, [fp, #-2088]
	add	r3, r3, #1
	str	r3, [fp, #-2088]
.L7:
	ldr	r3, [fp, #-2088]
	ldr	r2, [fp, #-2068]
	cmp	r2, r3
	bhi	.L13
	mov	r3, #0
	str	r3, [fp, #-2056]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	ldr	r2, .L20+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-2068]
	ldr	r2, [fp, #-2064]
	mul	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-2060]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	str	r3, [fp, #-2080]
	ldr	r3, [fp, #-2068]
	sub	r3, r3, #1
	str	r3, [fp, #-2076]
	ldr	r3, [fp, #-2064]
	sub	r3, r3, #1
	str	r3, [fp, #-2072]
	b	.L14
.L18:
	ldr	r3, [fp, #-2076]
	ldr	r2, [fp, #-2096]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-2072]
	ldr	r1, [fp, #-2100]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L15
	ldr	r3, [fp, #-2076]
	ldr	r2, [fp, #-2096]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2080]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-2080]
	sub	r3, r3, #1
	str	r3, [fp, #-2080]
	ldr	r3, [fp, #-2076]
	sub	r3, r3, #1
	str	r3, [fp, #-2076]
	ldr	r3, [fp, #-2072]
	sub	r3, r3, #1
	str	r3, [fp, #-2072]
	b	.L14
.L15:
	ldr	r3, [fp, #-2076]
	ldr	r2, [fp, #-2064]
	mul	r2, r3, r2
	ldr	r3, [fp, #-2072]
	add	r3, r2, r3
	ldr	r2, [fp, #-2060]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-2076]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-2064]
	mul	r1, r3, r1
	ldr	r3, [fp, #-2072]
	add	r3, r1, r3
	ldr	r1, [fp, #-2060]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L16
	ldr	r3, [fp, #-2076]
	sub	r3, r3, #1
	str	r3, [fp, #-2076]
	b	.L14
.L16:
	ldr	r3, [fp, #-2072]
	sub	r3, r3, #1
	str	r3, [fp, #-2072]
.L14:
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	blt	.L17
	ldr	r3, [fp, #-2072]
	cmp	r3, #0
	bge	.L18
.L17:
	ldr	r3, [fp, #-2068]
	ldr	r2, [fp, #-2064]
	mul	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-2060]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L20+8
	bl	printf
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+12
	bl	printf
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC3
	.word	2044
	.word	.LC1
	.word	.LC2
	.size	get_lcs, .-get_lcs
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
