// File: /workspace/github_cpp_makefile_star2_O3/sus304[P]ForRocket/src/environment/datetime.cpp
// Function: forrocket::DateTime::DateTime(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
forrocket::DateTime::DateTime(std::string datetime_str) {
    auto datetime_str_vec = split(datetime_str, ' ');
    auto date_str = datetime_str_vec[0];
    auto time_str = datetime_str_vec[1];

    auto date_str_vec = split(date_str, '/');
    year = std::stoi(date_str_vec[0]);
    month = std::stoi(date_str_vec[1]);
    day = std::stoi(date_str_vec[2]);

    auto time_str_vec = split(time_str, ':');
    hour = std::stoi(time_str_vec[0]);
    min = std::stoi(time_str_vec[1]);
    auto sec_str_vec = split(time_str_vec[2], '.');
    sec = std::stoi(sec_str_vec[0]);
    msec = std::stoi(sec_str_vec[1]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %r14
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
movl $0x20, %edx
callq 0x7833
movq (%rbx), %rax
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x7fae
movq 0x90(%rsp), %rax
leaq 0x40(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0x7fae
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movl $0x2f, %edx
callq 0x7833
movq 0x70(%rsp), %rax
movq (%rax), %r15
callq 0x5060
movq %rax, %rbx
movl (%rax), %r13d
movl $0x0, (%rax)
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x54a0
cmpq %r15, (%r12)
je 0x1722e
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x1723a
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x1723a
testl %ecx, %ecx
jne 0x16f89
movl %r13d, (%rbx)
movl %eax, (%r14)
movq 0x70(%rsp), %rax
movq 0x20(%rax), %r15
movl (%rbx), %ebp
movl $0x0, (%rbx)
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x54a0
cmpq %r15, (%r12)
je 0x17246
movabsq $-0x100000000, %r13     # imm = 0xFFFFFFFF00000000
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x17252
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x17252
testl %ecx, %ecx
jne 0x16fe5
movl %ebp, (%rbx)
movl %eax, 0x4(%r14)
movq 0x70(%rsp), %rax
movq 0x40(%rax), %r15
movl (%rbx), %ebp
movl $0x0, (%rbx)
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x54a0
cmpq %r15, (%r12)
je 0x1725e
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x1726a
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x1726a
testl %ecx, %ecx
jne 0x17038
movl %ebp, (%rbx)
movl %eax, 0x8(%r14)
movq %rsp, %rdi
leaq 0x30(%rsp), %rsi
movl $0x3a, %edx
callq 0x7833
movq (%rsp), %rax
movq (%rax), %r15
movl (%rbx), %ebp
movl $0x0, (%rbx)
leaq 0x18(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x54a0
cmpq %r15, (%r12)
je 0x17276
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x17282
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x17282
testl %ecx, %ecx
jne 0x1709d
movl %ebp, (%rbx)
movl %eax, 0xc(%r14)
movq (%rsp), %rax
movq 0x20(%rax), %r15
movl (%rbx), %ebp
movl $0x0, (%rbx)
leaq 0x18(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x54a0
cmpq %r15, (%r12)
je 0x1728e
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x1729a
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x1729a
testl %ecx, %ecx
jne 0x170f1
movl %ebp, (%rbx)
movl %eax, 0x10(%r14)
movq (%rsp), %rsi
addq $0x40, %rsi
leaq 0x18(%rsp), %rdi
movl $0x2e, %edx
callq 0x7833
movq 0x18(%rsp), %rax
movq (%rax), %r15
movl (%rbx), %ebp
movl $0x0, (%rbx)
leaq 0x88(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x54a0
cmpq %r15, (%r12)
je 0x172a6
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x172b2
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x172b2
testl %ecx, %ecx
jne 0x1715f
movl %ebp, (%rbx)
movl %eax, 0x14(%r14)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %r15
movl (%rbx), %ebp
movl $0x0, (%rbx)
leaq 0x88(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x54a0
cmpq %r15, (%r12)
je 0x172be
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x172ca
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x172ca
testl %ecx, %ecx
jne 0x171b7
movl %ebp, (%rbx)
movl %eax, 0x18(%r14)
leaq 0x18(%rsp), %rdi
callq 0x7962
movq %rsp, %rdi
callq 0x7962
leaq 0x70(%rsp), %rdi
callq 0x7962
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x171f3
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1720f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x90(%rsp), %rdi
callq 0x7962
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x238d3(%rip), %rdi     # 0x3ab08
callq 0x5210
leaq 0x238c7(%rip), %rdi     # 0x3ab08
callq 0x54d0
leaq 0x238bb(%rip), %rdi     # 0x3ab08
callq 0x5210
leaq 0x238af(%rip), %rdi     # 0x3ab08
callq 0x54d0
leaq 0x238a3(%rip), %rdi     # 0x3ab08
callq 0x5210
leaq 0x23897(%rip), %rdi     # 0x3ab08
callq 0x54d0
leaq 0x2388b(%rip), %rdi     # 0x3ab08
callq 0x5210
leaq 0x2387f(%rip), %rdi     # 0x3ab08
callq 0x54d0
leaq 0x23873(%rip), %rdi     # 0x3ab08
callq 0x5210
leaq 0x23867(%rip), %rdi     # 0x3ab08
callq 0x54d0
leaq 0x2385b(%rip), %rdi     # 0x3ab08
callq 0x5210
leaq 0x2384f(%rip), %rdi     # 0x3ab08
callq 0x54d0
leaq 0x23843(%rip), %rdi     # 0x3ab08
callq 0x5210
leaq 0x23837(%rip), %rdi     # 0x3ab08
callq 0x54d0
movq %rax, %r14
jmp 0x17313
movq %rax, %r14
jmp 0x1731b
movq %rax, %r14
jmp 0x17325
movq %rax, %r14
jmp 0x17341
movq %rax, %r14
jmp 0x1735d
jmp 0x172f1
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x172fb
movl %ebp, (%rbx)
leaq 0x18(%rsp), %rdi
callq 0x7962
jmp 0x17313
jmp 0x17309
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x17313
movl %ebp, (%rbx)
movq %rsp, %rdi
callq 0x7962
leaq 0x70(%rsp), %rdi
callq 0x7962
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x17341
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1735d
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x90(%rsp), %rdi
callq 0x7962
movq %r14, %rdi
callq 0x55e0
jmp 0x17374
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x1731b
movl %ebp, (%rbx)
jmp 0x1731b
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x1731b
movl %r13d, (%rbx)
jmp 0x1731b
nop