// File: st0ne[P]XReflectorPlus/dxrfd.cpp
// Function: print_users()
static void print_users()
{
   a_user_list_type::iterator pos;
   struct a_user *a_user_ptr;

   inbound_type::iterator pos2;
   inbound *inbound_ptr;

   struct tm tm;

   char buf[256];
   for (pos = a_user_list.begin(); pos != a_user_list.end(); pos++)
   {
      a_user_ptr = (struct a_user *)pos->second; 
      localtime_r(&(a_user_ptr->connect_time),&tm);
      snprintf(buf, 255, "%s,%s,REPEATER,%02d%02d%02d,%02d:%02d:%02d,%s\n", 
               a_user_ptr->call,
               pos->first.c_str(),
               tm.tm_mon+1,tm.tm_mday,tm.tm_year % 100,
               tm.tm_hour,tm.tm_min,tm.tm_sec,
               a_user_ptr->isMute?"Muted":"notMuted");
     
      sendto(cmd_sock, buf, strlen(buf), 
             0, (struct sockaddr *)&fromCmd,
             sizeof(struct sockaddr_in));
   }

   for (pos2 = inbound_list.begin(); pos2 != inbound_list.end(); pos2++)
   {
      inbound_ptr = (inbound *)pos2->second;
      localtime_r(&(inbound_ptr->connect_time),&tm);
      snprintf(buf, 255, "%s,%s,%s(%.8s),%02d%02d%02d,%02d:%02d:%02d,%s\n",
               inbound_ptr->call,
               pos2->first.c_str(),
               inbound_ptr->is_ref?"REPEATER":"DONGLE",
               inbound_ptr->serial,
               tm.tm_mon+1,tm.tm_mday,tm.tm_year % 100,
               tm.tm_hour,tm.tm_min,tm.tm_sec,
               inbound_ptr->isMute?"Muted":"notMuted");
    
      sendto(cmd_sock, buf, strlen(buf),
             0, (struct sockaddr *)&fromCmd,
             sizeof(struct sockaddr_in));
   }
   return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
leaq -0x30(%rbp), %rdi
callq 0x13d50
leaq -0x40(%rbp), %rdi
callq 0x10840
leaq 0x10833(%rip), %rdi     # 0x1f380
callq 0x13d70
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x10815(%rip), %rdi     # 0x1f380
callq 0x13dd0
movq %rax, -0x190(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x13da0
testb $0x1, %al
jne 0xeb90
jmp 0xecc0
leaq -0x30(%rbp), %rdi
callq 0x13e00
movq 0x20(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
addq $0x10, %rdi
leaq -0x80(%rbp), %rsi
callq 0x3190
leaq -0x180(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x1c8(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x13e00
movq %rax, %rdi
callq 0x3140
movq -0x1d0(%rbp), %rdi
movq -0x1c8(%rbp), %rcx
movq %rax, %r8
movl -0x70(%rbp), %r9d
addl $0x1, %r9d
movl -0x74(%rbp), %r15d
movl -0x6c(%rbp), %eax
movl $0x64, %esi
cltd
idivl %esi
movl %edx, %r14d
movl -0x78(%rbp), %ebx
movl -0x7c(%rbp), %r11d
movl -0x80(%rbp), %r10d
movq -0x38(%rbp), %rax
movb 0x9(%rax), %sil
leaq 0x9201(%rip), %rax      # 0x17e22
leaq 0x91fd(%rip), %rdx      # 0x17e25
testb $0x1, %sil
cmovneq %rdx, %rax
movl $0xff, %esi
leaq 0x91b7(%rip), %rdx      # 0x17df3
movl %r15d, (%rsp)
movl %r14d, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
movl %r11d, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movb $0x0, %al
callq 0x34c0
movl 0x10677(%rip), %eax     # 0x1f2dc
movl %eax, -0x1bc(%rbp)
leaq -0x180(%rbp), %rax
movq %rax, -0x1b8(%rbp)
leaq -0x180(%rbp), %rdi
callq 0x3150
movl -0x1bc(%rbp), %edi
movq -0x1b8(%rbp), %rsi
movq %rax, %rdx
xorl %ecx, %ecx
leaq 0x143d2(%rip), %r8      # 0x23070
movl $0x10, %r9d
callq 0x3080
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
callq 0x13e20
movq %rax, -0x198(%rbp)
jmp 0xeb64
leaq 0x10689(%rip), %rdi     # 0x1f350
callq 0x10860
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq 0x1066b(%rip), %rdi     # 0x1f350
callq 0x108c0
movq %rax, -0x1a8(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x1a8(%rbp), %rsi
callq 0x10890
testb $0x1, %al
jne 0xed0a
jmp 0xee68
leaq -0x40(%rbp), %rdi
callq 0x108f0
movq 0x20(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
addq $0x10, %rdi
leaq -0x80(%rbp), %rsi
callq 0x3190
leaq -0x180(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x1e8(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x108f0
movq %rax, %rdi
callq 0x3140
movq -0x1f0(%rbp), %rdi
movq -0x1e8(%rbp), %rcx
movq %rax, %r8
movq -0x48(%rbp), %rax
movb 0x2b(%rax), %dl
leaq 0x90ee(%rip), %r9       # 0x17e63
leaq 0x90de(%rip), %rax      # 0x17e5a
testb $0x1, %dl
cmovneq %rax, %r9
movq -0x48(%rbp), %r13
addq $0x31, %r13
movl -0x70(%rbp), %r12d
addl $0x1, %r12d
movl -0x74(%rbp), %r15d
movl -0x6c(%rbp), %eax
movl $0x64, %esi
cltd
idivl %esi
movl %edx, %r14d
movl -0x78(%rbp), %ebx
movl -0x7c(%rbp), %r11d
movl -0x80(%rbp), %r10d
movq -0x48(%rbp), %rax
movb 0x9(%rax), %sil
leaq 0x9063(%rip), %rax      # 0x17e22
leaq 0x905f(%rip), %rdx      # 0x17e25
testb $0x1, %sil
cmovneq %rdx, %rax
movl $0xff, %esi
leaq 0x9051(%rip), %rdx      # 0x17e2b
movq %r13, (%rsp)
movl %r12d, 0x8(%rsp)
movl %r15d, 0x10(%rsp)
movl %r14d, 0x18(%rsp)
movl %ebx, 0x20(%rsp)
movl %r11d, 0x28(%rsp)
movl %r10d, 0x30(%rsp)
movq %rax, 0x38(%rsp)
movb $0x0, %al
callq 0x34c0
movl 0x104cf(%rip), %eax     # 0x1f2dc
movl %eax, -0x1dc(%rbp)
leaq -0x180(%rbp), %rax
movq %rax, -0x1d8(%rbp)
leaq -0x180(%rbp), %rdi
callq 0x3150
movl -0x1dc(%rbp), %edi
movq -0x1d8(%rbp), %rsi
movq %rax, %rdx
xorl %ecx, %ecx
leaq 0x1422a(%rip), %r8      # 0x23070
movl $0x10, %r9d
callq 0x3080
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
callq 0x10910
movq %rax, -0x1b0(%rbp)
jmp 0xecde
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw (%rax,%rax)