	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_swapchain_update_swap_interval_cs
_wined3d_swapchain_update_swap_interval_cs: ## @wined3d_swapchain_update_swap_interval_cs
	.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
	movq	%rdi, %rbx
	movl	4(%rdi), %esi
	movl	8(%rdi), %edi
	xorl	%edx, %edx
	callq	_context_acquire
	movq	%rax, %r15
	movq	(%rax), %r12
	movl	(%rbx), %esi
	leal	-128(%rsi), %eax
	cmpl	$6, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.wined3d_swapchain_update_swap_interval_cs(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FIXME
	movl	$1, %r14d
LBB0_3:
	movq	(%r12), %rax
	movq	_WGL_EXT_SWAP_CONTROL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_6
## %bb.4:
	movl	%r14d, %edi
	callq	_wglSwapIntervalEXT
	movl	%eax, %edi
	callq	_GL_EXTCALL
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_ERR
LBB0_6:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_context_release                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled present interval %#x.\n"

	.comm	_WGL_EXT_SWAP_CONTROL,8,3       ## @WGL_EXT_SWAP_CONTROL
L_.str.1:                               ## @.str.1
	.asciz	"wglSwapIntervalEXT failed to set swap interval %d for context %p, last error %#x\n"

	.no_dead_strip	_wined3d_swapchain_update_swap_interval_cs
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.wined3d_swapchain_update_swap_interval_cs
l_switch.table.wined3d_swapchain_update_swap_interval_cs:
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_swapchain_update_swap_interval_cs
_wined3d_swapchain_update_swap_interval_cs: ; @wined3d_swapchain_update_swap_interval_cs
	.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, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x20, #4]
	mov	w2, #0
	bl	_context_acquire
	mov	x19, x0
	ldr	x21, [x0]
	ldr	w1, [x20]
	sub	w8, w1, #128
	cmp	w8, #6
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.wined3d_swapchain_update_swap_interval_cs@PAGE
Lloh1:
	add	x9, x9, l_switch.table.wined3d_swapchain_update_swap_interval_cs@PAGEOFF
	ldr	w20, [x9, w8, sxtw #2]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	mov	w20, #1
LBB0_3:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _WGL_EXT_SWAP_CONTROL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WGL_EXT_SWAP_CONTROL@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_wglSwapIntervalEXT
	bl	_GL_EXTCALL
	cbnz	w0, LBB0_6
; %bb.5:
	bl	_GetLastError
	mov	x3, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_ERR
LBB0_6:
	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	_context_release
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled present interval %#x.\n"

	.comm	_WGL_EXT_SWAP_CONTROL,8,3       ; @WGL_EXT_SWAP_CONTROL
l_.str.1:                               ; @.str.1
	.asciz	"wglSwapIntervalEXT failed to set swap interval %d for context %p, last error %#x\n"

	.no_dead_strip	_wined3d_swapchain_update_swap_interval_cs
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.wined3d_swapchain_update_swap_interval_cs
l_switch.table.wined3d_swapchain_update_swap_interval_cs:
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	1                               ; 0x1

.subsections_via_symbols
