// File: /workspace/github_cpp_makefile_star2_O2/lega911[P]ijson/src/connect.cpp
// Function: Connect::read_header(Slice&)
void Connect::read_header(Slice &data) {
    if(data.starts_with_lc("content-length: ")) {
        data.remove(16);
        content_length = data.atoi();
    } else if(data.starts_with_lc("type: ")) {
        data.remove(6);
        _set_type(data);
    } else if(data.starts_with_lc("x-type: ")) {
        data.remove(8);
        _set_type(data);
    } else if(data.starts_with_lc("name: ")) {
        data.remove(6);
        name.set(data);
    } else if(data.starts_with_lc("id: ")) {
        data.remove(4);
        id.set(data);
    } else if(data.starts_with_lc("option: ")) {
        data.remove(8);
        header_option = data;
    } else if(data.starts_with_lc("priority: ")) {
        data.remove(10);
        priority = data.atoi();
    } else if(data.starts_with_lc("worker-id: ")) {
        data.remove(11);
        required_worker.set(data);
    } else if(data.starts_with_lc("set-id: ")) {
        data.remove(8);
        connection_id.set(data);
    } else if(data.starts_with_lc("timeout: ")) {
        data.remove(9);
        ping = data.atoi();
        ping_timeout = get_time_sec() + ping;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xc6a7(%rip), %rsi      # 0x181cd
movq %r14, %rdi
callq 0xd420
testb %al, %al
je 0xbb5b
movl 0x8(%r14), %eax
cmpl $0x10, %eax
pushq $0x10
popq %rcx
cmovll %eax, %ecx
movslq %ecx, %rcx
addq %rcx, (%r14)
subl %ecx, %eax
movl %eax, 0x8(%r14)
movq %r14, %rdi
callq 0xd466
movl %eax, 0x7c(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
leaq 0xc67e(%rip), %rsi      # 0x181e0
movq %r14, %rdi
callq 0xd420
testb %al, %al
je 0xbb79
movl 0x8(%r14), %eax
cmpl $0x6, %eax
pushq $0x6
jmp 0xbb95
leaq 0xc65e(%rip), %rsi      # 0x181de
movq %r14, %rdi
callq 0xd420
testb %al, %al
je 0xbbb4
movl 0x8(%r14), %eax
cmpl $0x8, %eax
pushq $0x8
popq %rcx
cmovll %eax, %ecx
movslq %ecx, %rcx
addq %rcx, (%r14)
subl %ecx, %eax
movl %eax, 0x8(%r14)
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0xbd72
leaq 0xc62c(%rip), %rsi      # 0x181e7
movq %r14, %rdi
callq 0xd420
testb %al, %al
je 0xbbe9
movl 0x8(%r14), %eax
cmpl $0x6, %eax
pushq $0x6
popq %rcx
cmovll %eax, %ecx
movslq %ecx, %rcx
addq %rcx, (%r14)
subl %ecx, %eax
movl %eax, 0x8(%r14)
addq $0xb8, %rbx
jmp 0xbc1c
leaq 0xc619(%rip), %rsi      # 0x18209
movq %r14, %rdi
callq 0xd420
testb %al, %al
je 0xbc2b
movl 0x8(%r14), %eax
cmpl $0x4, %eax
pushq $0x4
popq %rcx
cmovll %eax, %ecx
movslq %ecx, %rcx
addq %rcx, (%r14)
subl %ecx, %eax
movl %eax, 0x8(%r14)
addq $0xe0, %rbx
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0xd3d0
leaq 0xc5bc(%rip), %rsi      # 0x181ee
movq %r14, %rdi
callq 0xd420
testb %al, %al
je 0xbc6f
movl 0x8(%r14), %eax
cmpl $0x8, %eax
pushq $0x8
popq %rcx
cmovll %eax, %ecx
movslq %ecx, %rcx
movq (%r14), %rdx
addq %rcx, %rdx
movq %rdx, (%r14)
subl %ecx, %eax
movl %eax, 0x8(%r14)
movl %eax, 0xb0(%rbx)
movq %rdx, 0xa8(%rbx)
jmp 0xbb56
leaq 0xc581(%rip), %rsi      # 0x181f7
movq %r14, %rdi
callq 0xd420
testb %al, %al
je 0xbcae
movl 0x8(%r14), %eax
cmpl $0xa, %eax
pushq $0xa
popq %rcx
cmovll %eax, %ecx
movslq %ecx, %rcx
addq %rcx, (%r14)
subl %ecx, %eax
movl %eax, 0x8(%r14)
movq %r14, %rdi
callq 0xd466
movl %eax, 0xf4(%rbx)
jmp 0xbb56
leaq 0xc54d(%rip), %rsi      # 0x18202
movq %r14, %rdi
callq 0xd420
testb %al, %al
je 0xbce6
movl 0x8(%r14), %eax
cmpl $0xb, %eax
pushq $0xb
popq %rcx
cmovll %eax, %ecx
movslq %ecx, %rcx
addq %rcx, (%r14)
subl %ecx, %eax
movl %eax, 0x8(%r14)
addq $0x110, %rbx            # imm = 0x110
jmp 0xbc1c
leaq 0xc521(%rip), %rsi      # 0x1820e
movq %r14, %rdi
callq 0xd420
testb %al, %al
je 0xbd1e
movl 0x8(%r14), %eax
cmpl $0x8, %eax
pushq $0x8
popq %rcx
cmovll %eax, %ecx
movslq %ecx, %rcx
addq %rcx, (%r14)
subl %ecx, %eax
movl %eax, 0x8(%r14)
addq $0x100, %rbx            # imm = 0x100
jmp 0xbc1c
leaq 0xc4f2(%rip), %rsi      # 0x18217
movq %r14, %rdi
callq 0xd420
testb %al, %al
je 0xbb56
movl 0x8(%r14), %eax
cmpl $0x9, %eax
pushq $0x9
popq %rcx
cmovll %eax, %ecx
movslq %ecx, %rcx
addq %rcx, (%r14)
subl %ecx, %eax
movl %eax, 0x8(%r14)
movq %r14, %rdi
callq 0xd466
movl %eax, 0xf8(%rbx)
callq 0x16a69
addl 0xf8(%rbx), %eax
movl %eax, 0xfc(%rbx)
jmp 0xbb56