	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_egl_get_process_state   ## -- Begin function client_egl_get_process_state
	.p2align	4, 0x90
_client_egl_get_process_state:          ## @client_egl_get_process_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpq	$1, %rsi
	jne	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	xorl	%eax, %eax
	callq	_CLIENT_GET_PROCESS_STATE
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.3:
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	_EGL_NOT_INITIALIZED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EGL_BAD_DISPLAY@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EGL_NOT_INITIALIZED,4,2        ## @EGL_NOT_INITIALIZED
	.comm	_EGL_BAD_DISPLAY,4,2            ## @EGL_BAD_DISPLAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_egl_get_process_state   ; -- Begin function client_egl_get_process_state
	.p2align	2
_client_egl_get_process_state:          ; @client_egl_get_process_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	x1, #1
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x2
	bl	_CLIENT_GET_PROCESS_STATE
	cbz	x20, LBB0_6
; %bb.2:
	ldr	w8, [x0]
	cbnz	w8, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _EGL_NOT_INITIALIZED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EGL_NOT_INITIALIZED@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EGL_BAD_DISPLAY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EGL_BAD_DISPLAY@GOTPAGEOFF]
LBB0_5:
	mov	x0, #0
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EGL_NOT_INITIALIZED,4,2        ; @EGL_NOT_INITIALIZED
	.comm	_EGL_BAD_DISPLAY,4,2            ; @EGL_BAD_DISPLAY
.subsections_via_symbols
