// File: /workspace/github_cpp_makefile_star2_O1/lega911[P]ijson/src/connect.cpp
// Function: Connect::rpc_result(ISlice&)
void Connect::rpc_result(ISlice &id) {
    if(id.empty() && json.level == 0) {
        while(json.scan()) {
            if(json.key == "id") {
                id = json.value;
                break;
            }
        }
    }
    if(id.empty()) {
        if(server->log & 2) std::cout << ltime() << "400 no id for /rpc/result\n";
        this->send.status("400 No id")->done(-1);
    } else {
        loop->stat_result++;
        int r = loop->worker_result(id, this);
        if(r == 0) {
            this->send.status("200 OK")->done(1);
        } else if(r == -2) {
            if(server->log & 4) std::cout << ltime() << "499 Client is gone\n";
            this->send.status("499 Closed")->done(-1);
        } else {
            if(server->log & 2) std::cout << ltime() << "400 Wrong id for /rpc/result\n";
            this->send.status("400 Wrong id")->done(-1);
        }
    }
    status = Status::net;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x0, 0x8(%rsi)
jne 0xb00c
cmpl $0x0, 0x148(%rbx)
jne 0xb00c
leaq 0x128(%rbx), %r15
movq %r15, %rdi
callq 0xd606
testb %al, %al
je 0xb00c
leaq 0xc39c(%rip), %r12      # 0x1734c
movl 0x130(%rbx), %eax
movq 0x128(%rbx), %rcx
testl %eax, %eax
movl $0x0, %edx
cmovgl %eax, %edx
movb $0x69, %dil
xorl %esi, %esi
cmpq %rsi, %rdx
je 0xafea
cmpb (%rcx,%rsi), %dil
jne 0xafea
movb 0x1(%rsi,%r12), %dil
incq %rsi
cmpq $0x2, %rsi
jne 0xafcc
cmpl $0x2, %eax
je 0xaff8
movq %r15, %rdi
callq 0xd606
testb %al, %al
jne 0xafb0
jmp 0xb00c
movl 0x140(%rbx), %eax
movl %eax, 0x8(%r14)
movq 0x138(%rbx), %rax
movq %rax, (%r14)
movl 0x8(%r14), %edx
testl %edx, %edx
je 0xb086
movq 0x30(%rbx), %rdi
incq 0x88(%rdi)
movq (%r14), %rsi
movq %rbx, %rcx
callq 0x12c1e
testl %eax, %eax
je 0xb0ca
cmpl $-0x2, %eax
jne 0xb0dc
movq 0x48(%rbx), %rax
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq 0xc251(%rip), %r15      # 0x1729d
testb $0x4, 0x20(%rax)
je 0xb1c3
callq 0x16531
testq %rax, %rax
je 0xb15a
movq %rax, %r12
movq %rax, %rdi
callq 0x8130
movq 0x12f5a(%rip), %rdi     # 0x1dfd0
movq %r12, %rsi
movq %rax, %rdx
callq 0x8350
jmp 0xb178
movq 0x48(%rbx), %rax
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq 0xc283(%rip), %r15      # 0x1731a
testb $0x2, 0x20(%rax)
je 0xb1c3
callq 0x16531
testq %rax, %rax
je 0xb127
movq %rax, %r12
movq %rax, %rdi
callq 0x8130
movq 0x12f13(%rip), %rdi     # 0x1dfd0
movq %r12, %rsi
movq %rax, %rdx
callq 0x8350
jmp 0xb145
movl $0x1, %r14d
leaq 0xc162(%rip), %r15      # 0x17239
jmp 0xb1c3
movq 0x48(%rbx), %rax
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq 0xc255(%rip), %r15      # 0x17342
testb $0x2, 0x20(%rax)
je 0xb1c3
callq 0x16531
testq %rax, %rax
je 0xb18d
movq %rax, %r12
movq %rax, %rdi
callq 0x8130
movq 0x12eb9(%rip), %rdi     # 0x1dfd0
movq %r12, %rsi
movq %rax, %rdx
callq 0x8350
jmp 0xb1ab
movq 0x12ea2(%rip), %rax     # 0x1dfd0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x8470
movq 0x12e84(%rip), %rdi     # 0x1dfd0
leaq 0xc1ac(%rip), %rsi      # 0x172ff
movl $0x1a, %edx
jmp 0xb1be
movq 0x12e6f(%rip), %rax     # 0x1dfd0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x8470
movq 0x12e51(%rip), %rdi     # 0x1dfd0
leaq 0xc103(%rip), %rsi      # 0x17289
movl $0x13, %edx
jmp 0xb1be
movq 0x12e3c(%rip), %rax     # 0x1dfd0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x8470
movq 0x12e1e(%rip), %rdi     # 0x1dfd0
leaq 0xc16b(%rip), %rsi      # 0x17324
movl $0x1d, %edx
callq 0x8350
leaq 0x18(%rbx), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x9ee0
movq %r12, %rdi
movl %r14d, %esi
callq 0x9f54
movl $0x0, 0xcc(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq