// File: /workspace/github_c_makefile_star2_O3/derhass[P]glx_hook/glx_hook.c
// Function: GH_verbose
static void GH_verbose(int level, const char *fmt, ...)
{
	static int verbosity=-1;
	static FILE *output_stream=NULL;
	static int stream_initialized=0;
	va_list args;

	if (verbosity < 0) {
		verbosity=get_envi("GH_VERBOSE", GH_MSG_LEVEL_DEFAULT);
	}

	if (level > verbosity) {
		return;
	}

	if (!stream_initialized) {
		const char *file=getenv("GH_VERBOSE_FILE");
		if (file) {
			char buf[PATH_MAX];
			parse_name(buf, sizeof(buf), file, 0);
			output_stream=fopen(buf,"a+t");
		}
		if (!output_stream)
			output_stream=GH_DEFAULT_OUTPUT_STREAM;
		stream_initialized=1;
	}
	fprintf(output_stream,"GH: ");
	va_start(args, fmt);
	vfprintf(output_stream, fmt, args);
	va_end(args);
	fflush(output_stream);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10c8, %rsp           # imm = 0x10C8
movq %rsi, %rbx
movl %edi, %ebp
movq %rdx, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x30(%rsp)
movq %r9, 0x38(%rsp)
testb %al, %al
je 0x1738
movaps %xmm0, 0x40(%rsp)
movaps %xmm1, 0x50(%rsp)
movaps %xmm2, 0x60(%rsp)
movaps %xmm3, 0x70(%rsp)
movaps %xmm4, 0x80(%rsp)
movaps %xmm5, 0x90(%rsp)
movaps %xmm6, 0xa0(%rsp)
movaps %xmm7, 0xb0(%rsp)
movl 0x396a(%rip), %eax      # 0x50a8
testl %eax, %eax
jns 0x1759
leaq 0x1b44(%rip), %rdi      # 0x328d
movl $0x2, %esi
callq 0x2003
movl %eax, 0x394f(%rip)      # 0x50a8
cmpl %ebp, %eax
jl 0x1926
cmpb $0x1, 0x39c8(%rip)      # 0x5130
jne 0x1776
movq 0x39b7(%rip), %rcx      # 0x5128
jmp 0x18cb
leaq 0x1b1b(%rip), %rdi      # 0x3298
callq 0x1030
testq %rax, %rax
je 0x18a7
movq %rax, %r14
leaq 0xc0(%rsp), %r15
movb $0x0, 0xfff(%r15)
xorl %ebp, %ebp
leaq 0x1b0a(%rip), %r12      # 0x32b1
xorl %r13d, %r13d
movsbl (%r14), %r8d
testl %r8d, %r8d
je 0x187f
testl %r13d, %r13d
je 0x1819
movzbl %r8b, %eax
cmpl $0x6f, %eax
jg 0x17e3
cmpl $0x25, %eax
je 0x1841
cmpl $0x63, %eax
jne 0x182f
xorl %r13d, %r13d
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rcx
xorl %r8d, %r8d
jmp 0x1865
cmpl $0x70, %eax
je 0x1851
cmpl $0x74, %eax
jne 0x182f
xorl %r13d, %r13d
xorl %edi, %edi
movq %rsp, %rsi
callq 0x1060
movq (%rsp), %r8
movq 0x8(%rsp), %r9
movq %r15, %rdi
movq %rbp, %rsi
leaq 0x1aa4(%rip), %rcx      # 0x32b4
xorl %eax, %eax
callq 0x2023
jmp 0x186c
movl $0x1, %r13d
cmpb $0x25, %r8b
je 0x186f
movb %r8b, 0xc0(%rsp,%rbp)
jmp 0x1849
xorl %r13d, %r13d
movq %r15, %rdi
movq %rbp, %rsi
leaq 0x1a80(%rip), %rcx      # 0x32bf
jmp 0x1865
movb $0x25, 0xc0(%rsp,%rbp)
incq %rbp
xorl %r13d, %r13d
jmp 0x186f
callq 0x1070
xorl %r13d, %r13d
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rcx
movl %eax, %r8d
xorl %eax, %eax
callq 0x2023
movq %rax, %rbp
incq %r14
cmpq $0xfff, %rbp            # imm = 0xFFF
jb 0x17aa
movb $0x0, 0xc0(%rsp,%rbp)
leaq 0x1a1a(%rip), %rsi      # 0x32a8
leaq 0xc0(%rsp), %rdi
callq 0x10e0
movq %rax, %rcx
movq %rax, 0x3883(%rip)      # 0x5128
jmp 0x18ae
movq 0x387a(%rip), %rcx      # 0x5128
testq %rcx, %rcx
jne 0x18c4
movq 0x3736(%rip), %rax      # 0x4ff0
movq (%rax), %rcx
movq %rcx, 0x3864(%rip)      # 0x5128
movb $0x1, 0x3865(%rip)      # 0x5130
leaq 0x19da(%rip), %rdi      # 0x32ac
movl $0x4, %esi
movl $0x1, %edx
callq 0x1100
movabsq $0x3000000010, %rax     # imm = 0x3000000010
leaq 0xc0(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x1100(%rsp), %rax
movq %rax, 0x8(%rdx)
leaq 0x10(%rsp), %rax
movq %rax, 0x10(%rdx)
movq 0x3816(%rip), %rdi      # 0x5128
movq %rbx, %rsi
callq 0x10f0
movq 0x3807(%rip), %rdi      # 0x5128
callq 0x10d0
addq $0x10c8, %rsp           # imm = 0x10C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq