// File: /workspace/github_cpp_makefile_star2_O3/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 0x19986(%rip), %al      # 0x3ba68
testb %al, %al
je 0x2214d
movq 0x1995b(%rip), %rcx     # 0x3ba48
movl (%r12), %esi
testq %rcx, %rcx
je 0x22124
leaq 0x19943(%rip), %rax     # 0x3ba40
xorl %edx, %edx
cmpl %esi, 0x20(%rcx)
setl %dl
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rdx,8), %rcx
testq %rcx, %rcx
jne 0x220fd
leaq 0x19926(%rip), %rcx     # 0x3ba40
cmpq %rcx, %rax
je 0x22124
cmpl 0x20(%rax), %esi
jge 0x2213b
movq %r15, %rdi
callq 0x125d0
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x28(%rax), %rsi
movq 0x30(%rax), %rdx
movq %r15, %rdi
callq 0x12a70
jmp 0x2212c
leaq 0x19914(%rip), %rdi     # 0x3ba68
callq 0x131b0
testl %eax, %eax
je 0x220e6
leaq 0x1c(%rsp), %rsi
movl $0x0, (%rsi)
leaq 0x1159e(%rip), %rdx     # 0x3370d
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x12930
leaq 0x48(%rsp), %r14
leaq 0x18(%rsp), %rsi
movl $0x1, (%rsi)
leaq 0x524f(%rip), %rdx      # 0x273e2
movq %r14, %rdi
callq 0x13230
leaq 0x70(%rsp), %r14
leaq 0x14(%rsp), %rsi
movl $0x2, (%rsi)
leaq 0x5237(%rip), %rdx      # 0x273e9
movq %r14, %rdi
callq 0x13230
leaq 0x98(%rsp), %r14
leaq 0x10(%rsp), %rsi
movl $0x3, (%rsi)
leaq 0x521c(%rip), %rdx      # 0x273f0
movq %r14, %rdi
callq 0x12930
leaq 0xc0(%rsp), %r14
leaq 0xc(%rsp), %rsi
movl $0x4, (%rsi)
leaq 0x51ff(%rip), %rdx      # 0x273f5
movq %r14, %rdi
callq 0x12ef0
leaq 0xe8(%rsp), %r14
leaq 0x8(%rsp), %rsi
movl $0x5, (%rsi)
leaq 0x51e1(%rip), %rdx      # 0x273f9
movq %r14, %rdi
callq 0x12270
leaq 0x110(%rsp), %r14
leaq 0x4(%rsp), %rsi
movl $0x6, (%rsi)
leaq 0x51c5(%rip), %rdx      # 0x273ff
movq %r14, %rdi
callq 0x12930
leaq 0x197ef(%rip), %rdi     # 0x3ba38
leaq 0x20(%rsp), %rsi
leaq 0x3(%rsp), %rcx
leaq 0x2(%rsp), %r8
movl $0x7, %edx
callq 0x12be0
movq $-0x118, %rbx           # imm = 0xFEE8
leaq 0x128(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x22285
movq (%r14), %rsi
incq %rsi
callq 0x12990
addq $-0x28, %r14
addq $0x28, %rbx
jne 0x22271
movq 0x18cea(%rip), %rdi     # 0x3af80
leaq 0x1979b(%rip), %rsi     # 0x3ba38
leaq 0x19704(%rip), %rdx     # 0x3b9a8
callq 0x127a0
leaq 0x197b8(%rip), %rdi     # 0x3ba68
callq 0x12590
jmp 0x220e6
movq %rax, %r15
leaq 0x138(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x1364d
movb $0x1, %al
jmp 0x222e2
jmp 0x222dd
jmp 0x222dd
jmp 0x222dd
jmp 0x222dd
jmp 0x222dd
movq %rax, %r15
xorl %eax, %eax
cmpq %r14, %rbx
je 0x22318
testb %al, %al
jne 0x22318
addq $-0x10, %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x22303
movq (%r14), %rsi
incq %rsi
callq 0x12990
leaq -0x28(%r14), %rax
addq $-0x18, %r14
cmpq %rbx, %r14
movq %rax, %r14
jne 0x222ef
jmp 0x22318
movq %rax, %r15
leaq 0x19749(%rip), %rdi     # 0x3ba68
callq 0x12570
movq %r15, %rdi
callq 0x13110