// File: sundale[P]gcode/rs274ngc/rs274ngc_pre.cc
// Function: Interp::ini_load(char const*)
int Interp::ini_load(const char *filename)
{
    IniFile inifile;
    const char *inistring;

    // open it
    if (inifile.Open(filename) == false) {
        logDebug("Unable to open inifile:%s:", filename);
	return -1;
    }

    logDebug("Opened inifile:%s:", filename);


    if (NULL != (inistring = inifile.Find("PARAMETER_FILE", "RS274NGC"))) {
	// found it
	strncpy(_parameter_file_name, inistring, LINELEN);
        logDebug("found PARAMETER_FILE:%s:", _parameter_file_name);
    } else {
	// not found, leave RS274NGC_PARAMETER_FILE alone
        logDebug("did not find PARAMETER_FILE");
    }

    // close it
    inifile.Close();

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xb8(%rbp)
xorl %esi, %esi
movl %esi, %edx
leaq -0x88(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x11f10
movq -0xb0(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x10a00
movb %al, -0xa1(%rbp)
jmp 0x7692d
movb -0xa1(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x769ca
jmp 0x76943
xorl %eax, %eax
movq 0x10614(%rip), %rcx     # 0x86f60
cmpl 0x1b6b4(%rcx), %eax
jge 0x769b0
callq 0x11950
movq -0xb8(%rbp), %rdi
movl %eax, %ecx
movq -0x18(%rbp), %rdx
movq %rsp, %rax
movq %rdx, (%rax)
leaq 0x9153(%rip), %rsi      # 0x7fac6
leaq 0x8f60(%rip), %r8       # 0x7f8da
xorl %edx, %edx
movb %dl, %al
movl $0x5cb, %r9d            # imm = 0x5CB
callq 0x12050
jmp 0x7698b
jmp 0x769b0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x11870
jmp 0x76b41
jmp 0x769b2
jmp 0x769b4
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl $0x1, -0xa0(%rbp)
jmp 0x76b29
jmp 0x769cc
xorl %eax, %eax
movq 0x1058b(%rip), %rcx     # 0x86f60
cmpl 0x1b6b4(%rcx), %eax
jge 0x76a16
callq 0x11950
movq -0xb8(%rbp), %rdi
movl %eax, %ecx
movq -0x18(%rbp), %rdx
movq %rsp, %rax
movq %rdx, (%rax)
leaq 0x9583(%rip), %rsi      # 0x7ff7f
leaq 0x8ed7(%rip), %r8       # 0x7f8da
xorl %edx, %edx
movb %dl, %al
movl $0x5cf, %r9d            # imm = 0x5CF
callq 0x12050
jmp 0x76a14
jmp 0x76a16
jmp 0x76a18
jmp 0x76a1a
leaq 0x9584(%rip), %rsi      # 0x7ffa5
leaq 0x9157(%rip), %rdx      # 0x7fb7f
leaq -0x88(%rbp), %rdi
movl $0x1, %ecx
callq 0x109d0
movq %rax, -0xc0(%rbp)
jmp 0x76a42
movq -0xc0(%rbp), %rcx
movq %rcx, -0x90(%rbp)
xorl %eax, %eax
cmpq %rcx, %rax
je 0x76ac2
movq -0x90(%rbp), %rsi
movq 0x10533(%rip), %rdi     # 0x86f98
movl $0xff, %edx
callq 0x10840
xorl %eax, %eax
movq 0x104e8(%rip), %rcx     # 0x86f60
cmpl 0x1b6b4(%rcx), %eax
jge 0x76abc
callq 0x11950
movq -0xb8(%rbp), %rdi
movl %eax, %ecx
movq 0x10503(%rip), %rdx     # 0x86f98
movq %rsp, %rax
movq %rdx, (%rax)
leaq 0x9512(%rip), %rsi      # 0x7ffb4
leaq 0x8e31(%rip), %r8       # 0x7f8da
xorl %edx, %edx
movb %dl, %al
movl $0x5d5, %r9d            # imm = 0x5D5
callq 0x12050
jmp 0x76aba
jmp 0x76abc
jmp 0x76abe
jmp 0x76ac0
jmp 0x76b0a
jmp 0x76ac4
xorl %eax, %eax
movq 0x10493(%rip), %rcx     # 0x86f60
cmpl 0x1b6b4(%rcx), %eax
jge 0x76b04
callq 0x11950
movq -0xb8(%rbp), %rdi
movl %eax, %ecx
leaq 0x94f6(%rip), %rsi      # 0x7ffe0
leaq 0x8de9(%rip), %r8       # 0x7f8da
xorl %edx, %edx
movb %dl, %al
movl $0x5d8, %r9d            # imm = 0x5D8
callq 0x12050
jmp 0x76b02
jmp 0x76b04
jmp 0x76b06
jmp 0x76b08
jmp 0x76b0a
leaq -0x88(%rbp), %rdi
callq 0x10750
jmp 0x76b18
movl $0x0, -0x4(%rbp)
movl $0x1, -0xa0(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x11870
movl -0x4(%rbp), %eax
addq $0xd0, %rsp
popq %rbp
retq
movq -0x98(%rbp), %rdi
callq 0x11f50
nopl (%rax)