	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function list_extensions
_list_extensions:                       ## @list_extensions
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	callq	_get_api_name
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	cmpl	$3, %r14d
	jl	LBB0_7
## %bb.1:
	movq	_GLFW_OPENGL_API@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_7
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_glfwGetProcAddress
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	movl	%eax, %ebx
	movq	_GL_NUM_EXTENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-28(%rbp), %rsi
	callq	_glGetIntegerv
	cmpl	$0, -28(%rbp)
	jle	LBB0_6
## %bb.4:
	movslq	%ebx, %r14
	xorl	%ebx, %ebx
	movq	_GL_EXTENSIONS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	*%r14
	movq	%rax, %rdi
	callq	_puts
	incl	%ebx
	cmpl	-28(%rbp), %ebx
	jl	LBB0_5
LBB0_6:
	movl	$10, %edi
	callq	_putchar
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_GL_EXTENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glGetString
	movq	%rax, %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movsbl	%cl, %edi
	callq	_putchar
	incq	%rbx
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	movb	$10, %cl
	cmpb	$32, %al
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testb	%al, %al
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %ecx
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	callq	_glfwTerminate
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s context supported extensions:\n"

	.comm	_GLFW_OPENGL_API,4,2            ## @GLFW_OPENGL_API
L_.str.1:                               ## @.str.1
	.asciz	"glGetStringi"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_GL_NUM_EXTENSIONS,4,2          ## @GL_NUM_EXTENSIONS
	.comm	_GL_EXTENSIONS,4,2              ## @GL_EXTENSIONS
	.no_dead_strip	_list_extensions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function list_extensions
_list_extensions:                       ; @list_extensions
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_get_api_name
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	cmp	w20, #3
	b.lt	LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _GLFW_OPENGL_API@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GLFW_OPENGL_API@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_glfwGetProcAddress
	cbz	w0, LBB0_12
; %bb.3:
	mov	x20, x0
Lloh7:
	adrp	x8, _GL_NUM_EXTENSIONS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_NUM_EXTENSIONS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_glGetIntegerv
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.4:
	mov	w19, #0
	sxtw	x20, w20
Lloh10:
	adrp	x21, _GL_EXTENSIONS@GOTPAGE
Lloh11:
	ldr	x21, [x21, _GL_EXTENSIONS@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	x1, x19
	blr	x20
	bl	_puts
	add	w19, w19, #1
	ldr	w8, [sp, #12]
	cmp	w19, w8
	b.lt	LBB0_5
	b	LBB0_11
LBB0_6:
Lloh12:
	adrp	x8, _GL_EXTENSIONS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GL_EXTENSIONS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_glGetString
	mov	x19, x0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #10
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	sxtb	w0, w8
	bl	_putchar
	add	x19, x19, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19]
	cmp	w8, #32
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	w8, LBB0_8
LBB0_11:
	mov	w0, #10
	bl	_putchar
	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
LBB0_12:
	bl	_glfwTerminate
Lloh15:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s context supported extensions:\n"

	.comm	_GLFW_OPENGL_API,4,2            ; @GLFW_OPENGL_API
l_.str.1:                               ; @.str.1
	.asciz	"glGetStringi"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_GL_NUM_EXTENSIONS,4,2          ; @GL_NUM_EXTENSIONS
	.comm	_GL_EXTENSIONS,4,2              ; @GL_EXTENSIONS
	.no_dead_strip	_list_extensions
.subsections_via_symbols
