// File: /workspace/github_c_makefile_star2_O0/loversmile[P]sugarcrm/sugar_stdsoap2.c
// Function: soap_putmimehdr
SOAP_FMAC2
soap_putmimehdr(struct soap *soap, struct soap_multipart *content)
{ const char *s;
  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "MIME attachment type=%s\n", content->type?content->type:SOAP_STR_EOS));
  if (soap_send3(soap, "\r\n--", soap->mime.boundary, "\r\n"))
    return soap->error;
  if (content->type && soap_send3(soap, "Content-Type: ", content->type, "\r\n"))
    return soap->error;
  s = soap_code_str(mime_codes, content->encoding);
  if (s && soap_send3(soap, "Content-Transfer-Encoding: ", s, "\r\n"))
    return soap->error;
  if (content->id && soap_send3(soap, "Content-ID: ", content->id, "\r\n"))
    return soap->error;
  if (content->location && soap_send3(soap, "Content-Location: ", content->location, "\r\n"))
    return soap->error;
  if (content->description && soap_send3(soap, "Content-Description: ", content->description, "\r\n"))
    return soap->error;
  return soap_send_raw(soap, "\r\n", 2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x19288(%rax), %rdx
leaq 0x10ac3(%rip), %rsi     # 0x7ac89
leaq 0x106f4(%rip), %rcx     # 0x7a8c1
callq 0x4f3c0
cmpl $0x0, %eax
je 0x6a1e9
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x6a351
movq -0x18(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x6a22a
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdx
leaq 0x10a87(%rip), %rsi     # 0x7ac8e
leaq 0x106b3(%rip), %rcx     # 0x7a8c1
callq 0x4f3c0
cmpl $0x0, %eax
je 0x6a22a
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x6a351
movq -0x18(%rbp), %rax
movl 0x30(%rax), %eax
movl %eax, %esi
leaq 0x24256(%rip), %rdi     # 0x8e490
callq 0x500d0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x6a27c
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq 0x10a44(%rip), %rsi     # 0x7ac9d
leaq 0x10661(%rip), %rcx     # 0x7a8c1
callq 0x4f3c0
cmpl $0x0, %eax
je 0x6a27c
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x6a351
movq -0x18(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x6a2bd
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rdx
leaq 0x10a1f(%rip), %rsi     # 0x7acb9
leaq 0x10620(%rip), %rcx     # 0x7a8c1
callq 0x4f3c0
cmpl $0x0, %eax
je 0x6a2bd
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x6a351
movq -0x18(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x6a2fb
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rdx
leaq 0x109eb(%rip), %rsi     # 0x7acc6
leaq 0x105df(%rip), %rcx     # 0x7a8c1
callq 0x4f3c0
cmpl $0x0, %eax
je 0x6a2fb
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x6a351
movq -0x18(%rbp), %rax
cmpq $0x0, 0x40(%rax)
je 0x6a339
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rdx
leaq 0x109c0(%rip), %rsi     # 0x7acd9
leaq 0x105a1(%rip), %rcx     # 0x7a8c1
callq 0x4f3c0
cmpl $0x0, %eax
je 0x6a339
movq -0x10(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x6a351
movq -0x10(%rbp), %rdi
leaq 0x1057d(%rip), %rsi     # 0x7a8c1
movl $0x2, %edx
callq 0x4eeb0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)