	.file	"1002922.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	" %c%d"
.LC1:
	.string	"Nespravny vstup."
	.align 8
.LC2:
	.string	"Manhattanska vzdalenost %c%d a %c%d je %d.\n"
	.align 8
.LC3:
	.string	"Euklidovska vzdalenost %c%d a %c%d je %.3f.\n"
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -16[rbp]
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	jne	.L2
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 96
	jle	.L2
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 112
	jg	.L2
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jle	.L2
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 8
	jle	.L3
.L2:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L7
.L3:
	lea	rdx, -12[rbp]
	lea	rax, -17[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	jne	.L5
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 96
	jle	.L5
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 104
	jg	.L5
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jle	.L5
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 8
	jle	.L6
.L5:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L7
.L6:
	movzx	eax, BYTE PTR -17[rbp]
	movsx	eax, al
	movzx	edx, BYTE PTR -18[rbp]
	movsx	edx, dl
	sub	eax, edx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	sub	eax, ecx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	lea	edi, [rdx+rax]
	mov	esi, DWORD PTR -12[rbp]
	movzx	eax, BYTE PTR -17[rbp]
	movsx	ecx, al
	mov	edx, DWORD PTR -16[rbp]
	movzx	eax, BYTE PTR -18[rbp]
	movsx	eax, al
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -17[rbp]
	movsx	eax, al
	movzx	edx, BYTE PTR -18[rbp]
	movsx	edx, dl
	sub	eax, edx
	mov	ecx, eax
	movzx	eax, BYTE PTR -17[rbp]
	movsx	eax, al
	movzx	edx, BYTE PTR -18[rbp]
	movsx	edx, dl
	sub	eax, edx
	imul	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -16[rbp]
	sub	eax, esi
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -16[rbp]
	sub	eax, esi
	imul	eax, edx
	add	eax, ecx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	mov	edi, DWORD PTR -12[rbp]
	movzx	edx, BYTE PTR -17[rbp]
	movsx	ecx, dl
	mov	edx, DWORD PTR -16[rbp]
	movzx	esi, BYTE PTR -18[rbp]
	movsx	esi, sil
	movq	xmm0, rax
	mov	r8d, edi
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
.L7:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"1002922.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	" %c%d\000"
	.align	2
.LC1:
	.ascii	"Nespravny vstup.\000"
	.align	2
.LC2:
	.ascii	"Manhattanska vzdalenost %c%d a %c%d je %d.\012\000"
	.global	__aeabi_i2d
	.align	2
.LC3:
	.ascii	"Euklidovska vzdalenost %c%d a %c%d je %.3f.\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #32
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r2, fp, #32
	sub	r3, fp, #34
	mov	r1, r3
	ldr	r0, .L9+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	bne	.L2
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L2
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	cmp	r3, #112
	bhi	.L2
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	ble	.L3
.L2:
	ldr	r0, .L9+8
	bl	puts
	mov	r3, #1
	b	.L7
.L3:
	sub	r2, fp, #28
	sub	r3, fp, #33
	mov	r1, r3
	ldr	r0, .L9+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	bne	.L5
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L5
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #104
	bhi	.L5
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-28]
	cmp	r3, #8
	ble	.L6
.L5:
	ldr	r0, .L9+8
	bl	puts
	mov	r3, #1
	b	.L7
.L6:
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	mov	lr, r3
	ldr	ip, [fp, #-32]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	mov	r4, r3
	ldr	r3, [fp, #-28]
	ldrb	r2, [fp, #-33]	@ zero_extendqisi2
	mov	r1, r2
	ldrb	r2, [fp, #-34]	@ zero_extendqisi2
	sub	r2, r1, r2
	eor	r1, r2, r2, asr #31
	sub	r1, r1, r2, asr #31
	ldr	r0, [fp, #-28]
	ldr	r2, [fp, #-32]
	sub	r2, r0, r2
	cmp	r2, #0
	rsblt	r2, r2, #0
	add	r2, r1, r2
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r4
	mov	r2, ip
	mov	r1, lr
	ldr	r0, .L9+12
	bl	printf
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	mov	r6, r3
	ldr	r5, [fp, #-32]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	mov	r7, r3
	ldr	r4, [fp, #-28]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	sub	r3, r2, r3
	ldrb	r2, [fp, #-33]	@ zero_extendqisi2
	mov	r1, r2
	ldrb	r2, [fp, #-34]	@ zero_extendqisi2
	sub	r2, r1, r2
	mul	r2, r3, r2
	ldr	r1, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r1, r3
	ldr	r0, [fp, #-28]
	ldr	r1, [fp, #-32]
	sub	r1, r0, r1
	mul	r3, r1, r3
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r4, [sp]
	mov	r3, r7
	mov	r2, r5
	mov	r1, r6
	ldr	r0, .L9+16
	bl	printf
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
