// File: /workspace/github_c_makefile_star2_O0/derhass[P]glx_hook/glx_hook.c
// Function: frametimes_gl_init
static int
frametimes_gl_init()
{
	GH_GET_GL_PROC_OR_FAIL(glGenQueries, GH_MSG_WARNING, -1);
	GH_GET_GL_PROC_OR_FAIL(glDeleteQueries, GH_MSG_WARNING, -1);
	GH_GET_GL_PROC_OR_FAIL(glGetInteger64v, GH_MSG_WARNING, -1);
	GH_GET_GL_PROC_OR_FAIL(glQueryCounter, GH_MSG_WARNING, -1);
	GH_GET_GL_PROC_OR_FAIL(glGetQueryObjectui64v, GH_MSG_WARNING, -1);
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
leaq 0x6299(%rip), %rdi      # 0xd218
callq 0x21a0
cmpq $0x0, 0x63e4(%rip)      # 0xd370
jne 0x6fdf
leaq 0x6283(%rip), %rdi      # 0xd218
callq 0x2130
leaq 0x2eed(%rip), %rdi      # 0x9e8e
callq 0x6510
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rcx
movl $0x4, %edi
leaq 0x25ec(%rip), %rsi      # 0x95a6
leaq 0x2ecd(%rip), %rdx      # 0x9e8e
movb $0x0, %al
callq 0x3020
leaq 0x6249(%rip), %rdi      # 0xd218
callq 0x21a0
movq -0x10(%rbp), %rax
movq %rax, 0x6391(%rip)      # 0xd370
leaq 0x6232(%rip), %rdi      # 0xd218
callq 0x2130
cmpq $0x0, 0x637d(%rip)      # 0xd370
jne 0x701b
movl $0x2, %edi
leaq 0x2e9a(%rip), %rsi      # 0x9e9b
leaq 0x2e86(%rip), %rdx      # 0x9e8e
movb $0x0, %al
callq 0x3020
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x72ab
leaq 0x61f6(%rip), %rdi      # 0xd218
callq 0x21a0
cmpq $0x0, 0x6349(%rip)      # 0xd378
jne 0x7082
leaq 0x61e0(%rip), %rdi      # 0xd218
callq 0x2130
leaq 0x2e6a(%rip), %rdi      # 0x9eae
callq 0x6510
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movl $0x4, %edi
leaq 0x2549(%rip), %rsi      # 0x95a6
leaq 0x2e4a(%rip), %rdx      # 0x9eae
movb $0x0, %al
callq 0x3020
leaq 0x61a6(%rip), %rdi      # 0xd218
callq 0x21a0
movq -0x18(%rbp), %rax
movq %rax, 0x62f6(%rip)      # 0xd378
leaq 0x618f(%rip), %rdi      # 0xd218
callq 0x2130
cmpq $0x0, 0x62e2(%rip)      # 0xd378
jne 0x70be
movl $0x2, %edi
leaq 0x2df7(%rip), %rsi      # 0x9e9b
leaq 0x2e03(%rip), %rdx      # 0x9eae
movb $0x0, %al
callq 0x3020
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x72ab
leaq 0x6153(%rip), %rdi      # 0xd218
callq 0x21a0
cmpq $0x0, 0x62ae(%rip)      # 0xd380
jne 0x7125
leaq 0x613d(%rip), %rdi      # 0xd218
callq 0x2130
leaq 0x2dd7(%rip), %rdi      # 0x9ebe
callq 0x6510
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rcx
movl $0x4, %edi
leaq 0x24a6(%rip), %rsi      # 0x95a6
leaq 0x2db7(%rip), %rdx      # 0x9ebe
movb $0x0, %al
callq 0x3020
leaq 0x6103(%rip), %rdi      # 0xd218
callq 0x21a0
movq -0x20(%rbp), %rax
movq %rax, 0x625b(%rip)      # 0xd380
leaq 0x60ec(%rip), %rdi      # 0xd218
callq 0x2130
cmpq $0x0, 0x6247(%rip)      # 0xd380
jne 0x7161
movl $0x2, %edi
leaq 0x2d54(%rip), %rsi      # 0x9e9b
leaq 0x2d70(%rip), %rdx      # 0x9ebe
movb $0x0, %al
callq 0x3020
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x72ab
leaq 0x60b0(%rip), %rdi      # 0xd218
callq 0x21a0
cmpq $0x0, 0x6213(%rip)      # 0xd388
jne 0x71c8
leaq 0x609a(%rip), %rdi      # 0xd218
callq 0x2130
leaq 0x2d44(%rip), %rdi      # 0x9ece
callq 0x6510
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rcx
movl $0x4, %edi
leaq 0x2403(%rip), %rsi      # 0x95a6
leaq 0x2d24(%rip), %rdx      # 0x9ece
movb $0x0, %al
callq 0x3020
leaq 0x6060(%rip), %rdi      # 0xd218
callq 0x21a0
movq -0x28(%rbp), %rax
movq %rax, 0x61c0(%rip)      # 0xd388
leaq 0x6049(%rip), %rdi      # 0xd218
callq 0x2130
cmpq $0x0, 0x61ac(%rip)      # 0xd388
jne 0x7204
movl $0x2, %edi
leaq 0x2cb1(%rip), %rsi      # 0x9e9b
leaq 0x2cdd(%rip), %rdx      # 0x9ece
movb $0x0, %al
callq 0x3020
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x72ab
leaq 0x600d(%rip), %rdi      # 0xd218
callq 0x21a0
cmpq $0x0, 0x6178(%rip)      # 0xd390
jne 0x726b
leaq 0x5ff7(%rip), %rdi      # 0xd218
callq 0x2130
leaq 0x2cb0(%rip), %rdi      # 0x9edd
callq 0x6510
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rcx
movl $0x4, %edi
leaq 0x2360(%rip), %rsi      # 0x95a6
leaq 0x2c90(%rip), %rdx      # 0x9edd
movb $0x0, %al
callq 0x3020
leaq 0x5fbd(%rip), %rdi      # 0xd218
callq 0x21a0
movq -0x30(%rbp), %rax
movq %rax, 0x6125(%rip)      # 0xd390
leaq 0x5fa6(%rip), %rdi      # 0xd218
callq 0x2130
cmpq $0x0, 0x6111(%rip)      # 0xd390
jne 0x72a4
movl $0x2, %edi
leaq 0x2c0e(%rip), %rsi      # 0x9e9b
leaq 0x2c49(%rip), %rdx      # 0x9edd
movb $0x0, %al
callq 0x3020
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x72ab
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)