// File: /workspace/github_cpp_makefile_star2_O3/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
movl 0x8(%rsi), %edx
testl %edx, %edx
jne 0xb07f
cmpl $0x0, 0x148(%rbx)
jne 0xb073
leaq 0x128(%rbx), %r15
movq %r15, %rdi
callq 0xd5de
testb %al, %al
je 0xb073
leaq 0xc335(%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 0xb051
cmpb (%rcx,%rsi), %dil
jne 0xb051
movb 0x1(%rsi,%r12), %dil
incq %rsi
cmpq $0x2, %rsi
jne 0xb033
cmpl $0x2, %eax
je 0xb05f
movq %r15, %rdi
callq 0xd5de
testb %al, %al
jne 0xb017
jmp 0xb073
movl 0x140(%rbx), %eax
movl %eax, 0x8(%r14)
movq 0x138(%rbx), %rax
movq %rax, (%r14)
movl 0x8(%r14), %edx
testl %edx, %edx
je 0xb146
movq 0x30(%rbx), %rdi
incq 0x88(%rdi)
movq (%r14), %rsi
movq %rbx, %rcx
callq 0x12ada
testl %eax, %eax
je 0xb0e9
cmpl $-0x2, %eax
jne 0xb0fb
movq 0x48(%rbx), %rax
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq 0xc1ee(%rip), %r15      # 0x1729d
testb $0x4, 0x20(%rax)
je 0xb22d
callq 0x163f5
testq %rax, %rax
je 0xb191
movq %rax, %r12
movq %rax, %rdi
callq 0x8130
movq 0x12ef7(%rip), %rdi     # 0x1dfd0
movq %r12, %rsi
movq %rax, %rdx
callq 0x8350
jmp 0xb1af
movl $0x1, %r14d
leaq 0xc143(%rip), %r15      # 0x17239
jmp 0xb22d
movq 0x48(%rbx), %rax
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq 0xc236(%rip), %r15      # 0x17342
testb $0x2, 0x20(%rax)
je 0xb22d
callq 0x163f5
testq %rax, %rax
je 0xb1c4
movq %rax, %r12
movq %rax, %rdi
callq 0x8130
movq 0x12e9a(%rip), %rdi     # 0x1dfd0
movq %r12, %rsi
movq %rax, %rdx
callq 0x8350
jmp 0xb1e2
movq 0x48(%rbx), %rax
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq 0xc1c3(%rip), %r15      # 0x1731a
testb $0x2, 0x20(%rax)
je 0xb22d
callq 0x163f5
testq %rax, %rax
je 0xb1f7
movq %rax, %r12
movq %rax, %rdi
callq 0x8130
movq 0x12e4f(%rip), %rdi     # 0x1dfd0
movq %r12, %rsi
movq %rax, %rdx
callq 0x8350
jmp 0xb215
movq 0x12e38(%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 0x12e1a(%rip), %rdi     # 0x1dfd0
leaq 0xc0cc(%rip), %rsi      # 0x17289
movl $0x13, %edx
jmp 0xb228
movq 0x12e05(%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 0x12de7(%rip), %rdi     # 0x1dfd0
leaq 0xc134(%rip), %rsi      # 0x17324
movl $0x1d, %edx
jmp 0xb228
movq 0x12dd2(%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 0x12db4(%rip), %rdi     # 0x1dfd0
leaq 0xc0dc(%rip), %rsi      # 0x172ff
movl $0x1a, %edx
callq 0x8350
leaq 0x18(%rbx), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x9ec6
movq %r12, %rdi
movl %r14d, %esi
callq 0x9f3a
movl $0x0, 0xcc(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq