	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xegl_fill_attribs
_xegl_fill_attribs:                     ## @xegl_fill_attribs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	movq	_xegl_api@GOTPCREL(%rip), %rcx
	cmpl	$128, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_EGL_CONTEXT_CLIENT_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	movl	$2, %edx
	cmovnel	%ecx, %edx
	movl	%edx, 4(%rax)
	addq	$8, %rax
LBB0_2:
	movq	_EGL_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xegl_api,4,2                   ## @xegl_api
	.comm	_EGL_CONTEXT_CLIENT_VERSION,4,2 ## @EGL_CONTEXT_CLIENT_VERSION
	.comm	_EGL_NONE,4,2                   ## @EGL_NONE
	.comm	_EGL_CONTEXT_FLAGS_KHR,4,2      ## @EGL_CONTEXT_FLAGS_KHR
	.comm	_EGL_CONTEXT_MAJOR_VERSION_KHR,4,2 ## @EGL_CONTEXT_MAJOR_VERSION_KHR
	.comm	_EGL_CONTEXT_MINOR_VERSION_KHR,8,3 ## @EGL_CONTEXT_MINOR_VERSION_KHR
	.comm	_EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR,4,2 ## @EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR
	.comm	_EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR,4,2 ## @EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR
	.comm	_EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR,4,2 ## @EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR
	.no_dead_strip	_xegl_fill_attribs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xegl_fill_attribs
_xegl_fill_attribs:                     ; @xegl_fill_attribs
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _xegl_api@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xegl_api@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EGL_CONTEXT_CLIENT_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EGL_CONTEXT_CLIENT_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x1]
	ldr	w8, [x0]
	mov	w9, #2
	cmp	w8, #0
	csel	w8, w9, w8, eq
	str	w8, [x1, #4]
	add	x1, x1, #8
LBB0_2:
Lloh6:
	adrp	x8, _EGL_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EGL_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x1]
	mov	x0, x1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_xegl_api,4,2                   ; @xegl_api
	.comm	_EGL_CONTEXT_CLIENT_VERSION,4,2 ; @EGL_CONTEXT_CLIENT_VERSION
	.comm	_EGL_NONE,4,2                   ; @EGL_NONE
	.comm	_EGL_CONTEXT_FLAGS_KHR,4,2      ; @EGL_CONTEXT_FLAGS_KHR
	.comm	_EGL_CONTEXT_MAJOR_VERSION_KHR,4,2 ; @EGL_CONTEXT_MAJOR_VERSION_KHR
	.comm	_EGL_CONTEXT_MINOR_VERSION_KHR,8,3 ; @EGL_CONTEXT_MINOR_VERSION_KHR
	.comm	_EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR,4,2 ; @EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR
	.comm	_EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR,4,2 ; @EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR
	.comm	_EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR,4,2 ; @EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR
	.no_dead_strip	_xegl_fill_attribs
.subsections_via_symbols
