// File: /workspace/github_c_makefile_star2_O0/loversmile[P]sugarcrm/sugar_stdsoap2.c
// Function: soap_print_fault
SOAP_FMAC2
soap_print_fault(struct soap *soap, FILE *fd)
{ if (soap_check_state(soap))
    fprintf(fd, "Error: soap struct state not initialized\n");
  else if (soap->error)
  { const char *c, *v = NULL, *s, **d;
    d = soap_faultcode(soap);
    if (!*d)
      soap_set_fault(soap);
    c = *d;
    if (soap->version == 2)
      v = *soap_faultsubcode(soap);
    s = *soap_faultstring(soap);
    d = soap_faultdetail(soap);
    fprintf(fd, "%s%d fault: %s [%s]\n\"%s\"\nDetail: %s\n", soap->version ? "SOAP 1." : "Error ", soap->version ? (int)soap->version : soap->error, c, v ? v : "no subcode", s ? s : "[no reason]", d && *d ? *d : "[no detail]");
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x6e2f2
movq -0x8(%rbp), %rax
movswl (%rax), %eax
cmpl $0x1, %eax
je 0x6e309
movq -0x8(%rbp), %rax
movswl (%rax), %eax
cmpl $0x2, %eax
je 0x6e309
movq -0x10(%rbp), %rdi
leaq 0xd240(%rip), %rsi      # 0x7b53d
movb $0x0, %al
callq 0x3220
jmp 0x6e490
movq -0x8(%rbp), %rax
cmpl $0x0, 0x19214(%rax)
je 0x6e48e
movq $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3dd0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x6e342
movq -0x8(%rbp), %rdi
callq 0x6ce90
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %eax
cmpl $0x2, %eax
jne 0x6e36a
movq -0x8(%rbp), %rdi
callq 0x3e20
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3ed0
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3f30
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %edx
leaq 0xd1f6(%rip), %rax      # 0x7b594
leaq 0xd1e7(%rip), %rcx      # 0x7b58c
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %eax
cmpl $0x0, %eax
je 0x6e3ca
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %eax
movl %eax, -0x44(%rbp)
jmp 0x6e3d7
movq -0x8(%rbp), %rax
movl 0x19214(%rax), %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x6e3f6
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x6e403
leaq 0xd19e(%rip), %rax      # 0x7b59b
movq %rax, -0x60(%rbp)
jmp 0x6e403
movq -0x60(%rbp), %rax
movq %rax, -0x68(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x6e41c
movq -0x28(%rbp), %rax
movq %rax, -0x70(%rbp)
jmp 0x6e429
leaq 0xd183(%rip), %rax      # 0x7b5a6
movq %rax, -0x70(%rbp)
jmp 0x6e429
movq -0x70(%rbp), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x6e44f
movq -0x30(%rbp), %rax
cmpq $0x0, (%rax)
je 0x6e44f
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x80(%rbp)
jmp 0x6e45c
leaq 0xd15c(%rip), %rax      # 0x7b5b2
movq %rax, -0x80(%rbp)
jmp 0x6e45c
movq -0x78(%rbp), %r10
movq -0x68(%rbp), %r9
movq -0x50(%rbp), %r8
movl -0x54(%rbp), %ecx
movq -0x38(%rbp), %rdx
movq -0x40(%rbp), %rdi
movq -0x80(%rbp), %rax
leaq 0xd0e9(%rip), %rsi      # 0x7b567
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
movb $0x0, %al
callq 0x3220
jmp 0x6e490
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)