// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/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;
  const char *s;
  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
       || ((s = soap->local_namespaces[np->index].id) && (strncmp(s, id2, n2) || (s[n2] && s[n2] != '_'))))
        return SOAP_NAMESPACE;
    return SOAP_OK;
  }
  if (n1 == 0)
    return (soap->mode & SOAP_XML_IGNORENS) ? SOAP_OK : 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 $0x50, %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, -0x41(%rbp)
je 0x1d1c4
movq -0x38(%rbp), %rdi
addq $0x18, %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x3070
movl %eax, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x42(%rbp)
jne 0x1d1be
movq -0x38(%rbp), %rax
movq -0x28(%rbp), %rcx
movsbl 0x18(%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x42(%rbp)
movb -0x42(%rbp), %al
movb %al, -0x41(%rbp)
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x1d1cd
jmp 0x1d1da
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x1d17b
cmpq $0x0, -0x38(%rbp)
je 0x1d27d
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
jne 0x1d271
movq -0x38(%rbp), %rax
movswl 0xc(%rax), %eax
cmpl $0x0, %eax
jl 0x1d263
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 %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x1d26f
movq -0x40(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x3070
cmpl $0x0, %eax
jne 0x1d263
movq -0x40(%rbp), %rax
movq -0x30(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x1d26f
movq -0x40(%rbp), %rax
movq -0x30(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x5f, %eax
je 0x1d26f
movl $0x9, -0x4(%rbp)
jmp 0x1d314
jmp 0x1d271
movl $0x0, -0x4(%rbp)
jmp 0x1d314
cmpq $0x0, -0x28(%rbp)
jne 0x1d2a3
movq -0x10(%rbp), %rax
movl 0x4(%rax), %edx
andl $0x4000, %edx           # imm = 0x4000
movl $0x9, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x1d314
cmpq $0x3, -0x28(%rbp)
jne 0x1d2e5
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jne 0x1d2e5
movq -0x18(%rbp), %rdi
leaq 0x1cacb(%rip), %rsi     # 0x39d8a
movl $0x3, %edx
callq 0x3070
cmpl $0x0, %eax
jne 0x1d2e5
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl $0x3, %edx
callq 0x3070
cmpl $0x0, %eax
je 0x1d2f6
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
je 0x1d2ff
movl $0x0, -0x4(%rbp)
jmp 0x1d314
movq -0x10(%rbp), %rax
movl $0x5, 0x1f274(%rax)
movl $0x5, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)