	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_egl_version              ## -- Begin function check_egl_version
	.p2align	4, 0x90
_check_egl_version:                     ## @check_egl_version
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_EGL_NO_DISPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EGL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_eglQueryString
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%rax, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.2:
	cmpl	%r15d, -32(%rbp)
	jl	LBB0_5
## %bb.3:
	movl	$1, %ebx
	jg	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	cmpl	%r14d, -28(%rbp)
	setge	%bl
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EGL_NO_DISPLAY,4,2             ## @EGL_NO_DISPLAY
	.comm	_EGL_VERSION,4,2                ## @EGL_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d.%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_egl_version              ; -- Begin function check_egl_version
	.p2align	2
_check_egl_version:                     ; @check_egl_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EGL_NO_DISPLAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EGL_NO_DISPLAY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EGL_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EGL_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_eglQueryString
	cbz	x0, LBB0_4
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
	cmp	w8, w20
	b.ge	LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	b.le	LBB0_7
; %bb.6:
	mov	w0, #1
	b	LBB0_4
LBB0_7:
	ldr	w8, [sp, #8]
	cmp	w8, w19
	cset	w0, ge
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EGL_NO_DISPLAY,4,2             ; @EGL_NO_DISPLAY
	.comm	_EGL_VERSION,4,2                ; @EGL_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d.%d"

.subsections_via_symbols
