// File: /workspace/github_c_makefile_star2_O0/jech[P]dht/dht.c
// Function: send_error
static int
send_error(const struct sockaddr *sa, int salen,
           unsigned char *tid, int tid_len,
           int code, const char *message)
{
    char buf[512];
    int i = 0, rc, message_len;

    message_len = strlen(message);
    rc = snprintf(buf + i, 512 - i, "d1:eli%de%d:", code, message_len);
    INC(i, rc, 512);
    COPY(buf, i, message, message_len, 512);
    rc = snprintf(buf + i, 512 - i, "e1:t%d:", tid_len); INC(i, rc, 512);
    COPY(buf, i, tid, tid_len, 512);
    ADD_V(buf, i, 512);
    rc = snprintf(buf + i, 512 - i, "1:y1:ee"); INC(i, rc, 512);
    return dht_send(buf, i, 0, sa, salen);

 fail:
    errno = ENOSPC;
    return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp            # imm = 0x240
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl $0x0, -0x234(%rbp)
movq -0x30(%rbp), %rdi
callq 0x20f0
movl %eax, -0x23c(%rbp)
leaq -0x230(%rbp), %rdi
movslq -0x234(%rbp), %rax
addq %rax, %rdi
movl $0x200, %eax            # imm = 0x200
subl -0x234(%rbp), %eax
movslq %eax, %rsi
movl -0x28(%rbp), %ecx
movl -0x23c(%rbp), %r8d
leaq 0x4598(%rip), %rdx      # 0xc9f2
movb $0x0, %al
callq 0x2120
movl %eax, -0x238(%rbp)
cmpl $0x0, -0x238(%rbp)
jl 0x8483
movl -0x234(%rbp), %eax
addl -0x238(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x8488
jmp 0x8679
movl -0x238(%rbp), %eax
addl -0x234(%rbp), %eax
movl %eax, -0x234(%rbp)
cmpl $0x0, -0x23c(%rbp)
jl 0x84b6
movl -0x234(%rbp), %eax
addl -0x23c(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x84bb
jmp 0x8679
leaq -0x230(%rbp), %rdi
movslq -0x234(%rbp), %rax
addq %rax, %rdi
movq -0x30(%rbp), %rsi
movslq -0x23c(%rbp), %rdx
callq 0x2200
movl -0x23c(%rbp), %eax
addl -0x234(%rbp), %eax
movl %eax, -0x234(%rbp)
leaq -0x230(%rbp), %rdi
movslq -0x234(%rbp), %rax
addq %rax, %rdi
movl $0x200, %eax            # imm = 0x200
subl -0x234(%rbp), %eax
movslq %eax, %rsi
movl -0x24(%rbp), %ecx
leaq 0x4447(%rip), %rdx      # 0xc95e
movb $0x0, %al
callq 0x2120
movl %eax, -0x238(%rbp)
cmpl $0x0, -0x238(%rbp)
jl 0x8540
movl -0x234(%rbp), %eax
addl -0x238(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x8545
jmp 0x8679
movl -0x238(%rbp), %eax
addl -0x234(%rbp), %eax
movl %eax, -0x234(%rbp)
cmpl $0x0, -0x24(%rbp)
jl 0x856d
movl -0x234(%rbp), %eax
addl -0x24(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x8572
jmp 0x8679
leaq -0x230(%rbp), %rdi
movslq -0x234(%rbp), %rax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
movslq -0x24(%rbp), %rdx
callq 0x2200
movl -0x24(%rbp), %eax
addl -0x234(%rbp), %eax
movl %eax, -0x234(%rbp)
cmpl $0x0, 0x86d6(%rip)      # 0x10c7c
je 0x85f4
movslq -0x234(%rbp), %rax
addq $0x9, %rax
cmpq $0x200, %rax            # imm = 0x200
jbe 0x85c0
jmp 0x8679
movslq -0x234(%rbp), %rax
movq 0x86a2(%rip), %rcx      # 0x10c70
movq %rcx, -0x230(%rbp,%rax)
movb 0x869c(%rip), %cl       # 0x10c78
movb %cl, -0x228(%rbp,%rax)
movslq -0x234(%rbp), %rax
addq $0x9, %rax
movl %eax, -0x234(%rbp)
leaq -0x230(%rbp), %rdi
movslq -0x234(%rbp), %rax
addq %rax, %rdi
movl $0x200, %eax            # imm = 0x200
subl -0x234(%rbp), %eax
movslq %eax, %rsi
leaq 0x43e5(%rip), %rdx      # 0xc9ff
movb $0x0, %al
callq 0x2120
movl %eax, -0x238(%rbp)
cmpl $0x0, -0x238(%rbp)
jl 0x8643
movl -0x234(%rbp), %eax
addl -0x238(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x8645
jmp 0x8679
movl -0x238(%rbp), %eax
addl -0x234(%rbp), %eax
movl %eax, -0x234(%rbp)
leaq -0x230(%rbp), %rdi
movslq -0x234(%rbp), %rsi
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
xorl %edx, %edx
callq 0xa110
movl %eax, -0x4(%rbp)
jmp 0x868b
callq 0x2060
movl $0x1c, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x240, %rsp            # imm = 0x240
popq %rbp
retq
nopw (%rax,%rax)