// File: tylerkaraszewski[P]Argyle/Config.cpp
// Function: Config::parseLine(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Config::parseLine(string line)
{
  size_t front = line.find_first_not_of(S_WHITESPACE);
  if (front == line.npos)
  {
    return;
  }
  line = line.substr(front);
  line = line.substr(0, line.find_first_of("#"));
  line = line.substr(0, line.find_last_not_of(S_WHITESPACE) + 1);
  if (line.empty())
  {
    return;
  }

  // Now leading/trailing whitespace and comments are removed.

  string key;
  string value;
  size_t ws = line.find_first_of(S_WHITESPACE);
  if (ws == line.npos)
  {
    key = line;
  }
  else
  {
    key = line.substr(0, ws);
    value = line.substr(line.find_first_not_of(S_WHITESPACE, ws));
  }

  if ((key == S_KEY_ACCESS_FILE_PATH) ||
      (key == S_KEY_ERROR_FILE_PATH) ||
      (key == S_KEY_RUN_AS_USERNAME) ||
      (key == S_KEY_BASE_PATH)
  )
  {
    m_configValues.erase(key);
    m_configValues.insert(pair<string, string>(key, value));
  }
  else if(key == S_KEY_GONE_PATH)
  {
    m_configValues.insert(pair<string, string>(key, value));
  }
}

