// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./src/helper.cpp
// Function: cck_send_admin_ssid(mg_connection*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*)
void cck_send_admin_ssid(mg_connection *conn, const string ssid, const char* type){
    ConfigManager c;
    char expire[100];
    time_t t = time(NULL) + 60 * c.global().get<int>("security::" + string(type) + "::expire_time");
    strftime(expire, sizeof(expire), "%a, %d %b %Y %H:%M:%S GMT", gmtime(&t));

    mg_printf(conn,
        "HTTP/1.1 200 OK\r\n"
        "Set-Cookie: ssid=%s; expires=%s; path=/; http-only; HttpOnly;\r\n"
        "Content-type: text/html\r\n"
        "X-UA-Compatible: IE=edge\r\n"
        "Content-Length: 0\r\n",
        ssid.c_str(), expire);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xa8(%rsp), %rax
movq %rax, -0x30(%rax)
movl $0x1, %ecx
movq %rcx, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, %edx       # imm = 0x3F800000
movl %edx, -0x10(%rax)
movups %xmm0, -0x8(%rax)
leaq 0xe0(%rsp), %rax
movq %rax, -0x30(%rax)
movq %rcx, -0x28(%rax)
movups %xmm0, -0x20(%rax)
movl %edx, -0x10(%rax)
movups %xmm0, -0x8(%rax)
leaq 0x118(%rsp), %rax
movq %rax, -0x30(%rax)
movq %rcx, -0x28(%rax)
movups %xmm0, -0x20(%rax)
movl %edx, -0x10(%rax)
movups %xmm0, -0x8(%rax)
xorl %edi, %edi
callq 0xc820
movq %rax, %r15
leaq 0x78(%rsp), %rdi
callq 0x11bfe
movq %rax, %r12
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %r13, %rsi
callq 0xcae0
leaq 0x6404e(%rip), %rcx     # 0x7322b
leaq 0x50(%rsp), %rdi
movl $0xa, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0xc200
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf218
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0xf220
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x10(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x63ff3(%rip), %rsi     # 0x73236
callq 0xc790
leaq 0x40(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf26f
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0xf276
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x30(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
addq $0x38, %r12
movq %r12, %rdi
callq 0x12426
movslq (%rax), %r12
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0xf2b0
callq 0xc640
imulq $0x3c, %r12, %r12
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xf2c3
callq 0xc640
addq %r12, %r15
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf2d9
callq 0xc640
leaq 0x70(%rsp), %rdi
movq %r15, (%rdi)
callq 0xc2f0
leaq 0x63e81(%rip), %rdx     # 0x7316e
leaq 0x120(%rsp), %r15
movl $0x64, %esi
movq %r15, %rdi
movq %rax, %rcx
callq 0xc9d0
movq (%r14), %rdx
leaq 0x63f35(%rip), %rsi     # 0x73244
movq %rbx, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0x69675
leaq 0xb0(%rsp), %rbx
leaq 0xe8(%rsp), %rdi
callq 0x11d00
movq %rbx, %rdi
callq 0x11d96
leaq 0x78(%rsp), %rdi
callq 0x11e2c
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf397
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0xf36e
callq 0xc640
jmp 0xf36e
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xf382
callq 0xc640
jmp 0xf382
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf39a
callq 0xc640
jmp 0xf39a
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x11c1c
movq %rbx, %rdi
callq 0xc760