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

    rc = snprintf(buf + i, 512 - i, "d1:rd2:id20:"); INC(i, rc, 512);
    COPY(buf, i, myid, 20, 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:re"); 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 0x3e51(%rip), %rdx      # 0xc9aa
movb $0x0, %al
callq 0x2120
movl %eax, -0x238(%rbp)
cmpl $0x0, -0x238(%rbp)
jl 0x8b82
movl -0x234(%rbp), %eax
addl -0x238(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x8b87
jmp 0x8d7a
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 0x8bae
jmp 0x8d7a
movslq -0x234(%rbp), %rax
movq 0x8074(%rip), %rcx      # 0x10c30
movq %rcx, -0x230(%rbp,%rax)
movq 0x806d(%rip), %rcx      # 0x10c38
movq %rcx, -0x228(%rbp,%rax)
movl 0x8067(%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 0x3d46(%rip), %rdx      # 0xc95e
movb $0x0, %al
callq 0x2120
movl %eax, -0x238(%rbp)
cmpl $0x0, -0x238(%rbp)
jl 0x8c41
movl -0x234(%rbp), %eax
addl -0x238(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x8c46
jmp 0x8d7a
movl -0x238(%rbp), %eax
addl -0x234(%rbp), %eax
movl %eax, -0x234(%rbp)
cmpl $0x0, -0x24(%rbp)
jl 0x8c6e
movl -0x234(%rbp), %eax
addl -0x24(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x8c73
jmp 0x8d7a
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, 0x7fd5(%rip)      # 0x10c7c
je 0x8cf5
movslq -0x234(%rbp), %rax
addq $0x9, %rax
cmpq $0x200, %rax            # imm = 0x200
jbe 0x8cc1
jmp 0x8d7a
movslq -0x234(%rbp), %rax
movq 0x7fa1(%rip), %rcx      # 0x10c70
movq %rcx, -0x230(%rbp,%rax)
movb 0x7f9b(%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 0x3c9c(%rip), %rdx      # 0xc9b7
movb $0x0, %al
callq 0x2120
movl %eax, -0x238(%rbp)
cmpl $0x0, -0x238(%rbp)
jl 0x8d44
movl -0x234(%rbp), %eax
addl -0x238(%rbp), %eax
cmpl $0x200, %eax            # imm = 0x200
jle 0x8d46
jmp 0x8d7a
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 0x8d8c
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)