	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function orbis_ctx_bind_api
_orbis_ctx_bind_api:                    ## @orbis_ctx_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	_ctx_orbis_api@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	_GFX_CTX_OPENGL_ES_API@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_EGL_OPENGL_ES_API@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_eglBindAPI
	movq	%rax, %rcx
	movq	_EGL_FALSE@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_3
LBB0_2:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx_orbis_api,4,2              ## @ctx_orbis_api
	.comm	_GFX_CTX_OPENGL_ES_API,4,2      ## @GFX_CTX_OPENGL_ES_API
	.comm	_EGL_OPENGL_ES_API,4,2          ## @EGL_OPENGL_ES_API
	.comm	_EGL_FALSE,8,3                  ## @EGL_FALSE
	.no_dead_strip	_orbis_ctx_bind_api
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function orbis_ctx_bind_api
_orbis_ctx_bind_api:                    ; @orbis_ctx_bind_api
	.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, _ctx_orbis_api@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ctx_orbis_api@GOTPAGEOFF]
Lloh2:
	str	w1, [x8]
Lloh3:
	adrp	x8, _GFX_CTX_OPENGL_ES_API@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFX_CTX_OPENGL_ES_API@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EGL_OPENGL_ES_API@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EGL_OPENGL_ES_API@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_eglBindAPI
Lloh9:
	adrp	x8, _EGL_FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EGL_FALSE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx_orbis_api,4,2              ; @ctx_orbis_api
	.comm	_GFX_CTX_OPENGL_ES_API,4,2      ; @GFX_CTX_OPENGL_ES_API
	.comm	_EGL_OPENGL_ES_API,4,2          ; @EGL_OPENGL_ES_API
	.comm	_EGL_FALSE,8,3                  ; @EGL_FALSE
	.no_dead_strip	_orbis_ctx_bind_api
.subsections_via_symbols
