// File: /workspace/github_cpp_makefile_star2_O2/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, %r12
movq %rcx, (%rsp)
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r14
movq 0x10(%rsi), %rbx
testq %rbx, %rbx
je 0x4a161
movq 0x18(%r15), %rbp
testq %rbp, %rbp
jle 0x4a161
movq 0x38(%r14), %rsi
cmpq %rbx, %rsi
setbe %al
movq 0x40(%r14), %rcx
addq %rsi, %rcx
cmpq %rbx, %rcx
seta %cl
andb %al, %cl
movb %cl, (%r12)
cmpb $0x1, %cl
je 0x4a166
movb $0x1, %dl
testq %r13, %r13
jle 0x4a25b
movq 0x20(%r15), %rax
subq %rax, %rbp
addq %rax, %rbx
movq 0x50(%r14), %rax
movq 0x58(%r14), %rcx
addq %rcx, %rsi
subq %rcx, %rax
cmpq %r13, %rbp
movq %r13, %r12
cmovlq %rbp, %r12
cmpq %rax, %r12
cmovgeq %rax, %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0xb420
movb $0x1, %dl
addq %r12, 0x58(%r14)
addq %r12, 0x20(%r15)
subq %r12, %r13
jle 0x4a25b
subq %r12, %rbp
addq %r12, %rbx
cmpq %rbp, %r13
movq %rbp, %rax
cmovlq %r13, %rax
testq %rax, %rax
jle 0x4a255
movq (%r14), %rdi
movq (%rdi), %r8
movq %r14, %rsi
movq %rbx, %rdx
movq %rax, %rcx
callq *0x80(%r8)
testq %rax, %rax
js 0x4a255
addq %rax, 0x28(%r14)
addq %rax, %rbx
subq %rax, %rbp
subq %rax, %r13
addq %rax, 0x20(%r15)
jmp 0x4a11c
movb $0x1, (%r12)
leaq 0x10(%r15), %rbp
cmpq $0x0, 0x20(%r15)
sete %dl
je 0x4a1e1
leaq 0x2b405(%rip), %r14     # 0x75580
movq (%r14), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x4a249
addq $0x20, %rdi
movl %edx, %ebx
callq 0xb800
movq (%r14), %rax
movq 0x18(%rax), %rdi
leaq 0xa8f7(%rip), %rsi      # 0x54a99
callq 0xb520
leaq 0xac5a(%rip), %rsi      # 0x54e08
movq %rax, %rdi
callq 0xb520
leaq 0xa8e9(%rip), %rsi      # 0x54aa6
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
callq 0xb270
movq (%r14), %rdi
addq $0x20, %rdi
callq 0xb3e0
movl %ebx, %edx
movq (%rbp), %rbx
jmp 0x4a249
testq %r13, %r13
jle 0x4a234
movq 0x50(%r14), %rax
movq 0x58(%r14), %rcx
cmpq %rcx, %rax
jg 0x4a20e
movq (%r8), %rax
movq %r8, %rdi
movq %r14, %rsi
movl %edx, %ebx
callq *0xc8(%rax)
movl %ebx, %edx
movq 0x50(%r14), %rax
movq 0x58(%r14), %rcx
subq %rcx, %rax
cmpq %r13, %rax
cmovgeq %r13, %rax
movq 0x38(%r14), %rbx
addq %rcx, %rbx
movq %rbx, 0x10(%r15)
movq %rax, 0x18(%r15)
movq %rax, 0x20(%r15)
addq %rcx, %rax
movq %rax, 0x58(%r14)
jmp 0x4a242
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
andq $0x0, 0x10(%rbp)
xorl %ebx, %ebx
movq (%rsp), %rax
movb $0x0, (%rax)
testq %rbx, %rbx
jne 0x4a262
movb $0x0, (%r12)
jmp 0x4a262
testq %rax, %rax
setns %dl
movq (%rsp), %rax
movb $0x1, (%rax)
movl %edx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop