	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_set_crtc_base
_nv_set_crtc_base:                      ## @nv_set_crtc_base
	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_nouveau_drm
	movq	%rax, %r12
	movq	_NV_PCRTC_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	callq	_NVWriteCRTC
	movq	(%r12), %rax
	movq	_NV_DEVICE_INFO_V0_TNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_NV_CIO_CRE_HEB__INDEX@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_NVReadVgaCrtc
	movl	(%r12), %edx
	andl	$-65, %eax
	shrl	$18, %ebx
	andl	$64, %ebx
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NVWriteVgaCrtc                 ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_PCRTC_START,4,2             ## @NV_PCRTC_START
	.comm	_NV_DEVICE_INFO_V0_TNT,8,3      ## @NV_DEVICE_INFO_V0_TNT
	.comm	_NV_CIO_CRE_HEB__INDEX,4,2      ## @NV_CIO_CRE_HEB__INDEX
	.no_dead_strip	_nv_set_crtc_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_set_crtc_base
_nv_set_crtc_base:                      ; @nv_set_crtc_base
	.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
	bl	_nouveau_drm
	mov	x22, x0
Lloh0:
	adrp	x8, _NV_PCRTC_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_PCRTC_START@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	bl	_NVWriteCRTC
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _NV_DEVICE_INFO_V0_TNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NV_DEVICE_INFO_V0_TNT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x22, _NV_CIO_CRE_HEB__INDEX@GOTPAGE
Lloh7:
	ldr	x22, [x22, _NV_CIO_CRE_HEB__INDEX@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_NVReadVgaCrtc
	mov	x3, x0
	ldr	w2, [x22]
	lsr	w8, w21, #24
	bfi	w3, w8, #6, #1
	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
	b	_NVWriteVgaCrtc
LBB0_2:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_PCRTC_START,4,2             ; @NV_PCRTC_START
	.comm	_NV_DEVICE_INFO_V0_TNT,8,3      ; @NV_DEVICE_INFO_V0_TNT
	.comm	_NV_CIO_CRE_HEB__INDEX,4,2      ; @NV_CIO_CRE_HEB__INDEX
	.no_dead_strip	_nv_set_crtc_base
.subsections_via_symbols
