// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x1693e
leaq 0x221a2(%rip), %rax     # 0x38adc
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq $0x0, 0x38(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x28350
movq -0x10(%rbp), %rdi
callq 0x3770
movq -0x10(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xf050
movq -0x10(%rbp), %rdi
callq 0x23720
cmpl $0x0, %eax
je 0x16991
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x16bb6
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x16a17
movq -0x10(%rbp), %rdi
callq 0x343b0
cmpl $0x0, %eax
jne 0x16a03
movq -0x10(%rbp), %rdi
callq 0x3840
cmpl $0x0, %eax
jne 0x16a03
movq -0x10(%rbp), %rdi
callq 0x349c0
cmpl $0x0, %eax
jne 0x16a03
movq -0x10(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq 0x21e8b(%rip), %rdx     # 0x38864
xorl %eax, %eax
movl %eax, %ecx
callq 0x124d0
cmpl $0x0, %eax
jne 0x16a03
movq -0x10(%rbp), %rdi
callq 0x34a60
cmpl $0x0, %eax
jne 0x16a03
movq -0x10(%rbp), %rdi
callq 0x345e0
cmpl $0x0, %eax
je 0x16a15
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x16bb6
jmp 0x16a17
movq -0x10(%rbp), %rdi
callq 0x23d10
cmpl $0x0, %eax
je 0x16a37
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x16bb6
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x34d30
cmpl $0x0, %eax
jne 0x16abe
movq -0x10(%rbp), %rdi
callq 0x343b0
cmpl $0x0, %eax
jne 0x16abe
movq -0x10(%rbp), %rdi
callq 0x3840
cmpl $0x0, %eax
jne 0x16abe
movq -0x10(%rbp), %rdi
callq 0x349c0
cmpl $0x0, %eax
jne 0x16abe
movq -0x10(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq 0x21dde(%rip), %rdx     # 0x38864
xorl %eax, %eax
movl %eax, %ecx
callq 0x124d0
cmpl $0x0, %eax
jne 0x16abe
movq -0x10(%rbp), %rdi
callq 0x34a60
cmpl $0x0, %eax
jne 0x16abe
movq -0x10(%rbp), %rdi
callq 0x345e0
cmpl $0x0, %eax
jne 0x16abe
movq -0x10(%rbp), %rdi
callq 0x257a0
cmpl $0x0, %eax
je 0x16acf
movq -0x10(%rbp), %rdi
callq 0x1de40
movl %eax, -0x4(%rbp)
jmp 0x16bb6
cmpq $0x0, -0x30(%rbp)
jne 0x16ae7
movq -0x10(%rbp), %rdi
callq 0x1de40
movl %eax, -0x4(%rbp)
jmp 0x16bb6
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x133a0
movq -0x10(%rbp), %rdi
callq 0x33370
cmpl $0x0, %eax
jne 0x16b2c
movq -0x10(%rbp), %rdi
callq 0x34100
cmpl $0x0, %eax
jne 0x16b2c
movq -0x10(%rbp), %rdi
callq 0x342c0
cmpl $0x0, %eax
jne 0x16b2c
movq -0x10(%rbp), %rdi
callq 0x34340
cmpl $0x0, %eax
je 0x16b3a
movq -0x10(%rbp), %rdi
callq 0x1de40
movl %eax, -0x4(%rbp)
jmp 0x16bb6
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq 0x21fbf(%rip), %rdx     # 0x38b08
leaq 0x21aa4(%rip), %rcx     # 0x385f4
callq 0x13490
movq -0x10(%rbp), %rax
cmpl $0x0, 0x1f274(%rax)
je 0x16b72
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x36ad0
movl %eax, -0x4(%rbp)
jmp 0x16bb6
movq -0x10(%rbp), %rdi
callq 0x34ab0
cmpl $0x0, %eax
jne 0x16b9c
movq -0x10(%rbp), %rdi
callq 0x34990
cmpl $0x0, %eax
jne 0x16b9c
movq -0x10(%rbp), %rdi
callq 0x26230
cmpl $0x0, %eax
je 0x16baa
movq -0x10(%rbp), %rdi
callq 0x1de40
movl %eax, -0x4(%rbp)
jmp 0x16bb6
movq -0x10(%rbp), %rdi
callq 0x1de40
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nop