// File: /workspace/github_c_makefile_star2_O1/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 0xe14e
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xd941
movq $0x0, 0x38(%rbx)
leaq 0x15951(%rip), %rdx     # 0x25b3a
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0xda82
testq %rax, %rax
je 0x1021f
movq %rbx, %rdi
callq 0x232ac
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x23210
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x19bb3
testl %eax, %eax
je 0x1022d
movl 0x1f274(%rbx), %eax
addq $0x68, %rsp
popq %rbx
popq %r14
retq
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x35f2
movl %eax, 0x1f274(%rbx)
testl %eax, %eax
jne 0x10225
movq %rbx, %rdi
callq 0x3774
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0xb69b
movq %rbx, %rdi
callq 0x180bd
testl %eax, %eax
jne 0x1021f
testb $0x8, 0x4(%rbx)
jne 0x10315
movq %rbx, %rdi
callq 0x1842e
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
xorl %esi, %esi
callq 0x17896
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x22e87
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x37f5
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x23225
testl %eax, %eax
jne 0x1021f
leaq 0x15883(%rip), %rdx     # 0x25b44
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0xe16c
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x23283
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x22fcf
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x19521
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x14a3d
jmp 0x10225
movq %rbx, %rdi
callq 0x22e87
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x37f5
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x23225
testl %eax, %eax
jne 0x1021f
leaq 0x157f8(%rip), %rdx     # 0x25b44
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0xe16c
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x23283
testl %eax, %eax
jne 0x1021f
movq %rbx, %rdi
callq 0x22fcf
testl %eax, %eax
jne 0x1021f
jmp 0x10274