// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/test/units/redirect/redirect_srv.c
// Function: main
int main(int argc, char *argv[])
{
  scdc_init(SCDC_INIT_DEFAULT);

  TRACE_F("dataprov open");
  scdc_dataprov_t dp = scdc_dataprov_open(REDIRECT_TEST_SCDC_PATH, "hook", &redirect_test_hook);

  TRACE_F("nodeport open");
  scdc_nodeport_t np = scdc_nodeport_open("uds:socketname:max_connections", "redirect", 2);
/*  scdc_nodeport_t np = scdc_nodeport_open("tcp:max_connections", 2);*/

  TRACE_F("nodeport start");
  scdc_nodeport_start(np, SCDC_NODEPORT_START_ASYNC_UNTIL_CANCEL);

  printf(TRACE_PREFIX "Press <ENTER> to quit!\n");
  getchar();

  TRACE_F("nodeport stop");
  scdc_nodeport_stop(np);

  TRACE_F("nodeport close");
  scdc_nodeport_close(np);

  TRACE_F("dataprov close");
  scdc_dataprov_close(dp);

  scdc_release();

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x4622f(%rip), %rdi     # 0x5245d
xorl %eax, %eax
callq 0x16f1d
movq 0x68d7c(%rip), %rbx     # 0x74fb8
movq (%rbx), %rdi
leaq 0x43dbe(%rip), %r12     # 0x50004
leaq 0x43dca(%rip), %rdx     # 0x50017
movq %r12, %rsi
xorl %eax, %eax
callq 0xb7d0
movq (%rbx), %rcx
leaq 0x43dbb(%rip), %rdi     # 0x5001c
pushq $0xd
popq %r13
pushq $0x1
popq %r15
movq %r13, %rsi
movq %r15, %rdx
callq 0xbaa0
movq (%rbx), %rsi
pushq $0xa
popq %rbp
movl %ebp, %edi
callq 0xb6b0
leaq 0x43da2(%rip), %rdi     # 0x5002a
leaq 0x475b1(%rip), %rsi     # 0x53840
leaq 0x6689a(%rip), %rdx     # 0x72b30
xorl %eax, %eax
callq 0x17278
movq %rax, (%rsp)
movq (%rbx), %rdi
movq %r12, %rsi
leaq 0x43d69(%rip), %rdx     # 0x50017
movq %rdx, %r14
xorl %eax, %eax
callq 0xb7d0
movq (%rbx), %rcx
leaq 0x43d71(%rip), %rdi     # 0x50033
movq %r13, %rsi
movq %r15, %rdx
callq 0xbaa0
movq (%rbx), %rsi
movl %ebp, %edi
callq 0xb6b0
leaq 0x43d63(%rip), %rdi     # 0x50041
pushq $0x2
popq %rdx
leaq 0x43d42(%rip), %rsi     # 0x5002a
xorl %eax, %eax
callq 0x17416
movq %rax, %r13
movq (%rbx), %rdi
movq %r12, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0xb7d0
movq (%rbx), %rcx
leaq 0x43d54(%rip), %rdi     # 0x50060
pushq $0xe
popq %rsi
movq %r15, %rdx
callq 0xbaa0
movq (%rbx), %rsi
movl %ebp, %edi
callq 0xb6b0
pushq $0x4
popq %rsi
movq %r13, %rdi
callq 0x174f0
leaq 0x43d68(%rip), %rdi     # 0x5009b
callq 0xb8a0
callq 0xb790
movq (%rbx), %rdi
movq %r12, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0xb7d0
movq (%rbx), %rcx
leaq 0x43d18(%rip), %rdi     # 0x5006f
pushq $0xd
popq %rsi
movq %r15, %rdx
callq 0xbaa0
movq (%rbx), %rsi
movl %ebp, %edi
callq 0xb6b0
movq %r13, %rdi
callq 0x1751f
movq (%rbx), %rdi
movq %r12, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0xb7d0
movq (%rbx), %rcx
leaq 0x43cef(%rip), %rdi     # 0x5007d
pushq $0xe
popq %r15
movq %r15, %rsi
pushq $0x1
popq %rdx
callq 0xbaa0
movq (%rbx), %rsi
movl %ebp, %edi
callq 0xb6b0
movq %r13, %rdi
callq 0x174ce
movq (%rbx), %rdi
movq %r12, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0xb7d0
movq (%rbx), %rcx
leaq 0x43cc3(%rip), %rdi     # 0x5008c
movq %r15, %rsi
pushq $0x1
popq %rdx
callq 0xbaa0
movq (%rbx), %rsi
movl %ebp, %edi
callq 0xb6b0
movq (%rsp), %rdi
callq 0x17336
callq 0x17032
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)