// File: MUST-Quick-Fry[P]Process-Scheduler/scheduler.cpp
// Function: Project::Scheduler::normalizeCheck(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Scheduler::normalizeCheck(string cont)
{

    int arg_num = 0;

    for (int i = 0; i < cont.length(); ++i)
    {
        if (cont[i] == '\n')
        {

            if (cont[i - 1] == '\n')
            {
                if (cont[i - 2] == '\t')
                {
                    throw invalid_argument("Argument Error: Empty argument!");
                }
                continue;
            }

            if (cont[i - 1] == '\t')
            {
                throw invalid_argument("Argument Error: Empty argument!");
            }

            arg_num++;
            if (arg_num > 3)
            {
                throw invalid_argument("Argument Error: Job description file has redundant arguments!");
            }
            if (arg_num < 3)
            {
                throw invalid_argument("Argument Error: Job description file has less arguments!");
            }
            arg_num = 0;
        }
        if (cont[i] == '\t')
        {
            arg_num++;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rsi, -0x30(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x30(%rbp), %rdi
movslq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
callq 0x33a0
movq %rax, %rcx
movq -0x38(%rbp), %rax
cmpq %rcx, %rax
jae 0x8d12
movq -0x30(%rbp), %rdi
movslq -0x18(%rbp), %rsi
callq 0x34c0
movsbl (%rax), %eax
cmpl $0xa, %eax
jne 0x8ce4
movq -0x30(%rbp), %rdi
movl -0x18(%rbp), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0x34c0
movsbl (%rax), %eax
cmpl $0xa, %eax
jne 0x8bb8
movq -0x30(%rbp), %rdi
movl -0x18(%rbp), %eax
subl $0x2, %eax
movslq %eax, %rsi
callq 0x34c0
movsbl (%rax), %eax
cmpl $0x9, %eax
jne 0x8bb3
movl $0x10, %edi
callq 0x3120
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x40(%rbp)
leaq 0x10648(%rip), %rsi     # 0x191c3
callq 0x3490
jmp 0x8b82
movq -0x40(%rbp), %rdi
movq 0x1a453(%rip), %rsi     # 0x22fe0
movq 0x1a43c(%rip), %rdx     # 0x22fd0
callq 0x3430
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x31c0
jmp 0x8d18
jmp 0x8d04
movq -0x30(%rbp), %rdi
movl -0x18(%rbp), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0x34c0
movsbl (%rax), %eax
cmpl $0x9, %eax
jne 0x8c25
movl $0x10, %edi
callq 0x3120
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x48(%rbp)
leaq 0x105d6(%rip), %rsi     # 0x191c3
callq 0x3490
jmp 0x8bf4
movq -0x48(%rbp), %rdi
movq 0x1a3e1(%rip), %rsi     # 0x22fe0
movq 0x1a3ca(%rip), %rdx     # 0x22fd0
callq 0x3430
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x31c0
jmp 0x8d18
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
cmpl $0x3, -0x14(%rbp)
jle 0x8c87
movl $0x10, %edi
callq 0x3120
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x50(%rbp)
leaq 0x10594(%rip), %rsi     # 0x191e3
callq 0x3490
jmp 0x8c56
movq -0x50(%rbp), %rdi
movq 0x1a37f(%rip), %rsi     # 0x22fe0
movq 0x1a368(%rip), %rdx     # 0x22fd0
callq 0x3430
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x31c0
jmp 0x8d18
cmpl $0x3, -0x14(%rbp)
jge 0x8cdd
movl $0x10, %edi
callq 0x3120
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x58(%rbp)
leaq 0x10579(%rip), %rsi     # 0x19221
callq 0x3490
jmp 0x8caf
movq -0x58(%rbp), %rdi
movq 0x1a326(%rip), %rsi     # 0x22fe0
movq 0x1a30f(%rip), %rdx     # 0x22fd0
callq 0x3430
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x31c0
jmp 0x8d18
movl $0x0, -0x14(%rbp)
movq -0x30(%rbp), %rdi
movslq -0x18(%rbp), %rsi
callq 0x34c0
movsbl (%rax), %eax
cmpl $0x9, %eax
jne 0x8d02
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x8d04
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x8af2
addq $0x60, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x3450
nopw %cs:(%rax,%rax)