	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_core_get_context
_gl_core_get_context:                   ## @gl_core_get_context
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_video_driver_get_hw_context
	movq	%rax, %r14
	movq	_GFX_CTX_OPENGL_API@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testq	%r14, %r14
	je	LBB0_7
## %bb.1:
	movq	(%r14), %rax
	movq	_RETRO_HW_CONTEXT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movl	$1, %edi
	callq	_gl_query_core_context_set
	movq	$0, -48(%rbp)
	movl	$2, %r12d
	movl	$3, %r13d
	jmp	LBB0_5
LBB0_7:
	movl	$1, %edi
	callq	_gl_query_core_context_set
	movq	$0, -48(%rbp)
	movq	_GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_BIT32_SET
	leaq	-48(%rbp), %rdi
	callq	_video_context_driver_set_flags
	movl	$2, %r12d
	movl	$3, %r13d
	jmp	LBB0_8
LBB0_2:
	movl	8(%r14), %r13d
	movl	12(%r14), %r12d
	movq	_RETRO_HW_CONTEXT_OPENGL_CORE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_gl_query_core_context_set
	movq	(%r14), %rax
	movq	_RETRO_HW_CONTEXT_OPENGL_CORE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	$0, -48(%rbp)
LBB0_5:
	movq	_GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_BIT32_SET
	leaq	-48(%rbp), %rdi
	callq	_video_context_driver_set_flags
LBB0_6:
	movq	(%r14), %rax
	xorl	%ecx, %ecx
	movq	_RETRO_HW_CONTEXT_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%cl
	movl	%ecx, (%r15)
LBB0_8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	(%r15), %r9d
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	callq	_video_context_driver_init_first
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	movq	%rdi, 8(%r15)
LBB0_10:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%r15), %esi
	callq	*%rax
LBB0_12:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFX_CTX_OPENGL_API,4,2         ## @GFX_CTX_OPENGL_API
	.comm	_RETRO_HW_CONTEXT_NONE,8,3      ## @RETRO_HW_CONTEXT_NONE
	.comm	_RETRO_HW_CONTEXT_OPENGL_CORE,8,3 ## @RETRO_HW_CONTEXT_OPENGL_CORE
	.comm	_GFX_CTX_FLAGS_GL_CORE_CONTEXT,4,2 ## @GFX_CTX_FLAGS_GL_CORE_CONTEXT
	.comm	_GFX_CTX_OPENGL_ES_API,4,2      ## @GFX_CTX_OPENGL_ES_API
	.comm	_RETRO_HW_CONTEXT_OPENGLES_VERSION,8,3 ## @RETRO_HW_CONTEXT_OPENGLES_VERSION
	.no_dead_strip	_gl_core_get_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl_core_get_context
_gl_core_get_context:                   ; @gl_core_get_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	str	xzr, [sp]
	bl	_config_get_ptr
	mov	x21, x0
	bl	_video_driver_get_hw_context
Lloh0:
	adrp	x8, _GFX_CTX_OPENGL_API@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFX_CTX_OPENGL_API@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x24, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x25, _RETRO_HW_CONTEXT_NONE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _RETRO_HW_CONTEXT_NONE@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #1
	bl	_gl_query_core_context_set
	str	xzr, [sp, #8]
	mov	w22, #2
	mov	w23, #3
	b	LBB0_6
LBB0_3:
	mov	w0, #1
	bl	_gl_query_core_context_set
	str	xzr, [sp, #8]
Lloh5:
	adrp	x8, _GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_BIT32_SET
	add	x0, sp, #8
	bl	_video_context_driver_set_flags
	mov	w22, #2
	mov	w23, #3
	b	LBB0_8
LBB0_4:
	ldp	w23, w22, [x24, #8]
Lloh8:
	adrp	x26, _RETRO_HW_CONTEXT_OPENGL_CORE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _RETRO_HW_CONTEXT_OPENGL_CORE@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	cset	w0, eq
	bl	_gl_query_core_context_set
	ldr	x8, [x24]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	str	xzr, [sp, #8]
LBB0_6:
Lloh10:
	adrp	x8, _GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_BIT32_SET
	add	x0, sp, #8
	bl	_video_context_driver_set_flags
LBB0_7:
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w8, ne
	str	w8, [x19]
LBB0_8:
	ldr	w1, [x21]
	ldr	w5, [x19]
	mov	x6, sp
	mov	x0, x19
	mov	x2, x20
	mov	x3, x23
	mov	x4, x22
	bl	_video_context_driver_init_first
	mov	x20, x0
	ldr	x0, [sp]
	cbz	x0, LBB0_10
; %bb.9:
	str	x0, [x19, #8]
LBB0_10:
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w1, [x19]
	blr	x8
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFX_CTX_OPENGL_API,4,2         ; @GFX_CTX_OPENGL_API
	.comm	_RETRO_HW_CONTEXT_NONE,8,3      ; @RETRO_HW_CONTEXT_NONE
	.comm	_RETRO_HW_CONTEXT_OPENGL_CORE,8,3 ; @RETRO_HW_CONTEXT_OPENGL_CORE
	.comm	_GFX_CTX_FLAGS_GL_CORE_CONTEXT,4,2 ; @GFX_CTX_FLAGS_GL_CORE_CONTEXT
	.comm	_GFX_CTX_OPENGL_ES_API,4,2      ; @GFX_CTX_OPENGL_ES_API
	.comm	_RETRO_HW_CONTEXT_OPENGLES_VERSION,8,3 ; @RETRO_HW_CONTEXT_OPENGLES_VERSION
	.no_dead_strip	_gl_core_get_context
.subsections_via_symbols
