	.file	"206844.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter x and y where x + iy is the first complex number:"
.LC1:
	.string	"%d%d"
	.align 8
.LC2:
	.string	"Enter c and d where c + id is the second complex number:"
.LC3:
	.string	"Sum: %d + i%d\n"
.LC4:
	.string	"Sum: %d %di\n"
.LC5:
	.string	"Difference: %d + %di\n"
.LC6:
	.string	"Difference: %d %di\n"
.LC7:
	.string	"Product: %d + %di\n"
.LC8:
	.string	"Product: %d %di\n"
.LC9:
	.string	"Error!"
.LC10:
	.string	"Division: %d + i%d\n"
.LC11:
	.string	"Division: %d %di\n"
.LC12:
	.string	"Division: %d + %d/%di\n"
.LC13:
	.string	"Division: %d %d/%di\n"
.LC14:
	.string	"Division: %d/%d + %di\n"
.LC15:
	.string	"Division: %d/%d + %d/%di\n"
.LC16:
	.string	"Division: %d/%d %d/%di\n"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	lea	rdx, 4[rax]
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -24[rbp]
	lea	rdx, 4[rax]
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	js	.L2
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -24[rbp]
	sub	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -20[rbp]
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	js	.L4
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, edx
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -20[rbp]
	imul	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, edx
	imul	ecx, eax
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, edx
	add	eax, ecx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	js	.L6
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L6:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jne	.L8
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L9
.L8:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, edx
	imul	ecx, eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, edx
	add	eax, ecx
	mov	DWORD PTR -44[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, edx
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -20[rbp]
	imul	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -40[rbp], eax
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -24[rbp]
	imul	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	test	eax, eax
	js	.L11
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -44[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	edx, ecx
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -44[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	edx, ecx
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -44[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	eax, edx
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	test	eax, eax
	js	.L14
	mov	eax, DWORD PTR -44[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	esi, eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L14:
	mov	eax, DWORD PTR -44[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	esi, eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L13:
	mov	eax, DWORD PTR -44[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	eax, edx
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	test	eax, eax
	js	.L17
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	ecx, eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L17:
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	ecx, eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L16:
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	test	eax, eax
	js	.L19
	mov	esi, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L19:
	mov	esi, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"206844.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter x and y where x + iy is the first complex num"
	.ascii	"ber:\000"
	.align	2
.LC1:
	.ascii	"%d%d\000"
	.align	2
.LC2:
	.ascii	"Enter c and d where c + id is the second complex nu"
	.ascii	"mber:\000"
	.align	2
.LC3:
	.ascii	"Sum: %d + i%d\012\000"
	.align	2
.LC4:
	.ascii	"Sum: %d %di\012\000"
	.align	2
.LC5:
	.ascii	"Difference: %d + %di\012\000"
	.align	2
.LC6:
	.ascii	"Difference: %d %di\012\000"
	.align	2
.LC7:
	.ascii	"Product: %d + %di\012\000"
	.align	2
.LC8:
	.ascii	"Product: %d %di\012\000"
	.align	2
.LC9:
	.ascii	"Error!\000"
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.align	2
.LC10:
	.ascii	"Division: %d + i%d\012\000"
	.align	2
.LC11:
	.ascii	"Division: %d %di\012\000"
	.align	2
.LC12:
	.ascii	"Division: %d + %d/%di\012\000"
	.align	2
.LC13:
	.ascii	"Division: %d %d/%di\012\000"
	.align	2
.LC14:
	.ascii	"Division: %d/%d + %di\012\000"
	.align	2
.LC15:
	.ascii	"Division: %d/%d + %d/%di\012\000"
	.align	2
.LC16:
	.ascii	"Division: %d/%d %d/%di\012\000"
	.align	2
.LC17:
	.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, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L22+4
	bl	puts
	sub	r3, fp, #40
	add	r2, r3, #4
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L22+8
	bl	__isoc99_scanf
	ldr	r0, .L22+12
	bl	puts
	sub	r3, fp, #32
	add	r2, r3, #4
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L22+8
	bl	__isoc99_scanf
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L2
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L22+16
	bl	printf
	b	.L3
.L2:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L22+20
	bl	printf
.L3:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L4
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L22+24
	bl	printf
	b	.L5
.L4:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L22+28
	bl	printf
.L5:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-28]
	mul	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mul	r2, r3, r2
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-28]
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L6
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L22+32
	bl	printf
	b	.L7
.L6:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L22+36
	bl	printf
.L7:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L22+40
	bl	puts
	b	.L9
.L8:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-28]
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mul	r2, r3, r2
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-28]
	mul	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	mul	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-52]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L10
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	__aeabi_idiv
	mov	r3, r0
	cmp	r3, #0
	blt	.L11
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-52]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L22+44
	bl	printf
	b	.L9
.L11:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-52]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L22+48
	bl	printf
	b	.L9
.L10:
	ldr	r3, [fp, #-52]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L13
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	__aeabi_idiv
	mov	r3, r0
	cmp	r3, #0
	blt	.L14
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-52]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	ldr	r0, .L22+52
	bl	printf
	b	.L9
.L14:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-52]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	ldr	r0, .L22+56
	bl	printf
	b	.L9
.L13:
	ldr	r3, [fp, #-52]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L16
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	__aeabi_idiv
	mov	r3, r0
	cmp	r3, #0
	blt	.L17
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	__aeabi_idiv
	mov	r3, r0
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-52]
	ldr	r0, .L22+60
	bl	printf
	b	.L9
.L17:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	__aeabi_idiv
	mov	r3, r0
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-52]
	ldr	r0, .L22+56
	bl	printf
	b	.L9
.L16:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	__aeabi_idiv
	mov	r3, r0
	cmp	r3, #0
	blt	.L19
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-52]
	ldr	r0, .L22+64
	bl	printf
	b	.L9
.L19:
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-52]
	ldr	r0, .L22+68
	bl	printf
.L9:
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC17
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
