	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv04_flip_complete             ## -- Begin function nv04_flip_complete
	.p2align	4, 0x90
_nv04_flip_complete:                    ## @nv04_flip_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %rdi
	leaq	-32(%rbp), %rsi
	callq	_nv04_finish_page_flip
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %ebx
	movq	-24(%rbp), %rdi
	callq	_drm_crtc_index
	movq	-24(%rbp), %rcx
	movslq	(%rcx), %rdx
	movslq	-32(%rbp), %rsi
	imulq	%rdx, %rsi
	addq	-16(%rbp), %rsi
	movl	-28(%rbp), %edx
	imull	4(%rcx), %edx
	leal	7(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rdx
	addq	%rsi, %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_nv_set_crtc_base
LBB0_2:
	movq	_NVIF_NOTIFY_KEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVIF_NOTIFY_KEEP,4,2           ## @NVIF_NOTIFY_KEEP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv04_flip_complete             ; -- Begin function nv04_flip_complete
	.p2align	2
_nv04_flip_complete:                    ; @nv04_flip_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x19, [x8]
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	bl	_nv04_finish_page_flip
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w19, [x19]
	ldr	x0, [sp, #16]
	bl	_drm_crtc_index
	mov	x1, x0
	ldp	x9, x8, [sp, #16]
	ldp	w10, w9, [x9]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	ldp	w11, w12, [sp, #8]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	madd	x8, x11, x10, x8
	mul	w9, w12, w9
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	add	x2, x8, w9, sxtw
	mov	x0, x19
	bl	_nv_set_crtc_base
LBB0_2:
Lloh0:
	adrp	x8, _NVIF_NOTIFY_KEEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVIF_NOTIFY_KEEP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVIF_NOTIFY_KEEP,4,2           ; @NVIF_NOTIFY_KEEP
.subsections_via_symbols
