// File: mehrangoli[P]Static-Data-Extractor/SCmain.cpp
// Function: ScMain::print_data_XML()
void ScMain::print_data_XML(){
	ofstream xmlFile;
	xmlFile.open ("output.xml");

	xmlFile<<"<ESL_ARCH>"<<endl;	
	for (auto i: static_data_final){
		xmlFile<<i.get_name_XML()<<endl;	
		xmlFile<<i.get_var_XML()<<endl;	
		xmlFile<<i.get_func_XML()<<endl;
		if (i.get_name() == "sc_main")
			xmlFile<<"</Global_function>\n"<<endl;
		else
			xmlFile<<"</Module>\n"<<endl;
	}
	xmlFile<<"</ESL_ARCH>"<<endl;
	xmlFile.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x370, %rsp            # imm = 0x370
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x330(%rbp)
leaq -0x208(%rbp), %rdi
movq %rdi, -0x328(%rbp)
callq 0x3400
movq -0x328(%rbp), %rdi
leaq 0xf535(%rip), %rsi      # 0x17240
movl $0x10, %edx
callq 0x3040
jmp 0x7d17
leaq 0xf52d(%rip), %rsi      # 0x1724b
leaq -0x208(%rbp), %rdi
callq 0x3240
movq %rax, -0x338(%rbp)
jmp 0x7d33
movq -0x338(%rbp), %rdi
movq 0x1727f(%rip), %rsi     # 0x1efc0
callq 0x3280
jmp 0x7d48
movq -0x330(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x220(%rbp), %rdi
callq 0xdce0
movq %rax, -0x228(%rbp)
movq -0x220(%rbp), %rdi
callq 0xdd10
movq %rax, -0x230(%rbp)
leaq -0x228(%rbp), %rdi
leaq -0x230(%rbp), %rsi
callq 0xdd40
testb $0x1, %al
jne 0x7d98
jmp 0x803e
leaq -0x228(%rbp), %rdi
callq 0xdd80
movq %rax, %rsi
leaq -0x2a0(%rbp), %rdi
callq 0xdda0
jmp 0x7db5
leaq -0x2c0(%rbp), %rdi
leaq -0x2a0(%rbp), %rsi
callq 0x13630
jmp 0x7dca
leaq -0x208(%rbp), %rdi
leaq -0x2c0(%rbp), %rsi
callq 0x3230
movq %rax, -0x340(%rbp)
jmp 0x7de6
movq -0x340(%rbp), %rdi
movq 0x171cc(%rip), %rsi     # 0x1efc0
callq 0x3280
jmp 0x7dfb
leaq -0x2c0(%rbp), %rdi
callq 0x3190
leaq -0x2e0(%rbp), %rdi
leaq -0x2a0(%rbp), %rsi
callq 0x13b00
jmp 0x7e1c
leaq -0x208(%rbp), %rdi
leaq -0x2e0(%rbp), %rsi
callq 0x3230
movq %rax, -0x348(%rbp)
jmp 0x7e38
movq -0x348(%rbp), %rdi
movq 0x1717a(%rip), %rsi     # 0x1efc0
callq 0x3280
jmp 0x7e4d
leaq -0x2e0(%rbp), %rdi
callq 0x3190
leaq -0x300(%rbp), %rdi
leaq -0x2a0(%rbp), %rsi
callq 0x13d60
jmp 0x7e6e
leaq -0x208(%rbp), %rdi
leaq -0x300(%rbp), %rsi
callq 0x3230
movq %rax, -0x350(%rbp)
jmp 0x7e8a
movq -0x350(%rbp), %rdi
movq 0x17128(%rip), %rsi     # 0x1efc0
callq 0x3280
jmp 0x7e9f
leaq -0x300(%rbp), %rdi
callq 0x3190
leaq -0x320(%rbp), %rdi
leaq -0x2a0(%rbp), %rsi
callq 0x13600
jmp 0x7ec0
leaq 0xf448(%rip), %rsi      # 0x1730f
leaq -0x320(%rbp), %rdi
callq 0xde60
movb %al, -0x351(%rbp)
jmp 0x7edb
leaq -0x320(%rbp), %rdi
callq 0x3190
movb -0x351(%rbp), %al
testb $0x1, %al
jne 0x7ef6
jmp 0x7fe0
leaq 0xf359(%rip), %rsi      # 0x17256
leaq -0x208(%rbp), %rdi
callq 0x3240
movq %rax, -0x360(%rbp)
jmp 0x7f12
movq -0x360(%rbp), %rdi
movq 0x170a0(%rip), %rsi     # 0x1efc0
callq 0x3280
jmp 0x7f27
jmp 0x8013
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x8092
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x8030
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
leaq -0x2c0(%rbp), %rdi
callq 0x3190
jmp 0x8030
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
leaq -0x2e0(%rbp), %rdi
callq 0x3190
jmp 0x8030
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
leaq -0x300(%rbp), %rdi
callq 0x3190
jmp 0x8030
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
leaq -0x320(%rbp), %rdi
callq 0x3190
jmp 0x8030
leaq 0xf283(%rip), %rsi      # 0x1726a
leaq -0x208(%rbp), %rdi
callq 0x3240
movq %rax, -0x368(%rbp)
jmp 0x7ffc
movq -0x368(%rbp), %rdi
movq 0x16fb6(%rip), %rsi     # 0x1efc0
callq 0x3280
jmp 0x8011
jmp 0x8013
leaq -0x2a0(%rbp), %rdi
callq 0x6570
leaq -0x228(%rbp), %rdi
callq 0xde40
jmp 0x7d7c
leaq -0x2a0(%rbp), %rdi
callq 0x6570
jmp 0x8092
leaq 0xf230(%rip), %rsi      # 0x17275
leaq -0x208(%rbp), %rdi
callq 0x3240
movq %rax, -0x370(%rbp)
jmp 0x805a
movq -0x370(%rbp), %rdi
movq 0x16f58(%rip), %rsi     # 0x1efc0
callq 0x3280
jmp 0x806f
leaq -0x208(%rbp), %rdi
callq 0x3350
jmp 0x807d
leaq -0x208(%rbp), %rdi
callq 0x3370
addq $0x370, %rsp            # imm = 0x370
popq %rbp
retq
leaq -0x208(%rbp), %rdi
callq 0x3370
movq -0x210(%rbp), %rdi
callq 0x3420
nopw (%rax,%rax)