	.file	"158311.c"
	.intel_syntax noprefix
	.text
	.globl	editdist
	.type	editdist, @function
editdist:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	WORD PTR -34[rbp], ax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	WORD PTR -32[rbp], ax
	mov	WORD PTR -38[rbp], 0
	jmp	.L2
.L3:
	movzx	eax, WORD PTR -38[rbp]
	cdqe
	imul	rax, rax, 202
	lea	rcx, d.0[rip]
	movzx	edx, WORD PTR -38[rbp]
	mov	WORD PTR [rax+rcx], dx
	movzx	eax, WORD PTR -38[rbp]
	add	eax, 1
	mov	WORD PTR -38[rbp], ax
.L2:
	movzx	eax, WORD PTR -38[rbp]
	cmp	ax, WORD PTR -34[rbp]
	jbe	.L3
	mov	WORD PTR -36[rbp], 1
	jmp	.L4
.L5:
	movzx	eax, WORD PTR -36[rbp]
	cdqe
	lea	rcx, [rax+rax]
	lea	rdx, d.0[rip]
	movzx	eax, WORD PTR -36[rbp]
	mov	WORD PTR [rcx+rdx], ax
	movzx	eax, WORD PTR -36[rbp]
	add	eax, 1
	mov	WORD PTR -36[rbp], ax
.L4:
	movzx	eax, WORD PTR -36[rbp]
	cmp	ax, WORD PTR -32[rbp]
	jbe	.L5
	mov	WORD PTR -36[rbp], 1
	jmp	.L6
.L11:
	mov	WORD PTR -38[rbp], 1
	jmp	.L7