// Assembly:
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, 0x30(%rsp)
movq %rdi, %rax
movq 0x30(%rsp), %rdi
movq %rdi, 0x38(%rsp)
movq %rax, 0x1e0(%rsp)
movq %rdi, 0x1d8(%rsp)
movq 0x1e0(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0x7ceb(%rip), %rsi      # 0x19538
xorl %eax, %eax
movl %eax, %edx
callq 0x4310
movq %rax, 0x1d0(%rsp)
cmpq $-0x1, 0x1d0(%rsp)
jne 0x1186e
jmp 0x11c29
movq 0x38(%rsp), %rsi
movq 0x1d0(%rsp), %rdx
leaq 0x1b0(%rsp), %rdi
movq $-0x1, %rcx
callq 0x43d0
movq 0x38(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
callq 0x44d0
leaq 0x1b0(%rsp), %rdi
callq 0x4788
movq 0x38(%rsp), %rdi
leaq 0x195f(%rip), %rsi      # 0x13219
xorl %eax, %eax
movl %eax, %edx
callq 0x41f0
movq 0x38(%rsp), %rsi
movq %rax, %rcx
leaq 0x190(%rsp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0x43d0
movq 0x38(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x44d0
leaq 0x190(%rsp), %rdi
callq 0x4788
movq 0x38(%rsp), %rdi
leaq 0x7c31(%rip), %rsi      # 0x19538
movq $-0x1, %rdx
callq 0x46f0
movq 0x38(%rsp), %rsi
movq %rax, %rcx
addq $0x1, %rcx
leaq 0x170(%rsp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0x43d0
movq 0x38(%rsp), %rdi
leaq 0x170(%rsp), %rsi
callq 0x44d0
leaq 0x170(%rsp), %rdi
callq 0x4788
movq 0x38(%rsp), %rdi
callq 0x4670
testb $0x1, %al
jne 0x1195f
jmp 0x11964
jmp 0x11c29
leaq 0x150(%rsp), %rdi
callq 0x4570
leaq 0x130(%rsp), %rdi
callq 0x4570
movq 0x38(%rsp), %rdi
leaq 0x7bae(%rip), %rsi      # 0x19538
xorl %eax, %eax
movl %eax, %edx
callq 0x4360
movq %rax, 0x128(%rsp)
cmpq $-0x1, 0x128(%rsp)
jne 0x119d8
movq 0x38(%rsp), %rsi
leaq 0x150(%rsp), %rdi
callq 0x4050
jmp 0x119ba
jmp 0x11a75
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x120(%rsp)
movl %eax, 0x11c(%rsp)
jmp 0x11c31
movq 0x38(%rsp), %rsi
movq 0x128(%rsp), %rcx
xorl %eax, %eax
movl %eax, %edx
leaq 0xf8(%rsp), %rdi
callq 0x43d0
jmp 0x119f8
leaq 0x150(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
movq %rsi, 0x28(%rsp)
callq 0x44d0
movq 0x28(%rsp), %rdi
callq 0x4788
movq 0x38(%rsp), %rdi
movq 0x128(%rsp), %rdx
leaq 0x7b08(%rip), %rsi      # 0x19538
callq 0x4310
movq 0x38(%rsp), %rsi
movq %rax, %rdx
leaq 0xd8(%rsp), %rdi
movq $-0x1, %rcx
callq 0x43d0
jmp 0x11a53
leaq 0x130(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x44d0
leaq 0xd8(%rsp), %rdi
callq 0x4788
leaq 0x150(%rsp), %rdi
leaq 0x7a14(%rip), %rsi      # 0x19498
callq 0x11e30
testb $0x1, %al
jne 0x11ada
leaq 0x150(%rsp), %rdi
leaq 0x7a1c(%rip), %rsi      # 0x194b8
callq 0x11e30
testb $0x1, %al
jne 0x11ada
leaq 0x150(%rsp), %rdi
leaq 0x7a24(%rip), %rsi      # 0x194d8
callq 0x11e30
testb $0x1, %al
jne 0x11ada
leaq 0x150(%rsp), %rdi
leaq 0x7a2c(%rip), %rsi      # 0x194f8
callq 0x11e30
testb $0x1, %al
jne 0x11ada
jmp 0x11b7d
movq 0x40(%rsp), %rdi
addq $0x20, %rdi
leaq 0x150(%rsp), %rsi
callq 0x11ed0
jmp 0x11af2
movq 0x40(%rsp), %rax
addq $0x20, %rax
movq %rax, 0x20(%rsp)
leaq 0x98(%rsp), %rdi
leaq 0x150(%rsp), %rsi
leaq 0x130(%rsp), %rdx
callq 0xb820
jmp 0x11b1f
movq 0x20(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0xb7f0
movq %rax, 0x18(%rsp)
jmp 0x11b38
movq 0x18(%rsp), %rax
movq %rax, 0x90(%rsp)
leaq 0x98(%rsp), %rdi
callq 0xb890
jmp 0x11c0f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x120(%rsp)
movl %eax, 0x11c(%rsp)
leaq 0x98(%rsp), %rdi
callq 0xb890
jmp 0x11c31
leaq 0x150(%rsp), %rdi
leaq 0x798c(%rip), %rsi      # 0x19518
callq 0x11e30
testb $0x1, %al
jne 0x11b97
jmp 0x11c0d
movq 0x40(%rsp), %rax
addq $0x20, %rax
movq %rax, 0x10(%rsp)
leaq 0x50(%rsp), %rdi
leaq 0x150(%rsp), %rsi
leaq 0x130(%rsp), %rdx
callq 0xb820
jmp 0x11bc1
movq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xb7f0
movq %rax, 0x8(%rsp)
jmp 0x11bd7
movq 0x8(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x50(%rsp), %rdi
callq 0xb890
jmp 0x11c0d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x120(%rsp)
movl %eax, 0x11c(%rsp)
leaq 0x50(%rsp), %rdi
callq 0xb890
jmp 0x11c31
jmp 0x11c0f
leaq 0x130(%rsp), %rdi
callq 0x4788
leaq 0x150(%rsp), %rdi
callq 0x4788
addq $0x1e8, %rsp            # imm = 0x1E8
retq
leaq 0x130(%rsp), %rdi
callq 0x4788
leaq 0x150(%rsp), %rdi
callq 0x4788
movq 0x120(%rsp), %rdi
callq 0x46b0
nopl (%rax,%rax)