// File: /workspace/github_cpp_makefile_star2_O1/mh0fm4[P]SCDC/src/components/transport/transport.cc
// Function: recv_incoming_dataset_inout(scdc_transport_connection_t*, _scdc_dataset_inout_t*, long long, bool&, scdc_transport*, bool&)
static bool recv_incoming_dataset_inout(scdc_transport_connection_t *conn, scdc_dataset_inout_t *inout, scdcint_t max_recv, bool &cont_recv, scdc_transport *transport, bool &inout_intern)
{
  inout_intern = !incoming_dataset_inout_has_buf(conn, inout);

  if (inout_intern)
  {
    bool ret = recv_incoming_dataset_inout_intern(conn, inout, max_recv, cont_recv, transport);

    if (!SCDC_DATASET_INOUT_BUF_PTR(inout)) inout_intern = false;

    return ret;
  }

  return recv_incoming_dataset_inout_extern(conn, inout, max_recv, cont_recv);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r13
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
movq 0x10(%rsi), %rbp
testq %rbp, %rbp
je 0x6076e
cmpq $0x0, 0x18(%r15)
jle 0x6076e
movq 0x38(%r14), %rax
cmpq %rbp, %rax
setbe %cl
addq 0x40(%r14), %rax
cmpq %rbp, %rax
seta %al
andb %cl, %al
movb %al, (%r13)
jne 0x60773
movq %rbx, (%rsp)
movq 0x18(%r15), %rbx
movq 0x20(%r15), %rax
addq %rax, %rbp
subq %rax, %rbx
testq %r12, %r12
jle 0x6070f
movq 0x50(%r14), %rax
movq 0x58(%r14), %rcx
movq 0x38(%r14), %rsi
addq %rcx, %rsi
subq %rcx, %rax
cmpq %r12, %rbx
movq %r12, %r13
cmovlq %rbx, %r13
cmpq %rax, %r13
cmovgeq %rax, %r13
movq %rbp, %rdi
movq %r13, %rdx
callq 0xb3f0
addq %r13, 0x58(%r14)
addq %r13, %rbp
subq %r13, %rbx
subq %r13, %r12
addq %r13, 0x20(%r15)
testq %r12, %r12
jle 0x60896
cmpq %rbx, %r12
movq %rbx, %rax
cmovlq %r12, %rax
testq %rbx, %rbx
jle 0x60762
movq (%r14), %rdi
movq (%rdi), %r8
movq %r14, %rsi
movq %rbp, %rdx
movq %rax, %rcx
callq *0x80(%r8)
testq %rax, %rax
js 0x60762
addq %rax, 0x28(%r14)
addq %rax, %rbp
subq %rax, %rbx
subq %rax, %r12
addq %rax, 0x20(%r15)
cmpq %rbx, %r12
movq %rbx, %rax
cmovlq %r12, %rax
testq %rax, %rax
jg 0x60727
testq %rax, %rax
setns %sil
jmp 0x60899
movb $0x1, (%r13)
leaq 0x10(%r15), %rbp
cmpq $0x0, 0x20(%r15)
sete %sil
je 0x60822
leaq 0x2bde3(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x60888
addq $0x20, %rdi
movl %esi, %r15d
callq 0xb7d0
movq (%r14), %rax
movq 0x18(%rax), %rbx
leaq 0xd2e4(%rip), %rsi      # 0x6da99
movl $0xc, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xd63f(%rip), %rsi      # 0x6de08
movl $0xb, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xd2c9(%rip), %rsi      # 0x6daa6
movl $0x63, %edx
movq %rbx, %rdi
callq 0xb5f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xb4d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0xb050
movq %rax, %rdi
callq 0xb340
movq (%r14), %rdi
addq $0x20, %rdi
callq 0xb3b0
movl %r15d, %esi
jmp 0x60888
testq %r12, %r12
jle 0x60876
movq 0x50(%r14), %rax
cmpq 0x58(%r14), %rax
jg 0x60848
movq (%r8), %rax
movq %r8, %rdi
movb %sil, (%rsp)
movq %r14, %rsi
callq *0xc8(%rax)
movb (%rsp), %sil
movq 0x50(%r14), %rax
movq 0x58(%r14), %rcx
subq %rcx, %rax
cmpq %r12, %rax
cmovgeq %r12, %rax
movq 0x38(%r14), %rdx
addq %rcx, %rdx
movq %rdx, 0x10(%r15)
movq %rax, 0x18(%r15)
movq %rax, 0x20(%r15)
addq %rcx, %rax
movq %rax, 0x58(%r14)
jmp 0x60885
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
movq $0x0, 0x10(%rbp)
movb $0x0, (%rbx)
cmpq $0x0, (%rbp)
jne 0x608a0
movb $0x0, (%r13)
jmp 0x608a0
movb $0x1, %sil
movq (%rsp), %rax
movb $0x1, (%rax)
movl %esi, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop