	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_x_set_flags
_gfx_ctx_x_set_flags:                   ## @gfx_ctx_x_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_x_api@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_BIT32_GET
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_x_adaptive_vsync@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_3:
	movq	_GFX_CTX_FLAGS_GL_CORE_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_BIT32_GET
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	$1, (%r14)
LBB0_5:
	movq	_GFX_CTX_FLAGS_MULTISAMPLING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_BIT32_GET
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_x_enable_msaa@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_x_api,4,2                      ## @x_api
	.comm	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC,4,2 ## @GFX_CTX_FLAGS_ADAPTIVE_VSYNC
	.comm	_x_adaptive_vsync,4,2           ## @x_adaptive_vsync
	.comm	_GFX_CTX_FLAGS_GL_CORE_CONTEXT,4,2 ## @GFX_CTX_FLAGS_GL_CORE_CONTEXT
	.comm	_GFX_CTX_FLAGS_MULTISAMPLING,4,2 ## @GFX_CTX_FLAGS_MULTISAMPLING
	.comm	_x_enable_msaa,4,2              ## @x_enable_msaa
	.no_dead_strip	_gfx_ctx_x_set_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_set_flags
_gfx_ctx_x_set_flags:                   ; @gfx_ctx_x_set_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]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _GFX_CTX_FLAGS_ADAPTIVE_VSYNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFX_CTX_FLAGS_ADAPTIVE_VSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT32_GET
	cbz	w0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _x_adaptive_vsync@GOTPAGE
Lloh7:
	ldr	x8, [x8, _x_adaptive_vsync@GOTPAGEOFF]
	mov	w9, #1
Lloh8:
	str	w9, [x8]
LBB0_3:
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	x0, x19
	bl	_BIT32_GET
	cbz	w0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x20]
LBB0_5:
Lloh12:
	adrp	x8, _GFX_CTX_FLAGS_MULTISAMPLING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFX_CTX_FLAGS_MULTISAMPLING@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIT32_GET
	cbz	w0, LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _x_enable_msaa@GOTPAGE
Lloh16:
	ldr	x8, [x8, _x_enable_msaa@GOTPAGEOFF]
	mov	w9, #1
Lloh17:
	str	w9, [x8]
LBB0_7:
	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 AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_x_api,4,2                      ; @x_api
	.comm	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC,4,2 ; @GFX_CTX_FLAGS_ADAPTIVE_VSYNC
	.comm	_x_adaptive_vsync,4,2           ; @x_adaptive_vsync
	.comm	_GFX_CTX_FLAGS_GL_CORE_CONTEXT,4,2 ; @GFX_CTX_FLAGS_GL_CORE_CONTEXT
	.comm	_GFX_CTX_FLAGS_MULTISAMPLING,4,2 ; @GFX_CTX_FLAGS_MULTISAMPLING
	.comm	_x_enable_msaa,4,2              ; @x_enable_msaa
	.no_dead_strip	_gfx_ctx_x_set_flags
.subsections_via_symbols
