// File: 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
subq $0x20, %rsp
xorl %eax, %eax
movl %eax, %edi
callq 0x192c0
movq %rax, -0x8(%rbp)
leaq -0x8(%rbp), %rdi
callq 0x19220
movq %rax, -0x10(%rbp)
leaq 0x1098f(%rip), %rdi     # 0x47318
callq 0x1eab0
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
addl $0x76c, %eax            # imm = 0x76C
movslq %eax, %rsi
leaq 0x10974(%rip), %rdi     # 0x47318
callq 0x1f1d0
leaq 0x10968(%rip), %rdi     # 0x47318
leaq 0x2e31(%rip), %rsi      # 0x397e8
movl $0x1, %edx
callq 0x1e8b0
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
cmpl $0xa, -0x14(%rbp)
jge 0x369ec
leaq 0x1093d(%rip), %rdi     # 0x47318
leaq 0x16a6(%rip), %rsi      # 0x38088
movl $0x1, %edx
callq 0x1e8b0
movslq -0x14(%rbp), %rsi
leaq 0x10921(%rip), %rdi     # 0x47318
callq 0x1f1d0
leaq 0x10915(%rip), %rdi     # 0x47318
leaq 0x2dde(%rip), %rsi      # 0x397e8
movl $0x1, %edx
callq 0x1e8b0
movq -0x10(%rbp), %rax
cmpl $0xa, 0xc(%rax)
jge 0x36a36
leaq 0x108f3(%rip), %rdi     # 0x47318
leaq 0x165c(%rip), %rsi      # 0x38088
movl $0x1, %edx
callq 0x1e8b0
movq -0x10(%rbp), %rax
movslq 0xc(%rax), %rsi
leaq 0x108d3(%rip), %rdi     # 0x47318
callq 0x1f1d0
leaq 0x108c7(%rip), %rdi     # 0x47318
leaq 0x1c4c(%rip), %rsi      # 0x386a4
movl $0x1, %edx
callq 0x1e8b0
movq -0x10(%rbp), %rax
cmpl $0xa, 0x8(%rax)
jge 0x36a84
leaq 0x108a5(%rip), %rdi     # 0x47318
leaq 0x160e(%rip), %rsi      # 0x38088
movl $0x1, %edx
callq 0x1e8b0
movq -0x10(%rbp), %rax
movslq 0x8(%rax), %rsi
leaq 0x10885(%rip), %rdi     # 0x47318
callq 0x1f1d0
leaq 0x10879(%rip), %rdi     # 0x47318
leaq 0x1945(%rip), %rsi      # 0x383eb
movl $0x1, %edx
callq 0x1e8b0
movq -0x10(%rbp), %rax
cmpl $0xa, 0x4(%rax)
jge 0x36ad2
leaq 0x10857(%rip), %rdi     # 0x47318
leaq 0x15c0(%rip), %rsi      # 0x38088
movl $0x1, %edx
callq 0x1e8b0
movq -0x10(%rbp), %rax
movslq 0x4(%rax), %rsi
leaq 0x10837(%rip), %rdi     # 0x47318
callq 0x1f1d0
leaq 0x1082b(%rip), %rdi     # 0x47318
leaq 0x18f7(%rip), %rsi      # 0x383eb
movl $0x1, %edx
callq 0x1e8b0
movq -0x10(%rbp), %rax
cmpl $0xa, (%rax)
jge 0x36b1f
leaq 0x1080a(%rip), %rdi     # 0x47318
leaq 0x1573(%rip), %rsi      # 0x38088
movl $0x1, %edx
callq 0x1e8b0
movq -0x10(%rbp), %rax
movslq (%rax), %rsi
leaq 0x107eb(%rip), %rdi     # 0x47318
callq 0x1f1d0
leaq 0x107df(%rip), %rdi     # 0x47318
leaq 0x1b64(%rip), %rsi      # 0x386a4
movl $0x1, %edx
callq 0x1e8b0
leaq 0x107c7(%rip), %rdi     # 0x47318
callq 0x1e6f0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)