	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_wgl_get_flags
_gfx_ctx_wgl_get_flags:                 ## @gfx_ctx_wgl_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
	movq	_win32_api@GOTPCREL(%rip), %rax
	cmpl	$129, (%rax)
	jne	LBB0_7
## %bb.1:
	movq	_wgl_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:
	movq	_win32_core_hw_context_enable@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_BIT32_SET
LBB0_5:
	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_7
## %bb.6:
	xorl	%eax, %eax
	callq	_video_driver_get_ident
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_string_is_equal
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_win32_api,4,2                  ## @win32_api
	.comm	_wgl_adaptive_vsync,4,2         ## @wgl_adaptive_vsync
	.comm	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC,4,2 ## @GFX_CTX_FLAGS_ADAPTIVE_VSYNC
	.comm	_win32_core_hw_context_enable,4,2 ## @win32_core_hw_context_enable
	.comm	_GFX_CTX_FLAGS_GL_CORE_CONTEXT,4,2 ## @GFX_CTX_FLAGS_GL_CORE_CONTEXT
	.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_wgl_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_wgl_get_flags
_gfx_ctx_wgl_get_flags:                 ; @gfx_ctx_wgl_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
Lloh0:
	adrp	x8, _win32_api@GOTPAGE
Lloh1:
	ldr	x8, [x8, _win32_api@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _wgl_adaptive_vsync@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wgl_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:
Lloh9:
	adrp	x8, _win32_core_hw_context_enable@GOTPAGE
Lloh10:
	ldr	x8, [x8, _win32_core_hw_context_enable@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_BIT32_SET
LBB0_5:
	bl	_video_driver_get_ident
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_string_is_equal
	cbnz	w0, LBB0_7
; %bb.6:
	bl	_video_driver_get_ident
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_string_is_equal
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 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 AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_win32_api,4,2                  ; @win32_api
	.comm	_wgl_adaptive_vsync,4,2         ; @wgl_adaptive_vsync
	.comm	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC,4,2 ; @GFX_CTX_FLAGS_ADAPTIVE_VSYNC
	.comm	_win32_core_hw_context_enable,4,2 ; @win32_core_hw_context_enable
	.comm	_GFX_CTX_FLAGS_GL_CORE_CONTEXT,4,2 ; @GFX_CTX_FLAGS_GL_CORE_CONTEXT
	.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_wgl_get_flags
.subsections_via_symbols
