// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/classes/backends/xlib/backendxlib.cpp
// Function: smooth::Backends::BackendXLib::QueryKDESettings(smooth::String const&, smooth::String const&)
S::String S::Backends::BackendXLib::QueryKDESettings(const String &category, const String &key)
{
	File		 kdeConfig("kdeglobals", System::System::GetApplicationDataDirectory());

	if (!kdeConfig.Exists()) return NIL;

	IO::InStream	 in(IO::STREAM_FILE, kdeConfig, IO::IS_READ);

	/* Find category header.
	 */
	while (in.GetPos() < in.Size())
	{
		String	 line = in.InputLine();

		if (line == String("[").Append(category).Append("]")) break;
	}

	/* Find key.
	 */
	while (in.GetPos() < in.Size())
	{
		String	 line = in.InputLine();

		if ( line.StartsWith("["))	       break;
		if (!line.StartsWith(key.Append("="))) continue;

		return line.Tail(line.Length() - line.Find("=") - 1);
	}

	return NIL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2e0, %rsp            # imm = 0x2E0
movq %rdi, -0x278(%rbp)
movq %rdi, %rax
movq %rax, -0x270(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x8720d(%rip), %rsi     # 0x1a682c
leaq -0x60(%rbp), %rdi
callq 0x5c1f0
leaq -0x78(%rbp), %rdi
callq 0x5b1d0
jmp 0x11f633
leaq -0x48(%rbp), %rdi
leaq -0x60(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0x5acf0
jmp 0x11f646
leaq -0x78(%rbp), %rdi
callq 0x5df00
leaq -0x60(%rbp), %rdi
callq 0x5df00
leaq -0x48(%rbp), %rdi
callq 0x5b4b0
movb %al, -0x279(%rbp)
jmp 0x11f669
movb -0x279(%rbp), %al
testb $0x1, %al
jne 0x11f6df
jmp 0x11f675
movq -0x278(%rbp), %rdi
xorl %esi, %esi
callq 0x5da90
jmp 0x11f685
movl $0x1, -0x88(%rbp)
jmp 0x11fba5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x11f6bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x5df00
leaq -0x60(%rbp), %rdi
callq 0x5df00
jmp 0x11fbc7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x11fbbe
leaq -0x1a8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x5dc70
jmp 0x11f6f1
leaq -0x190(%rbp), %rdi
movl $0x3, %esi
leaq -0x1a8(%rbp), %rdx
movl $0x2, %ecx
callq 0x5d200
jmp 0x11f710
leaq -0x1a8(%rbp), %rdi
callq 0x5df00
leaq -0x190(%rbp), %rdi
callq 0x5da70
movq %rax, -0x288(%rbp)
jmp 0x11f731
leaq -0x190(%rbp), %rdi
callq 0x5a580
movq %rax, -0x290(%rbp)
jmp 0x11f746
movq -0x288(%rbp), %rax
movq -0x290(%rbp), %rcx
cmpq %rcx, %rax
jge 0x11f8db
leaq -0x1c0(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x5b9a0
jmp 0x11f772
leaq 0x67ac3(%rip), %rsi     # 0x18723c
leaq -0x1d8(%rbp), %rdi
callq 0x5c1f0
jmp 0x11f787
movq -0x10(%rbp), %rsi
leaq -0x1d8(%rbp), %rdi
callq 0x5a710
movq %rax, -0x298(%rbp)
jmp 0x11f7a0
leaq 0x90c27(%rip), %rsi     # 0x1b03ce
leaq -0x1f0(%rbp), %rdi
callq 0x5c1f0
jmp 0x11f7b5
movq -0x298(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x5a710
movq %rax, -0x2a0(%rbp)
jmp 0x11f7d1
movq -0x2a0(%rbp), %rsi
leaq -0x1c0(%rbp), %rdi
callq 0x59ac0
movb %al, -0x2a1(%rbp)
jmp 0x11f7ec
leaq -0x1f0(%rbp), %rdi
callq 0x5df00
leaq -0x1d8(%rbp), %rdi
callq 0x5df00
movb -0x2a1(%rbp), %al
testb $0x1, %al
jne 0x11f813
jmp 0x11f8a1
movl $0x3, -0x88(%rbp)
jmp 0x11f8ab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x1a8(%rbp), %rdi
callq 0x5df00
jmp 0x11fbbe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x11fb97
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x11f8ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x11f893
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x1f0(%rbp), %rdi
callq 0x5df00
leaq -0x1d8(%rbp), %rdi
callq 0x5df00
jmp 0x11f8ca
movl $0x0, -0x88(%rbp)
leaq -0x1c0(%rbp), %rdi
callq 0x5df00
movl -0x88(%rbp), %eax
testl %eax, %eax
je 0x11f8c5
jmp 0x11f8c3
jmp 0x11f8db
jmp 0x11f71c
leaq -0x1c0(%rbp), %rdi
callq 0x5df00
jmp 0x11fb97
jmp 0x11f8dd
leaq -0x190(%rbp), %rdi
callq 0x5da70
movq %rax, -0x2b0(%rbp)
jmp 0x11f8f2
leaq -0x190(%rbp), %rdi
callq 0x5a580
movq %rax, -0x2b8(%rbp)
jmp 0x11f907
movq -0x2b0(%rbp), %rax
movq -0x2b8(%rbp), %rcx
cmpq %rcx, %rax
jge 0x11fb6f
leaq -0x208(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x5b9a0
jmp 0x11f933
leaq 0x67902(%rip), %rsi     # 0x18723c
leaq -0x220(%rbp), %rdi
callq 0x5c1f0
jmp 0x11f948
leaq -0x208(%rbp), %rdi
leaq -0x220(%rbp), %rsi
callq 0x5bf60
movb %al, -0x2b9(%rbp)
jmp 0x11f963
leaq -0x220(%rbp), %rdi
callq 0x5df00
movb -0x2b9(%rbp), %al
testb $0x1, %al
jne 0x11f97b
jmp 0x11f9be
movl $0x5, -0x88(%rbp)
jmp 0x11fb31
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x11fb61
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x220(%rbp), %rdi
callq 0x5df00
jmp 0x11fb61
movq -0x18(%rbp), %rax
movq %rax, -0x2c8(%rbp)
leaq 0x8625d(%rip), %rsi     # 0x1a5c2d
leaq -0x250(%rbp), %rdi
callq 0x5c1f0
jmp 0x11f9de
movq -0x2c8(%rbp), %rsi
leaq -0x238(%rbp), %rdi
leaq -0x250(%rbp), %rdx
callq 0x5cf00
jmp 0x11f9fa
leaq -0x208(%rbp), %rdi
leaq -0x238(%rbp), %rsi
callq 0x5bf60
movb %al, -0x2c9(%rbp)
jmp 0x11fa15
movb -0x2c9(%rbp), %al
xorb $-0x1, %al
movb %al, -0x2ca(%rbp)
leaq -0x238(%rbp), %rdi
callq 0x5df00
leaq -0x250(%rbp), %rdi
callq 0x5df00
movb -0x2ca(%rbp), %al
testb $0x1, %al
jne 0x11fa47
jmp 0x11fa93
movl $0x4, -0x88(%rbp)
jmp 0x11fb31
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x11fa82
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x238(%rbp), %rdi
callq 0x5df00
leaq -0x250(%rbp), %rdi
callq 0x5df00
jmp 0x11fb61
leaq -0x208(%rbp), %rdi
callq 0x5b800
movl %eax, -0x2d0(%rbp)
jmp 0x11faa7
leaq 0x8617f(%rip), %rsi     # 0x1a5c2d
leaq -0x268(%rbp), %rdi
callq 0x5c1f0
jmp 0x11fabc
leaq -0x208(%rbp), %rdi
leaq -0x268(%rbp), %rsi
callq 0x5bd60
movl %eax, -0x2d4(%rbp)
jmp 0x11fad7
movq -0x278(%rbp), %rdi
movl -0x2d0(%rbp), %eax
movl -0x2d4(%rbp), %edx
notl %edx
addl %eax, %edx
leaq -0x208(%rbp), %rsi
callq 0x5c8a0
jmp 0x11fafc
leaq -0x268(%rbp), %rdi
callq 0x5df00
movl $0x1, -0x88(%rbp)
jmp 0x11fb31
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x268(%rbp), %rdi
callq 0x5df00
jmp 0x11fb61
leaq -0x208(%rbp), %rdi
callq 0x5df00
movl -0x88(%rbp), %eax
movl %eax, -0x2d8(%rbp)
subl $0x4, %eax
je 0x11f8dd
jmp 0x11fb54
movl -0x2d8(%rbp), %eax
subl $0x5, %eax
je 0x11fb6f
jmp 0x11fb89
leaq -0x208(%rbp), %rdi
callq 0x5df00
jmp 0x11fb97
movq -0x278(%rbp), %rdi
xorl %esi, %esi
callq 0x5da90
jmp 0x11fb7f
movl $0x1, -0x88(%rbp)
leaq -0x190(%rbp), %rdi
callq 0x59710
jmp 0x11fba5
leaq -0x190(%rbp), %rdi
callq 0x59710
jmp 0x11fbbe
leaq -0x48(%rbp), %rdi
callq 0x5de78
movq -0x270(%rbp), %rax
addq $0x2e0, %rsp            # imm = 0x2E0
popq %rbp
retq
leaq -0x48(%rbp), %rdi
callq 0x5de78
movq -0x80(%rbp), %rdi
callq 0x5b6b0