// File: /workspace/github_c_makefile_star2_O0/hkshenSmart[P]ONVIF-discovery_cs/soapClient.c
// Function: soap_call___dnrd__Hello
SOAP_FMAC6 soap_call___dnrd__Hello(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct d__HelloType *d__Hello, struct d__ResolveType *dn__HelloResponse)
{	struct __dnrd__Hello soap_tmp___dnrd__Hello;
	if (!soap_action)
		soap_action = "http://www.onvif.org/ver10/network/wsdl/Hello";
	soap->encodingStyle = NULL;
	soap_tmp___dnrd__Hello.d__Hello = d__Hello;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___dnrd__Hello(soap, &soap_tmp___dnrd__Hello);
	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__Hello(soap, &soap_tmp___dnrd__Hello, "-dnrd:Hello", 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__Hello(soap, &soap_tmp___dnrd__Hello, "-dnrd:Hello", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!dn__HelloResponse)
		return soap_closesock(soap);
	soap_default_d__ResolveType(soap, dn__HelloResponse);
	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__HelloResponse, "dn:HelloResponse", "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 0x1668e
leaq 0x22413(%rip), %rax     # 0x38a9d
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 0xf080
movq -0x10(%rbp), %rdi
callq 0x23720
cmpl $0x0, %eax
je 0x166e1
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x16906
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x16767
movq -0x10(%rbp), %rdi
callq 0x343b0
cmpl $0x0, %eax
jne 0x16753
movq -0x10(%rbp), %rdi
callq 0x3840
cmpl $0x0, %eax
jne 0x16753
movq -0x10(%rbp), %rdi
callq 0x349c0
cmpl $0x0, %eax
jne 0x16753
movq -0x10(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq 0x22145(%rip), %rdx     # 0x3886e
xorl %eax, %eax
movl %eax, %ecx
callq 0x127a0
cmpl $0x0, %eax
jne 0x16753
movq -0x10(%rbp), %rdi
callq 0x34a60
cmpl $0x0, %eax
jne 0x16753
movq -0x10(%rbp), %rdi
callq 0x345e0
cmpl $0x0, %eax
je 0x16765
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x16906
jmp 0x16767
movq -0x10(%rbp), %rdi
callq 0x23d10
cmpl $0x0, %eax
je 0x16787
movq -0x10(%rbp), %rax
movl 0x1f274(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x16906
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x34d30
cmpl $0x0, %eax
jne 0x1680e
movq -0x10(%rbp), %rdi
callq 0x343b0
cmpl $0x0, %eax
jne 0x1680e
movq -0x10(%rbp), %rdi
callq 0x3840
cmpl $0x0, %eax
jne 0x1680e
movq -0x10(%rbp), %rdi
callq 0x349c0
cmpl $0x0, %eax
jne 0x1680e
movq -0x10(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq 0x22098(%rip), %rdx     # 0x3886e
xorl %eax, %eax
movl %eax, %ecx
callq 0x127a0
cmpl $0x0, %eax
jne 0x1680e
movq -0x10(%rbp), %rdi
callq 0x34a60
cmpl $0x0, %eax
jne 0x1680e
movq -0x10(%rbp), %rdi
callq 0x345e0
cmpl $0x0, %eax
jne 0x1680e
movq -0x10(%rbp), %rdi
callq 0x257a0
cmpl $0x0, %eax
je 0x1681f
movq -0x10(%rbp), %rdi
callq 0x1de40
movl %eax, -0x4(%rbp)
jmp 0x16906
cmpq $0x0, -0x30(%rbp)
jne 0x16837
movq -0x10(%rbp), %rdi
callq 0x1de40
movl %eax, -0x4(%rbp)
jmp 0x16906
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x133a0
movq -0x10(%rbp), %rdi
callq 0x33370
cmpl $0x0, %eax
jne 0x1687c
movq -0x10(%rbp), %rdi
callq 0x34100
cmpl $0x0, %eax
jne 0x1687c
movq -0x10(%rbp), %rdi
callq 0x342c0
cmpl $0x0, %eax
jne 0x1687c
movq -0x10(%rbp), %rdi
callq 0x34340
cmpl $0x0, %eax
je 0x1688a
movq -0x10(%rbp), %rdi
callq 0x1de40
movl %eax, -0x4(%rbp)
jmp 0x16906
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
leaq 0x22232(%rip), %rdx     # 0x38acb
leaq 0x21d54(%rip), %rcx     # 0x385f4
callq 0x13490
movq -0x10(%rbp), %rax
cmpl $0x0, 0x1f274(%rax)
je 0x168c2
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x36ad0
movl %eax, -0x4(%rbp)
jmp 0x16906
movq -0x10(%rbp), %rdi
callq 0x34ab0
cmpl $0x0, %eax
jne 0x168ec
movq -0x10(%rbp), %rdi
callq 0x34990
cmpl $0x0, %eax
jne 0x168ec
movq -0x10(%rbp), %rdi
callq 0x26230
cmpl $0x0, %eax
je 0x168fa
movq -0x10(%rbp), %rdi
callq 0x1de40
movl %eax, -0x4(%rbp)
jmp 0x16906
movq -0x10(%rbp), %rdi
callq 0x1de40
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nop