// File: /workspace/github_cpp_makefile_star2_O3/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 0x346d(%rip), %rsi      # 0xe5be
movl $0x1, %edx
movq %rax, %rdi
callq 0x3400
movl 0x134(%rbx), %esi
movq %r14, %rdi
callq 0x3600
movq %rax, %r14
leaq 0x3448(%rip), %rsi      # 0xe5be
movl $0x1, %edx
movq %rax, %rdi
callq 0x3400
movl 0x138(%rbx), %esi
movq %r14, %rdi
callq 0x3600
movq %rax, %r14
leaq 0x3423(%rip), %rsi      # 0xe5be
movl $0x1, %edx
movq %rax, %rdi
callq 0x3400
movl 0x13c(%rbx), %esi
movq %r14, %rdi
callq 0x3600
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x8232(%rip), %rsi      # 0x133f8
movq 0x8233(%rip), %rdx      # 0x13400
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0xc556
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x822e(%rip), %rsi      # 0x13418
movq 0x822f(%rip), %rdx      # 0x13420
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xc556
leaq 0x220(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x3580
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
leaq 0x60(%rsp), %rdx
callq 0x45c1
movl %eax, %ebx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb23d
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3390
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb253
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0xb26a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3390
testb %bl, %bl
jne 0xb31f
leaq 0x80(%rsp), %rdi
callq 0x3240
leaq 0x90(%rsp), %rbx
leaq 0x35a2(%rip), %rsi      # 0xe830
movl $0x26, %edx
movq %rbx, %rdi
callq 0x3400
movq 0x8156(%rip), %rsi      # 0x133f8
movq 0x8157(%rip), %rdx      # 0x13400
movq %rbx, %rdi
callq 0x3400
movq 0x8160(%rip), %rsi      # 0x13418
movq 0x8161(%rip), %rdx      # 0x13420
movq %rax, %rdi
callq 0x3400
leaq 0x98(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x3580
leaq 0x40(%rsp), %rdi
callq 0x58ec
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb2fe
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3390
movq 0x7cab(%rip), %rsi      # 0x12fb0
leaq 0x80(%rsp), %rdi
callq 0x3260
leaq 0x100(%rsp), %rdi
callq 0x3150
movq 0x7c8a(%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 0xb3cd
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0xb3cd
jmp 0xb3ca
jmp 0xb3f0
movq %rax, %rbx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb394
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0xb394
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xb3af
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0xb3af
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0xb3f3
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3390
jmp 0xb3f3
jmp 0xb3f0
movq %rax, %rbx
movq 0x7bdc(%rip), %rsi      # 0x12fb0
leaq 0x80(%rsp), %rdi
callq 0x3260
leaq 0x100(%rsp), %rdi
callq 0x3150
jmp 0xb3f3
movq %rax, %rbx
movq 0x7bb6(%rip), %rsi      # 0x12fb0
leaq 0x208(%rsp), %rdi
callq 0x3260
leaq 0x288(%rsp), %rdi
callq 0x3150
movq %rbx, %rdi
callq 0x3640