// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/soapC.c
// Function: soap_out_d__ResolveMatchType
SOAP_FMAC4 soap_out_d__ResolveMatchType(struct soap *soap, const char *tag, int id, const struct d__ResolveMatchType *a, const char *type)
{
	if (a->__anyAttribute)
		soap_set_attr(soap, "-anyAttribute", a->__anyAttribute, 1);
	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_d__ResolveMatchType), type))
		return soap->error;
	if (soap_out__wsa__EndpointReference(soap, "wsa:EndpointReference", -1, &a->wsa__EndpointReference, ""))
		return soap->error;
	if (soap_out_d__QNameListType(soap, "d:Types", -1, &a->Types, ""))
		return soap->error;
	if (soap_out_PointerTod__ScopesType(soap, "d:Scopes", -1, &a->Scopes, ""))
		return soap->error;
	if (a->XAddrs)
	{	if (soap_out_d__UriListType(soap, "d:XAddrs", -1, &a->XAddrs, ""))
			return soap->error;
	}
	else if (soap_element_nil(soap, "d:XAddrs"))
		return soap->error;
	if (soap_out_unsignedInt(soap, "d:MetadataVersion", -1, &a->MetadataVersion, ""))
		return soap->error;
	if (a->__any)
	{	int i;
		for (i = 0; i < a->__size; i++)
			soap_outliteral(soap, "-any", a->__any + i, NULL);
	}
	return soap_element_end_out(soap, tag);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x28(%rbp), %rax
cmpq $0x0, 0x68(%rax)
je 0xcdf3
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x68(%rax), %rdx
leaq 0x2bac9(%rip), %rsi     # 0x388b2
movl $0x1, %ecx
callq 0x294c0
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x28(%rbp), %rdx
movl $0x34, %ecx
callq 0x23f60
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl %eax, %edx
movq -0x30(%rbp), %rcx
callq 0x24590
cmpl $0x0, %eax
je 0xce42
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xcffa
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
leaq 0x2b922(%rip), %rsi     # 0x38773
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2cbc6(%rip), %r8      # 0x39a23
callq 0xdc80
cmpl $0x0, %eax
je 0xce79
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xcffa
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x40, %rcx
leaq 0x2ba4c(%rip), %rsi     # 0x388d8
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2cb8b(%rip), %r8      # 0x39a23
callq 0x130c0
cmpl $0x0, %eax
je 0xceb4
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xcffa
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x48, %rcx
leaq 0x2ba19(%rip), %rsi     # 0x388e0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2cb50(%rip), %r8      # 0x39a23
callq 0xe720
cmpl $0x0, %eax
je 0xceef
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xcffa
movq -0x28(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0xcf37
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x50, %rcx
leaq 0x2b9dc(%rip), %rsi     # 0x388e9
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2cb0a(%rip), %r8      # 0x39a23
callq 0x13100
cmpl $0x0, %eax
je 0xcf35
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xcffa
jmp 0xcf60
movq -0x10(%rbp), %rdi
leaq 0x2b9a7(%rip), %rsi     # 0x388e9
callq 0x2a580
cmpl $0x0, %eax
je 0xcf5e
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xcffa
jmp 0xcf60
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x58, %rcx
leaq 0x2b97f(%rip), %rsi     # 0x388f2
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2caa4(%rip), %r8      # 0x39a23
callq 0xc700
cmpl $0x0, %eax
je 0xcf98
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xcffa
movq -0x28(%rbp), %rax
cmpq $0x0, 0x60(%rax)
je 0xcfea
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x5c(%rcx), %eax
jge 0xcfe8
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x60(%rax), %rdx
movslq -0x34(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
leaq 0x2b86b(%rip), %rsi     # 0x3883f
xorl %eax, %eax
movl %eax, %ecx
callq 0x31110
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0xcfaa
jmp 0xcfea
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x24680
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)