	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_wl_get_flags
_gfx_ctx_wl_get_flags:                  ## @gfx_ctx_wl_get_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_BIT32_SET
LBB0_2:
	movq	_wl_api@GOTPCREL(%rip), %rax
	movl	$-129, %ecx
	addl	(%rax), %ecx
	cmpl	$1, %ecx
	ja	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_video_driver_get_ident
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_string_is_equal
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_video_driver_get_ident
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_string_is_equal
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFX_CTX_FLAGS_GL_CORE_CONTEXT,4,2 ## @GFX_CTX_FLAGS_GL_CORE_CONTEXT
	.comm	_wl_api,4,2                     ## @wl_api
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glcore"

L_.str.1:                               ## @.str.1
	.asciz	"gl"

	.comm	_GFX_CTX_FLAGS_SHADERS_GLSL,4,2 ## @GFX_CTX_FLAGS_SHADERS_GLSL
	.comm	_GFX_CTX_FLAGS_SHADERS_SLANG,4,2 ## @GFX_CTX_FLAGS_SHADERS_SLANG
	.no_dead_strip	_gfx_ctx_wl_get_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_ctx_wl_get_flags
_gfx_ctx_wl_get_flags:                  ; @gfx_ctx_wl_get_flags
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_BIT32_SET
LBB0_2:
Lloh3:
	adrp	x8, _wl_api@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wl_api@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w8, #129
	cmp	w8, #1
	b.hi	LBB0_5
; %bb.3:
	bl	_video_driver_get_ident
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_string_is_equal
	cbnz	w0, LBB0_5
; %bb.4:
	bl	_video_driver_get_ident
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_string_is_equal
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFX_CTX_FLAGS_GL_CORE_CONTEXT,4,2 ; @GFX_CTX_FLAGS_GL_CORE_CONTEXT
	.comm	_wl_api,4,2                     ; @wl_api
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glcore"

l_.str.1:                               ; @.str.1
	.asciz	"gl"

	.comm	_GFX_CTX_FLAGS_SHADERS_GLSL,4,2 ; @GFX_CTX_FLAGS_SHADERS_GLSL
	.comm	_GFX_CTX_FLAGS_SHADERS_SLANG,4,2 ; @GFX_CTX_FLAGS_SHADERS_SLANG
	.no_dead_strip	_gfx_ctx_wl_get_flags
.subsections_via_symbols
