	.file	"827724.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Please enter the number (1-1024) you wish to be represented in Roman Numerals"
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Only numbers between 1 and 1024 are accepted as input."
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jle	.L2
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1024
	jg	.L2
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	convertRoman
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L4
	jmp	.L5
.L2:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L5:
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.string	"The number %d will be represented in Roman Numerals.\n"
	.align 8
.LC4:
	.string	"The inputted number in Roman Numerals is: %s\n"
	.text
	.globl	convertRoman
	.type	convertRoman, @function
convertRoman:
.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -148[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	WORD PTR -128[rbp], 77
	mov	BYTE PTR -126[rbp], 0
	mov	WORD PTR -125[rbp], 19779
	mov	BYTE PTR -123[rbp], 0
	mov	WORD PTR -122[rbp], 68
	mov	BYTE PTR -120[rbp], 0
	mov	WORD PTR -119[rbp], 17475
	mov	BYTE PTR -117[rbp], 0
	mov	WORD PTR -116[rbp], 67
	mov	BYTE PTR -114[rbp], 0
	mov	WORD PTR -113[rbp], 17240
	mov	BYTE PTR -111[rbp], 0
	mov	WORD PTR -110[rbp], 76
	mov	BYTE PTR -108[rbp], 0
	mov	WORD PTR -107[rbp], 19544
	mov	BYTE PTR -105[rbp], 0
	mov	WORD PTR -104[rbp], 88
	mov	BYTE PTR -102[rbp], 0
	mov	WORD PTR -101[rbp], 22601
	mov	BYTE PTR -99[rbp], 0
	mov	WORD PTR -98[rbp], 86
	mov	BYTE PTR -96[rbp], 0
	mov	WORD PTR -95[rbp], 22089
	mov	BYTE PTR -93[rbp], 0
	mov	WORD PTR -92[rbp], 73
	mov	BYTE PTR -90[rbp], 0
	mov	DWORD PTR -80[rbp], 1000
	mov	DWORD PTR -76[rbp], 900
	mov	DWORD PTR -72[rbp], 500
	mov	DWORD PTR -68[rbp], 400
	mov	DWORD PTR -64[rbp], 100
	mov	DWORD PTR -60[rbp], 90
	mov	DWORD PTR -56[rbp], 50
	mov	DWORD PTR -52[rbp], 40
	mov	DWORD PTR -48[rbp], 10
	mov	DWORD PTR -44[rbp], 9
	mov	DWORD PTR -40[rbp], 5
	mov	DWORD PTR -36[rbp], 4
	mov	DWORD PTR -32[rbp], 1
	mov	BYTE PTR -23[rbp], 0
	mov	DWORD PTR -136[rbp], 0
	mov	eax, DWORD PTR -148[rbp]
	mov	DWORD PTR -132[rbp], eax
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	mov	edx, DWORD PTR -80[rbp+rax*4]
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, edx
	test	eax, eax
	js	.L8
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	mov	eax, DWORD PTR -80[rbp+rax*4]
	sub	DWORD PTR -132[rbp], eax
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rcx+rax]
	lea	rax, -23[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	jmp	.L7
.L8:
	add	DWORD PTR -136[rbp], 1
.L7:
	cmp	DWORD PTR -132[rbp], 0
	jne	.L9
	lea	rax, -23[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	convertRoman, .-convertRoman
	.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	"827724.c"
	.text
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Please enter the number (1-1024) you wish to be rep"
	.ascii	"resented in Roman Numerals\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Only numbers between 1 and 1024 are accepted as inp"
	.ascii	"ut.\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 = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	ldr	r0, .L6+8
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L6+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [fp, #-12]
	cmp	r3, #1024
	bgt	.L2
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	convertRoman
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L4
	b	.L5
.L2:
	ldr	r0, .L6+16
	bl	puts
	mov	r0, #0
	bl	exit
.L5:
	bl	__stack_chk_fail
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC5
	.word	stdout
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"The number %d will be represented in Roman Numerals"
	.ascii	".\012\000"
	.align	2
.LC7:
	.ascii	"The inputted number in Roman Numerals is: %s\012\000"
	.align	2
.LC0:
	.ascii	"M\000"
	.space	1
	.ascii	"CM\000"
	.ascii	"D\000"
	.space	1
	.ascii	"CD\000"
	.ascii	"C\000"
	.space	1
	.ascii	"XC\000"
	.ascii	"L\000"
	.space	1
	.ascii	"XL\000"
	.ascii	"X\000"
	.space	1
	.ascii	"IX\000"
	.ascii	"V\000"
	.space	1
	.ascii	"IV\000"
	.ascii	"I\000"
	.space	1
	.align	2
.LC1:
	.word	1000
	.word	900
	.word	500
	.word	400
	.word	100
	.word	90
	.word	50
	.word	40
	.word	10
	.word	9
	.word	5
	.word	4
	.word	1
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	convertRoman
	.syntax unified
	.arm
	.fpu softvfp
	.type	convertRoman, %function
convertRoman:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-128]
	ldr	r0, .L13+4
	bl	printf
	ldr	r3, .L13+8
	sub	ip, fp, #116
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	str	r0, [ip]
	add	ip, ip, #4
	strh	r1, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r1, #16
	strb	r3, [ip]
	ldr	r3, .L13+12
	sub	ip, fp, #76
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #0
	strb	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-120]
	b	.L9
.L11:
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-72]
	ldr	r2, [fp, #-120]
	sub	r3, r2, r3
	cmp	r3, #0
	blt	.L10
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-72]
	ldr	r2, [fp, #-120]
	sub	r3, r2, r3
	str	r3, [fp, #-120]
	sub	r1, fp, #116
	ldr	r2, [fp, #-124]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r2, r1, r3
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	b	.L9
.L10:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L9:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L13+16
	bl	printf
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC7
	.size	convertRoman, .-convertRoman
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
