// File: /workspace/github_cpp_makefile_star2_O3/trisolaris233[P]httpc/src/connection.hpp
// Function: httpc::Connection::CheckKeepAlive_()
void CheckKeepAlive_() {
            if (this->request_.http_major_version == 1) {
                bool conn_flag = false;
                auto itr = this->request_.FindHeader("Connection");
                if (itr != this->request_.HeaderCEnd()) {
                    if (itr->value == "close") {
                        this->keep_alive_ = false;
                    } else if (itr->value == "keep-alive") {
                        this->keep_alive_ = true;
                    }
                } else {
                    if (this->request_.http_minor_version == 1) {
                        this->keep_alive_ = true;
                    } else if (this->request_.http_minor_version == 0) {
                        this->keep_alive_ = false;
                    }
                }
            }
            if (this->keep_alive_) {
                this->response_.AddHeader(Header{"Connection", "keep-alive"});
            } else {
                this->response_.AddHeader(Header{"Connection", "close"});
            }
            
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdi, %r14
cmpl $0x1, 0x338(%rdi)
jne 0x16c79
movq 0x340(%r14), %r15
movq 0x348(%r14), %rbx
cmpq %rbx, %r15
je 0x16c23
leaq 0xdfc6(%rip), %rbx      # 0x24bc8
movq %r15, %rdi
movq %rbx, %rsi
callq 0x81a0
movq 0x348(%r14), %rcx
testl %eax, %eax
je 0x16c28
addq $0x40, %r15
cmpq %rcx, %r15
jne 0x16c02
jmp 0x16c5c
movq %r15, %rcx
jmp 0x16c2b
movq %r15, %rbx
cmpq %rcx, %rbx
je 0x16c5c
addq $0x20, %rbx
leaq 0xdf74(%rip), %rsi      # 0x24baf
movq %rbx, %rdi
callq 0x81a0
testl %eax, %eax
je 0x16c6c
leaq 0xdf85(%rip), %rsi      # 0x24bd3
movq %rbx, %rdi
callq 0x81a0
testl %eax, %eax
jne 0x16c79
jmp 0x16c70
movl 0x33c(%r14), %eax
cmpl $0x1, %eax
je 0x16c70
testl %eax, %eax
jne 0x16c79
xorl %eax, %eax
jmp 0x16c72
movb $0x1, %al
movb %al, 0x491(%r14)
leaq 0x3d0(%r14), %rbx
cmpb $0x1, 0x491(%r14)
jne 0x16cf1
leaq -0x48(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xdf2f(%rip), %rsi      # 0x24bc8
leaq 0xdf32(%rip), %rdx      # 0x24bd2
leaq -0x58(%rbp), %rdi
callq 0x11e6e
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xdf1b(%rip), %rsi      # 0x24bd3
leaq 0xdf1e(%rip), %rdx      # 0x24bdd
leaq -0x38(%rbp), %rdi
callq 0x11e6e
leaq -0x98(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0xb65e
leaq -0x78(%rbp), %rdx
leaq -0x98(%rbp), %rsi
movq %rbx, %rdi
callq 0xb52e
jmp 0x16d56
leaq -0x48(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xdec8(%rip), %rsi      # 0x24bc8
leaq 0xdecb(%rip), %rdx      # 0x24bd2
leaq -0x58(%rbp), %rdi
callq 0x11e6e
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xde90(%rip), %rsi      # 0x24baf
leaq 0xde8e(%rip), %rdx      # 0x24bb4
leaq -0x38(%rbp), %rdi
callq 0x11e6e
leaq -0x98(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0xb65e
leaq -0x78(%rbp), %rdx
leaq -0x98(%rbp), %rsi
movq %rbx, %rdi
callq 0xb52e
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16d6f
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x8520
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16d8e
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x8520
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x16da3
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x8520
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0x16db8
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x8520
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x16dc8
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0xb4e8
jmp 0x16dde
jmp 0x16ddb
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x16dfa
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x8520
jmp 0x16dfa
jmp 0x16df7
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0x16e16
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x8520
jmp 0x16e16
jmp 0x16e13
movq %rax, %rbx
movq %rbx, %rdi
callq 0x8830