	.file	"692949.c"
	.intel_syntax noprefix
	.text
	.globl	value
	.type	value, @function
value:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	sub	eax, 67
	cmp	eax, 21
	ja	.L13
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L13-.L4
	.long	.L13-.L4
	.long	.L13-.L4
	.long	.L13-.L4
	.long	.L8-.L4
	.long	.L13-.L4
	.long	.L13-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L13-.L4
	.long	.L13-.L4
	.long	.L13-.L4
	.long	.L13-.L4
	.long	.L13-.L4
	.long	.L13-.L4
	.long	.L13-.L4
	.long	.L13-.L4
	.long	.L5-.L4
	.long	.L13-.L4
	.long	.L3-.L4
	.text
.L8:
	mov	eax, 1
	jmp	.L11
.L5:
	mov	eax, 5
	jmp	.L11
.L3:
	mov	eax, 10
	jmp	.L11
.L7:
	mov	eax, 50
	jmp	.L11
.L10:
	mov	eax, 100
	jmp	.L11
.L9:
	mov	eax, 500
	jmp	.L11
.L6:
	mov	eax, 1000
	jmp	.L11
.L13:
	nop
	mov	eax, -1
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	value, .-value
	.section	.rodata
.LC0:
	.string	"%c%c"
	.text
	.globl	printRoman
	.type	printRoman, @function
printRoman:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 4
	mov	DWORD PTR -56[rbp], 5
	mov	DWORD PTR -52[rbp], 9
	mov	DWORD PTR -48[rbp], 10
	mov	DWORD PTR -44[rbp], 40
	mov	DWORD PTR -40[rbp], 50
	mov	DWORD PTR -36[rbp], 90
	mov	DWORD PTR -32[rbp], 100
	mov	DWORD PTR -28[rbp], 400
	mov	DWORD PTR -24[rbp], 500
	mov	DWORD PTR -20[rbp], 900
	mov	DWORD PTR -16[rbp], 1000
	mov	WORD PTR -96[rbp], 8265
	mov	WORD PTR -94[rbp], 22089
	mov	WORD PTR -92[rbp], 8278
	mov	WORD PTR -90[rbp], 22601
	mov	WORD PTR -88[rbp], 8280
	mov	WORD PTR -86[rbp], 19544
	mov	WORD PTR -84[rbp], 8268
	mov	WORD PTR -82[rbp], 17240
	mov	WORD PTR -80[rbp], 8259
	mov	WORD PTR -78[rbp], 17475
	mov	WORD PTR -76[rbp], 8260
	mov	WORD PTR -74[rbp], 19779
	mov	WORD PTR -72[rbp], 8269
	mov	DWORD PTR -104[rbp], 12
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	esi, DWORD PTR -64[rbp+rax*4]
	mov	eax, DWORD PTR -116[rbp]
	cdq
	idiv	esi
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	ecx, DWORD PTR -64[rbp+rax*4]
	mov	eax, DWORD PTR -116[rbp]
	cdq
	idiv	ecx
	mov	DWORD PTR -116[rbp], edx
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	movzx	eax, BYTE PTR -95[rbp+rax*2]
	movsx	edx, al
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	movzx	eax, BYTE PTR -96[rbp+rax*2]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	mov	eax, DWORD PTR -100[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -100[rbp], edx
	test	eax, eax
	jne	.L17
	sub	DWORD PTR -104[rbp], 1
.L15:
	cmp	DWORD PTR -116[rbp], 0
	jg	.L18
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printRoman, .-printRoman
	.globl	roman_to_decimal
	.type	roman_to_decimal, @function
roman_to_decimal:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -32[rbp], rdi
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L21
.L24:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	value
	mov	ebx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	value
	cmp	ebx, eax
	jl	.L22
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	value
	add	DWORD PTR -16[rbp], eax
	jmp	.L23
.L22:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	value
	mov	ebx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	value
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	add	DWORD PTR -16[rbp], eax
	add	DWORD PTR -12[rbp], 1
.L23:
	add	DWORD PTR -12[rbp], 1
.L21:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L24
	mov	eax, DWORD PTR -16[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	roman_to_decimal, .-roman_to_decimal
	.section	.rodata
	.align 8
.LC1:
	.string	"Provide two roman numbers to sum: "
.LC2:
	.string	"%s %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 2040
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2036[rbp], 0
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdx, -1024[rbp]
	lea	rax, -2032[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -2032[rbp]
	mov	rdi, rax
	call	roman_to_decimal
	mov	ebx, eax
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	roman_to_decimal
	add	eax, ebx
	mov	DWORD PTR -2036[rbp], eax
	mov	eax, DWORD PTR -2036[rbp]
	mov	edi, eax
	call	printRoman
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"692949.c"
	.text
	.align	2
	.global	value
	.syntax unified
	.arm
	.fpu softvfp
	.type	value, %function
value:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #67
	cmp	r3, #21
	ldrls	pc, [pc, r3, asl #2]
	b	.L13
.L4:
	.word	.L10
	.word	.L9
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L8
	.word	.L13
	.word	.L13
	.word	.L7
	.word	.L6
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L5
	.word	.L13
	.word	.L3
.L8:
	mov	r3, #1
	b	.L11
.L5:
	mov	r3, #5
	b	.L11
.L3:
	mov	r3, #10
	b	.L11
.L7:
	mov	r3, #50
	b	.L11
.L10:
	mov	r3, #100
	b	.L11
.L9:
	mov	r3, #500
	b	.L11
.L6:
	mov	r3, #1000
	b	.L11
.L13:
	nop
	mvn	r3, #0
.L11:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	value, .-value
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%c%c\000"
	.align	2
.LC0:
	.word	1
	.word	4
	.word	5
	.word	9
	.word	10
	.word	40
	.word	50
	.word	90
	.word	100
	.word	400
	.word	500
	.word	900
	.word	1000
	.align	2
.LC1:
	.ascii	"I "
	.ascii	"IV"
	.ascii	"V "
	.ascii	"IX"
	.ascii	"X "
	.ascii	"XL"
	.ascii	"L "
	.ascii	"XC"
	.ascii	"C "
	.ascii	"CD"
	.ascii	"D "
	.ascii	"CM"
	.ascii	"M "
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printRoman
	.syntax unified
	.arm
	.fpu softvfp
	.type	printRoman, %function
printRoman:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L20+4
	sub	ip, fp, #60
	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]
	ldr	r3, .L20+8
	sub	ip, fp, #88
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	strh	r2, [ip]	@ movhi
	mov	r3, #12
	str	r3, [fp, #-96]
	b	.L15
.L18:
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-56]
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-56]
	ldr	r3, [fp, #-104]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-104]
	b	.L16
.L17:
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-84]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-83]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L20+12
	bl	printf
.L16:
	ldr	r3, [fp, #-92]
	sub	r2, r3, #1
	str	r2, [fp, #-92]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-96]
	sub	r3, r3, #1
	str	r3, [fp, #-96]
.L15:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bgt	.L18
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	printRoman, .-printRoman
	.align	2
	.global	roman_to_decimal
	.syntax unified
	.arm
	.fpu softvfp
	.type	roman_to_decimal, %function
roman_to_decimal:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L23
.L26:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	value
	mov	r4, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	value
	mov	r3, r0
	cmp	r4, r3
	blt	.L24
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	value
	mov	r2, r0
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	str	r3, [fp, #-20]
	b	.L25
.L24:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	value
	mov	r4, r0
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	value
	mov	r3, r0
	sub	r3, r4, r3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L25:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L23:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	roman_to_decimal, .-roman_to_decimal
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Provide two roman numbers to sum: \000"
	.align	2
.LC5:
	.ascii	"%s %s\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2008
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2000
	sub	sp, sp, #12
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2020]
	ldr	r0, .L31+4
	bl	puts
	sub	r2, fp, #1016
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L31+8
	bl	__isoc99_scanf
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	roman_to_decimal
	mov	r4, r0
	sub	r3, fp, #1016
	mov	r0, r3
	bl	roman_to_decimal
	mov	r3, r0
	add	r3, r4, r3
	str	r3, [fp, #-2020]
	ldr	r0, [fp, #-2020]
	bl	printRoman
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
