	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_x_get_flags
_gfx_ctx_x_get_flags:                   ## @gfx_ctx_x_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_x_api@GOTPCREL(%rip), %rax
	movl	$-129, %ecx
	addl	(%rax), %ecx
	cmpl	$1, %ecx
	ja	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	_x_adaptive_vsync@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_BIT32_SET
LBB0_3:
	cmpl	$0, 4(%rbx)
	jne	LBB0_5
## %bb.4:
	cmpl	$0, (%rbx)
	je	LBB0_6
LBB0_5:
	movq	_GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_BIT32_SET
LBB0_6:
	movq	_x_enable_msaa@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_GFX_CTX_FLAGS_MULTISAMPLING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_BIT32_SET
LBB0_8:
	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_10
## %bb.9:
	xorl	%eax, %eax
	callq	_video_driver_get_ident
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_string_is_equal
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_x_api,4,2                      ## @x_api
	.comm	_x_adaptive_vsync,4,2           ## @x_adaptive_vsync
	.comm	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC,4,2 ## @GFX_CTX_FLAGS_ADAPTIVE_VSYNC
	.comm	_GFX_CTX_FLAGS_GL_CORE_CONTEXT,4,2 ## @GFX_CTX_FLAGS_GL_CORE_CONTEXT
	.comm	_x_enable_msaa,4,2              ## @x_enable_msaa
	.comm	_GFX_CTX_FLAGS_MULTISAMPLING,4,2 ## @GFX_CTX_FLAGS_MULTISAMPLING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gl1"

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

	.comm	_GFX_CTX_FLAGS_SHADERS_CG,4,2   ## @GFX_CTX_FLAGS_SHADERS_CG
	.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_x_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_x_get_flags
_gfx_ctx_x_get_flags:                   ; @gfx_ctx_x_get_flags
	.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
Lloh0:
	adrp	x8, _x_api@GOTPAGE
Lloh1:
	ldr	x8, [x8, _x_api@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #129
	cmp	w8, #1
	b.hi	LBB0_10
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _x_adaptive_vsync@GOTPAGE
Lloh4:
	ldr	x8, [x8, _x_adaptive_vsync@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _GFX_CTX_FLAGS_ADAPTIVE_VSYNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFX_CTX_FLAGS_ADAPTIVE_VSYNC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_BIT32_SET
LBB0_3:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_BIT32_SET
LBB0_6:
Lloh12:
	adrp	x8, _x_enable_msaa@GOTPAGE
Lloh13:
	ldr	x8, [x8, _x_enable_msaa@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _GFX_CTX_FLAGS_MULTISAMPLING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFX_CTX_FLAGS_MULTISAMPLING@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_BIT32_SET
LBB0_8:
	bl	_video_driver_get_ident
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_string_is_equal
	cbnz	w0, LBB0_10
; %bb.9:
	bl	_video_driver_get_ident
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_string_is_equal
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_x_api,4,2                      ; @x_api
	.comm	_x_adaptive_vsync,4,2           ; @x_adaptive_vsync
	.comm	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC,4,2 ; @GFX_CTX_FLAGS_ADAPTIVE_VSYNC
	.comm	_GFX_CTX_FLAGS_GL_CORE_CONTEXT,4,2 ; @GFX_CTX_FLAGS_GL_CORE_CONTEXT
	.comm	_x_enable_msaa,4,2              ; @x_enable_msaa
	.comm	_GFX_CTX_FLAGS_MULTISAMPLING,4,2 ; @GFX_CTX_FLAGS_MULTISAMPLING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gl1"

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

	.comm	_GFX_CTX_FLAGS_SHADERS_CG,4,2   ; @GFX_CTX_FLAGS_SHADERS_CG
	.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_x_get_flags
.subsections_via_symbols
