	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_egl_bind_hw_render             ## -- Begin function egl_bind_hw_render
	.p2align	4, 0x90
_egl_bind_hw_render:                    ## @egl_bind_hw_render
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, (%rdi)
	movq	8(%rdi), %rax
	movq	_EGL_NO_DISPLAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	16(%rdi), %rdx
	movq	_EGL_NO_SURFACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_3
LBB0_2:
	popq	%rbp
	retq
LBB0_3:
	xorl	%ecx, %ecx
	testl	%esi, %esi
	setne	%cl
	movl	24(%rdi,%rcx,4), %ecx
	movq	%rax, %rdi
	movq	%rdx, %rsi
	popq	%rbp
	jmp	_eglMakeCurrent                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EGL_NO_DISPLAY,8,3             ## @EGL_NO_DISPLAY
	.comm	_EGL_NO_SURFACE,8,3             ## @EGL_NO_SURFACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_egl_bind_hw_render             ; -- Begin function egl_bind_hw_render
	.p2align	2
_egl_bind_hw_render:                    ; @egl_bind_hw_render
	.cfi_startproc
; %bb.0:
	str	w1, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _EGL_NO_DISPLAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EGL_NO_DISPLAY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x2, [x0, #16]
Lloh3:
	adrp	x9, _EGL_NO_SURFACE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EGL_NO_SURFACE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x2, x9
	b.ne	LBB0_3
LBB0_2:
	ret
LBB0_3:
	cmp	w1, #0
	mov	w9, #28
	mov	w10, #24
	csel	x9, x10, x9, eq
	ldr	w3, [x0, x9]
	mov	x0, x8
	mov	x1, x2
	b	_eglMakeCurrent
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EGL_NO_DISPLAY,8,3             ; @EGL_NO_DISPLAY
	.comm	_EGL_NO_SURFACE,8,3             ; @EGL_NO_SURFACE
.subsections_via_symbols
