	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vulkan_set_nonblock_state
_vulkan_set_nonblock_state:             ## @vulkan_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	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_2
## %bb.1:
	cmpq	$0, 8(%r15)
	setne	%r12b
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.3:
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_LOG
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %eax
LBB0_5:
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	cmpl	$1, %eax
	movl	$-1, %esi
	cmovnel	%eax, %esi
	testb	%r12b, %r12b
	cmovel	%eax, %esi
	movl	(%rbx), %edi
	callq	*%rcx
LBB0_7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vulkan_check_swapchain         ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC,4,2 ## @GFX_CTX_FLAGS_ADAPTIVE_VSYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Vulkan]: VSync => %s\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"on"

	.no_dead_strip	_vulkan_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 vulkan_set_nonblock_state
_vulkan_set_nonblock_state:             ; @vulkan_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
	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_4
; %bb.1:
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w22, ne
	cbz	x19, LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x1, x9, x8, eq
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
	cbz	w20, LBB0_6
; %bb.3:
	mov	w8, #0
	b	LBB0_7
LBB0_4:
	mov	w22, #0
	cbnz	x19, LBB0_2
LBB0_5:
	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_6:
	ldr	w8, [x21]
LBB0_7:
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_9
; %bb.8:
	cmp	w8, #1
	cset	w10, eq
	tst	w22, w10
	csinv	w1, w8, wzr, eq
	ldr	w0, [x19]
	blr	x9
LBB0_9:
	mov	x0, 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
	b	_vulkan_check_swapchain
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFX_CTX_FLAGS_ADAPTIVE_VSYNC,4,2 ; @GFX_CTX_FLAGS_ADAPTIVE_VSYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Vulkan]: VSync => %s\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"on"

	.no_dead_strip	_vulkan_set_nonblock_state
.subsections_via_symbols
