// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/soapC.c
// Function: soap_out_d__ByeType
SOAP_FMAC4 soap_out_d__ByeType(struct soap *soap, const char *tag, int id, const struct d__ByeType *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__ByeType), 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 (soap_out_d__UriListType(soap, "d:XAddrs", -1, &a->XAddrs, ""))
		return soap->error;
	if (soap_out_PointerTounsignedInt(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, 0x70(%rax)
je 0xd7f3
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x70(%rax), %rdx
leaq 0x2b0c9(%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 $0x2c, %ecx
callq 0x23f60
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl %eax, %edx
movq -0x30(%rbp), %rcx
callq 0x24590
cmpl $0x0, %eax
je 0xd842
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xd9c4
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
leaq 0x2af22(%rip), %rsi     # 0x38773
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2c1c6(%rip), %r8      # 0x39a23
callq 0xdc80
cmpl $0x0, %eax
je 0xd879
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xd9c4
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x40, %rcx
leaq 0x2b04c(%rip), %rsi     # 0x388d8
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2c18b(%rip), %r8      # 0x39a23
callq 0x130c0
cmpl $0x0, %eax
je 0xd8b4
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xd9c4
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x48, %rcx
leaq 0x2b019(%rip), %rsi     # 0x388e0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2c150(%rip), %r8      # 0x39a23
callq 0xe720
cmpl $0x0, %eax
je 0xd8ef
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xd9c4
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x50, %rcx
leaq 0x2afe7(%rip), %rsi     # 0x388e9
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2c115(%rip), %r8      # 0x39a23
callq 0x13100
cmpl $0x0, %eax
je 0xd92a
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xd9c4
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rcx
addq $0x58, %rcx
leaq 0x2afb5(%rip), %rsi     # 0x388f2
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq 0x2c0da(%rip), %r8      # 0x39a23
callq 0xe690
cmpl $0x0, %eax
je 0xd962
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0xd9c4
movq -0x28(%rbp), %rax
cmpq $0x0, 0x68(%rax)
je 0xd9b4
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x60(%rcx), %eax
jge 0xd9b2
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x68(%rax), %rdx
movslq -0x34(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdx
leaq 0x2aea1(%rip), %rsi     # 0x3883f
xorl %eax, %eax
movl %eax, %ecx
callq 0x31110
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0xd974
jmp 0xd9b4
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x24680
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)