// File: /workspace/github_c_makefile_star2_O0/loversmile[P]sugarcrm/sugar_stdsoap2.c
// Function: soap_match_namespace
SOAP_FMAC2
soap_match_namespace(struct soap *soap, const char *id1, const char *id2, size_t n1, size_t n2) 
{ register struct soap_nlist *np = soap->nlist;
  while (np && (strncmp(np->id, id1, n1) || np->id[n1]))
    np = np->next;
  if (np)
  { if (!(soap->mode & SOAP_XML_IGNORENS))
      if (np->index < 0
       || (soap->local_namespaces[np->index].id
        && (strncmp(soap->local_namespaces[np->index].id, id2, n2)
         || soap->local_namespaces[np->index].id[n2])))
        return SOAP_NAMESPACE;
    return SOAP_OK;
  }
  if (n1 == 0)
    return SOAP_NAMESPACE;
  if ((n1 == 3 && n1 == n2 && !strncmp(id1, "xml", 3) && !strncmp(id1, id2, 3))
   || (soap->mode & SOAP_XML_IGNORENS))
    return SOAP_OK;
  return soap->error = SOAP_SYNTAX_ERROR; 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x88(%rax), %rax
movq %rax, -0x38(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x38(%rbp)
movb %al, -0x39(%rbp)
je 0x55204
movq -0x38(%rbp), %rdi
addq $0x18, %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x3080
movl %eax, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x3a(%rbp)
jne 0x551fe
movq -0x38(%rbp), %rax
movq -0x28(%rbp), %rcx
movsbl 0x18(%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x3a(%rbp)
movb -0x3a(%rbp), %al
movb %al, -0x39(%rbp)
movb -0x39(%rbp), %al
testb $0x1, %al
jne 0x5520d
jmp 0x5521a
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x551bb
cmpq $0x0, -0x38(%rbp)
je 0x552dd
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
jne 0x552d1
movq -0x38(%rbp), %rax
movswl 0xc(%rax), %eax
cmpl $0x0, %eax
jl 0x552c3
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x38(%rbp), %rcx
movswq 0xc(%rcx), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
je 0x552cf
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x38(%rbp), %rcx
movswq 0xc(%rcx), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x20(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x3080
cmpl $0x0, %eax
jne 0x552c3
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x38(%rbp), %rcx
movswq 0xc(%rcx), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x30(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x552cf
movl $0x9, -0x4(%rbp)
jmp 0x5535e
jmp 0x552d1
movl $0x0, -0x4(%rbp)
jmp 0x5535e
cmpq $0x0, -0x28(%rbp)
jne 0x552ed
movl $0x9, -0x4(%rbp)
jmp 0x5535e
cmpq $0x3, -0x28(%rbp)
jne 0x5532f
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jne 0x5532f
movq -0x18(%rbp), %rdi
leaq 0x25b43(%rip), %rsi     # 0x7ae4c
movl $0x3, %edx
callq 0x3080
cmpl $0x0, %eax
jne 0x5532f
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl $0x3, %edx
callq 0x3080
cmpl $0x0, %eax
je 0x55340
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
je 0x55349
movl $0x0, -0x4(%rbp)
jmp 0x5535e
movq -0x10(%rbp), %rax
movl $0x5, 0x19214(%rax)
movl $0x5, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)