	.file	"161080392.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Scan in a number to be converted to a roman number"
.LC1:
	.string	"%d"
.LC2:
	.string	"CM"
.LC3:
	.string	"CD"
.LC4:
	.string	"XC"
.LC5:
	.string	"XL"
.LC6:
	.string	"IX"
.LC7:
	.string	"IV"
.LC8:
	.string	"pause"
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	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
	jmp	.L2
.L15:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 999
	jle	.L3
	mov	edi, 77
	call	putchar@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1000
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 899
	jle	.L4
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 900
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 499
	jle	.L5
	mov	edi, 68
	call	putchar@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 500
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 399
	jle	.L6
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 400
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 99
	jle	.L7
	mov	edi, 67
	call	putchar@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 100
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L7:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 89
	jle	.L8
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 90
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L8:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 49
	jle	.L9
	mov	edi, 76
	call	putchar@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 50
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L9:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 39
	jle	.L10
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 40
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L10:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 9
	jle	.L11
	mov	edi, 88
	call	putchar@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 10
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L11:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 8
	jle	.L12
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 9
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L12:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 4
	jle	.L13
	mov	edi, 86
	call	putchar@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 5
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L13:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 3
	jle	.L14
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 4
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L14:
	mov	edi, 73
	call	putchar@PLT
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
.L2:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jg	.L15
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	system@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"161080392.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Scan in a number to be converted to a roman number\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"CM\000"
	.align	2
.LC3:
	.ascii	"CD\000"
	.align	2
.LC4:
	.ascii	"XC\000"
	.align	2
.LC5:
	.ascii	"XL\000"
	.align	2
.LC6:
	.ascii	"IX\000"
	.align	2
.LC7:
	.ascii	"IV\000"
	.align	2
.LC8:
	.ascii	"pause\000"
	.align	2
.LC9:
	.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, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L18+4
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	b	.L2
.L15:
	ldr	r3, [fp, #-12]
	cmp	r3, #1000
	blt	.L3
	mov	r0, #77
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1000
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #900
	blt	.L4
	ldr	r0, .L18+12
	bl	printf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #900
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #500
	blt	.L5
	mov	r0, #68
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #500
	str	r3, [fp, #-12]
	b	.L2
.L5:
	ldr	r3, [fp, #-12]
	cmp	r3, #400
	blt	.L6
	ldr	r0, .L18+16
	bl	printf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #400
	str	r3, [fp, #-12]
	b	.L2
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #99
	ble	.L7
	mov	r0, #67
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #100
	str	r3, [fp, #-12]
	b	.L2
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #89
	ble	.L8
	ldr	r0, .L18+20
	bl	printf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #90
	str	r3, [fp, #-12]
	b	.L2
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #49
	ble	.L9
	mov	r0, #76
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #50
	str	r3, [fp, #-12]
	b	.L2
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #39
	ble	.L10
	ldr	r0, .L18+24
	bl	printf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #40
	str	r3, [fp, #-12]
	b	.L2
.L10:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L11
	mov	r0, #88
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #10
	str	r3, [fp, #-12]
	b	.L2
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #8
	ble	.L12
	ldr	r0, .L18+28
	bl	printf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #9
	str	r3, [fp, #-12]
	b	.L2
.L12:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L13
	mov	r0, #86
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #5
	str	r3, [fp, #-12]
	b	.L2
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L14
	ldr	r0, .L18+32
	bl	printf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #4
	str	r3, [fp, #-12]
	b	.L2
.L14:
	mov	r0, #73
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L15
	mov	r0, #10
	bl	putchar
	ldr	r0, .L18+36
	bl	system
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
