	.file	"extr_visualinfo.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Usage: visualinfo [-h] [-display <display>] [-visual <id>]\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"        -h: this screen\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"        -display <display>: use given display\n"
	.align 8
.LC3:
	.string	"        -visual <id>: use given visual\n"
	.section	.rodata.str1.1
.LC4:
	.string	"Error: CreateContext failed\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Error [main]: glewInit failed: %s\n"
	.section	.rodata.str1.1
.LC6:
	.string	"OpenGL vendor string: %s\n"
.LC7:
	.string	"OpenGL renderer string: %s\n"
.LC8:
	.string	"OpenGL version string: %s\n"
.LC9:
	.string	"OpenGL extensions (GL_): \n"
.LC10:
	.string	"GLU version string: %s\n"
.LC11:
	.string	"GLU extensions (GLU_): \n"
.LC12:
	.string	"GLX extensions (GLX_): \n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	add	rsi, 8
	sub	edi, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	ParseArgs@PLT
	cmp	rax, QWORD PTR GL_TRUE[rip]
	je	.L10
	lea	rbp, 4[rsp]
	mov	rdi, rbp
	call	InitContext@PLT
	mov	rdi, rbp
	call	CreateContext@PLT
	mov	r8, rax
	mov	rax, QWORD PTR GL_TRUE[rip]
	cmp	r8, rax
	je	.L11
	mov	QWORD PTR glewExperimental[rip], rax
	xor	eax, eax
	call	glewInit@PLT
	cmp	DWORD PTR GLEW_OK[rip], eax
	mov	edi, eax
	je	.L5
	call	glewGetErrorString@PLT
	mov	rdi, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	r12d, 1
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	rdi, rbp
	call	DestroyContext@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR stdout[rip]
	mov	edi, DWORD PTR GL_VENDOR[rip]
	mov	QWORD PTR file[rip], rax
	call	glGetString@PLT
	mov	rdi, QWORD PTR file[rip]
	lea	rsi, .LC6[rip]
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR GL_RENDERER[rip]
	call	glGetString@PLT
	mov	rdi, QWORD PTR file[rip]
	lea	rsi, .LC7[rip]
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR GL_VERSION[rip]
	call	glGetString@PLT
	mov	rdi, QWORD PTR file[rip]
	lea	rsi, .LC8[rip]
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	edx, 26
	mov	rcx, QWORD PTR file[rip]
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	edi, DWORD PTR GL_EXTENSIONS[rip]
	call	glGetString@PLT
	mov	rdi, rax
	call	PrintExtensions@PLT
	mov	edi, DWORD PTR GLU_VERSION[rip]
	call	gluGetString@PLT
	mov	rdi, QWORD PTR file[rip]
	lea	rsi, .LC10[rip]
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	edx, 24
	mov	rcx, QWORD PTR file[rip]
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, DWORD PTR GLU_EXTENSIONS[rip]
	call	gluGetString@PLT
	mov	rdi, rax
	call	PrintExtensions@PLT
	mov	edx, 24
	mov	rcx, QWORD PTR file[rip]
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	xor	eax, eax
	call	glXGetCurrentDisplay@PLT
	mov	edi, eax
	call	DefaultScreen@PLT
	mov	r12d, eax
	xor	eax, eax
	call	glXGetCurrentDisplay@PLT
	mov	esi, r12d
	xor	r12d, r12d
	mov	edi, eax
	call	glXQueryExtensionsString@PLT
	mov	rdi, rax
	call	PrintExtensions@PLT
	mov	rdi, rbp
	call	VisualInfo@PLT
	mov	rdi, rbp
	call	DestroyContext@PLT
	mov	rdi, QWORD PTR file[rip]
	cmp	rdi, QWORD PTR stdout[rip]
	je	.L1
	call	fclose@PLT
	jmp	.L1
.L10:
	mov	edx, 59
	mov	rcx, QWORD PTR stderr[rip]
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	r12d, 1
	call	fwrite@PLT
	mov	edx, 24
	mov	rcx, QWORD PTR stderr[rip]
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edx, 46
	mov	rcx, QWORD PTR stderr[rip]
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edx, 39
	mov	rcx, QWORD PTR stderr[rip]
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	jmp	.L1
.L11:
	mov	edx, 28
	mov	rcx, QWORD PTR stderr[rip]
	mov	esi, 1
	lea	rdi, .LC4[rip]
	mov	r12d, 1
	call	fwrite@PLT
	mov	rdi, rbp
	call	DestroyContext@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stdout,8,8
	.comm	stderr,8,8
	.comm	glewExperimental,8,8
	.comm	file,8,8
	.comm	displaystdout,4,4
	.comm	WGLEW_EXT_extensions_string,8,8
	.comm	WGLEW_ARB_extensions_string,8,8
	.comm	GL_VERSION,4,4
	.comm	GL_VENDOR,4,4
	.comm	GL_TRUE,8,8
	.comm	GL_RENDERER,4,4
	.comm	GL_EXTENSIONS,4,4
	.comm	GLU_VERSION,4,4
	.comm	GLU_EXTENSIONS,4,4
	.comm	GLEW_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_visualinfo.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Usage: visualinfo [-h] [-display <display>] [-visua"
	.ascii	"l <id>]\012\000"
	.align	2
.LC1:
	.ascii	"        -h: this screen\012\000"
	.align	2
.LC2:
	.ascii	"        -display <display>: use given display\012\000"
	.align	2
.LC3:
	.ascii	"        -visual <id>: use given visual\012\000"
	.align	2
.LC4:
	.ascii	"Error: CreateContext failed\012\000"
	.align	2
.LC5:
	.ascii	"Error [main]: glewInit failed: %s\012\000"
	.align	2
.LC6:
	.ascii	"OpenGL vendor string: %s\012\000"
	.align	2
.LC7:
	.ascii	"OpenGL renderer string: %s\012\000"
	.align	2
.LC8:
	.ascii	"OpenGL version string: %s\012\000"
	.align	2
.LC9:
	.ascii	"OpenGL extensions (GL_): \012\000"
	.align	2
.LC10:
	.ascii	"GLU version string: %s\012\000"
	.align	2
.LC11:
	.ascii	"GLU extensions (GLU_): \012\000"
	.align	2
.LC12:
	.ascii	"GLX extensions (GLX_): \012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC13:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L13
	sub	sp, sp, #8
	sub	r0, r0, #1
	add	r1, r1, #4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	ParseArgs
	ldr	r4, .L13+4
	ldr	r3, [r4]
	cmp	r0, r3
	beq	.L10
	mov	r0, sp
	bl	InitContext
	mov	r0, sp
	bl	CreateContext
	ldr	r3, [r4]
	cmp	r0, r3
	beq	.L11
	ldr	r2, .L13+8
	str	r3, [r2]
	bl	glewInit
	ldr	r3, .L13+12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L5
	ldr	r3, .L13+16
	ldr	r4, [r3]
	bl	glewGetErrorString
	ldr	r1, .L13+20
	mov	r2, r0
	mov	r0, r4
	bl	fprintf
	mov	r0, sp
	bl	DestroyContext
	mov	r0, #1
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r6, .L13+24
	ldr	r3, .L13+28
	ldr	r4, .L13+32
	ldr	r5, [r6]
	ldr	r0, [r3]
	str	r5, [r4]
	bl	glGetString
	ldr	r1, .L13+36
	mov	r2, r0
	mov	r0, r5
	bl	fprintf
	ldr	r3, .L13+40
	ldr	r5, [r4]
	ldr	r0, [r3]
	bl	glGetString
	ldr	r1, .L13+44
	mov	r2, r0
	mov	r0, r5
	bl	fprintf
	ldr	r3, .L13+48
	ldr	r5, [r4]
	ldr	r0, [r3]
	bl	glGetString
	ldr	r1, .L13+52
	mov	r2, r0
	mov	r0, r5
	bl	fprintf
	mov	r2, #26
	mov	r1, #1
	ldr	r3, [r4]
	ldr	r0, .L13+56
	bl	fwrite
	ldr	r3, .L13+60
	ldr	r0, [r3]
	bl	glGetString
	bl	PrintExtensions
	ldr	r3, .L13+64
	ldr	r5, [r4]
	ldr	r0, [r3]
	bl	gluGetString
	ldr	r1, .L13+68
	mov	r2, r0
	mov	r0, r5
	bl	fprintf
	mov	r2, #24
	mov	r1, #1
	ldr	r3, [r4]
	ldr	r0, .L13+72
	bl	fwrite
	ldr	r3, .L13+76
	ldr	r0, [r3]
	bl	gluGetString
	bl	PrintExtensions
	ldr	r3, [r4]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L13+80
	bl	fwrite
	bl	glXGetCurrentDisplay
	mov	r5, r0
	bl	glXGetCurrentDisplay
	bl	DefaultScreen
	mov	r1, r0
	mov	r0, r5
	bl	glXQueryExtensionsString
	bl	PrintExtensions
	mov	r0, sp
	bl	VisualInfo
	mov	r0, sp
	bl	DestroyContext
	ldr	r0, [r4]
	ldr	r3, [r6]
	cmp	r0, r3
	moveq	r0, #0
	beq	.L1
	bl	fclose
	mov	r0, #0
	b	.L1
.L10:
	ldr	r4, .L13+16
	mov	r2, #59
	mov	r1, #1
	ldr	r3, [r4]
	ldr	r0, .L13+84
	bl	fwrite
	mov	r2, #24
	mov	r1, #1
	ldr	r3, [r4]
	ldr	r0, .L13+88
	bl	fwrite
	mov	r2, #46
	mov	r1, #1
	ldr	r3, [r4]
	ldr	r0, .L13+92
	bl	fwrite
	mov	r2, #39
	mov	r1, #1
	ldr	r3, [r4]
	ldr	r0, .L13+96
	bl	fwrite
	mov	r0, #1
	b	.L1
.L11:
	ldr	r3, .L13+16
	mov	r2, #28
	mov	r1, #1
	ldr	r3, [r3]
	ldr	r0, .L13+100
	bl	fwrite
	mov	r0, sp
	bl	DestroyContext
	mov	r0, #1
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC13
	.word	GL_TRUE
	.word	glewExperimental
	.word	GLEW_OK
	.word	stderr
	.word	.LC5
	.word	stdout
	.word	GL_VENDOR
	.word	file
	.word	.LC6
	.word	GL_RENDERER
	.word	.LC7
	.word	GL_VERSION
	.word	.LC8
	.word	.LC9
	.word	GL_EXTENSIONS
	.word	GLU_VERSION
	.word	.LC10
	.word	.LC11
	.word	GLU_EXTENSIONS
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	glewExperimental,4,4
	.comm	file,4,4
	.comm	displaystdout,4,4
	.comm	WGLEW_EXT_extensions_string,4,4
	.comm	WGLEW_ARB_extensions_string,4,4
	.comm	GL_VERSION,4,4
	.comm	GL_VENDOR,4,4
	.comm	GL_TRUE,4,4
	.comm	GL_RENDERER,4,4
	.comm	GL_EXTENSIONS,4,4
	.comm	GLU_VERSION,4,4
	.comm	GLU_EXTENSIONS,4,4
	.comm	GLEW_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
