// File: /workspace/github_c_makefile_star2_O0/jech[P]dht/dht.c
// Function: send_ping
int
send_ping(const struct sockaddr *sa, int salen,
          const unsigned char *tid, int tid_len)
{
    char buf[512];
    int i = 0, rc;
    rc = snprintf(buf + i, 512 - i, "d1:ad2:id20:"); INC(i, rc, 512);
    COPY(buf, i, myid, 20, 512);
    rc = snprintf(buf + i, 512 - i, "e1:q4:ping1: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:qe"); 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 $0x0, -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 0x2c65(%rip), %rdx      # 0xc68e
movb $0x0, %al
callq 0x2120
movl %eax, -0x238(%rbp)
cmpl $0x0, -0x238(%rbp)
jl 0x9a52
movl -0x234(%rbp), %eax
addl -0x238(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x9a57
jmp 0x9c4a
movl -0x238(%rbp), %eax
addl -0x234(%rbp), %eax
movl %eax, -0x234(%rbp)
movl -0x234(%rbp), %eax
addl $0x14, %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x9a7e
jmp 0x9c4a
movslq -0x234(%rbp), %rax
movq 0x71a4(%rip), %rcx      # 0x10c30
movq %rcx, -0x230(%rbp,%rax)
movq 0x719d(%rip), %rcx      # 0x10c38
movq %rcx, -0x228(%rbp,%rax)
movl 0x7197(%rip), %ecx      # 0x10c40
movl %ecx, -0x220(%rbp,%rax)
movl -0x234(%rbp), %eax
addl $0x14, %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 0x2eb1(%rip), %rdx      # 0xc999
movb $0x0, %al
callq 0x2120
movl %eax, -0x238(%rbp)
cmpl $0x0, -0x238(%rbp)
jl 0x9b11
movl -0x234(%rbp), %eax
addl -0x238(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x9b16
jmp 0x9c4a
movl -0x238(%rbp), %eax
addl -0x234(%rbp), %eax
movl %eax, -0x234(%rbp)
cmpl $0x0, -0x24(%rbp)
jl 0x9b3e
movl -0x234(%rbp), %eax
addl -0x24(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x9b43
jmp 0x9c4a
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, 0x7105(%rip)      # 0x10c7c
je 0x9bc5
movslq -0x234(%rbp), %rax
addq $0x9, %rax
cmpq $0x200, %rax            # imm = 0x200
jbe 0x9b91
jmp 0x9c4a
movslq -0x234(%rbp), %rax
movq 0x70d1(%rip), %rcx      # 0x10c70
movq %rcx, -0x230(%rbp,%rax)
movb 0x70cb(%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 0x2aef(%rip), %rdx      # 0xc6da
movb $0x0, %al
callq 0x2120
movl %eax, -0x238(%rbp)
cmpl $0x0, -0x238(%rbp)
jl 0x9c14
movl -0x234(%rbp), %eax
addl -0x238(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x9c16
jmp 0x9c4a
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 0x9c5c
callq 0x2060
movl $0x1c, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x240, %rsp            # imm = 0x240
popq %rbp
retq
nopl (%rax,%rax)