// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/glbuild.c
// Function: enumerate_configure
static void enumerate_configure(const char *ext) {
	if (!Bstrcmp(ext, "GL_EXT_texture_filter_anisotropic")) {
			// supports anisotropy. get the maximum anisotropy level
#ifdef GL_EXT_texture_filter_anisotropic
		glfunc.glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &glinfo.maxanisotropy);
#endif
	} else if (!Bstrcmp(ext, "GL_EXT_texture_edge_clamp") ||
			!Bstrcmp(ext, "GL_SGIS_texture_edge_clamp")) {
			// supports GL_CLAMP_TO_EDGE
		glinfo.clamptoedge = 1;
	} else if (!Bstrcmp(ext, "GL_EXT_bgra") ||
			!Bstrcmp(ext, "GL_EXT_texture_format_BGRA8888")) {
			// support bgra textures
		glinfo.bgra = 1;
	} else if (!Bstrcmp(ext, "GL_EXT_texture_compression_s3tc")) {
			// support DXT1 and DXT5 texture compression
		glinfo.texcomprdxt1 = 1;
		glinfo.texcomprdxt5 = 1;
	} else if (!Bstrcmp(ext, "GL_EXT_texture_compression_dxt1")) {
			// support DXT1 texture compression
		glinfo.texcomprdxt1 = 1;
	} else if (!Bstrcmp(ext, "GL_OES_compressed_ETC1_RGB8_texture")) {
			// support ETC1 texture compression
		glinfo.texcompretc1 = 1;
	} else if (!Bstrcmp(ext, "GL_ARB_texture_non_power_of_two") ||
			!Bstrcmp(ext, "GL_OES_texture_npot")) {
			// support non-power-of-two texture sizes
		glinfo.texnpot = 1;
	} else if (!Bstrcmp(ext, "GL_ARB_multisample")) {
			// supports multisampling
		glinfo.multisample = 1;
	} else if (!Bstrcmp(ext, "GL_NV_multisample_filter_hint")) {
			// supports nvidia's multisample hint extension
		glinfo.nvmultisamplehint = 1;
	} else if (!Bstrcmp(ext, "GL_ARB_sample_shading")) {
			// supports sample shading extension
		glinfo.sampleshading = 1;
	} else if (!strcmp(ext, "GL_ARB_shading_language_100")) {
		const char *ver;

		// Clear the error queue, then query the version string.
		while (glfunc.glGetError() != GL_NO_ERROR) { }
		ver = (const char *) glfunc.glGetString(GL_SHADING_LANGUAGE_VERSION);

		if (!ver && glfunc.glGetError() == GL_INVALID_ENUM) {
			// GLSL 1.00 (1.051).
			glinfo.glslmajver = 1;
			glinfo.glslminver = 0;
		} else if (ver) {
			// GLSL 1.10 or newer.
			sscanf(ver, "%d.%d", &glinfo.glslmajver, &glinfo.glslminver);
		}
#ifdef GL_KHR_debug
	} else if (!strcmp(ext, "GL_KHR_debug") && glinfo.debugext < 2) {
		glinfo.debugext = 2;
#endif
#ifdef GL_ARB_debug_output
	} else if (!strcmp(ext, "GL_ARB_debug_output") && glinfo.debugext < 1) {
		glinfo.debugext = 1;
#endif
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x44eb0(%rip), %rsi     # 0xb5c07
callq 0x6820
cmpl $0x0, %eax
jne 0x70d7c
movl $0x84ff, %edi           # imm = 0x84FF
leaq 0x14a043(%rip), %rsi    # 0x1badb0
addq $0x14, %rsi
callq *0x57c9e9(%rip)         # 0x5ed760
jmp 0x71021
movq -0x8(%rbp), %rdi
leaq 0x44ea2(%rip), %rsi     # 0xb5c29
callq 0x6820
cmpl $0x0, %eax
je 0x70da6
movq -0x8(%rbp), %rdi
leaq 0x44ea7(%rip), %rsi     # 0xb5c43
callq 0x6820
cmpl $0x0, %eax
jne 0x70db6
leaq 0x14a003(%rip), %rax    # 0x1badb0
movb $0x1, 0x19(%rax)
jmp 0x7101f
movq -0x8(%rbp), %rdi
leaq 0x44e9d(%rip), %rsi     # 0xb5c5e
callq 0x6820
cmpl $0x0, %eax
je 0x70de0
movq -0x8(%rbp), %rdi
leaq 0x44e94(%rip), %rsi     # 0xb5c6a
callq 0x6820
cmpl $0x0, %eax
jne 0x70df0
leaq 0x149fc9(%rip), %rax    # 0x1badb0
movb $0x1, 0x18(%rax)
jmp 0x7101d
movq -0x8(%rbp), %rdi
leaq 0x44e8e(%rip), %rsi     # 0xb5c89
callq 0x6820
cmpl $0x0, %eax
jne 0x70e20
leaq 0x149fa4(%rip), %rax    # 0x1badb0
movb $0x1, 0x1a(%rax)
leaq 0x149f99(%rip), %rax    # 0x1badb0
movb $0x1, 0x1b(%rax)
jmp 0x7101b
movq -0x8(%rbp), %rdi
leaq 0x44e7e(%rip), %rsi     # 0xb5ca9
callq 0x6820
cmpl $0x0, %eax
jne 0x70e45
leaq 0x149f74(%rip), %rax    # 0x1badb0
movb $0x1, 0x1a(%rax)
jmp 0x71019
movq -0x8(%rbp), %rdi
leaq 0x44e79(%rip), %rsi     # 0xb5cc9
callq 0x6820
cmpl $0x0, %eax
jne 0x70e6a
leaq 0x149f4f(%rip), %rax    # 0x1badb0
movb $0x1, 0x1c(%rax)
jmp 0x71017
movq -0x8(%rbp), %rdi
leaq 0x44e78(%rip), %rsi     # 0xb5ced
callq 0x6820
cmpl $0x0, %eax
je 0x70e94
movq -0x8(%rbp), %rdi
leaq 0x44e83(%rip), %rsi     # 0xb5d0d
callq 0x6820
cmpl $0x0, %eax
jne 0x70ea4
leaq 0x149f15(%rip), %rax    # 0x1badb0
movb $0x1, 0x1d(%rax)
jmp 0x71015
movq -0x8(%rbp), %rdi
leaq 0x44e72(%rip), %rsi     # 0xb5d21
callq 0x6820
cmpl $0x0, %eax
jne 0x70ec9
leaq 0x149ef0(%rip), %rax    # 0x1badb0
movb $0x1, 0x1e(%rax)
jmp 0x71013
movq -0x8(%rbp), %rdi
leaq 0x44e60(%rip), %rsi     # 0xb5d34
callq 0x6820
cmpl $0x0, %eax
jne 0x70eee
leaq 0x149ecb(%rip), %rax    # 0x1badb0
movb $0x1, 0x1f(%rax)
jmp 0x71011
movq -0x8(%rbp), %rdi
leaq 0x44e59(%rip), %rsi     # 0xb5d52
callq 0x6820
cmpl $0x0, %eax
jne 0x70f13
leaq 0x149ea6(%rip), %rax    # 0x1badb0
movb $0x1, 0x20(%rax)
jmp 0x7100f
movq -0x8(%rbp), %rdi
leaq 0x44e4a(%rip), %rsi     # 0xb5d68
callq 0x6820
cmpl $0x0, %eax
jne 0x70fa7
jmp 0x70f2a
callq *0x57c848(%rip)         # 0x5ed778
cmpl $0x0, %eax
je 0x70f37
jmp 0x70f2a
movl $0x8b8c, %edi           # imm = 0x8B8C
callq *0x57c82e(%rip)         # 0x5ed770
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x70f78
callq *0x57c825(%rip)         # 0x5ed778
cmpl $0x500, %eax            # imm = 0x500
jne 0x70f78
leaq 0x149e4f(%rip), %rax    # 0x1badb0
movl $0x1, 0xc(%rax)
leaq 0x149e41(%rip), %rax    # 0x1badb0
movl $0x0, 0x10(%rax)
jmp 0x70fa5
cmpq $0x0, -0x10(%rbp)
je 0x70fa3
movq -0x10(%rbp), %rdi
leaq 0x41e84(%rip), %rsi     # 0xb2e0e
leaq 0x149e1f(%rip), %rcx    # 0x1badb0
movq %rcx, %rdx
addq $0xc, %rdx
addq $0x10, %rcx
movb $0x0, %al
callq 0x60f0
jmp 0x70fa5
jmp 0x7100d
movq -0x8(%rbp), %rdi
leaq 0x44dd2(%rip), %rsi     # 0xb5d84
callq 0x6820
cmpl $0x0, %eax
jne 0x70fd9
leaq 0x149ded(%rip), %rax    # 0x1badb0
movsbl 0x30(%rax), %eax
cmpl $0x2, %eax
jge 0x70fd9
leaq 0x149ddd(%rip), %rax    # 0x1badb0
movb $0x2, 0x30(%rax)
jmp 0x7100b
movq -0x8(%rbp), %rdi
leaq 0x44dad(%rip), %rsi     # 0xb5d91
callq 0x6820
cmpl $0x0, %eax
jne 0x71009
leaq 0x149dbb(%rip), %rax    # 0x1badb0
movsbl 0x30(%rax), %eax
cmpl $0x1, %eax
jge 0x71009
leaq 0x149dab(%rip), %rax    # 0x1badb0
movb $0x1, 0x30(%rax)
jmp 0x7100b
jmp 0x7100d
jmp 0x7100f
jmp 0x71011
jmp 0x71013
jmp 0x71015
jmp 0x71017
jmp 0x71019
jmp 0x7101b
jmp 0x7101d
jmp 0x7101f
jmp 0x71021
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)