	.file	"199753.c"
	.intel_syntax noprefix
	.text
	.globl	top
	.data
	.align 4
	.type	top, @object
	.size	top, 4
top:
	.long	-1
	.globl	arr
	.bss
	.align 32
	.type	arr, @object
	.size	arr, 80
arr:
	.zero	80
	.section	.rodata
	.align 8
.LC0:
	.string	"enter the two number whose gcd is to be found using euclid algorithm"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d = %d *%d + %d"
.LC3:
	.string	"\n%d = %d *%d + %d"
.LC4:
	.string	"\ngcd of two function is %d"
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdx, -28[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jns	.L2
	mov	eax, DWORD PTR -32[rbp]
	neg	eax
	mov	DWORD PTR -32[rbp], eax
.L2:
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jns	.L3
	mov	eax, DWORD PTR -28[rbp]
	neg	eax
	mov	DWORD PTR -28[rbp], eax
.L3:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	cmp	edx, eax
	cmovge	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	cmp	edx, eax
	cmovle	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	mov	DWORD PTR -24[rbp], edx
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	esi, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	mov	eax, 0
	call	stack
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	mov	eax, 0
	call	stack
	jmp	.L4
.L5:
	mov	eax, 0
	call	pop
	mov	DWORD PTR -20[rbp], eax
	mov	eax, 0
	call	pop
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	mov	DWORD PTR -24[rbp], edx
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	esi, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	mov	eax, 0
	call	stack
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	mov	eax, 0
	call	stack
.L4:
	cmp	DWORD PTR -24[rbp], 0
	jg	.L5
	mov	eax, 0
	call	pop
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	getch@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	stack
	.type	stack, @function
stack:
.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	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	eax, DWORD PTR top[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, arr[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	stack, .-stack
	.globl	pop
	.type	pop, @function
pop:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR top[rip]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR top[rip]
	sub	eax, 1
	mov	DWORD PTR top[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	pop, .-pop
	.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	"199753.c"
	.text
	.global	top
	.data
	.align	2
	.type	top, %object
	.size	top, 4
top:
	.word	-1
	.comm	arr,80,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"enter the two number whose gcd is to be found using"
	.ascii	" euclid algorithm\000"
	.align	2
.LC1:
	.ascii	"%d%d\000"
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.align	2
.LC2:
	.ascii	"%d = %d *%d + %d\000"
	.align	2
.LC3:
	.ascii	"\012%d = %d *%d + %d\000"
	.align	2
.LC4:
	.ascii	"\012gcd of two function is %d\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L8+4
	bl	puts
	sub	r2, fp, #28
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L8+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L2
	ldr	r3, [fp, #-32]
	rsb	r3, r3, #0
	str	r3, [fp, #-32]
.L2:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L3
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #0
	str	r3, [fp, #-28]
.L3:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L8+12
	bl	printf
	ldr	r0, [fp, #-24]
	bl	stack
	ldr	r0, [fp, #-16]
	bl	stack
	b	.L4
.L5:
	bl	pop
	str	r0, [fp, #-20]
	bl	pop
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L8+16
	bl	printf
	ldr	r0, [fp, #-24]
	bl	stack
	ldr	r0, [fp, #-16]
	bl	stack
.L4:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L5
	bl	pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+20
	bl	printf
	bl	getch
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.align	2
	.global	stack
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack, %function
stack:
	@ 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]
	ldr	r3, .L11
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11
	str	r3, [r2]
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r1, .L11+4
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	top
	.word	arr
	.size	stack, .-stack
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L15
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L15
	str	r3, [r2]
	ldr	r2, .L15+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L16:
	.align	2
.L15:
	.word	top
	.word	arr
	.size	pop, .-pop
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
