	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_cs_exec_present
_wined3d_cs_exec_present:               ## @wined3d_cs_exec_present
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	24(%rsi), %r12
	movl	20(%rsi), %esi
	movq	%r12, %rdi
	callq	_wined3d_swapchain_set_window
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	%rax, 8(%r12)
	je	LBB0_3
## %bb.2:
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_swapchain_update_swap_interval
LBB0_3:
	movq	32(%r12), %rax
	leaq	16(%r15), %rsi
	movl	8(%r15), %ecx
	addq	$12, %r15
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	*(%rax)
	movq	24(%r12), %rdi
	callq	_wined3d_resource_release
	cmpl	$0, 16(%r12)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_wined3d_resource_release
	incq	%rbx
	movl	16(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_InterlockedDecrement           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wined3d_cs_exec_present
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_cs_exec_present
_wined3d_cs_exec_present:               ; @wined3d_cs_exec_present
	.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	x21, x1
	mov	x19, x0
	ldr	x20, [x1, #24]
	ldr	w1, [x1, #20]
	mov	x0, x20
	bl	_wined3d_swapchain_set_window
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.eq	LBB0_3
; %bb.2:
	str	x8, [x20, #8]
	mov	x0, x20
	bl	_swapchain_update_swap_interval
LBB0_3:
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	add	x1, x21, #16
	add	x2, x21, #12
	ldr	w3, [x21, #8]
	mov	x0, x20
	blr	x8
	ldr	x0, [x20, #24]
	bl	_wined3d_resource_release
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, x21, lsl #3]
	bl	_wined3d_resource_release
	add	x21, x21, #1
	ldr	w8, [x20, #16]
	cmp	x21, x8
	b.lo	LBB0_5
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	_InterlockedDecrement
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wined3d_cs_exec_present
.subsections_via_symbols
