	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_MakeCurrent              ## -- Begin function GLimp_MakeCurrent
	.p2align	4, 0x90
_GLimp_MakeCurrent:                     ## @GLimp_MakeCurrent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_osmesa_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_osmesa_frame_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_glConfig@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	callq	_OSMesaMakeCurrent
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_Sys_Error                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_osmesa_ctx,4,2                 ## @osmesa_ctx
	.comm	_osmesa_frame_buffer,4,2        ## @osmesa_frame_buffer
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_glConfig,8,2                   ## @glConfig
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GLimp_MakeCurrent - Failed!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_MakeCurrent              ; -- Begin function GLimp_MakeCurrent
	.p2align	2
_GLimp_MakeCurrent:                     ; @GLimp_MakeCurrent
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _osmesa_ctx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _osmesa_ctx@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _osmesa_frame_buffer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _osmesa_frame_buffer@GOTPAGEOFF]
Lloh5:
	adrp	x9, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w2, [x9]
Lloh9:
	adrp	x8, _glConfig@GOTPAGE
Lloh10:
	ldr	x8, [x8, _glConfig@GOTPAGEOFF]
	ldp	w4, w3, [x8]
	bl	_OSMesaMakeCurrent
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_Sys_Error
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_osmesa_ctx,4,2                 ; @osmesa_ctx
	.comm	_osmesa_frame_buffer,4,2        ; @osmesa_frame_buffer
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_glConfig,8,2                   ; @glConfig
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GLimp_MakeCurrent - Failed!"

.subsections_via_symbols
