// File: /workspace/github_c_makefile_star2_O1/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 0x1714
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)
cmpl $0x0, 0x398d(%rip)      # 0x50a8
jns 0x1734
leaq 0x1b69(%rip), %rdi      # 0x328d
movl $0x2, %esi
callq 0x1fa0
movl %eax, 0x3974(%rip)      # 0x50a8
cmpl %ebp, 0x396e(%rip)      # 0x50a8
jl 0x18f0
cmpb $0x0, 0x39e9(%rip)      # 0x5130
jne 0x188e
leaq 0x1b44(%rip), %rdi      # 0x3298
callq 0x1030
testq %rax, %rax
je 0x186c
movq %rax, %r14
leaq 0xc0(%rsp), %r15
movb $0x0, 0xfff(%r15)
xorl %ebp, %ebp
leaq 0x1b33(%rip), %r12      # 0x32b1
xorl %r13d, %r13d
movsbl (%r14), %r8d
testl %r8d, %r8d
je 0x1849
testl %r13d, %r13d
je 0x17ed
movzbl %r8b, %eax
cmpl $0x6f, %eax
jg 0x17b7
cmpl $0x25, %eax
je 0x17f9
cmpl $0x63, %eax
jne 0x1809
xorl %r13d, %r13d
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rcx
xorl %r8d, %r8d
jmp 0x182f
cmpl $0x70, %eax
je 0x181b
cmpl $0x74, %eax
jne 0x1809
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 0x1ad0(%rip), %rcx      # 0x32b4
xorl %eax, %eax
callq 0x1fc0
jmp 0x1836
movl $0x1, %r13d
cmpb $0x25, %r8b
je 0x1839
movb %r8b, 0xc0(%rsp,%rbp)
incq %rbp
xorl %r13d, %r13d
jmp 0x1839
xorl %r13d, %r13d
movq %r15, %rdi
movq %rbp, %rsi
leaq 0x1aa6(%rip), %rcx      # 0x32bf
jmp 0x182f
callq 0x1070
xorl %r13d, %r13d
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rcx
movl %eax, %r8d
xorl %eax, %eax
callq 0x1fc0
movq %rax, %rbp
incq %r14
cmpq $0xfff, %rbp            # imm = 0xFFF
jb 0x1781
movb $0x0, 0xc0(%rsp,%rbp)
leaq 0x1a50(%rip), %rsi      # 0x32a8
leaq 0xc0(%rsp), %rdi
callq 0x10e0
movq %rax, 0x38bc(%rip)      # 0x5128
cmpq $0x0, 0x38b4(%rip)      # 0x5128
jne 0x1887
movq 0x3773(%rip), %rax      # 0x4ff0
movq (%rax), %rax
movq %rax, 0x38a1(%rip)      # 0x5128
movb $0x1, 0x38a2(%rip)      # 0x5130
movq 0x3893(%rip), %rcx      # 0x5128
leaq 0x1a10(%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 0x384c(%rip), %rdi      # 0x5128
movq %rbx, %rsi
callq 0x10f0
movq 0x383d(%rip), %rdi      # 0x5128
callq 0x10d0
addq $0x10c8, %rsp           # imm = 0x10C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq