// File: /workspace/github_cpp_makefile_star2_O1/wekan[P]sps/sps.cxx
// Function: remote_execution(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
int remote_execution(std::string & host, std::string & exec_cmd)
{
	int result = EXIT_FAILURE;
	char temp[] = "/tmp/exec-XXXXXX";
	int fd = mkstemp(temp);

	if (fd > -1)
	{
		write(fd, exec_cmd.c_str(), exec_cmd.length());
		close(fd);
		std::string cmd = std::string("") + "ssh -T " + SSH_OPTS + " root@" + host + " 'bash --login' < " + temp;
		result = system(cmd.c_str());
		unlink(temp);
		return exit_status(result);
	}
	else
	{
		return EX_TEMPFAIL; // 75
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %r14
movq %rdi, %rbx
movaps 0x2bea(%rip), %xmm0     # 0x5220
leaq 0xf0(%rsp), %rdi
movaps %xmm0, (%rdi)
movb $0x0, 0x10(%rdi)
callq 0x20a0
testl %eax, %eax
js 0x26c4
movl %eax, %ebp
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movl %eax, %edi
callq 0x20c0
movl %ebp, %edi
callq 0x22d0
leaq 0xe0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2ac4(%rip), %rdx      # 0x513c
leaq 0xd0(%rsp), %rdi
movq %rdx, %rsi
callq 0x4040
leaq 0x2aae(%rip), %rsi      # 0x513d
leaq 0xd0(%rsp), %rdi
callq 0x22c0
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x26ce
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x26d6
movl $0x4b, %ebx
jmp 0x29a3
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x50(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x4a9f(%rip), %rsi      # 0x7198
movq 0x4aa0(%rip), %rdx      # 0x71a0
callq 0x2090
leaq 0x20(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x272c
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x2732
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x10(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2a20(%rip), %rsi      # 0x5175
callq 0x22c0
leaq 0x80(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2787
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x278f
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x70(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x2090
leaq 0xa0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x27e7
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x27ee
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x90(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2931(%rip), %rsi      # 0x5145
callq 0x22c0
leaq 0xc0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2849
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x284f
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0xb0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xf0(%rsp), %rsi
callq 0x22c0
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x28a2
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x28a9
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xb0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x28de
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x90(%rsp), %rdi
cmpq %rbp, %rdi
je 0x28fb
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x2915
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x2931
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x2948
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0xd0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2965
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x30(%rsp), %rdi
callq 0x2190
movl %eax, %ebx
leaq 0xf0(%rsp), %rdi
callq 0x2110
testb $0x7f, %bl
movzbl %bh, %eax
movl $0x1, %ebx
cmovel %eax, %ebx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x29a3
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21d0
movl %ebx, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x2aa7
movq 0x40(%rsp), %rsi
jmp 0x2a98
movq %rax, 0x8(%rsp)
movq 0xb0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x29fd
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x29fd
movq %rax, 0x8(%rsp)
movq 0x90(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2a21
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x2a21
movq %rax, 0x8(%rsp)
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x2a42
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x2a42
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x2a65
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x2a65
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a83
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x2a83
movq %rax, 0x8(%rsp)
movq 0xd0(%rsp), %rdi
cmpq %r15, %rdi
je 0x2aa7
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x2aa7
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdi
callq 0x2290