// File: /workspace/github_c_makefile_star2_O2/hkshenSmart[P]ONVIF-discovery_cs/soapServer.c
// Function: soap_serve___dnrd__Bye
SOAP_FMAC6 soap_serve___dnrd__Bye(struct soap *soap)
{	struct __dnrd__Bye soap_tmp___dnrd__Bye;
	struct d__ResolveType dn__ByeResponse;
	soap_default_d__ResolveType(soap, &dn__ByeResponse);
	soap_default___dnrd__Bye(soap, &soap_tmp___dnrd__Bye);
	soap->encodingStyle = NULL;
	if (!soap_get___dnrd__Bye(soap, &soap_tmp___dnrd__Bye, "-dnrd:Bye", NULL))
		return soap->error;
	if (soap_body_end_in(soap)
	 || soap_envelope_end_in(soap)
	 || soap_end_recv(soap))
		return soap->error;
	soap->error = __dnrd__Bye(soap, soap_tmp___dnrd__Bye.d__Bye, &dn__ByeResponse);
	if (soap->error)
		return soap->error;
	soap_serializeheader(soap);
	soap_serialize_d__ResolveType(soap, &dn__ByeResponse);
	if (soap_begin_count(soap))
		return soap->error;
	if (soap->mode & SOAP_IO_LENGTH)
	{	if (soap_envelope_begin_out(soap)
		 || soap_putheader(soap)
		 || soap_body_begin_out(soap)
		 || soap_put_d__ResolveType(soap, &dn__ByeResponse, "dn:ByeResponse", NULL)
		 || soap_body_end_out(soap)
		 || soap_envelope_end_out(soap))
			 return soap->error;
	};
	if (soap_end_count(soap)
	 || soap_response(soap, SOAP_OK)
	 || soap_envelope_begin_out(soap)
	 || soap_putheader(soap)
	 || soap_body_begin_out(soap)
	 || soap_put_d__ResolveType(soap, &dn__ByeResponse, "dn:ByeResponse", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap->error;
	return soap_closesock(soap);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rsi
callq 0xd604
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xce8d
andq $0x0, 0x38(%rbx)
leaq 0x135d0(%rip), %rdx     # 0x22b3a
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0xcfa3
testq %rax, %rax
je 0xf5a0
movq %rbx, %rdi
callq 0x204c8
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x2042e
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x17de1
testl %eax, %eax
je 0xf5ae
movl 0x1f274(%rbx), %eax
addq $0x68, %rsp
popq %rbx
popq %r14
retq
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x35fa
movl %eax, 0x1f274(%rbx)
testl %eax, %eax
jne 0xf5a6
movq %rbx, %rdi
callq 0x3768
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0xae4d
movq %rbx, %rdi
callq 0x16625
testl %eax, %eax
jne 0xf5a0
testb $0x8, 0x4(%rbx)
jne 0xf696
movq %rbx, %rdi
callq 0x16968
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x15f41
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x200d4
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x37da
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x20443
testl %eax, %eax
jne 0xf5a0
leaq 0x13502(%rip), %rdx     # 0x22b44
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0xd61f
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x2049f
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x20212
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x1780a
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x13735
jmp 0xf5a6
movq %rbx, %rdi
callq 0x200d4
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x37da
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x20443
testl %eax, %eax
jne 0xf5a0
leaq 0x13477(%rip), %rdx     # 0x22b44
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0xd61f
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x2049f
testl %eax, %eax
jne 0xf5a0
movq %rbx, %rdi
callq 0x20212
testl %eax, %eax
jne 0xf5a0
jmp 0xf5f5
nopl (%rax)