// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
pushq %rax
movq %rdi, %rbx
movslq 0x8(%rsi), %rdx
movq (%rsi), %rax
xorl %ecx, %ecx
leaq 0xd0d6(%rip), %rdi      # 0x171cd
movb (%rcx,%rdi), %r8b
testb %r8b, %r8b
je 0xa129
cmpq %rdx, %rcx
jge 0xa129
movzbl (%rax,%rcx), %r9d
leal -0x41(%r9), %r10d
movl %r9d, %r11d
orb $0x20, %r11b
cmpb $0x1a, %r10b
movzbl %r11b, %r10d
cmovael %r9d, %r10d
incq %rcx
cmpb %r10b, %r8b
je 0xa0f7
testb %r8b, %r8b
je 0xa3cc
xorl %ecx, %ecx
leaq 0xd0a5(%rip), %rdi      # 0x171e0
movb (%rcx,%rdi), %r8b
testb %r8b, %r8b
je 0xa16d
cmpq %rdx, %rcx
jge 0xa16d
movzbl (%rax,%rcx), %r9d
leal -0x41(%r9), %r10d
movl %r9d, %r11d
orb $0x20, %r11b
cmpb $0x1a, %r10b
movzbl %r11b, %r10d
cmovael %r9d, %r10d
incq %rcx
cmpb %r10b, %r8b
je 0xa13b
testb %r8b, %r8b
je 0xa3f7
xorl %ecx, %ecx
leaq 0xd05f(%rip), %rdi      # 0x171de
movb (%rcx,%rdi), %r8b
testb %r8b, %r8b
je 0xa1b1
cmpq %rdx, %rcx
jge 0xa1b1
movzbl (%rax,%rcx), %r9d
leal -0x41(%r9), %r10d
movl %r9d, %r11d
orb $0x20, %r11b
cmpb $0x1a, %r10b
movzbl %r11b, %r10d
cmovael %r9d, %r10d
incq %rcx
cmpb %r10b, %r8b
je 0xa17f
testb %r8b, %r8b
je 0xa401
xorl %ecx, %ecx
leaq 0xd024(%rip), %rdi      # 0x171e7
movb (%rcx,%rdi), %r8b
testb %r8b, %r8b
je 0xa1f5
cmpq %rdx, %rcx
jge 0xa1f5
movzbl (%rax,%rcx), %r9d
leal -0x41(%r9), %r10d
movl %r9d, %r11d
orb $0x20, %r11b
cmpb $0x1a, %r10b
movzbl %r11b, %r10d
cmovael %r9d, %r10d
incq %rcx
cmpb %r10b, %r8b
je 0xa1c3
testb %r8b, %r8b
je 0xa428
xorl %ecx, %ecx
leaq 0xd002(%rip), %rdi      # 0x17209
movb (%rcx,%rdi), %r8b
testb %r8b, %r8b
je 0xa239
cmpq %rdx, %rcx
jge 0xa239
movzbl (%rax,%rcx), %r9d
leal -0x41(%r9), %r10d
movl %r9d, %r11d
orb $0x20, %r11b
cmpb $0x1a, %r10b
movzbl %r11b, %r10d
cmovael %r9d, %r10d
incq %rcx
cmpb %r10b, %r8b
je 0xa207
testb %r8b, %r8b
je 0xa454
xorl %ecx, %ecx
leaq 0xcfa3(%rip), %rdi      # 0x171ee
movb (%rcx,%rdi), %r8b
testb %r8b, %r8b
je 0xa27d
cmpq %rdx, %rcx
jge 0xa27d
movzbl (%rax,%rcx), %r9d
leal -0x41(%r9), %r10d
movl %r9d, %r11d
orb $0x20, %r11b
cmpb $0x1a, %r10b
movzbl %r11b, %r10d
cmovael %r9d, %r10d
incq %rcx
cmpb %r10b, %r8b
je 0xa24b
testb %r8b, %r8b
je 0xa48f
xorl %ecx, %ecx
leaq 0xcf68(%rip), %rdi      # 0x171f7
movb (%rcx,%rdi), %r8b
testb %r8b, %r8b
je 0xa2c1
cmpq %rdx, %rcx
jge 0xa2c1
movzbl (%rax,%rcx), %r9d
leal -0x41(%r9), %r10d
movl %r9d, %r11d
orb $0x20, %r11b
cmpb $0x1a, %r10b
movzbl %r11b, %r10d
cmovael %r9d, %r10d
incq %rcx
cmpb %r10b, %r8b
je 0xa28f
testb %r8b, %r8b
je 0xa4ba
xorl %ecx, %ecx
leaq 0xcf2f(%rip), %rdi      # 0x17202
movb (%rcx,%rdi), %r8b
testb %r8b, %r8b
je 0xa305
cmpq %rdx, %rcx
jge 0xa305
movzbl (%rax,%rcx), %r9d
leal -0x41(%r9), %r10d
movl %r9d, %r11d
orb $0x20, %r11b
cmpb $0x1a, %r10b
movzbl %r11b, %r10d
cmovael %r9d, %r10d
incq %rcx
cmpb %r10b, %r8b
je 0xa2d3
testb %r8b, %r8b
je 0xa4e6
xorl %ecx, %ecx
leaq 0xcef7(%rip), %rdi      # 0x1720e
movb (%rcx,%rdi), %r8b
testb %r8b, %r8b
je 0xa349
cmpq %rdx, %rcx
jge 0xa349
movzbl (%rax,%rcx), %r9d
leal -0x41(%r9), %r10d
movl %r9d, %r11d
orb $0x20, %r11b
cmpb $0x1a, %r10b
movzbl %r11b, %r10d
cmovael %r9d, %r10d
incq %rcx
cmpb %r10b, %r8b
je 0xa317
testb %r8b, %r8b
je 0xa515
xorl %ecx, %ecx
leaq 0xcebc(%rip), %rdi      # 0x17217
movb (%rcx,%rdi), %r8b
testb %r8b, %r8b
je 0xa38d
cmpq %rdx, %rcx
jge 0xa38d
movzbl (%rax,%rcx), %r9d
leal -0x41(%r9), %r10d
movl %r9d, %r11d
orb $0x20, %r11b
cmpb $0x1a, %r10b
movzbl %r11b, %r10d
cmovael %r9d, %r10d
incq %rcx
cmpb %r10b, %r8b
je 0xa35b
testb %r8b, %r8b
jne 0xa3f0
cmpl $0x9, %edx
movl $0x9, %ecx
cmovll %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, (%rsi)
subl %ecx, %edx
movl %edx, 0x8(%rsi)
movq %rsi, %rdi
callq 0xc266
movl %eax, 0xf8(%rbx)
callq 0x16511
addl 0xf8(%rbx), %eax
movl %eax, 0xfc(%rbx)
jmp 0xa3f0
cmpl $0x10, %edx
movl $0x10, %ecx
cmovll %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, (%rsi)
subl %ecx, %edx
movl %edx, 0x8(%rsi)
movq %rsi, %rdi
callq 0xc266
movl %eax, 0x7c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
cmpl $0x6, %edx
movl $0x6, %ecx
jmp 0xa409
cmpl $0x8, %edx
movl $0x8, %ecx
cmovll %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, (%rsi)
subl %ecx, %edx
movl %edx, 0x8(%rsi)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xa544
cmpl $0x6, %edx
movl $0x6, %ecx
cmovll %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, (%rsi)
subl %ecx, %edx
movl %edx, 0x8(%rsi)
movl $0x0, 0xc0(%rbx)
addq $0xb8, %rbx
jmp 0xa47e
cmpl $0x4, %edx
movl $0x4, %ecx
cmovll %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, (%rsi)
subl %ecx, %edx
movl %edx, 0x8(%rsi)
movl $0x0, 0xe8(%rbx)
addq $0xe0, %rbx
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xc0a8
cmpl $0x8, %edx
movl $0x8, %ecx
cmovll %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, (%rsi)
subl %ecx, %edx
movl %edx, 0x8(%rsi)
movl %edx, 0xb0(%rbx)
movq %rax, 0xa8(%rbx)
jmp 0xa3f0
cmpl $0xa, %edx
movl $0xa, %ecx
cmovll %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, (%rsi)
subl %ecx, %edx
movl %edx, 0x8(%rsi)
movq %rsi, %rdi
callq 0xc266
movl %eax, 0xf4(%rbx)
jmp 0xa3f0
cmpl $0xb, %edx
movl $0xb, %ecx
cmovll %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, (%rsi)
subl %ecx, %edx
movl %edx, 0x8(%rsi)
movl $0x0, 0x118(%rbx)
addq $0x110, %rbx            # imm = 0x110
jmp 0xa47e
cmpl $0x8, %edx
movl $0x8, %ecx
cmovll %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, (%rsi)
subl %ecx, %edx
movl %edx, 0x8(%rsi)
movl $0x0, 0x108(%rbx)
addq $0x100, %rbx            # imm = 0x100
jmp 0xa47e