	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lock_surface_check_attribs
_lock_surface_check_attribs:            ## @lock_surface_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
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_EGL_TRUE@GOTPCREL(%rip), %r11
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movl	(%rdi), %eax
	movq	_EGL_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
## %bb.2:
	addq	$8, %rdi
	movq	_EGL_FALSE@GOTPCREL(%rip), %r8
	movq	_EGL_READ_SURFACE_BIT_KHR@GOTPCREL(%rip), %r9
	movq	_EGL_WRITE_SURFACE_BIT_KHR@GOTPCREL(%rip), %r10
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rdi), %eax
	addq	$8, %rdi
	cmpl	(%rcx), %eax
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rdi), %ebx
	cmpl	$129, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setne	%al
	movl	%eax, (%rsi)
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r10), %eax
	orl	(%r9), %eax
	notl	%eax
	testl	%eax, %ebx
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, (%rdx)
	jmp	LBB0_3
LBB0_10:
	movq	%r8, %r11
LBB0_11:
	movl	(%r11), %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EGL_TRUE,4,2                   ## @EGL_TRUE
	.comm	_EGL_NONE,4,2                   ## @EGL_NONE
	.comm	_EGL_READ_SURFACE_BIT_KHR,4,2   ## @EGL_READ_SURFACE_BIT_KHR
	.comm	_EGL_WRITE_SURFACE_BIT_KHR,4,2  ## @EGL_WRITE_SURFACE_BIT_KHR
	.comm	_EGL_FALSE,4,2                  ## @EGL_FALSE
	.no_dead_strip	_lock_surface_check_attribs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lock_surface_check_attribs
_lock_surface_check_attribs:            ; @lock_surface_check_attribs
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w14, [x0]
Lloh0:
	adrp	x9, _EGL_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EGL_NONE@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w14, w8
	b.ne	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _EGL_TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EGL_TRUE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ret
LBB0_3:
	add	x10, x0, #8
Lloh5:
	adrp	x8, _EGL_FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EGL_FALSE@GOTPAGEOFF]
Lloh7:
	adrp	x12, _EGL_READ_SURFACE_BIT_KHR@GOTPAGE
Lloh8:
	ldr	x12, [x12, _EGL_READ_SURFACE_BIT_KHR@GOTPAGEOFF]
Lloh9:
	adrp	x13, _EGL_WRITE_SURFACE_BIT_KHR@GOTPAGE
Lloh10:
	ldr	x13, [x13, _EGL_WRITE_SURFACE_BIT_KHR@GOTPAGEOFF]
Lloh11:
	adrp	x11, _EGL_TRUE@GOTPAGE
Lloh12:
	ldr	x11, [x11, _EGL_TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	w14, #128
	b.ne	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w15, #0
	cset	w14, ne
	str	w14, [x1]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x10], #8
	ldr	w15, [x9]
	cmp	w14, w15
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w15, [x10, #-4]
	cmp	w14, #129
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x12]
	ldr	w16, [x13]
	orr	w14, w16, w14
	bics	wzr, w15, w14
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w15, [x2]
	b	LBB0_6
LBB0_10:
	mov	x8, x11
LBB0_11:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EGL_TRUE,4,2                   ; @EGL_TRUE
	.comm	_EGL_NONE,4,2                   ; @EGL_NONE
	.comm	_EGL_READ_SURFACE_BIT_KHR,4,2   ; @EGL_READ_SURFACE_BIT_KHR
	.comm	_EGL_WRITE_SURFACE_BIT_KHR,4,2  ; @EGL_WRITE_SURFACE_BIT_KHR
	.comm	_EGL_FALSE,4,2                  ; @EGL_FALSE
	.no_dead_strip	_lock_surface_check_attribs
.subsections_via_symbols
