// File: /workspace/github_c_makefile_star2_O1/loversmile[P]sugarcrm/sugar_stdsoap2.c
// Function: soap_inULONG64
SOAP_FMAC1
ULONG64 *
SOAP_FMAC2
soap_inULONG64(struct soap *soap, const char *tag, ULONG64 *p, const char *type, int t)
{ if (soap_element_begin_in(soap, tag, 0, NULL))
    return NULL;
  if (*soap->type
   && soap_match_tag(soap, soap->type, type)
   && soap_match_tag(soap, soap->type, ":positiveInteger")
   && soap_match_tag(soap, soap->type, ":nonNegativeInteger")
   && soap_match_tag(soap, soap->type, ":unsignedLong")
   && soap_match_tag(soap, soap->type, ":unsignedInt")
   && soap_match_tag(soap, soap->type, ":unsignedShort")
   && soap_match_tag(soap, soap->type, ":unsignedByte"))
  { soap->error = SOAP_TYPE;
    soap_revert(soap);
    return NULL;
  }
  p = (ULONG64*)soap_id_enter(soap, soap->id, p, t, sizeof(ULONG64), 0, NULL, NULL, NULL);
  if (*soap->href)
    p = (ULONG64*)soap_id_forward(soap, soap->href, p, 0, t, 0, sizeof(ULONG64), 0, NULL);
  else if (p)
  { if (soap_s2ULONG64(soap, soap_value(soap), p))
      return NULL;
  }
  if (soap->body && soap_element_end_in(soap, tag))
    return NULL;
  return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebp
movq %rcx, %r13
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
xorl %r12d, %r12d
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x3a23a
testl %eax, %eax
jne 0x46937
cmpb $0x0, 0x17538(%rbx)
je 0x4686c
leaq 0x17538(%rbx), %r12
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x3b54d
testl %eax, %eax
je 0x4686c
leaq 0xbf9a(%rip), %rdx      # 0x52747
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b54d
testl %eax, %eax
je 0x4686c
leaq 0xbfb6(%rip), %rdx      # 0x5277d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b54d
testl %eax, %eax
je 0x4686c
leaq 0xbff9(%rip), %rdx      # 0x527da
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b54d
testl %eax, %eax
je 0x4686c
leaq 0xbfd2(%rip), %rdx      # 0x527c9
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b54d
testl %eax, %eax
je 0x4686c
leaq 0xbfad(%rip), %rdx      # 0x527ba
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b54d
testl %eax, %eax
je 0x4686c
leaq 0xbf89(%rip), %rdx      # 0x527ac
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b54d
testl %eax, %eax
je 0x4686c
movl $0x4, 0x19214(%rbx)
cmpw $0x0, 0x18594(%rbx)
jne 0x46934
movw $0x1, 0x18594(%rbx)
cmpw $0x0, 0x6106(%rbx)
je 0x46934
decl 0x6108(%rbx)
jmp 0x46934
leaq 0x16d38(%rbx), %rsi
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x8, %r8d
movq %rbx, %rdi
movq %r15, %rdx
movl %ebp, %ecx
xorl %r9d, %r9d
callq 0x4000a
movq %rax, %r12
cmpb $0x0, 0x17138(%rbx)
je 0x468f6
leaq 0x17138(%rbx), %rsi
movq $0x0, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x8, (%rsp)
movq %rbx, %rdi
movq %r12, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x3feb8
movq %rax, %r12
cmpw $0x0, 0x6106(%rbx)
je 0x46937
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3a406
testl %eax, %eax
jne 0x46934
jmp 0x46937
testq %r12, %r12
je 0x46949
movq %rbx, %rdi
callq 0x4487f
testq %rax, %rax
je 0x4692b
leaq 0xbec7(%rip), %rsi      # 0x527d6
movq %rax, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x3290
cmpl $0x1, %eax
je 0x4692b
movl $0x4, 0x19214(%rbx)
cmpl $0x0, 0x19214(%rbx)
je 0x468db
xorl %r12d, %r12d
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
jmp 0x468db