// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/soapC.c
// Function: soap_out_wsa__EndpointReferenceType
SOAP_FMAC4 soap_out_wsa__EndpointReferenceType(struct soap *soap, const char *tag, int id, const struct wsa__EndpointReferenceType *a, const char *type)
{
	const char *soap_tmp_PortType = a->PortType ? soap_QName2s(soap, *a->PortType) : NULL;
	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_wsa__EndpointReferenceType), type))
		return soap->error;
	if (a->Address)
	{	if (soap_out_string(soap, "wsa:Address", -1, &a->Address, ""))
			return soap->error;
	}
	else if (soap_element_nil(soap, "wsa:Address"))
		return soap->error;
	if (soap_out_PointerTowsa__ReferencePropertiesType(soap, "wsa:ReferenceProperties", -1, &a->ReferenceProperties, ""))
		return soap->error;
	if (soap_out_PointerTowsa__ReferenceParametersType(soap, "wsa:ReferenceParameters", -1, &a->ReferenceParameters, ""))
		return soap->error;
	if (soap_out__QName(soap, "wsa:PortType", -1, (char*const*)&soap_tmp_PortType, ""))
		return soap->error;
	if (soap_out_PointerTowsa__ServiceNameType(soap, "wsa:ServiceName", -1, &a->ServiceName, ""))
		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 $0x60, %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, 0x18(%rax)
je 0xdcc0
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq (%rax), %rsi
callq 0x2fd40
movq %rax, -0x48(%rbp)
jmp 0xdcc8
xorl %eax, %eax
movq %rax, -0x48(%rbp)
jmp 0xdcc8
movq -0x48(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0xdcf8
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x38(%rax), %rdx
leaq 0x2abc4(%rip), %rsi     # 0x388b2
movl $0x1, %ecx
callq 0x294c0
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x28(%rbp), %rdx
movl $0x7, %ecx
callq 0x23f60
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl %eax, %edx
movq -0x30(%rbp), %rcx
callq 0x24590
cmpl $0x0, %eax
je 0xdd47
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xdefa
movq -0x28(%rbp), %rax
cmpq $0x0, (%rax)
je 0xdd8a
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
leaq 0x2abe1(%rip), %rsi     # 0x38941
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2bcb7(%rip), %r8      # 0x39a23
callq 0xe7b0
cmpl $0x0, %eax
je 0xdd88
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xdefa
jmp 0xddb3
movq -0x10(%rbp), %rdi
leaq 0x2abac(%rip), %rsi     # 0x38941
callq 0x2a580
cmpl $0x0, %eax
je 0xddb1
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xdefa
jmp 0xddb3
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x8, %rcx
leaq 0x2ab87(%rip), %rsi     # 0x3894d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2bc51(%rip), %r8      # 0x39a23
callq 0xebe0
cmpl $0x0, %eax
je 0xddee
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xdefa
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x10, %rcx
leaq 0x2ab64(%rip), %rsi     # 0x38965
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2bc16(%rip), %r8      # 0x39a23
callq 0xeb50
cmpl $0x0, %eax
je 0xde29
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xdefa
movq -0x10(%rbp), %rdi
leaq 0x2ab49(%rip), %rsi     # 0x3897d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq -0x38(%rbp), %rcx
leaq 0x2bbdf(%rip), %r8      # 0x39a23
callq 0x10aa0
cmpl $0x0, %eax
je 0xde60
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xdefa
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x20, %rcx
leaq 0x2ab17(%rip), %rsi     # 0x3898a
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2bba4(%rip), %r8      # 0x39a23
callq 0xea30
cmpl $0x0, %eax
je 0xde98
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xdefa
movq -0x28(%rbp), %rax
cmpq $0x0, 0x30(%rax)
je 0xdeea
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x28(%rcx), %eax
jge 0xdee8
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rdx
movslq -0x3c(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
leaq 0x2a96b(%rip), %rsi     # 0x3883f
xorl %eax, %eax
movl %eax, %ecx
callq 0x31110
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xdeaa
jmp 0xdeea
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x24680
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)