	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl2_resolve_extensions
_gl2_resolve_extensions:                ## @gl2_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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r12
	movq	_GL_CAPS_FULL_NPOT_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gl_check_capability
	movq	%rax, 48(%rbx)
	movq	_GL_CAPS_MIPMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gl_check_capability
	movq	%rax, 40(%rbx)
	movq	_GL_CAPS_ES2_COMPAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gl_check_capability
	movq	%rax, 32(%rbx)
	movq	_GL_CAPS_UNPACK_ROW_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gl_check_capability
	movq	%rax, 24(%rbx)
	movq	_GL_CAPS_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gl_check_capability
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%r12)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_RARCH_LOG
LBB0_3:
	xorl	%eax, %eax
	callq	_video_driver_unset_rgba
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_gl2_renderchain_resolve_extensions
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_CAPS_FULL_NPOT_SUPPORT,4,2  ## @GL_CAPS_FULL_NPOT_SUPPORT
	.comm	_GL_CAPS_MIPMAP,4,2             ## @GL_CAPS_MIPMAP
	.comm	_GL_CAPS_ES2_COMPAT,4,2         ## @GL_CAPS_ES2_COMPAT
	.comm	_GL_CAPS_UNPACK_ROW_LENGTH,4,2  ## @GL_CAPS_UNPACK_ROW_LENGTH
	.comm	_GL_CAPS_SYNC,4,2               ## @GL_CAPS_SYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[GL]: Using ARB_sync to reduce latency.\n"

	.comm	_GL_CAPS_BGRA8888,4,2           ## @GL_CAPS_BGRA8888
	.comm	_GL_EXTENSIONS,4,2              ## @GL_EXTENSIONS
	.comm	_GL_NUM_EXTENSIONS,4,2          ## @GL_NUM_EXTENSIONS
	.no_dead_strip	_gl2_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_resolve_extensions
_gl2_resolve_extensions:                ; @gl2_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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_config_get_ptr
	mov	x22, x0
Lloh0:
	adrp	x8, _GL_CAPS_FULL_NPOT_SUPPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_CAPS_FULL_NPOT_SUPPORT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_gl_check_capability
	str	x0, [x21, #48]
Lloh3:
	adrp	x8, _GL_CAPS_MIPMAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_CAPS_MIPMAP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_gl_check_capability
	str	x0, [x21, #40]
Lloh6:
	adrp	x8, _GL_CAPS_ES2_COMPAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_CAPS_ES2_COMPAT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_gl_check_capability
	str	x0, [x21, #32]
Lloh9:
	adrp	x8, _GL_CAPS_UNPACK_ROW_LENGTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_CAPS_UNPACK_ROW_LENGTH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_gl_check_capability
	str	x0, [x21, #24]
Lloh12:
	adrp	x8, _GL_CAPS_SYNC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GL_CAPS_SYNC@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_gl_check_capability
	str	x0, [x21, #16]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.2:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
LBB0_3:
	bl	_video_driver_unset_rgba
	ldr	x1, [x21, #8]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_gl2_renderchain_resolve_extensions
	mov	w0, #1
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_CAPS_FULL_NPOT_SUPPORT,4,2  ; @GL_CAPS_FULL_NPOT_SUPPORT
	.comm	_GL_CAPS_MIPMAP,4,2             ; @GL_CAPS_MIPMAP
	.comm	_GL_CAPS_ES2_COMPAT,4,2         ; @GL_CAPS_ES2_COMPAT
	.comm	_GL_CAPS_UNPACK_ROW_LENGTH,4,2  ; @GL_CAPS_UNPACK_ROW_LENGTH
	.comm	_GL_CAPS_SYNC,4,2               ; @GL_CAPS_SYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[GL]: Using ARB_sync to reduce latency.\n"

	.comm	_GL_CAPS_BGRA8888,4,2           ; @GL_CAPS_BGRA8888
	.comm	_GL_EXTENSIONS,4,2              ; @GL_EXTENSIONS
	.comm	_GL_NUM_EXTENSIONS,4,2          ; @GL_NUM_EXTENSIONS
	.no_dead_strip	_gl2_resolve_extensions
.subsections_via_symbols
