	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_xegl_bind_api
_gfx_ctx_xegl_bind_api:                 ## @gfx_ctx_xegl_bind_api
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_g_egl_major@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	movq	_g_egl_minor@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	_xegl_api@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	cmpl	$129, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$130, %esi
	jne	LBB0_7
## %bb.2:
	imull	$1000, %edx, %eax               ## imm = 0x3E8
	addl	%ecx, %eax
	cmpl	$3000, %eax                     ## imm = 0xBB8
	ja	LBB0_7
## %bb.3:
	movq	_EGL_OPENGL_API@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	cmpl	$2, %edx
	jbe	LBB0_5
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_EGL_OPENGL_ES_API@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	popq	%rbp
	jmp	_eglBindAPI                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_g_egl_major,4,2                ## @g_egl_major
	.comm	_g_egl_minor,4,2                ## @g_egl_minor
	.comm	_xegl_api,4,2                   ## @xegl_api
	.comm	_EGL_OPENGL_API,4,2             ## @EGL_OPENGL_API
	.comm	_EGL_OPENGL_ES_API,4,2          ## @EGL_OPENGL_ES_API
	.comm	_EGL_OPENVG_API,4,2             ## @EGL_OPENVG_API
	.no_dead_strip	_gfx_ctx_xegl_bind_api
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_ctx_xegl_bind_api
_gfx_ctx_xegl_bind_api:                 ; @gfx_ctx_xegl_bind_api
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _g_egl_major@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_egl_major@GOTPAGEOFF]
Lloh2:
	adrp	x9, _g_egl_minor@GOTPAGE
Lloh3:
	ldr	x9, [x9, _g_egl_minor@GOTPAGEOFF]
Lloh4:
	str	w2, [x8]
Lloh5:
	str	w3, [x9]
Lloh6:
	adrp	x8, _xegl_api@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xegl_api@GOTPAGEOFF]
Lloh8:
	str	w1, [x8]
	cmp	w1, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #130
	b.ne	LBB0_5
; %bb.2:
	mov	w8, #1000
	madd	w8, w2, w8, w3
	cmp	w8, #3000
	b.hi	LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _EGL_OPENGL_API@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EGL_OPENGL_API@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	_eglBindAPI
LBB0_4:
	cmp	w2, #2
	b.ls	LBB0_6
LBB0_5:
	mov	w0, #0
	ret
LBB0_6:
Lloh12:
	adrp	x8, _EGL_OPENGL_ES_API@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EGL_OPENGL_ES_API@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	_eglBindAPI
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_g_egl_major,4,2                ; @g_egl_major
	.comm	_g_egl_minor,4,2                ; @g_egl_minor
	.comm	_xegl_api,4,2                   ; @xegl_api
	.comm	_EGL_OPENGL_API,4,2             ; @EGL_OPENGL_API
	.comm	_EGL_OPENGL_ES_API,4,2          ; @EGL_OPENGL_ES_API
	.comm	_EGL_OPENVG_API,4,2             ; @EGL_OPENVG_API
	.no_dead_strip	_gfx_ctx_xegl_bind_api
.subsections_via_symbols
