// File: /workspace/github_cpp_makefile_star2_O3/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, %r14
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %r15
movq 0x10(%rsi), %rbx
testq %rbx, %rbx
je 0x6027f
movq 0x18(%r12), %rbp
testq %rbp, %rbp
jle 0x6027f
movq 0x38(%r15), %rsi
cmpq %rbx, %rsi
setbe %al
movq 0x40(%r15), %rdx
addq %rsi, %rdx
cmpq %rbx, %rdx
seta %dl
andb %al, %dl
movb %dl, (%r14)
cmpb $0x1, %dl
je 0x60283
movb $0x1, %al
testq %r13, %r13
jle 0x60277
movq 0x20(%r12), %rax
subq %rax, %rbp
addq %rax, %rbx
movq 0x50(%r15), %rax
movq 0x58(%r15), %rdx
addq %rdx, %rsi
subq %rdx, %rax
cmpq %r13, %rbp
movq %r13, %r14
cmovlq %rbp, %r14
cmpq %rax, %r14
cmovgeq %rax, %r14
movq %rbx, %rdi
movq %r14, %rdx
movq %rcx, (%rsp)
callq 0xb3f0
movb $0x1, %al
movq (%rsp), %rcx
addq %r14, 0x58(%r15)
addq %r14, 0x20(%r12)
subq %r14, %r13
jle 0x60277
subq %r14, %rbp
cmpq %rbp, %r13
movq %rbp, %rax
cmovlq %r13, %rax
testq %rbp, %rbp
jle 0x6026d
addq %r14, %rbx
movq (%r15), %rdi
movq (%rdi), %r8
movq %r15, %rsi
movq %rbx, %rdx
movq %rax, %rcx
callq *0x80(%r8)
testq %rax, %rax
js 0x6026d
addq %rax, 0x28(%r15)
addq %rax, %rbx
subq %rax, %rbp
subq %rax, %r13
addq %rax, 0x20(%r12)
cmpq %rbp, %r13
movq %rbp, %rax
cmovlq %r13, %rax
testq %rax, %rax
jg 0x60231
testq %rax, %rax
setns %al
movq (%rsp), %rcx
movb $0x1, (%rcx)
jmp 0x603b0
movb $0x1, (%r14)
leaq 0x10(%r12), %rbp
cmpq $0x0, 0x20(%r12)
sete %al
je 0x60337
leaq 0x2c2d2(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x603a7
addq $0x20, %rdi
movl %eax, %r12d
callq 0xb7d0
movq (%r15), %rax
movq 0x18(%rax), %rbx
leaq 0xd843(%rip), %rsi      # 0x6db09
movl $0xc, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xdb9e(%rip), %rsi      # 0x6de78
movl $0xb, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0xd828(%rip), %rsi      # 0x6db16
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 (%r15), %rdi
addq $0x20, %rdi
callq 0xb3b0
movl %r12d, %eax
movq (%rbp), %rbx
jmp 0x603a7
testq %r13, %r13
jle 0x60393
movq 0x50(%r15), %rsi
movq 0x58(%r15), %rdx
cmpq %rdx, %rsi
jg 0x6036a
movq (%r8), %rdx
movq %r8, %rdi
movq %r15, %rsi
movq %rcx, %rbx
movl %eax, %ebp
callq *0xc8(%rdx)
movl %ebp, %eax
movq %rbx, %rcx
movq 0x50(%r15), %rsi
movq 0x58(%r15), %rdx
subq %rdx, %rsi
cmpq %r13, %rsi
cmovgeq %r13, %rsi
movq 0x38(%r15), %rbx
addq %rdx, %rbx
movq %rbx, 0x10(%r12)
movq %rsi, 0x18(%r12)
movq %rsi, 0x20(%r12)
addq %rdx, %rsi
movq %rsi, 0x58(%r15)
jmp 0x603a4
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
movq $0x0, 0x10(%rbp)
xorl %ebx, %ebx
movb $0x0, (%rcx)
testq %rbx, %rbx
jne 0x603b0
movb $0x0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop