	.file	"36075731.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%c\n"
	.text
	.globl	romanToInt
	.type	romanToInt, @function
romanToInt:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L2
.L16:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -13[rbp], al
	movsx	eax, BYTE PTR -13[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	BYTE PTR -13[rbp], 73
	jne	.L3
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L4
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 86
	jne	.L5
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -8[rbp], 4
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L6
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -8[rbp], 9
	jmp	.L4
.L6:
	add	DWORD PTR -8[rbp], 1
	jmp	.L4
.L3:
	cmp	BYTE PTR -13[rbp], 86
	jne	.L7
	add	DWORD PTR -8[rbp], 5
	jmp	.L4
.L7:
	cmp	BYTE PTR -13[rbp], 88
	jne	.L8
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L4
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 76
	jne	.L9
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -8[rbp], 40
	jmp	.L4
.L9:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 67
	jne	.L10
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -8[rbp], 90
	jmp	.L4
.L10:
	add	DWORD PTR -8[rbp], 10
	jmp	.L4
.L8:
	cmp	BYTE PTR -13[rbp], 76
	jne	.L11
	add	DWORD PTR -8[rbp], 50
	jmp	.L4
.L11:
	cmp	BYTE PTR -13[rbp], 67
	jne	.L12
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L4
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 68
	jne	.L13
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -8[rbp], 400
	jmp	.L4
.L13:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 77
	jne	.L14
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -8[rbp], 900
	jmp	.L4
.L14:
	add	DWORD PTR -8[rbp], 100
	jmp	.L4
.L12:
	cmp	BYTE PTR -13[rbp], 68
	jne	.L15
	add	DWORD PTR -8[rbp], 500
	jmp	.L4
.L15:
	cmp	BYTE PTR -13[rbp], 77
	jne	.L4
	add	DWORD PTR -8[rbp], 1000
.L4:
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L16
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	romanToInt, .-romanToInt
	.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	"36075731.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c\012\000"
	.text
	.align	2
	.global	romanToInt
	.syntax unified
	.arm
	.fpu softvfp
	.type	romanToInt, %function
romanToInt:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L16:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L18
	bl	printf
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #73
	bne	.L3
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L4
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #86
	bne	.L5
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
	b	.L4
.L5:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L6
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #9
	str	r3, [fp, #-12]
	b	.L4
.L6:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L4
.L3:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #86
	bne	.L7
	ldr	r3, [fp, #-12]
	add	r3, r3, #5
	str	r3, [fp, #-12]
	b	.L4
.L7:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L8
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L4
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L9
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #40
	str	r3, [fp, #-12]
	b	.L4
.L9:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #67
	bne	.L10
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #90
	str	r3, [fp, #-12]
	b	.L4
.L10:
	ldr	r3, [fp, #-12]
	add	r3, r3, #10
	str	r3, [fp, #-12]
	b	.L4
.L8:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L11
	ldr	r3, [fp, #-12]
	add	r3, r3, #50
	str	r3, [fp, #-12]
	b	.L4
.L11:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #67
	bne	.L12
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L4
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #68
	bne	.L13
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #400
	str	r3, [fp, #-12]
	b	.L4
.L13:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #77
	bne	.L14
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #900
	str	r3, [fp, #-12]
	b	.L4
.L14:
	ldr	r3, [fp, #-12]
	add	r3, r3, #100
	str	r3, [fp, #-12]
	b	.L4
.L12:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #68
	bne	.L15
	ldr	r3, [fp, #-12]
	add	r3, r3, #500
	str	r3, [fp, #-12]
	b	.L4
.L15:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #77
	bne	.L4
	ldr	r3, [fp, #-12]
	add	r3, r3, #1000
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	romanToInt, .-romanToInt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