.L10:
	movzx	eax, WORD PTR -38[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	movzx	eax, WORD PTR -36[rbp]
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L8
	movzx	eax, WORD PTR -38[rbp]
	movzx	edx, WORD PTR -36[rbp]
	sub	edx, 1
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, [rax+rax]
	lea	rax, d.0[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	movzx	eax, WORD PTR -38[rbp]
	lea	edx, -1[rax]
	movzx	eax, WORD PTR -36[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, [rax+rax]
	lea	rax, d.0[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -8[rbp], eax
	cmovle	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	movzx	eax, WORD PTR -38[rbp]
	lea	edx, -1[rax]
	movzx	eax, WORD PTR -36[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, [rax+rax]
	lea	rax, d.0[rip]
	movzx	eax, WORD PTR [rdx+rax]
	mov	WORD PTR -30[rbp], ax
	movzx	eax, WORD PTR -30[rbp]
	cmp	DWORD PTR -4[rbp], eax
	cmovle	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	movzx	eax, WORD PTR -38[rbp]
	movzx	edx, WORD PTR -36[rbp]
	movsx	rsi, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdi, 0[0+rax*4]
	add	rax, rdi
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	lea	rdx, [rax+rax]
	lea	rax, d.0[rip]
	mov	WORD PTR [rdx+rax], cx
	jmp	.L9
.L8:
	movzx	eax, WORD PTR -38[rbp]
	movzx	edx, WORD PTR -36[rbp]
	sub	edx, 1
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, [rax+rax]
	lea	rax, d.0[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	add	eax, 1
	mov	DWORD PTR -28[rbp], eax
	movzx	eax, WORD PTR -38[rbp]
	lea	edx, -1[rax]
	movzx	eax, WORD PTR -36[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, [rax+rax]
	lea	rax, d.0[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -24[rbp], eax
	cmovle	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -20[rbp], eax
	movzx	eax, WORD PTR -38[rbp]
	lea	edx, -1[rax]
	movzx	eax, WORD PTR -36[rbp]
	sub	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, [rax+rax]
	lea	rax, d.0[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cmp	DWORD PTR -16[rbp], eax
	cmovle	eax, DWORD PTR -16[rbp]
	mov	ecx, eax
	movzx	eax, WORD PTR -38[rbp]
	movzx	edx, WORD PTR -36[rbp]
	movsx	rsi, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdi, 0[0+rax*4]
	add	rax, rdi
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	lea	rdx, [rax+rax]
	lea	rax, d.0[rip]
	mov	WORD PTR [rdx+rax], cx
.L9:
	movzx	eax, WORD PTR -38[rbp]
	add	eax, 1
	mov	WORD PTR -38[rbp], ax
.L7:
	movzx	eax, WORD PTR -38[rbp]
	cmp	ax, WORD PTR -34[rbp]
	jbe	.L10
	movzx	eax, WORD PTR -36[rbp]
	add	eax, 1
	mov	WORD PTR -36[rbp], ax
.L6:
	movzx	eax, WORD PTR -36[rbp]
	cmp	ax, WORD PTR -32[rbp]
	jbe	.L11
	movzx	eax, WORD PTR -34[rbp]
	movzx	edx, WORD PTR -32[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rsi, 0[0+rax*4]
	add	rax, rsi
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, [rax+rax]
	lea	rax, d.0[rip]
	movzx	eax, WORD PTR [rdx+rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	editdist, .-editdist
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%hu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -112[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	editdist
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.local	d.0
	.comm	d.0,20402,32
	.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	"158311.c"
	.text
	.align	2
	.global	editdist
	.syntax unified
	.arm
	.fpu softvfp
	.type	editdist, %function
editdist:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	strh	r3, [fp, #-38]	@ movhi
	ldr	r0, [fp, #-52]
	bl	strlen
	mov	r3, r0
	strh	r3, [fp, #-36]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-42]	@ movhi
	b	.L2
.L3:
	ldrh	r3, [fp, #-42]
	ldr	r2, .L13
	mov	r1, #202
	mul	r3, r1, r3
	add	r3, r2, r3
	ldrh	r2, [fp, #-42]	@ movhi
	strh	r2, [r3]	@ movhi
	ldrh	r3, [fp, #-42]
	add	r3, r3, #1
	strh	r3, [fp, #-42]	@ movhi
.L2:
	ldrh	r2, [fp, #-42]
	ldrh	r3, [fp, #-38]
	cmp	r2, r3
	bls	.L3
	mov	r3, #1
	strh	r3, [fp, #-40]	@ movhi
	b	.L4
.L5:
	ldrh	r3, [fp, #-40]
	ldr	r2, .L13
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r2, [fp, #-40]	@ movhi
	strh	r2, [r3]	@ movhi
	ldrh	r3, [fp, #-40]
	add	r3, r3, #1
	strh	r3, [fp, #-40]	@ movhi
.L4:
	ldrh	r2, [fp, #-40]
	ldrh	r3, [fp, #-36]
	cmp	r2, r3
	bls	.L5
	mov	r3, #1
	strh	r3, [fp, #-40]	@ movhi
	b	.L6
.L11:
	mov	r3, #1
	strh	r3, [fp, #-42]	@ movhi
	b	.L7
.L10:
	ldrh	r3, [fp, #-42]
	sub	r3, r3, #1
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrh	r3, [fp, #-40]
	sub	r3, r3, #1
	ldr	r1, [fp, #-52]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L8
	ldrh	r2, [fp, #-42]
	ldrh	r3, [fp, #-40]
	sub	r1, r3, #1
	ldr	ip, .L13
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, ip, r3
	ldrh	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldrh	r3, [fp, #-42]
	sub	r2, r3, #1
	ldrh	r1, [fp, #-40]
	ldr	ip, .L13
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, ip, r3
	ldrh	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [fp, #-8]
	ldrh	r3, [fp, #-42]
	sub	r2, r3, #1
	ldrh	r3, [fp, #-40]
	sub	r1, r3, #1
	ldr	ip, .L13
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, ip, r3
	ldrh	r3, [r3]	@ movhi
	strh	r3, [fp, #-34]	@ movhi
	ldrh	r2, [fp, #-34]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	ldrh	r2, [fp, #-42]
	ldrh	r0, [fp, #-40]
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldr	lr, .L13
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	ip, r3, #2
	add	r3, r3, ip
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r0
	lsl	r3, r3, #1
	add	r3, lr, r3
	strh	r1, [r3]	@ movhi
	b	.L9
.L8:
	ldrh	r2, [fp, #-42]
	ldrh	r3, [fp, #-40]
	sub	r1, r3, #1
	ldr	ip, .L13
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, ip, r3
	ldrh	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldrh	r3, [fp, #-42]
	sub	r2, r3, #1
	ldrh	r1, [fp, #-40]
	ldr	ip, .L13
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, ip, r3
	ldrh	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [fp, #-24]
	ldrh	r3, [fp, #-42]
	sub	r2, r3, #1
	ldrh	r3, [fp, #-40]
	sub	r1, r3, #1
	ldr	ip, .L13
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, ip, r3
	ldrh	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	ldrh	r2, [fp, #-42]
	ldrh	r0, [fp, #-40]
	lsl	r3, r3, #16
	lsr	r1, r3, #16
	ldr	lr, .L13
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	ip, r3, #2
	add	r3, r3, ip
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r0
	lsl	r3, r3, #1
	add	r3, lr, r3
	strh	r1, [r3]	@ movhi
.L9:
	ldrh	r3, [fp, #-42]
	add	r3, r3, #1
	strh	r3, [fp, #-42]	@ movhi
.L7:
	ldrh	r2, [fp, #-42]
	ldrh	r3, [fp, #-38]
	cmp	r2, r3
	bls	.L10
	ldrh	r3, [fp, #-40]
	add	r3, r3, #1
	strh	r3, [fp, #-40]	@ movhi
.L6:
	ldrh	r2, [fp, #-40]
	ldrh	r3, [fp, #-36]
	cmp	r2, r3
	bls	.L11
	ldrh	r2, [fp, #-38]
	ldrh	r1, [fp, #-36]
	ldr	ip, .L13
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r0, r3, #2
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, ip, r3
	ldrh	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	d.4782
	.size	editdist, .-editdist
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"%hu\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #216
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #216
	mov	r1, r3
	ldr	r0, .L18+4
	bl	__isoc99_scanf
	sub	r3, fp, #112
	mov	r1, r3
	ldr	r0, .L18+4
	bl	__isoc99_scanf
	sub	r2, fp, #112
	sub	r3, fp, #216
	mov	r1, r2
	mov	r0, r3
	bl	editdist
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L18+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.local	d.4782
	.comm	d.4782,20402,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
