	.file	"577679.c"
	.intel_syntax noprefix
	.text
	.globl	pytagoras
	.type	pytagoras, @function
pytagoras:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	pxor	xmm5, xmm5
	cvtsi2sd	xmm5, DWORD PTR -20[rbp]
	movq	rax, xmm5
	movsd	xmm0, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	QWORD PTR -40[rbp], xmm0
	pxor	xmm6, xmm6
	cvtsi2sd	xmm6, DWORD PTR -24[rbp]
	movq	rax, xmm6
	movsd	xmm0, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movapd	xmm2, xmm0
	addsd	xmm2, QWORD PTR -40[rbp]
	movsd	QWORD PTR -40[rbp], xmm2
	pxor	xmm5, xmm5
	cvtsi2sd	xmm5, DWORD PTR -28[rbp]
	movq	rax, xmm5
	movsd	xmm0, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm2, QWORD PTR -40[rbp]
	ucomisd	xmm2, xmm0
	jp	.L2
	ucomisd	xmm2, xmm0
	jne	.L2
	mov	DWORD PTR -4[rbp], 1
	jmp	.L4
.L2:
	pxor	xmm6, xmm6
	cvtsi2sd	xmm6, DWORD PTR -20[rbp]
	movq	rax, xmm6
	movsd	xmm0, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	QWORD PTR -40[rbp], xmm0
	pxor	xmm7, xmm7
	cvtsi2sd	xmm7, DWORD PTR -28[rbp]
	movq	rax, xmm7
	movsd	xmm0, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movapd	xmm3, xmm0
	addsd	xmm3, QWORD PTR -40[rbp]
	movsd	QWORD PTR -40[rbp], xmm3
	pxor	xmm6, xmm6
	cvtsi2sd	xmm6, DWORD PTR -24[rbp]
	movq	rax, xmm6
	movsd	xmm0, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm3, QWORD PTR -40[rbp]
	ucomisd	xmm3, xmm0
	jp	.L5
	ucomisd	xmm3, xmm0
	jne	.L5
	mov	DWORD PTR -4[rbp], 1
	jmp	.L4
.L5:
	pxor	xmm7, xmm7
	cvtsi2sd	xmm7, DWORD PTR -24[rbp]
	movq	rax, xmm7
	movsd	xmm0, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	QWORD PTR -40[rbp], xmm0
	pxor	xmm5, xmm5
	cvtsi2sd	xmm5, DWORD PTR -28[rbp]
	movq	rax, xmm5
	movsd	xmm0, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movapd	xmm4, xmm0
	addsd	xmm4, QWORD PTR -40[rbp]
	movsd	QWORD PTR -40[rbp], xmm4
	pxor	xmm7, xmm7
	cvtsi2sd	xmm7, DWORD PTR -20[rbp]
	movq	rax, xmm7
	movsd	xmm0, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm4, QWORD PTR -40[rbp]
	ucomisd	xmm4, xmm0
	jp	.L4
	ucomisd	xmm4, xmm0
	jne	.L4
	mov	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	pytagoras, .-pytagoras
	.section	.rodata
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"right"
.LC3:
	.string	"wrong"
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -12[rbp]
	lea	rdx, -16[rbp]
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L13
.L17:
	mov	edx, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	pytagoras
	test	eax, eax
	je	.L14
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L15
.L14:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L15:
	lea	rcx, -12[rbp]
	lea	rdx, -16[rbp]
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L13:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jne	.L17
.L16:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1073741824
	.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	"577679.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_dcmpeq
	.align	2
	.global	pytagoras
	.syntax unified
	.arm
	.fpu softvfp
	.type	pytagoras, %function
pytagoras:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L4
.L12:
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L4
.L13:
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	mov	r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	pytagoras, .-pytagoras
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d %d\000"
	.align	2
.LC1:
	.ascii	"right\000"
	.align	2
.LC2:
	.ascii	"wrong\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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	sub	r2, fp, #16
	sub	r1, fp, #20
	ldr	r0, .L22+4
	bl	__isoc99_scanf
	b	.L15
.L19:
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r0, r3
	bl	pytagoras
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L22+8
	bl	puts
	b	.L17
.L16:
	ldr	r0, .L22+12
	bl	puts
.L17:
	sub	r3, fp, #12
	sub	r2, fp, #16
	sub	r1, fp, #20
	ldr	r0, .L22+4
	bl	__isoc99_scanf
.L15:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L19
.L18:
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
