	.file	"130948.c"
	.intel_syntax noprefix
	.text
	.globl	gcd
	.type	gcd, @function
gcd:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -8[rbp], 0
	jne	.L2
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	gcd
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gcd, .-gcd
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d / %d %c %d / %d"
.LC2:
	.string	"%d/%d = %d/%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L5
.L10:
	lea	rdi, -36[rbp]
	lea	rsi, -28[rbp]
	lea	rcx, -41[rbp]
	lea	rdx, -40[rbp]
	lea	rax, -32[rbp]
	mov	r9, rdi
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -41[rbp]
	movsx	eax, al
	cmp	eax, 47
	je	.L6
	cmp	eax, 47
	jg	.L7
	cmp	eax, 45
	je	.L8
	cmp	eax, 45
	jg	.L7
	cmp	eax, 42
	je	.L9
	cmp	eax, 43
	jne	.L7
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, edx
	imul	ecx, eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, edx
	add	eax, ecx
	mov	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L7
.L8:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, edx
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -40[rbp]
	imul	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L7
.L9:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L7
.L6:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, edx
	mov	DWORD PTR -20[rbp], eax
	nop
.L7:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	gcd
	cdq
	xor	eax, edx
	mov	DWORD PTR -12[rbp], eax
	sub	DWORD PTR -12[rbp], edx
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -12[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -16[rbp]
	cdq
	idiv	DWORD PTR -12[rbp]
	mov	ecx, eax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	mov	DWORD PTR -24[rbp], eax
.L5:
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	jg	.L10
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"130948.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	gcd
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcd, %function
gcd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-8]
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	gcd
	mov	r3, r0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	gcd, .-gcd
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d / %d %c %d / %d\000"
	.global	__aeabi_idiv
	.align	2
.LC2:
	.ascii	"%d/%d = %d/%d\012\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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L15+4
	bl	__isoc99_scanf
	b	.L5
.L12:
	sub	r0, fp, #49
	sub	r2, fp, #48
	sub	r1, fp, #40
	sub	r3, fp, #44
	str	r3, [sp, #4]
	sub	r3, fp, #36
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-49]	@ zero_extendqisi2
	sub	r3, r3, #42
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L11
	.word	.L10
	.word	.L6
	.word	.L9
	.word	.L6
	.word	.L7
.L10:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-48]
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	str	r3, [fp, #-28]
	b	.L6
.L9:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-48]
	mul	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	str	r3, [fp, #-28]
	b	.L6
.L11:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	str	r3, [fp, #-28]
	b	.L6
.L7:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	str	r3, [fp, #-28]
	nop
.L6:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	gcd
	mov	r3, r0
	cmp	r3, #0
	rsblt	r3, r3, #0
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r4
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, .L15+12
	bl	printf
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L5:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L12
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.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
