// File: /workspace/github_cpp_makefile_star2_O1/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 0x19893(%rip), %al      # 0x3ba68
testb %al, %al
je 0x22261
movq 0x19864(%rip), %rdx     # 0x3ba48
leaq 0x19855(%rip), %rax     # 0x3ba40
movq %rax, %rcx
testq %rdx, %rdx
je 0x22215
movl (%r12), %esi
leaq 0x19842(%rip), %rcx     # 0x3ba40
xorl %edi, %edi
cmpl %esi, 0x20(%rdx)
setl %dil
cmovgeq %rdx, %rcx
movq 0x10(%rdx,%rdi,8), %rdx
testq %rdx, %rdx
jne 0x221fe
movq %rax, %rdx
cmpq %rax, %rcx
je 0x2222f
movl (%r12), %edx
cmpl 0x20(%rcx), %edx
leaq 0x19815(%rip), %rdx     # 0x3ba40
cmovgeq %rcx, %rdx
cmpq %rax, %rdx
je 0x22246
movq 0x28(%rdx), %rsi
movq 0x30(%rdx), %rdx
movq %r15, %rdi
callq 0x12a70
jmp 0x22252
movl (%r12), %esi
movq %r15, %rdi
callq 0x125c0
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x19800(%rip), %rdi     # 0x3ba68
callq 0x131b0
testl %eax, %eax
je 0x221dd
leaq 0x1c(%rsp), %rsi
movl $0x0, (%rsi)
leaq 0x11486(%rip), %rdx     # 0x3370d
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x12930
leaq 0x48(%rsp), %rbx
leaq 0x18(%rsp), %rsi
movl $0x1, (%rsi)
leaq 0x5137(%rip), %rdx      # 0x273e2
movq %rbx, %rdi
callq 0x13230
leaq 0x70(%rsp), %rbx
leaq 0x14(%rsp), %rsi
movl $0x2, (%rsi)
leaq 0x511f(%rip), %rdx      # 0x273e9
movq %rbx, %rdi
callq 0x13230
leaq 0x98(%rsp), %rbx
leaq 0x10(%rsp), %rsi
movl $0x3, (%rsi)
leaq 0x5104(%rip), %rdx      # 0x273f0
movq %rbx, %rdi
callq 0x12930
leaq 0xc0(%rsp), %rbx
leaq 0xc(%rsp), %rsi
movl $0x4, (%rsi)
leaq 0x50e7(%rip), %rdx      # 0x273f5
movq %rbx, %rdi
callq 0x12ef0
leaq 0xe8(%rsp), %rbx
leaq 0x8(%rsp), %rsi
movl $0x5, (%rsi)
leaq 0x50c9(%rip), %rdx      # 0x273f9
movq %rbx, %rdi
callq 0x12270
leaq 0x110(%rsp), %rbx
leaq 0x4(%rsp), %rsi
movl $0x6, (%rsi)
leaq 0x50ad(%rip), %rdx      # 0x273ff
movq %rbx, %rdi
callq 0x12930
leaq 0x196d7(%rip), %rdi     # 0x3ba38
leaq 0x20(%rsp), %rsi
leaq 0x3(%rsp), %rcx
leaq 0x2(%rsp), %r8
movl $0x7, %edx
callq 0x12bf0
movq $-0x118, %rbx           # imm = 0xFEE8
leaq 0x128(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x2239d
movq (%r14), %rsi
incq %rsi
callq 0x12990
addq $-0x28, %r14
addq $0x28, %rbx
jne 0x22389
movq 0x18bd2(%rip), %rdi     # 0x3af80
leaq 0x19683(%rip), %rsi     # 0x3ba38
leaq 0x195ec(%rip), %rdx     # 0x3b9a8
callq 0x127a0
leaq 0x196a0(%rip), %rdi     # 0x3ba68
callq 0x12590
jmp 0x221dd
movq %rax, %r15
leaq 0x138(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x13646
movb $0x1, %al
jmp 0x223fa
jmp 0x223f5
jmp 0x223f5
jmp 0x223f5
jmp 0x223f5
jmp 0x223f5
movq %rax, %r15
xorl %eax, %eax
cmpq %rbx, %r14
je 0x22430
testb %al, %al
jne 0x22430
addq $-0x10, %rbx
leaq 0x20(%rsp), %r14
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x22420
movq (%rbx), %rsi
incq %rsi
callq 0x12990
leaq -0x28(%rbx), %rax
addq $-0x18, %rbx
cmpq %r14, %rbx
movq %rax, %rbx
jne 0x2240c
leaq 0x19631(%rip), %rdi     # 0x3ba68
callq 0x12570
movq %r15, %rdi
callq 0x13110
movq %rax, %r15
xorl %eax, %eax
movq %r14, %rbx
jmp 0x223fa