	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_crtc_set_digital_vibrance
_nv_crtc_set_digital_vibrance:          ## @nv_crtc_set_digital_vibrance
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_nouveau_crtc
	movq	%rax, %rbx
	movq	(%r15), %rdi
	callq	_nv04_display
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	leaq	(%rax,%rcx,8), %r14
	movl	%r12d, 8(%rbx)
	movq	(%rax,%rcx,8), %rax
	movq	_NV_CIO_CRE_CSB@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movl	%r12d, (%rax,%rcx,4)
	cmpl	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rdi
	callq	_nv_gf4_disp_arch
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rax
	movq	(%r13), %rcx
	movl	$128, (%rax,%rcx,4)
	movl	8(%rbx), %ecx
	shll	$2, %ecx
	movq	_NV_CIO_CRE_5B@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_crtc_wr_cio_state
LBB0_3:
	movq	(%r13), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_crtc_wr_cio_state              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_CIO_CRE_CSB,8,3             ## @NV_CIO_CRE_CSB
	.comm	_NV_CIO_CRE_5B,8,3              ## @NV_CIO_CRE_5B
	.no_dead_strip	_nv_crtc_set_digital_vibrance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_crtc_set_digital_vibrance
_nv_crtc_set_digital_vibrance:          ; @nv_crtc_set_digital_vibrance
	.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	x22, x1
	mov	x19, x0
	bl	_nouveau_crtc
	mov	x21, x0
	ldr	x0, [x19]
	bl	_nv04_display
	ldr	x8, [x0]
	ldr	x9, [x21]
	add	x20, x8, x9, lsl #3
	str	w22, [x21, #8]
	ldr	x8, [x20]
Lloh0:
	adrp	x23, _NV_CIO_CRE_CSB@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NV_CIO_CRE_CSB@GOTPAGEOFF]
	ldr	x9, [x23]
	str	w22, [x8, x9, lsl #2]
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x0, [x19]
	bl	_nv_gf4_disp_arch
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	x9, [x23]
	mov	w10, #128
	str	w10, [x8, x9, lsl #2]
	ldr	w9, [x21, #8]
	lsl	w9, w9, #2
Lloh2:
	adrp	x10, _NV_CIO_CRE_5B@GOTPAGE
Lloh3:
	ldr	x10, [x10, _NV_CIO_CRE_5B@GOTPAGEOFF]
Lloh4:
	ldr	x2, [x10]
	str	w9, [x8, x2, lsl #2]
	mov	x0, x19
	mov	x1, x20
	bl	_crtc_wr_cio_state
LBB0_3:
	ldr	x2, [x23]
	mov	x0, x19
	mov	x1, x20
	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	_crtc_wr_cio_state
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_CIO_CRE_CSB,8,3             ; @NV_CIO_CRE_CSB
	.comm	_NV_CIO_CRE_5B,8,3              ; @NV_CIO_CRE_5B
	.no_dead_strip	_nv_crtc_set_digital_vibrance
.subsections_via_symbols
