// File: /workspace/github_cpp_makefile_star2_O1/sjtuwrk[P]SunwayMR/tools/SunwayMRHelper.hpp
// Function: SunwayMRHelper::saveLocalHostFile()
void SunwayMRHelper::saveLocalHostFile() {
	stringstream ss;
	ss << localAddr << " " << threads << " " << memory << " " << listenPort;
	bool ret = writeFile(fileSaveDir, localHostFileName, ss.str());
	if (!ret) {
		stringstream error;
		error << "SunwayMRHelper: unable to write file: " << fileSaveDir << localHostFileName;
		Logging::logError(error.str());
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x390, %rsp            # imm = 0x390
movq %rdi, %rbx
leaq 0x208(%rsp), %rdi
callq 0x3240
leaq 0x218(%rsp), %rdi
movq 0x110(%rbx), %rsi
movq 0x118(%rbx), %rdx
callq 0x3400
movq %rax, %r14
leaq 0x334f(%rip), %rsi      # 0xe58e
movl $0x1, %edx
movq %rax, %rdi
callq 0x3400
movl 0x134(%rbx), %esi
movq %r14, %rdi
callq 0x3610
movq %rax, %r14
leaq 0x332a(%rip), %rsi      # 0xe58e
movl $0x1, %edx
movq %rax, %rdi
callq 0x3400
movl 0x138(%rbx), %esi
movq %r14, %rdi
callq 0x3610
movq %rax, %r14
leaq 0x3305(%rip), %rsi      # 0xe58e
movl $0x1, %edx
movq %rax, %rdi
callq 0x3400
movl 0x13c(%rbx), %esi
movq %r14, %rdi
callq 0x3610
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x814c(%rip), %rsi      # 0x13400
movq 0x814d(%rip), %rdx      # 0x13408
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0xc532
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8148(%rip), %rsi      # 0x13420
movq 0x8149(%rip), %rdx      # 0x13428
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xc532
leaq 0x220(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x3590
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
leaq 0x60(%rsp), %rdx
callq 0x45bb
movl %eax, %ebx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb32b
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3390
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb341
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0xb358
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3390
testb %bl, %bl
jne 0xb40d
leaq 0x80(%rsp), %rdi
callq 0x3240
leaq 0x90(%rsp), %rbx
leaq 0x3484(%rip), %rsi      # 0xe800
movl $0x26, %edx
movq %rbx, %rdi
callq 0x3400
movq 0x8070(%rip), %rsi      # 0x13400
movq 0x8071(%rip), %rdx      # 0x13408
movq %rbx, %rdi
callq 0x3400
movq 0x807a(%rip), %rsi      # 0x13420
movq 0x807b(%rip), %rdx      # 0x13428
movq %rax, %rdi
callq 0x3400
leaq 0x98(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x3590
leaq 0x40(%rsp), %rdi
callq 0x58fc
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb3ec
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0x7bbd(%rip), %rsi      # 0x12fb0
leaq 0x80(%rsp), %rdi
callq 0x3260
leaq 0x100(%rsp), %rdi
callq 0x3150
movq 0x7b9c(%rip), %rsi      # 0x12fb0
leaq 0x208(%rsp), %rdi
callq 0x3260
leaq 0x288(%rsp), %rdi
callq 0x3150
addq $0x390, %rsp            # imm = 0x390
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb4bb
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0xb4bb
jmp 0xb4b8
jmp 0xb4de
movq %rax, %rbx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb482
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0xb482
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb49d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0xb49d
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0xb4e1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0xb4e1
jmp 0xb4de
movq %rax, %rbx
movq 0x7aee(%rip), %rsi      # 0x12fb0
leaq 0x80(%rsp), %rdi
callq 0x3260
leaq 0x100(%rsp), %rdi
callq 0x3150
jmp 0xb4e1
movq %rax, %rbx
movq 0x7ac8(%rip), %rsi      # 0x12fb0
leaq 0x208(%rsp), %rdi
callq 0x3260
leaq 0x288(%rsp), %rdi
callq 0x3150
movq %rbx, %rdi
callq 0x3650