// File: /workspace/github_cpp_makefile_star2_O1/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 0x7753
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 0x7f1c
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 0x7f1c
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movl $0x2f, %edx
callq 0x7753
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 0x17736
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x17742
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x17742
testl %ecx, %ecx
jne 0x17491
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 0x1774e
movabsq $-0x100000000, %r13     # imm = 0xFFFFFFFF00000000
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x1775a
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x1775a
testl %ecx, %ecx
jne 0x174ed
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 0x17766
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x17772
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x17772
testl %ecx, %ecx
jne 0x17540
movl %ebp, (%rbx)
movl %eax, 0x8(%r14)
movq %rsp, %rdi
leaq 0x30(%rsp), %rsi
movl $0x3a, %edx
callq 0x7753
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 0x1777e
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x1778a
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x1778a
testl %ecx, %ecx
jne 0x175a5
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 0x17796
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x177a2
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x177a2
testl %ecx, %ecx
jne 0x175f9
movl %ebp, (%rbx)
movl %eax, 0x10(%r14)
movq (%rsp), %rsi
addq $0x40, %rsi
leaq 0x18(%rsp), %rdi
movl $0x2e, %edx
callq 0x7753
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 0x177ae
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x177ba
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x177ba
testl %ecx, %ecx
jne 0x17667
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 0x177c6
leaq -0x80000000(%rax), %rcx
cmpq %r13, %rcx
jb 0x177d2
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x177d2
testl %ecx, %ecx
jne 0x176bf
movl %ebp, (%rbx)
movl %eax, 0x18(%r14)
leaq 0x18(%rsp), %rdi
callq 0x7882
movq %rsp, %rdi
callq 0x7882
leaq 0x70(%rsp), %rdi
callq 0x7882
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x176fb
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x17717
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x90(%rsp), %rdi
callq 0x7882
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2338b(%rip), %rdi     # 0x3aac8
callq 0x5210
leaq 0x2337f(%rip), %rdi     # 0x3aac8
callq 0x54d0
leaq 0x23373(%rip), %rdi     # 0x3aac8
callq 0x5210
leaq 0x23367(%rip), %rdi     # 0x3aac8
callq 0x54d0
leaq 0x2335b(%rip), %rdi     # 0x3aac8
callq 0x5210
leaq 0x2334f(%rip), %rdi     # 0x3aac8
callq 0x54d0
leaq 0x23343(%rip), %rdi     # 0x3aac8
callq 0x5210
leaq 0x23337(%rip), %rdi     # 0x3aac8
callq 0x54d0
leaq 0x2332b(%rip), %rdi     # 0x3aac8
callq 0x5210
leaq 0x2331f(%rip), %rdi     # 0x3aac8
callq 0x54d0
leaq 0x23313(%rip), %rdi     # 0x3aac8
callq 0x5210
leaq 0x23307(%rip), %rdi     # 0x3aac8
callq 0x54d0
leaq 0x232fb(%rip), %rdi     # 0x3aac8
callq 0x5210
leaq 0x232ef(%rip), %rdi     # 0x3aac8
callq 0x54d0
movq %rax, %r14
jmp 0x1781b
movq %rax, %r14
jmp 0x17823
movq %rax, %r14
jmp 0x1782d
movq %rax, %r14
jmp 0x17849
movq %rax, %r14
jmp 0x17865
jmp 0x177f9
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x17803
movl %ebp, (%rbx)
leaq 0x18(%rsp), %rdi
callq 0x7882
jmp 0x1781b
jmp 0x17811
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x1781b
movl %ebp, (%rbx)
movq %rsp, %rdi
callq 0x7882
leaq 0x70(%rsp), %rdi
callq 0x7882
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x17849
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x17865
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x90(%rsp), %rdi
callq 0x7882
movq %r14, %rdi
callq 0x55e0
jmp 0x1787c
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x17823
movl %ebp, (%rbx)
jmp 0x17823
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x17823
movl %r13d, (%rbx)
jmp 0x17823
nop