	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_crtc_set_color_vibrance
_nv50_crtc_set_color_vibrance:          ## @nv50_crtc_set_color_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	12(%rdi), %edi
	callq	_nv50_mast
	movl	(%r13), %r14d
	movl	4(%r13), %ebx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_evo_wait
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movl	%ebx, %eax
	shll	$11, %eax
	subl	%ebx, %eax
	cltq
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	imulq	$1374389535, %rax, %r15         ## imm = 0x51EB851F
	movq	%r15, %rax
	shrq	$63, %rax
	shrq	$37, %r15
	addl	%eax, %r15d
	movl	%r14d, %eax
	shll	$11, %eax
	subl	%r14d, %eax
	leal	50(%rax), %ecx
	testl	%r14d, %r14d
	cmovlel	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	shrq	$37, %rbx
	addl	%eax, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_nv50_vers
	movq	_NVD0_DISP_MAST_CLASS@GOTPCREL(%rip), %rcx
	movl	8(%r13), %esi
	leal	(%rsi,%rsi,2), %edx
	shll	$8, %edx
	addl	$1176, %edx                     ## imm = 0x498
	shll	$10, %esi
	addl	$2216, %esi                     ## imm = 0x8A8
	cmpq	(%rcx), %rax
	cmovgel	%edx, %esi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$1, %edx
	callq	_evo_mthd
	shll	$20, %r15d
	shll	$8, %ebx
	andl	$1048320, %ebx                  ## imm = 0xFFF00
	orl	%r15d, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_evo_data
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	$128, %esi
	movl	$1, %edx
	callq	_evo_mthd
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_evo_data
LBB0_3:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_evo_kick
LBB0_4:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVD0_DISP_MAST_CLASS,8,3       ## @NVD0_DISP_MAST_CLASS
	.no_dead_strip	_nv50_crtc_set_color_vibrance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_crtc_set_color_vibrance
_nv50_crtc_set_color_vibrance:          ; @nv50_crtc_set_color_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	x21, x1
	mov	x22, x0
	ldr	w0, [x0, #12]
	bl	_nv50_mast
	mov	x19, x0
	ldp	w23, w24, [x22]
	mov	w1, #16
	bl	_evo_wait
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	lsl	w8, w24, #11
	sub	w8, w8, w24
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x10, x8, #63
	lsr	x8, x8, #37
	add	w24, w8, w10
	mov	w8, #50
	cmp	w23, #0
	csel	w8, w8, wzr, gt
	lsl	w10, w23, #11
	sub	w10, w10, w23
	add	w8, w8, w10
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #37
	add	w23, w8, w9
	mov	x0, x19
	bl	_nv50_vers
Lloh0:
	adrp	x8, _NVD0_DISP_MAST_CLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVD0_DISP_MAST_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x22, #8]
	mov	w10, #768
	mul	w10, w9, w10
	add	w10, w10, #1176
	lsl	w9, w9, #10
	add	w9, w9, #2216
	cmp	x0, x8
	csel	w1, w9, w10, lt
	mov	x0, x20
	mov	w2, #1
	bl	_evo_mthd
	lsl	w1, w24, #20
	bfi	w1, w23, #8, #12
	mov	x0, x20
	bl	_evo_data
	cbz	w21, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #128
	mov	w2, #1
	bl	_evo_mthd
	mov	x0, x20
	mov	w1, #0
	bl	_evo_data
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_evo_kick
LBB0_4:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVD0_DISP_MAST_CLASS,8,3       ; @NVD0_DISP_MAST_CLASS
	.no_dead_strip	_nv50_crtc_set_color_vibrance
.subsections_via_symbols
