	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl2_renderchain_resolve_extensions
_gl2_renderchain_resolve_extensions:    ## @gl2_renderchain_resolve_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_config_get_ptr
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	%rax, %r12
	movl	$0, (%rbx)
	movq	_GL_CAPS_FP_FBO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gl_check_capability
	movq	%rax, 16(%rbx)
	movq	_GL_CAPS_SRGB_FBO_ES3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gl_check_capability
	movq	%rax, 8(%rbx)
	cmpl	$0, (%r12)
	jne	LBB0_3
## %bb.2:
	movq	_GL_CAPS_SRGB_FBO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gl_check_capability
	movl	%eax, (%rbx)
LBB0_3:
	xorl	%r12d, %r12d
	cmpl	$0, 16(%r15)
	jne	LBB0_7
## %bb.4:
	movq	_GL_CAPS_EGLIMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gl_check_capability
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	*%rax
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
LBB0_7:
	movl	%r12d, 4(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_CAPS_FP_FBO,4,2             ## @GL_CAPS_FP_FBO
	.comm	_GL_CAPS_SRGB_FBO_ES3,4,2       ## @GL_CAPS_SRGB_FBO_ES3
	.comm	_GL_CAPS_SRGB_FBO,4,2           ## @GL_CAPS_SRGB_FBO
	.comm	_GL_CAPS_EGLIMAGE,4,2           ## @GL_CAPS_EGLIMAGE
	.no_dead_strip	_gl2_renderchain_resolve_extensions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl2_renderchain_resolve_extensions
_gl2_renderchain_resolve_extensions:    ; @gl2_renderchain_resolve_extensions
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x3
	mov	x19, x1
	mov	x21, x0
	bl	_config_get_ptr
	cbz	x19, LBB0_9
; %bb.1:
	mov	x22, x0
	str	wzr, [x19]
Lloh0:
	adrp	x8, _GL_CAPS_FP_FBO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_CAPS_FP_FBO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_gl_check_capability
	str	x0, [x19, #16]
Lloh3:
	adrp	x8, _GL_CAPS_SRGB_FBO_ES3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_CAPS_SRGB_FBO_ES3@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_gl_check_capability
	str	x0, [x19, #8]
	ldr	w8, [x22]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_7
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _GL_CAPS_SRGB_FBO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_CAPS_SRGB_FBO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_gl_check_capability
	str	w0, [x19]
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _GL_CAPS_EGLIMAGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_CAPS_EGLIMAGE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_gl_check_capability
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w0, [x21]
	mov	x1, x20
	blr	x8
	cmp	x0, #0
	cset	w8, ne
	b	LBB0_8
LBB0_7:
	mov	w8, #0
LBB0_8:
	str	w8, [x19, #4]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_CAPS_FP_FBO,4,2             ; @GL_CAPS_FP_FBO
	.comm	_GL_CAPS_SRGB_FBO_ES3,4,2       ; @GL_CAPS_SRGB_FBO_ES3
	.comm	_GL_CAPS_SRGB_FBO,4,2           ; @GL_CAPS_SRGB_FBO
	.comm	_GL_CAPS_EGLIMAGE,4,2           ; @GL_CAPS_EGLIMAGE
	.no_dead_strip	_gl2_renderchain_resolve_extensions
.subsections_via_symbols
