// File: /workspace/github_cpp_makefile_star2_O1/lega911[P]ijson/src/utils.cpp
// Function: ltime()
const char *ltime() {
    // thread unsafe
    std::time_t t = std::time(0);
    std::tm* now = std::localtime(&t);

    lbuf.clear();
    lbuf.add_number(now->tm_year + 1900);
    lbuf.add("-", 1);
    int mon = now->tm_mon + 1;
    if(mon < 10) lbuf.add("0", 1);
    lbuf.add_number(mon);
    lbuf.add("-", 1);
    if(now->tm_mday < 10) lbuf.add("0", 1);
    lbuf.add_number(now->tm_mday);
    lbuf.add(" ", 1);
    if(now->tm_hour < 10) lbuf.add("0", 1);
    lbuf.add_number(now->tm_hour);
    lbuf.add(":", 1);
    if(now->tm_min < 10) lbuf.add("0", 1);
    lbuf.add_number(now->tm_min);
    lbuf.add(":", 1);
    if(now->tm_sec < 10) lbuf.add("0", 1);
    lbuf.add_number(now->tm_sec);
    lbuf.add(" ", 1);

    return lbuf.ptr();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %edi, %edi
callq 0x82c0
leaq -0x20(%rbp), %rdi
movq %rax, (%rdi)
callq 0x8230
movq %rax, %rbx
movl $0x0, 0x7dad(%rip)      # 0x1e308
leaq 0x7d9e(%rip), %r14      # 0x1e300
movslq 0x14(%rax), %rsi
addq $0x76c, %rsi            # imm = 0x76C
movq %r14, %rdi
callq 0xc342
movl 0x7d8d(%rip), %esi      # 0x1e308
incl %esi
movq %r14, %rdi
callq 0xc5a2
movq 0x7d74(%rip), %rax      # 0x1e300
movslq 0x7d75(%rip), %rcx      # 0x1e308
movb $0x2d, (%rax,%rcx)
movl 0x7d6b(%rip), %esi      # 0x1e308
leal 0x1(%rsi), %eax
movl %eax, 0x7d62(%rip)      # 0x1e308
movslq 0x10(%rbx), %rax
leaq 0x1(%rax), %r14
cmpq $0x8, %rax
jg 0x165db
addl $0x2, %esi
leaq 0x7d42(%rip), %rdi      # 0x1e300
callq 0xc5a2
movq 0x7d36(%rip), %rax      # 0x1e300
movslq 0x7d37(%rip), %rcx      # 0x1e308
movb $0x30, (%rax,%rcx)
incl 0x7d2d(%rip)            # 0x1e308
leaq 0x7d1e(%rip), %r15      # 0x1e300
movq %r15, %rdi
movq %r14, %rsi
callq 0xc342
movl 0x7d15(%rip), %esi      # 0x1e308
incl %esi
movq %r15, %rdi
callq 0xc5a2
movq 0x7cfc(%rip), %rax      # 0x1e300
movslq 0x7cfd(%rip), %rcx      # 0x1e308
movb $0x2d, (%rax,%rcx)
movl 0x7cf3(%rip), %esi      # 0x1e308
leal 0x1(%rsi), %eax
movl %eax, 0x7cea(%rip)      # 0x1e308
cmpl $0x9, 0xc(%rbx)
jg 0x1664b
addl $0x2, %esi
leaq 0x7cd2(%rip), %rdi      # 0x1e300
callq 0xc5a2
movq 0x7cc6(%rip), %rax      # 0x1e300
movslq 0x7cc7(%rip), %rcx      # 0x1e308
movb $0x30, (%rax,%rcx)
incl 0x7cbd(%rip)            # 0x1e308
movslq 0xc(%rbx), %rsi
leaq 0x7caa(%rip), %r14      # 0x1e300
movq %r14, %rdi
callq 0xc342
movl 0x7ca4(%rip), %esi      # 0x1e308
incl %esi
movq %r14, %rdi
callq 0xc5a2
movq 0x7c8b(%rip), %rax      # 0x1e300
movslq 0x7c8c(%rip), %rcx      # 0x1e308
movb $0x20, (%rax,%rcx)
movl 0x7c82(%rip), %esi      # 0x1e308
leal 0x1(%rsi), %eax
movl %eax, 0x7c79(%rip)      # 0x1e308
cmpl $0x9, 0x8(%rbx)
jg 0x166bc
addl $0x2, %esi
leaq 0x7c61(%rip), %rdi      # 0x1e300
callq 0xc5a2
movq 0x7c55(%rip), %rax      # 0x1e300
movslq 0x7c56(%rip), %rcx      # 0x1e308
movb $0x30, (%rax,%rcx)
incl 0x7c4c(%rip)            # 0x1e308
movslq 0x8(%rbx), %rsi
leaq 0x7c39(%rip), %r14      # 0x1e300
movq %r14, %rdi
callq 0xc342
movl 0x7c33(%rip), %esi      # 0x1e308
incl %esi
movq %r14, %rdi
callq 0xc5a2
movq 0x7c1a(%rip), %rax      # 0x1e300
movslq 0x7c1b(%rip), %rcx      # 0x1e308
movb $0x3a, (%rax,%rcx)
movl 0x7c11(%rip), %esi      # 0x1e308
leal 0x1(%rsi), %eax
movl %eax, 0x7c08(%rip)      # 0x1e308
cmpl $0x9, 0x4(%rbx)
jg 0x1672d
addl $0x2, %esi
leaq 0x7bf0(%rip), %rdi      # 0x1e300
callq 0xc5a2
movq 0x7be4(%rip), %rax      # 0x1e300
movslq 0x7be5(%rip), %rcx      # 0x1e308
movb $0x30, (%rax,%rcx)
incl 0x7bdb(%rip)            # 0x1e308
movslq 0x4(%rbx), %rsi
leaq 0x7bc8(%rip), %r14      # 0x1e300
movq %r14, %rdi
callq 0xc342
movl 0x7bc2(%rip), %esi      # 0x1e308
incl %esi
movq %r14, %rdi
callq 0xc5a2
movq 0x7ba9(%rip), %rax      # 0x1e300
movslq 0x7baa(%rip), %rcx      # 0x1e308
movb $0x3a, (%rax,%rcx)
movl 0x7ba0(%rip), %esi      # 0x1e308
leal 0x1(%rsi), %eax
movl %eax, 0x7b97(%rip)      # 0x1e308
cmpl $0x9, (%rbx)
jg 0x1679d
addl $0x2, %esi
leaq 0x7b80(%rip), %rdi      # 0x1e300
callq 0xc5a2
movq 0x7b74(%rip), %rax      # 0x1e300
movslq 0x7b75(%rip), %rcx      # 0x1e308
movb $0x30, (%rax,%rcx)
incl 0x7b6b(%rip)            # 0x1e308
movslq (%rbx), %rsi
leaq 0x7b59(%rip), %rbx      # 0x1e300
movq %rbx, %rdi
callq 0xc342
movl 0x7b53(%rip), %esi      # 0x1e308
incl %esi
movq %rbx, %rdi
callq 0xc5a2
movq 0x7b3a(%rip), %rax      # 0x1e300
movslq 0x7b3b(%rip), %rcx      # 0x1e308
movb $0x20, (%rax,%rcx)
incl 0x7b31(%rip)            # 0x1e308
movq 0x7b22(%rip), %rax      # 0x1e300
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop