	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GL_TRUE@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	decl	%edi
	addq	$8, %rsi
	callq	_ParseArgs
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rdi
	movl	$59, %esi
	movl	$1, %edx
	callq	_fwrite
	movq	(%rbx), %rcx
	leaq	L_.str.1(%rip), %rdi
	movl	$24, %esi
	movl	$1, %edx
	callq	_fwrite
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rdi
	movl	$46, %esi
	movl	$1, %edx
	callq	_fwrite
	movq	(%rbx), %rcx
	leaq	L_.str.3(%rip), %rdi
	movl	$39, %esi
	movl	$1, %edx
	callq	_fwrite
	jmp	LBB0_9
LBB0_2:
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	callq	_InitContext
	movq	(%r15), %rbx
	movq	%r14, %rdi
	callq	_CreateContext
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.4(%rip), %rdi
	movl	$28, %esi
	movl	$1, %edx
	callq	_fwrite
	jmp	LBB0_8
LBB0_4:
	movq	(%r15), %rax
	movq	_glewExperimental@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_glewInit
	movq	_GLEW_OK@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_7
## %bb.5:
	movq	_stdout@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	movq	_file@GOTPCREL(%rip), %r12
	movq	%r14, (%r12)
	movq	_GL_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glGetString
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %r14
	movq	_GL_RENDERER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glGetString
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %r14
	movq	_GL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glGetString
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %rcx
	leaq	L_.str.9(%rip), %rdi
	movl	$26, %esi
	movl	$1, %edx
	callq	_fwrite
	movq	_GL_EXTENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glGetString
	movq	%rax, %rdi
	callq	_PrintExtensions
	movq	(%r12), %r14
	movq	_GLU_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gluGetString
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %rcx
	leaq	L_.str.11(%rip), %rdi
	movl	$24, %esi
	movl	$1, %edx
	callq	_fwrite
	movq	_GLU_EXTENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gluGetString
	movq	%rax, %rdi
	callq	_PrintExtensions
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	callq	_VisualInfo
	movq	%r14, %rdi
	callq	_DestroyContext
	movq	(%r12), %rdi
	cmpq	(%r15), %rdi
	je	LBB0_10
## %bb.6:
	callq	_fclose
	jmp	LBB0_10
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movl	%eax, %edi
	callq	_glewGetErrorString
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	leaq	-40(%rbp), %rdi
	callq	_DestroyContext
LBB0_9:
	movl	$1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TRUE,8,3                    ## @GL_TRUE
	.comm	_stderr,8,3                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: visualinfo [-h] [-display <display>] [-visual <id>]\n"

L_.str.1:                               ## @.str.1
	.asciz	"        -h: this screen\n"

L_.str.2:                               ## @.str.2
	.asciz	"        -display <display>: use given display\n"

L_.str.3:                               ## @.str.3
	.asciz	"        -visual <id>: use given visual\n"

L_.str.4:                               ## @.str.4
	.asciz	"Error: CreateContext failed\n"

	.comm	_glewExperimental,8,3           ## @glewExperimental
	.comm	_GLEW_OK,4,2                    ## @GLEW_OK
L_.str.5:                               ## @.str.5
	.asciz	"Error [main]: glewInit failed: %s\n"

	.comm	_stdout,8,3                     ## @stdout
	.comm	_file,8,3                       ## @file
L_.str.6:                               ## @.str.6
	.asciz	"OpenGL vendor string: %s\n"

	.comm	_GL_VENDOR,4,2                  ## @GL_VENDOR
L_.str.7:                               ## @.str.7
	.asciz	"OpenGL renderer string: %s\n"

	.comm	_GL_RENDERER,4,2                ## @GL_RENDERER
L_.str.8:                               ## @.str.8
	.asciz	"OpenGL version string: %s\n"

	.comm	_GL_VERSION,4,2                 ## @GL_VERSION
L_.str.9:                               ## @.str.9
	.asciz	"OpenGL extensions (GL_): \n"

	.comm	_GL_EXTENSIONS,4,2              ## @GL_EXTENSIONS
L_.str.10:                              ## @.str.10
	.asciz	"GLU version string: %s\n"

	.comm	_GLU_VERSION,4,2                ## @GLU_VERSION
L_.str.11:                              ## @.str.11
	.asciz	"GLU extensions (GLU_): \n"

	.comm	_GLU_EXTENSIONS,4,2             ## @GLU_EXTENSIONS
	.comm	_WGLEW_ARB_extensions_string,8,3 ## @WGLEW_ARB_extensions_string
	.comm	_WGLEW_EXT_extensions_string,8,3 ## @WGLEW_EXT_extensions_string
	.comm	_displaystdout,4,2              ## @displaystdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x19, _GL_TRUE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GL_TRUE@GOTPAGEOFF]
	ldr	x20, [x19]
	sub	w0, w0, #1
	add	x1, x1, #8
	bl	_ParseArgs
	cmp	x20, x0
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x20, _stderr@GOTPAGE
Lloh3:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	x3, [x20]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	w19, #1
	mov	w1, #59
	mov	w2, #1
	bl	_fwrite
	ldr	x3, [x20]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #24
	mov	w2, #1
	bl	_fwrite
	ldr	x3, [x20]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #46
	mov	w2, #1
	bl	_fwrite
	ldr	x3, [x20]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #39
	mov	w2, #1
	bl	_fwrite
	b	LBB0_9
