// File: /workspace/github_c_makefile_star2_O3/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 0x11bec
movq %rax, %r12
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %r13, %rsi
callq 0xcae0
leaq 0x62051(%rip), %rcx     # 0x7122b
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 0xf215
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0xf21d
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 0x61ff6(%rip), %rsi     # 0x71236
callq 0xc790
leaq 0x40(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xf26c
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0xf273
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 0x12416
movslq (%rax), %r12
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0xf2ad
callq 0xc640
imulq $0x3c, %r12, %r12
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xf2c0
callq 0xc640
addq %r12, %r15
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf2d6
callq 0xc640
leaq 0x70(%rsp), %rdi
movq %r15, (%rdi)
callq 0xc2f0
leaq 0x61e84(%rip), %rdx     # 0x7116e
leaq 0x120(%rsp), %r15
movl $0x64, %esi
movq %r15, %rdi
movq %rax, %rcx
callq 0xc9d0
movq (%r14), %rdx
leaq 0x61f38(%rip), %rsi     # 0x71244
movq %rbx, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0x67a83
leaq 0xb0(%rsp), %rbx
leaq 0xe8(%rsp), %rdi
callq 0x11cf4
movq %rbx, %rdi
callq 0x11d8a
leaq 0x78(%rsp), %rdi
callq 0x11e20
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf394
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0xf36b
callq 0xc640
jmp 0xf36b
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xf37f
callq 0xc640
jmp 0xf37f
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf397
callq 0xc640
jmp 0xf397
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x11c0a
movq %rbx, %rdi
callq 0xc760