	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function egl_sync_check_attribs
_egl_sync_check_attribs:                ## @egl_sync_check_attribs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %esi
	jne	LBB0_2
## %bb.1:
	movq	_EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	$0, (%rcx)
	movq	_EGL_UNSIGNALED_KHR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_EGL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	$0, (%rcx)
	xorl	%eax, %eax
LBB0_3:
	movl	%eax, (%r8)
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movl	(%rdi), %eax
	movq	_EGL_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	testl	$-129, %esi
	sete	%al
	popq	%rbp
	retq
LBB0_5:
	movq	_EGL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR,4,2 ## @EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR
	.comm	_EGL_UNSIGNALED_KHR,4,2         ## @EGL_UNSIGNALED_KHR
	.comm	_EGL_NONE,4,2                   ## @EGL_NONE
	.comm	_EGL_FALSE,4,2                  ## @EGL_FALSE
	.no_dead_strip	_egl_sync_check_attribs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function egl_sync_check_attribs
_egl_sync_check_attribs:                ; @egl_sync_check_attribs
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _EGL_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EGL_NONE@GOTPAGEOFF]
	cmp	w1, #128
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w9, [x2]
	str	wzr, [x3]
Lloh5:
	adrp	x9, _EGL_UNSIGNALED_KHR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EGL_UNSIGNALED_KHR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x4]
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_2:
	mov	w9, #0
	ldr	w10, [x8]
	str	w10, [x2]
	str	wzr, [x3]
	str	w9, [x4]
	cbz	x0, LBB0_4
LBB0_3:
	ldr	w9, [x0]
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_5
LBB0_4:
	tst	w1, #0xffffff7f
	cset	w0, eq
	ret
LBB0_5:
Lloh8:
	adrp	x8, _EGL_FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EGL_FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR,4,2 ; @EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR
	.comm	_EGL_UNSIGNALED_KHR,4,2         ; @EGL_UNSIGNALED_KHR
	.comm	_EGL_NONE,4,2                   ; @EGL_NONE
	.comm	_EGL_FALSE,4,2                  ; @EGL_FALSE
	.no_dead_strip	_egl_sync_check_attribs
.subsections_via_symbols
