// File: /workspace/github_c_makefile_star2_O1/hkshenSmart[P]ONVIF-discovery_cs/soapClient.c
// Function: soap_call___dnrd__Bye
SOAP_FMAC6 soap_call___dnrd__Bye(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct d__ByeType *d__Bye, struct d__ResolveType *dn__ByeResponse)
{	struct __dnrd__Bye soap_tmp___dnrd__Bye;
	if (!soap_action)
		soap_action = "http://www.onvif.org/ver10/network/wsdl/Bye";
	soap->encodingStyle = NULL;
	soap_tmp___dnrd__Bye.d__Bye = d__Bye;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___dnrd__Bye(soap, &soap_tmp___dnrd__Bye);
	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___dnrd__Bye(soap, &soap_tmp___dnrd__Bye, "-dnrd:Bye", NULL)
		 || soap_body_end_out(soap)
		 || soap_envelope_end_out(soap))
			 return soap->error;
	}
	if (soap_end_count(soap))
		return soap->error;
	if (soap_connect(soap, soap_endpoint, soap_action)
	 || soap_envelope_begin_out(soap)
	 || soap_putheader(soap)
	 || soap_body_begin_out(soap)
	 || soap_put___dnrd__Bye(soap, &soap_tmp___dnrd__Bye, "-dnrd:Bye", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!dn__ByeResponse)
		return soap_closesock(soap);
	soap_default_d__ResolveType(soap, dn__ByeResponse);
	if (soap_begin_recv(soap)
	 || soap_envelope_begin_in(soap)
	 || soap_recv_header(soap)
	 || soap_body_begin_in(soap))
		return soap_closesock(soap);
	soap_get_d__ResolveType(soap, dn__ByeResponse, "dn:ByeResponse", "d:ResolveType");
	if (soap->error)
		return soap_recv_fault(soap, 0);
	if (soap_body_end_in(soap)
	 || soap_envelope_end_in(soap)
	 || soap_end_recv(soap))
		return soap_closesock(soap);
	return soap_closesock(soap);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %r14
movq %rsi, %r15
testq %rdx, %rdx
leaq 0x15a53(%rip), %r12     # 0x25ae6
cmovneq %rdx, %r12
movq %rdi, %rbx
movq $0x0, 0x38(%rdi)
leaq 0x8(%rsp), %r13
movq %rcx, (%r13)
callq 0x1ace5
movq %rbx, %rdi
callq 0x3694
movq %rbx, %rdi
movq %r13, %rsi
callq 0xb540
movq %rbx, %rdi
callq 0x17fdd
testl %eax, %eax
je 0x100e3
movl 0x1f274(%rbx), %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
testb $0x8, 0x4(%rbx)
jne 0x1017e
movq %rbx, %rdi
callq 0x1834e
testl %eax, %eax
jne 0x100cf
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x23345
testl %eax, %eax
jne 0x10171
movq %rbx, %rdi
callq 0x22da7
testl %eax, %eax
jne 0x10171
movq %rbx, %rdi
callq 0x3715
testl %eax, %eax
jne 0x10171
movq %rbx, %rdi
callq 0x23145
testl %eax, %eax
jne 0x10171
leaq 0x159dc(%rip), %rdx     # 0x25b12
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0xd96a
testl %eax, %eax
jne 0x10171
movq %rbx, %rdi
callq 0x231a3
testl %eax, %eax
jne 0x10171
movq %rbx, %rdi
callq 0x22eef
testl %eax, %eax
jne 0x10171
movq %rbx, %rdi
callq 0x19441
testl %eax, %eax
je 0x101f1
movq %rbx, %rdi
callq 0x1495d
jmp 0x100d5
movq %rbx, %rdi
callq 0x22da7
testl %eax, %eax
jne 0x100cf
movq %rbx, %rdi
callq 0x3715
testl %eax, %eax
jne 0x100cf
movq %rbx, %rdi
callq 0x23145
testl %eax, %eax
jne 0x100cf
leaq 0x1595d(%rip), %rdx     # 0x25b12
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0xd96a
testl %eax, %eax
jne 0x100cf
movq %rbx, %rdi
callq 0x231a3
testl %eax, %eax
jne 0x100cf
movq %rbx, %rdi
callq 0x22eef
testl %eax, %eax
jne 0x100cf
jmp 0x100ed
testq %r14, %r14
je 0x10171
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe06e
movq %rbx, %rdi
callq 0x223a9
testl %eax, %eax
jne 0x10171
movq %rbx, %rdi
callq 0x22ba9
testl %eax, %eax
jne 0x10171
movq %rbx, %rdi
callq 0x22d11
testl %eax, %eax
jne 0x10171
movq %rbx, %rdi
callq 0x22d59
testl %eax, %eax
jne 0x10171
leaq 0x158d0(%rip), %rdx     # 0x25b1c
leaq 0x153b5(%rip), %rcx     # 0x25608
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe0f9
cmpl $0x0, 0x1f274(%rbx)
je 0x10276
movq %rbx, %rdi
xorl %esi, %esi
callq 0x243ad
jmp 0x100d5
movq %rbx, %rdi
callq 0x231cc
testl %eax, %eax
jne 0x10171
movq %rbx, %rdi
callq 0x23130
testl %eax, %eax
jne 0x10171
movq %rbx, %rdi
callq 0x19ad3
testl %eax, %eax
jmp 0x10171
nopl (%rax)