	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_wndw_flush_set            ## -- Begin function nv50_wndw_flush_set
	.p2align	4, 0x90
_nv50_wndw_flush_set:                   ## @nv50_wndw_flush_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_NV50_DISP_INTERLOCK_CORE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rsi,%rax,4)
	je	LBB0_2
## %bb.1:
	movq	$0, 96(%rbx)
	movl	$1, 88(%rbx)
LBB0_2:
	cmpq	$0, 56(%rbx)
	je	LBB0_4
## %bb.3:
	movq	24(%r15), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*48(%rax)
LBB0_4:
	cmpq	$0, 48(%rbx)
	je	LBB0_6
## %bb.5:
	movq	24(%r15), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*40(%rax)
LBB0_6:
	cmpq	$0, 40(%rbx)
	je	LBB0_8
## %bb.7:
	movq	24(%r15), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*32(%rax)
LBB0_8:
	cmpq	$0, 32(%rbx)
	je	LBB0_12
## %bb.9:
	movq	80(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:
	leaq	32(%r15), %rdi
	movl	64(%rbx), %ecx
	movl	68(%rbx), %esi
	callq	_nv50_lut_load
	movl	%eax, 72(%rbx)
LBB0_11:
	movq	24(%r15), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*24(%rax)
LBB0_12:
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.13:
	movq	24(%r15), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*16(%rax)
LBB0_14:
	cmpq	$0, 16(%rbx)
	je	LBB0_16
## %bb.15:
	movq	24(%r15), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*8(%rax)
LBB0_16:
	cmpq	$0, 8(%rbx)
	je	LBB0_18
## %bb.17:
	movq	24(%r15), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
LBB0_18:
	cmpl	$0, (%rbx)
	je	LBB0_22
## %bb.19:
	movl	$0, (%rbx)
	cmpl	$0, 4(%rbx)
	je	LBB0_21
## %bb.20:
	movl	8(%r15), %eax
	movq	(%r15), %rcx
	orl	%eax, (%r14,%rcx,4)
LBB0_21:
	movl	12(%r15), %eax
	movq	_NV50_DISP_INTERLOCK_WIMM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%r14,%rcx,4)
	movq	16(%r15), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*8(%rax)
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_22:
	movl	8(%r15), %eax
	movq	(%r15), %rcx
	orl	%eax, (%r14,%rcx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV50_DISP_INTERLOCK_CORE,8,3   ## @NV50_DISP_INTERLOCK_CORE
	.comm	_NV50_DISP_INTERLOCK_WIMM,8,3   ## @NV50_DISP_INTERLOCK_WIMM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_wndw_flush_set            ; -- Begin function nv50_wndw_flush_set
	.p2align	2
_nv50_wndw_flush_set:                   ; @nv50_wndw_flush_set
	.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, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NV50_DISP_INTERLOCK_CORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV50_DISP_INTERLOCK_CORE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x1, x8, lsl #2]
	cbz	w8, LBB0_2
; %bb.1:
	str	xzr, [x21, #96]
	mov	w8, #1
	str	w8, [x21, #88]
LBB0_2:
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #48]
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_4:
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #40]
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_6:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #32]
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_8:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_12
; %bb.9:
	ldr	x2, [x21, #80]
	cbz	x2, LBB0_11
; %bb.10:
	add	x0, x20, #32
	ldp	w3, w1, [x21, #64]
	bl	_nv50_lut_load
	str	w0, [x21, #72]
LBB0_11:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #24]
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_12:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #16]
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_14:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_16:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_18:
	ldr	w8, [x21]
	cbz	w8, LBB0_22
; %bb.19:
	str	wzr, [x21]
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_21
; %bb.20:
	ldr	w8, [x20, #8]
	ldr	x9, [x20]
	lsl	x9, x9, #2
	ldr	w10, [x19, x9]
	orr	w8, w10, w8
	str	w8, [x19, x9]
LBB0_21:
Lloh3:
	adrp	x8, _NV50_DISP_INTERLOCK_WIMM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV50_DISP_INTERLOCK_WIMM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	x8, x8, #2
	ldr	w9, [x19, x8]
	ldr	w10, [x20, #12]
	orr	w9, w9, w10
	str	w9, [x19, x8]
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	x8, [x20, #16]
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, 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
LBB0_22:
	ldr	w8, [x20, #8]
	ldr	x9, [x20]
	lsl	x9, x9, #2
	ldr	w10, [x19, x9]
	orr	w8, w10, w8
	str	w8, [x19, x9]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NV50_DISP_INTERLOCK_CORE,8,3   ; @NV50_DISP_INTERLOCK_CORE
	.comm	_NV50_DISP_INTERLOCK_WIMM,8,3   ; @NV50_DISP_INTERLOCK_WIMM
.subsections_via_symbols
