	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_crtc_commit
_nv50_crtc_commit:                      ## @nv50_crtc_commit
	.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, %r14
	callq	_nouveau_crtc
	movq	%rax, %r12
	movl	4(%r14), %edi
	callq	_nv50_mast
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_evo_wait
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_nv50_vers
	movq	_NV84_DISP_MAST_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.2:
	movl	(%r12), %esi
	shll	$10, %esi
	addl	$2164, %esi                     ## imm = 0x874
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_evo_mthd
	movq	_NvEvoVRAM_LP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_evo_data
	movl	(%r12), %esi
	shll	$10, %esi
	addl	$2112, %esi                     ## imm = 0x840
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_evo_mthd
	movq	%rbx, %rdi
	movl	$-1073741824, %esi              ## imm = 0xC0000000
	callq	_evo_data
	movq	8(%r12), %rax
	movl	(%rax), %esi
	sarl	$8, %esi
	jmp	LBB0_6
LBB0_3:
	movq	%r15, %rdi
	callq	_nv50_vers
	movq	_NVD0_DISP_MAST_CLASS@GOTPCREL(%rip), %rcx
	movl	(%r12), %esi
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.4:
	shll	$10, %esi
	addl	$2164, %esi                     ## imm = 0x874
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$1, %edx
	callq	_evo_mthd
	movl	16(%r12), %esi
	movq	%rbx, %rdi
	callq	_evo_data
	movl	(%r12), %esi
	shll	$10, %esi
	addl	$2112, %esi                     ## imm = 0x840
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_evo_mthd
	movq	%rbx, %rdi
	movl	$-1073741824, %esi              ## imm = 0xC0000000
	callq	_evo_data
	movq	8(%r12), %rax
	movl	(%rax), %esi
	sarl	$8, %esi
	movq	%rbx, %rdi
	callq	_evo_data
	movl	(%r12), %esi
	shll	$10, %esi
	addl	$2140, %esi                     ## imm = 0x85C
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_evo_mthd
	movq	_NvEvoVRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_6
LBB0_5:
	leal	(%rsi,%rsi,2), %esi
	shll	$8, %esi
	addl	$1140, %esi                     ## imm = 0x474
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_evo_mthd
	movl	16(%r12), %esi
	movq	%rbx, %rdi
	callq	_evo_data
	movl	(%r12), %eax
	leal	(%rax,%rax,2), %esi
	shll	$8, %esi
	addl	$1088, %esi                     ## imm = 0x440
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_evo_mthd
	movq	%rbx, %rdi
	movl	$-2097152000, %esi              ## imm = 0x83000000
	callq	_evo_data
	movq	8(%r12), %rax
	movl	(%rax), %esi
	sarl	$8, %esi
	movq	%rbx, %rdi
	callq	_evo_data
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_evo_data
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_evo_data
	movl	(%r12), %eax
	leal	(%rax,%rax,2), %esi
	shll	$8, %esi
	addl	$1116, %esi                     ## imm = 0x45C
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_evo_mthd
	movq	_NvEvoVRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_evo_data
	movl	(%r12), %eax
	leal	(%rax,%rax,2), %esi
	shll	$8, %esi
	addl	$1072, %esi                     ## imm = 0x430
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_evo_mthd
	movl	$-256, %esi
LBB0_6:
	movq	%rbx, %rdi
	callq	_evo_data
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_evo_kick
LBB0_7:
	movl	4(%r12), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_nv50_crtc_cursor_show_hide
	movl	(%r14), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv50_display_flip_next         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NV84_DISP_MAST_CLASS,8,3       ## @NV84_DISP_MAST_CLASS
	.comm	_NvEvoVRAM_LP,4,2               ## @NvEvoVRAM_LP
	.comm	_NVD0_DISP_MAST_CLASS,8,3       ## @NVD0_DISP_MAST_CLASS
	.comm	_NvEvoVRAM,4,2                  ## @NvEvoVRAM
	.no_dead_strip	_nv50_crtc_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_crtc_commit
_nv50_crtc_commit:                      ; @nv50_crtc_commit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_nouveau_crtc
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_nv50_mast
	mov	x21, x0
	mov	w1, #32
	bl	_evo_wait
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
	mov	x0, x21
	bl	_nv50_vers