LBB0_2:
	add	x0, sp, #8
	bl	_InitContext
	ldr	x20, [x19]
	add	x0, sp, #8
	bl	_CreateContext
	cmp	x20, x0
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	x3, [x8]
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w19, #1
	mov	w1, #28
	mov	w2, #1
	bl	_fwrite
	add	x0, sp, #8
	bl	_DestroyContext
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	b	LBB0_9
LBB0_4:
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _glewExperimental@GOTPAGE
Lloh18:
	ldr	x9, [x9, _glewExperimental@GOTPAGEOFF]
Lloh19:
	str	x8, [x9]
	bl	_glewInit
Lloh20:
	adrp	x8, _GLEW_OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GLEW_OK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_8
; %bb.5:
Lloh23:
	adrp	x20, _stdout@GOTPAGE
Lloh24:
	ldr	x20, [x20, _stdout@GOTPAGEOFF]
	ldr	x19, [x20]
Lloh25:
	adrp	x21, _file@GOTPAGE
Lloh26:
	ldr	x21, [x21, _file@GOTPAGEOFF]
	str	x19, [x21]
Lloh27:
	adrp	x8, _GL_VENDOR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GL_VENDOR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_glGetString
	str	x0, [sp]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x19, [x21]
Lloh32:
	adrp	x8, _GL_RENDERER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GL_RENDERER@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_glGetString
	str	x0, [sp]
Lloh35:
	adrp	x1, l_.str.7@PAGE
Lloh36:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x19, [x21]
Lloh37:
	adrp	x8, _GL_VERSION@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GL_VERSION@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_glGetString
	str	x0, [sp]
Lloh40:
	adrp	x1, l_.str.8@PAGE
Lloh41:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x3, [x21]
Lloh42:
	adrp	x0, l_.str.9@PAGE
Lloh43:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	w1, #26
	mov	w2, #1
	bl	_fwrite
Lloh44:
	adrp	x8, _GL_EXTENSIONS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GL_EXTENSIONS@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_glGetString
	bl	_PrintExtensions
	ldr	x19, [x21]
Lloh47:
	adrp	x8, _GLU_VERSION@GOTPAGE
Lloh48:
	ldr	x8, [x8, _GLU_VERSION@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_gluGetString
	str	x0, [sp]
Lloh50:
	adrp	x1, l_.str.10@PAGE
Lloh51:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x3, [x21]
Lloh52:
	adrp	x0, l_.str.11@PAGE
Lloh53:
	add	x0, x0, l_.str.11@PAGEOFF
	mov	w1, #24
	mov	w2, #1
	bl	_fwrite
Lloh54:
	adrp	x8, _GLU_EXTENSIONS@GOTPAGE
Lloh55:
	ldr	x8, [x8, _GLU_EXTENSIONS@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	bl	_gluGetString
	bl	_PrintExtensions
	add	x0, sp, #8
	bl	_VisualInfo
	add	x0, sp, #8
	bl	_DestroyContext
	ldr	x0, [x21]
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	bl	_fclose
LBB0_7:
	mov	w19, #0
	b	LBB0_9
LBB0_8:
Lloh57:
	adrp	x8, _stderr@GOTPAGE
Lloh58:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh59:
	ldr	x19, [x8]
	bl	_glewGetErrorString
	str	x0, [sp]
Lloh60:
	adrp	x1, l_.str.5@PAGE
Lloh61:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	add	x0, sp, #8
	bl	_DestroyContext
	mov	w19, #1
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TRUE,8,3                    ; @GL_TRUE
	.comm	_stderr,8,3                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: visualinfo [-h] [-display <display>] [-visual <id>]\n"

l_.str.1:                               ; @.str.1
	.asciz	"        -h: this screen\n"

l_.str.2:                               ; @.str.2
	.asciz	"        -display <display>: use given display\n"

l_.str.3:                               ; @.str.3
	.asciz	"        -visual <id>: use given visual\n"

l_.str.4:                               ; @.str.4
	.asciz	"Error: CreateContext failed\n"

	.comm	_glewExperimental,8,3           ; @glewExperimental
	.comm	_GLEW_OK,4,2                    ; @GLEW_OK
l_.str.5:                               ; @.str.5
	.asciz	"Error [main]: glewInit failed: %s\n"

	.comm	_stdout,8,3                     ; @stdout
	.comm	_file,8,3                       ; @file
l_.str.6:                               ; @.str.6
	.asciz	"OpenGL vendor string: %s\n"

	.comm	_GL_VENDOR,4,2                  ; @GL_VENDOR
l_.str.7:                               ; @.str.7
	.asciz	"OpenGL renderer string: %s\n"

	.comm	_GL_RENDERER,4,2                ; @GL_RENDERER
l_.str.8:                               ; @.str.8
	.asciz	"OpenGL version string: %s\n"

	.comm	_GL_VERSION,4,2                 ; @GL_VERSION
l_.str.9:                               ; @.str.9
	.asciz	"OpenGL extensions (GL_): \n"

	.comm	_GL_EXTENSIONS,4,2              ; @GL_EXTENSIONS
l_.str.10:                              ; @.str.10
	.asciz	"GLU version string: %s\n"

	.comm	_GLU_VERSION,4,2                ; @GLU_VERSION
l_.str.11:                              ; @.str.11
	.asciz	"GLU extensions (GLU_): \n"

	.comm	_GLU_EXTENSIONS,4,2             ; @GLU_EXTENSIONS
	.comm	_WGLEW_ARB_extensions_string,8,3 ; @WGLEW_ARB_extensions_string
	.comm	_WGLEW_EXT_extensions_string,8,3 ; @WGLEW_EXT_extensions_string
	.comm	_displaystdout,4,2              ; @displaystdout
.subsections_via_symbols
