	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enumerate_gl_extensions
_enumerate_gl_extensions:               ## @enumerate_gl_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %rcx
	movq	_GL_NUM_EXTENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	*8(%rcx)
	cmpl	$0, -48(%rbp)
	je	LBB0_8
## %bb.1:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	shlq	$4, %r13
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx,%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rbx,%r14), %rdx
	movl	%eax, (%rcx,%rdx,4)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpl	-48(%rbp), %r12d
	jae	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_GL_EXTENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_glGetStringi
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_debugstr_a
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%rbx,%r14), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	addq	$16, %r14
	cmpq	%r14, %r13
	jne	LBB0_4
	jmp	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_NUM_EXTENSIONS,4,2          ## @GL_NUM_EXTENSIONS
	.comm	_GL_EXTENSIONS,4,2              ## @GL_EXTENSIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"- %s.\n"

L_.str.1:                               ## @.str.1
	.asciz	"FOUND: %s support.\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_enumerate_gl_extensions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enumerate_gl_extensions
_enumerate_gl_extensions:               ; @enumerate_gl_extensions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _GL_NUM_EXTENSIONS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GL_NUM_EXTENSIONS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	add	x1, sp, #12
	blr	x8
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_8
; %bb.1:
	mov	w21, #0
	mov	w23, w19
	add	x28, x22, #8
Lloh3:
	adrp	x27, _GL_EXTENSIONS@GOTPAGE
Lloh4:
	ldr	x27, [x27, _GL_EXTENSIONS@GOTPAGEOFF]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
Lloh9:
	adrp	x8, _TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldur	x10, [x26, #-8]
	str	w8, [x9, x10, lsl #2]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	ldr	w8, [sp, #12]
	cmp	w21, w8
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w0, [x27]
	mov	x1, x21
	bl	_glGetStringi
	bl	_GL_EXTCALL
	mov	x24, x0
	bl	_debugstr_a
	mov	x1, x0
	mov	x0, x22
	bl	_TRACE
	cbz	w19, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x23
	mov	x26, x28
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x26]
	mov	x0, x24
	bl	_strcmp
	cbz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x26, x26, #16
	subs	x25, x25, #1
	b.ne	LBB0_6
	b	LBB0_3
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_NUM_EXTENSIONS,4,2          ; @GL_NUM_EXTENSIONS
	.comm	_GL_EXTENSIONS,4,2              ; @GL_EXTENSIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"- %s.\n"

l_.str.1:                               ; @.str.1
	.asciz	"FOUND: %s support.\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_enumerate_gl_extensions
.subsections_via_symbols
