	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vg_set_nonblock_state
_vg_set_nonblock_state:                 ## @vg_set_nonblock_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	testl	%esi, %esi
	sete	%al
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movb	%al, %r12b
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r15
	movq	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_video_driver_test_all_flags
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	$0, (%r15)
	setne	%r13b
LBB0_4:
	testb	%r13b, %r13b
	movl	$-1, %esi
	cmovel	%r12d, %esi
	testl	%r14d, %r14d
	cmovnel	%r12d, %esi
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC,4,2 ## @GFX_CTX_FLAGS_ADAPTIVE_VSYNC
	.no_dead_strip	_vg_set_nonblock_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vg_set_nonblock_state
_vg_set_nonblock_state:                 ; @vg_set_nonblock_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cmp	w1, #0
	cset	w22, eq
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x20, x1
	mov	x19, x0
	bl	_config_get_ptr
	mov	x21, x0
Lloh0:
	adrp	x8, _GFX_CTX_FLAGS_ADAPTIVE_VSYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFX_CTX_FLAGS_ADAPTIVE_VSYNC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_video_driver_test_all_flags
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w8, ne
	b	LBB0_6
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w8, #0
LBB0_6:
	cmp	w20, #0
	cset	w9, eq
	tst	w9, w8
	csinv	w1, w22, wzr, eq
	ldr	x8, [x19, #8]
	ldr	x2, [x8]
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC,4,2 ; @GFX_CTX_FLAGS_ADAPTIVE_VSYNC
	.no_dead_strip	_vg_set_nonblock_state
.subsections_via_symbols
