// File: /workspace/github_c_makefile_star2_O0/derhass[P]glx_hook/glx_hook.c
// Function: swapbuffer_omission_init_gl_funcs
static int
swapbuffer_omission_init_gl_funcs(void)
{
	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 0x5489(%rip), %rdi      # 0xd218
callq 0x21a0
cmpq $0x0, 0x55d4(%rip)      # 0xd370
jne 0x7def
leaq 0x5473(%rip), %rdi      # 0xd218
callq 0x2130
leaq 0x20dd(%rip), %rdi      # 0x9e8e
callq 0x6510
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rcx
movl $0x4, %edi
leaq 0x17dc(%rip), %rsi      # 0x95a6
leaq 0x20bd(%rip), %rdx      # 0x9e8e
movb $0x0, %al
callq 0x3020
leaq 0x5439(%rip), %rdi      # 0xd218
callq 0x21a0
movq -0x10(%rbp), %rax
movq %rax, 0x5581(%rip)      # 0xd370
leaq 0x5422(%rip), %rdi      # 0xd218
callq 0x2130
cmpq $0x0, 0x556d(%rip)      # 0xd370
jne 0x7e2b
movl $0x2, %edi
leaq 0x208a(%rip), %rsi      # 0x9e9b
leaq 0x2076(%rip), %rdx      # 0x9e8e
movb $0x0, %al
callq 0x3020
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x80bb
leaq 0x53e6(%rip), %rdi      # 0xd218
callq 0x21a0
cmpq $0x0, 0x5539(%rip)      # 0xd378
jne 0x7e92
leaq 0x53d0(%rip), %rdi      # 0xd218
callq 0x2130
leaq 0x205a(%rip), %rdi      # 0x9eae
callq 0x6510
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movl $0x4, %edi
leaq 0x1739(%rip), %rsi      # 0x95a6
leaq 0x203a(%rip), %rdx      # 0x9eae
movb $0x0, %al
callq 0x3020
leaq 0x5396(%rip), %rdi      # 0xd218
callq 0x21a0
movq -0x18(%rbp), %rax
movq %rax, 0x54e6(%rip)      # 0xd378
leaq 0x537f(%rip), %rdi      # 0xd218
callq 0x2130
cmpq $0x0, 0x54d2(%rip)      # 0xd378
jne 0x7ece
movl $0x2, %edi
leaq 0x1fe7(%rip), %rsi      # 0x9e9b
leaq 0x1ff3(%rip), %rdx      # 0x9eae
movb $0x0, %al
callq 0x3020
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x80bb
leaq 0x5343(%rip), %rdi      # 0xd218
callq 0x21a0
cmpq $0x0, 0x549e(%rip)      # 0xd380
jne 0x7f35
leaq 0x532d(%rip), %rdi      # 0xd218
callq 0x2130
leaq 0x1fc7(%rip), %rdi      # 0x9ebe
callq 0x6510
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rcx
movl $0x4, %edi
leaq 0x1696(%rip), %rsi      # 0x95a6
leaq 0x1fa7(%rip), %rdx      # 0x9ebe
movb $0x0, %al
callq 0x3020
leaq 0x52f3(%rip), %rdi      # 0xd218
callq 0x21a0
movq -0x20(%rbp), %rax
movq %rax, 0x544b(%rip)      # 0xd380
leaq 0x52dc(%rip), %rdi      # 0xd218
callq 0x2130
cmpq $0x0, 0x5437(%rip)      # 0xd380
jne 0x7f71
movl $0x2, %edi
leaq 0x1f44(%rip), %rsi      # 0x9e9b
leaq 0x1f60(%rip), %rdx      # 0x9ebe
movb $0x0, %al
callq 0x3020
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x80bb
leaq 0x52a0(%rip), %rdi      # 0xd218
callq 0x21a0
cmpq $0x0, 0x5403(%rip)      # 0xd388
jne 0x7fd8
leaq 0x528a(%rip), %rdi      # 0xd218
callq 0x2130
leaq 0x1f34(%rip), %rdi      # 0x9ece
callq 0x6510
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rcx
movl $0x4, %edi
leaq 0x15f3(%rip), %rsi      # 0x95a6
leaq 0x1f14(%rip), %rdx      # 0x9ece
movb $0x0, %al
callq 0x3020
leaq 0x5250(%rip), %rdi      # 0xd218
callq 0x21a0
movq -0x28(%rbp), %rax
movq %rax, 0x53b0(%rip)      # 0xd388
leaq 0x5239(%rip), %rdi      # 0xd218
callq 0x2130
cmpq $0x0, 0x539c(%rip)      # 0xd388
jne 0x8014
movl $0x2, %edi
leaq 0x1ea1(%rip), %rsi      # 0x9e9b
leaq 0x1ecd(%rip), %rdx      # 0x9ece
movb $0x0, %al
callq 0x3020
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x80bb
leaq 0x51fd(%rip), %rdi      # 0xd218
callq 0x21a0
cmpq $0x0, 0x5368(%rip)      # 0xd390
jne 0x807b
leaq 0x51e7(%rip), %rdi      # 0xd218
callq 0x2130
leaq 0x1ea0(%rip), %rdi      # 0x9edd
callq 0x6510
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rcx
movl $0x4, %edi
leaq 0x1550(%rip), %rsi      # 0x95a6
leaq 0x1e80(%rip), %rdx      # 0x9edd
movb $0x0, %al
callq 0x3020
leaq 0x51ad(%rip), %rdi      # 0xd218
callq 0x21a0
movq -0x30(%rbp), %rax
movq %rax, 0x5315(%rip)      # 0xd390
leaq 0x5196(%rip), %rdi      # 0xd218
callq 0x2130
cmpq $0x0, 0x5301(%rip)      # 0xd390
jne 0x80b4
movl $0x2, %edi
leaq 0x1dfe(%rip), %rsi      # 0x9e9b
leaq 0x1e39(%rip), %rdx      # 0x9edd
movb $0x0, %al
callq 0x3020
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x80bb
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)