// File: /workspace/github_cpp_makefile_star2_O2/hyrise[P]sql-parser/src/util/sqlhelper.cpp
// Function: hsql::operator<<(std::ostream&, hsql::DatetimeField const&)
std::ostream& operator<<(std::ostream& os, const DatetimeField& datetime) {
  static const std::map<const DatetimeField, const std::string> operatorToToken = {
      {kDatetimeNone, "None"}, {kDatetimeSecond, "SECOND"}, {kDatetimeMinute, "MINUTE"}, {kDatetimeHour, "HOUR"},
      {kDatetimeDay, "DAY"},   {kDatetimeMonth, "MONTH"},   {kDatetimeYear, "YEAR"}};

  const auto found = operatorToToken.find(datetime);
  if (found == operatorToToken.cend()) {
    return os << static_cast<uint64_t>(datetime);
  } else {
    return os << (*found).second;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rsi, %r12
movq %rdi, %r15
movb 0x1b4d1(%rip), %al      # 0x3fe00
testb %al, %al
je 0x2497a
leaq 0x1b496(%rip), %rdi     # 0x3fdd0
movq %r12, %rsi
callq 0x17320
leaq 0x1b48f(%rip), %rcx     # 0x3fdd8
cmpq %rcx, %rax
je 0x2495f
addq $0x28, %rax
movq %r15, %rdi
movq %rax, %rsi
callq 0x16ae0
jmp 0x2496b
movl (%r12), %esi
movq %r15, %rdi
callq 0x16840
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1b47f(%rip), %rdi     # 0x3fe00
callq 0x17860
testl %eax, %eax
je 0x24933
leaq 0x1c(%rsp), %rsi
andl $0x0, (%rsi)
leaq 0x11d58(%rip), %rdx     # 0x366f1
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x16ce0
leaq 0x48(%rsp), %r14
leaq 0x18(%rsp), %rsi
movl $0x1, (%rsi)
leaq 0x5a25(%rip), %rdx      # 0x2a3e2
movq %r14, %rdi
callq 0x178e0
leaq 0x70(%rsp), %r14
leaq 0x14(%rsp), %rsi
movl $0x2, (%rsi)
leaq 0x5a0d(%rip), %rdx      # 0x2a3e9
movq %r14, %rdi
callq 0x178e0
leaq 0x98(%rsp), %r14
leaq 0x10(%rsp), %rsi
movl $0x3, (%rsi)
leaq 0x59f2(%rip), %rdx      # 0x2a3f0
movq %r14, %rdi
callq 0x16ce0
leaq 0xc0(%rsp), %r14
leaq 0xc(%rsp), %rsi
movl $0x4, (%rsi)
leaq 0x59d5(%rip), %rdx      # 0x2a3f5
movq %r14, %rdi
callq 0x17500
leaq 0xe8(%rsp), %r14
leaq 0x8(%rsp), %rsi
movl $0x5, (%rsi)
leaq 0x59b7(%rip), %rdx      # 0x2a3f9
movq %r14, %rdi
callq 0x16320
leaq 0x110(%rsp), %r14
leaq 0x4(%rsp), %rsi
movl $0x6, (%rsi)
leaq 0x599b(%rip), %rdx      # 0x2a3ff
movq %r14, %rdi
callq 0x16ce0
leaq 0x1b35d(%rip), %rdi     # 0x3fdd0
leaq 0x20(%rsp), %rsi
pushq $0x7
popq %rdx
leaq 0x3(%rsp), %rcx
leaq 0x2(%rsp), %r8
callq 0x170e0
movl $0xf8, %ebx
leaq (%rsp,%rbx), %rdi
addq $0x20, %rdi
callq 0x164d0
addq $-0x28, %rbx
cmpq $-0x20, %rbx
jne 0x24a8f
movq 0x1a4cb(%rip), %rdi     # 0x3ef78
leaq 0x1b31c(%rip), %rsi     # 0x3fdd0
leaq 0x1b285(%rip), %rdx     # 0x3fd40
callq 0x16ab0
leaq 0x1b339(%rip), %rdi     # 0x3fe00
callq 0x167e0
jmp 0x24933
movq %rax, %r15
movl $0xf8, %r12d
leaq (%rsp,%r12), %rdi
addq $0x20, %rdi
callq 0x164d0
addq $-0x28, %r12
cmpq $-0x20, %r12
jne 0x24ada
movb $0x1, %al
jmp 0x24b04
jmp 0x24aff
jmp 0x24aff
jmp 0x24aff
jmp 0x24aff
jmp 0x24aff
movq %rax, %r15
xorl %eax, %eax
cmpq %r14, %rbx
je 0x24b2a
testb %al, %al
jne 0x24b2a
leaq -0x28(%r14), %r12
addq $-0x20, %r14
movq %r14, %rdi
callq 0x164d0
movq %r12, %r14
cmpq %rbx, %r12
jne 0x24b0d
jmp 0x24b2a
movq %rax, %r15
leaq 0x1b2cf(%rip), %rdi     # 0x3fe00
callq 0x167c0
movq %r15, %rdi
callq 0x17790