Lloh0:
	adrp	x8, _NV84_DISP_MAST_CLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV84_DISP_MAST_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_3
; %bb.2:
	ldr	w8, [x20]
	lsl	w8, w8, #10
	add	w1, w8, #2164
	mov	x0, x22
	mov	w2, #1
	bl	_evo_mthd
Lloh3:
	adrp	x8, _NvEvoVRAM_LP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NvEvoVRAM_LP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_evo_data
	ldr	w8, [x20]
	lsl	w8, w8, #10
	add	w1, w8, #2112
	mov	x0, x22
	mov	w2, #2
	bl	_evo_mthd
	mov	x0, x22
	mov	w1, #-1073741824
	bl	_evo_data
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	asr	w1, w8, #8
	b	LBB0_6
LBB0_3:
	mov	x0, x21
	bl	_nv50_vers
Lloh6:
	adrp	x8, _NVD0_DISP_MAST_CLASS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVD0_DISP_MAST_CLASS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x8]
	ldr	w8, [x20]
	cmp	x0, x9
	b.ge	LBB0_5
; %bb.4:
	lsl	w8, w8, #10
	add	w1, w8, #2164
	mov	x0, x22
	mov	w2, #1
	bl	_evo_mthd
	ldr	w1, [x20, #16]
	mov	x0, x22
	bl	_evo_data
	ldr	w8, [x20]
	lsl	w8, w8, #10
	add	w1, w8, #2112
	mov	x0, x22
	mov	w2, #2
	bl	_evo_mthd
	mov	x0, x22
	mov	w1, #-1073741824
	bl	_evo_data
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	asr	w1, w8, #8
	mov	x0, x22
	bl	_evo_data
	ldr	w8, [x20]
	lsl	w8, w8, #10
	add	w1, w8, #2140
	mov	x0, x22
	mov	w2, #1
	bl	_evo_mthd
Lloh9:
	adrp	x8, _NvEvoVRAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NvEvoVRAM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	b	LBB0_6
LBB0_5:
	mov	w23, #768
	mul	w8, w8, w23
	add	w1, w8, #1140
	mov	x0, x22
	mov	w2, #1
	bl	_evo_mthd
	ldr	w1, [x20, #16]
	mov	x0, x22
	bl	_evo_data
	ldr	w8, [x20]
	mul	w8, w8, w23
	add	w1, w8, #1088
	mov	x0, x22
	mov	w2, #4
	bl	_evo_mthd
	mov	x0, x22
	mov	w1, #-2097152000
	bl	_evo_data
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	asr	w1, w8, #8
	mov	x0, x22
	bl	_evo_data
	mov	x0, x22
	mov	w1, #0
	bl	_evo_data
	mov	x0, x22
	mov	w1, #0
	bl	_evo_data
	ldr	w8, [x20]
	mul	w8, w8, w23
	add	w1, w8, #1116
	mov	x0, x22
	mov	w2, #1
	bl	_evo_mthd
Lloh12:
	adrp	x8, _NvEvoVRAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NvEvoVRAM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_evo_data
	ldr	w8, [x20]
	mul	w8, w8, w23
	add	w1, w8, #1072
	mov	x0, x22
	mov	w2, #1
	bl	_evo_mthd
	mov	w1, #-256
LBB0_6:
	mov	x0, x22
	bl	_evo_data
	mov	x0, x22
	mov	x1, x21
	bl	_evo_kick
LBB0_7:
	ldr	w1, [x20, #4]
	mov	x0, x20
	mov	w2, #1
	bl	_nv50_crtc_cursor_show_hide
	ldr	w1, [x19]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nv50_display_flip_next
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NV84_DISP_MAST_CLASS,8,3       ; @NV84_DISP_MAST_CLASS
	.comm	_NvEvoVRAM_LP,4,2               ; @NvEvoVRAM_LP
	.comm	_NVD0_DISP_MAST_CLASS,8,3       ; @NVD0_DISP_MAST_CLASS
	.comm	_NvEvoVRAM,4,2                  ; @NvEvoVRAM
	.no_dead_strip	_nv50_crtc_commit
.subsections_via_symbols
