// File: /workspace/github_cpp_makefile_star2_O2/ncbi[P]amr/curl_easy.cpp
// Function: CURL_sp::(anonymous namespace)::write_stream_cb(char*, unsigned long, unsigned long, void*)
size_t write_stream_cb (char* ptr,
                          size_t size, 
                          size_t nMemb, 
                          void* userData)
  {
    ASSERT (ptr);
    ASSERT (size == 1);
    ASSERT (userData);
    
    OFStream& f = * static_cast <OFStream*> (userData);
    FOR (size_t, i, nMemb)
      f << ptr [i];
    
    return nMemb;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
callq 0xa970
andl $0x0, (%rax)
testq %r15, %r15
je 0x3d702
cmpq $0x1, %r12
jne 0x3d7d4
testq %r14, %r14
je 0x3d8a6
xorl %r12d, %r12d
cmpq %r12, %rbx
je 0x3d6f0
movsbl (%r15,%r12), %esi
movq %r14, %rdi
callq 0xa600
incq %r12
jmp 0x3d6d9
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0xa770
testl %eax, %eax
jne 0x3d978
leaq 0x5fa2(%rip), %rsi      # 0x436b8
leaq 0x68(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xe1e4
leaq 0x48(%rsp), %rdi
pushq $0x49
popq %rsi
callq 0xee49
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0xea95
leaq 0x1d67(%rip), %rdx      # 0x3f4b7
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0xeafc
leaq 0x604b(%rip), %rsi      # 0x437b7
leaq 0x8(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0xe1e4
leaq 0x27ea(%rip), %rdx      # 0x3ff6c
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xeafc
leaq 0xc8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0xea95
leaq 0x605c(%rip), %rdx      # 0x4380e
leaq 0xe8(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0xeafc
leaq 0xe8(%rsp), %rdi
callq 0x1235c
callq 0xa770
testl %eax, %eax
jne 0x3d978
leaq 0x5ed0(%rip), %rsi      # 0x436b8
leaq 0x68(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xe1e4
leaq 0x48(%rsp), %rdi
pushq $0x4a
popq %rsi
callq 0xee49
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0xea95
leaq 0x1c95(%rip), %rdx      # 0x3f4b7
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0xeafc
leaq 0x5f79(%rip), %rsi      # 0x437b7
leaq 0x8(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0xe1e4
leaq 0x2718(%rip), %rdx      # 0x3ff6c
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xeafc
leaq 0xc8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0xea95
leaq 0x5f8e(%rip), %rdx      # 0x43812
leaq 0xe8(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0xeafc
leaq 0xe8(%rsp), %rdi
callq 0x1235c
callq 0xa770
testl %eax, %eax
jne 0x3d978
leaq 0x5dfe(%rip), %rsi      # 0x436b8
leaq 0x68(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xe1e4
leaq 0x48(%rsp), %rdi
pushq $0x4b
popq %rsi
callq 0xee49
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0xea95
leaq 0x1bc3(%rip), %rdx      # 0x3f4b7
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0xeafc
leaq 0x5ea7(%rip), %rsi      # 0x437b7
leaq 0x8(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0xe1e4
leaq 0x2646(%rip), %rdx      # 0x3ff6c
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xeafc
leaq 0xc8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0xea95
leaq 0x5ec6(%rip), %rdx      # 0x4381c
leaq 0xe8(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0xeafc
leaq 0xe8(%rsp), %rdi
callq 0x1235c
pushq $0x1
popq %rdi
callq 0xa620
jmp 0x3d988
jmp 0x3d99a
jmp 0x3d988
jmp 0x3d99a
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0xab20
jmp 0x3d99d
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0xab20
jmp 0x3d9b3
jmp 0x3d9b0
jmp 0x3d9b0
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xab20
jmp 0x3d9c6
jmp 0x3d9c3
jmp 0x3d9c3
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xab20
jmp 0x3d9d9
jmp 0x3d9d6
jmp 0x3d9d6
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0xab20
jmp 0x3d9ef
jmp 0x3d9ec
jmp 0x3d9ec
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0xab20
jmp 0x3da05
jmp 0x3da02
jmp 0x3da02
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0xab20
jmp 0x3da18
jmp 0x3da15
jmp 0x3da15
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0xab20
jmp 0x3da2b
jmp 0x3da28
jmp 0x3da28
movq %rax, %rbx
movq %rbx, %rdi
callq 0xa5d0
nop