	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv10_set_params
_nv10_set_params:                       ## @nv10_set_params
	.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
	movq	%rdi, %r15
	movl	48(%rdi), %edi
	callq	_nouveau_drm
	movq	%rax, %r14
	movl	(%r15), %ebx
	movl	40(%r15), %esi
	shll	$16, %ebx
	addl	$-33554432, %ebx                ## imm = 0xFE000000
	orl	4(%r15), %ebx
	movl	44(%r15), %edi
	callq	_sin_mul
	movl	%eax, %r13d
	shll	$16, %r13d
	movl	40(%r15), %esi
	movl	44(%r15), %edi
	callq	_cos_mul
	movzwl	%ax, %r12d
	orl	%r13d, %r12d
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_NV_PVIDEO_LUMINANCE
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_nvif_wr32
	movl	$1, %edi
	callq	_NV_PVIDEO_LUMINANCE
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_nvif_wr32
	xorl	%edi, %edi
	callq	_NV_PVIDEO_CHROMINANCE
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_nvif_wr32
	movl	$1, %edi
	callq	_NV_PVIDEO_CHROMINANCE
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_nvif_wr32
	movq	_NV_PVIDEO_COLOR_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16777215, %edx                 ## imm = 0xFFFFFF
	andl	8(%r15), %edx
	movq	%r14, %rdi
	callq	_nvif_wr32
	cmpq	$0, 32(%r15)
	je	LBB0_4
## %bb.1:
	movq	16(%r15), %rax
	movq	_DRM_COLOR_YCBCR_BT709@GOTPCREL(%rip), %rcx
	movq	_NV_PVIDEO_FORMAT_MATRIX_ITURBT709@GOTPCREL(%rip), %rdx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	(%rdx), %r13d
LBB0_3:
	movl	8(%r15), %ebx
	shll	$7, %ebx
	sarl	$31, %ebx
	movq	_NV_PVIDEO_FORMAT_DISPLAY_COLOR_KEY@GOTPCREL(%rip), %r12
	andl	(%r12), %ebx
	orl	%r13d, %ebx
	movl	24(%r15), %edi
	movq	%rdx, %r15
	callq	_NV_PVIDEO_FORMAT
	movl	(%r12), %edx
	orl	(%r15), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvif_mask                      ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_PVIDEO_COLOR_KEY,4,2        ## @NV_PVIDEO_COLOR_KEY
	.comm	_DRM_COLOR_YCBCR_BT709,8,3      ## @DRM_COLOR_YCBCR_BT709
	.comm	_NV_PVIDEO_FORMAT_MATRIX_ITURBT709,4,2 ## @NV_PVIDEO_FORMAT_MATRIX_ITURBT709
	.comm	_NV_PVIDEO_FORMAT_DISPLAY_COLOR_KEY,4,2 ## @NV_PVIDEO_FORMAT_DISPLAY_COLOR_KEY
	.no_dead_strip	_nv10_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv10_set_params
_nv10_set_params:                       ; @nv10_set_params
	.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	x20, x0
	ldr	w0, [x0, #48]
	bl	_nouveau_drm
	mov	x19, x0
	mov	w8, #-33554432
	ldp	w9, w10, [x20]
	add	w8, w8, w9, lsl #16
	orr	w21, w8, w10
	ldp	w1, w0, [x20, #40]
	bl	_sin_mul
	mov	x22, x0
	ldp	w1, w0, [x20, #40]
	bl	_cos_mul
	mov	x23, x0
	bfi	w23, w22, #16, #16
	mov	w0, #0
	bl	_NV_PVIDEO_LUMINANCE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_nvif_wr32
	mov	w0, #1
	bl	_NV_PVIDEO_LUMINANCE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_nvif_wr32
	mov	w0, #0
	bl	_NV_PVIDEO_CHROMINANCE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_nvif_wr32
	mov	w0, #1
	bl	_NV_PVIDEO_CHROMINANCE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_nvif_wr32
Lloh0:
	adrp	x8, _NV_PVIDEO_COLOR_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_PVIDEO_COLOR_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	and	w2, w8, #0xffffff
	mov	x0, x19
	bl	_nvif_wr32
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x9, _DRM_COLOR_YCBCR_BT709@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_COLOR_YCBCR_BT709@GOTPAGEOFF]
Lloh5:
	adrp	x22, _NV_PVIDEO_FORMAT_MATRIX_ITURBT709@GOTPAGE
Lloh6:
	ldr	x22, [x22, _NV_PVIDEO_FORMAT_MATRIX_ITURBT709@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w10, [x22]
	cmp	x8, x9
	csel	w8, w10, wzr, eq
	ldr	w9, [x20, #8]
	lsl	w9, w9, #7
Lloh8:
	adrp	x23, _NV_PVIDEO_FORMAT_DISPLAY_COLOR_KEY@GOTPAGE
Lloh9:
	ldr	x23, [x23, _NV_PVIDEO_FORMAT_DISPLAY_COLOR_KEY@GOTPAGEOFF]
	ldr	w10, [x23]
	and	w9, w10, w9, asr #31
	orr	w21, w9, w8
	ldr	w0, [x20, #24]
	bl	_NV_PVIDEO_FORMAT
	mov	x1, x0
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x3, x21
	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	_nvif_mask
LBB0_2:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_PVIDEO_COLOR_KEY,4,2        ; @NV_PVIDEO_COLOR_KEY
	.comm	_DRM_COLOR_YCBCR_BT709,8,3      ; @DRM_COLOR_YCBCR_BT709
	.comm	_NV_PVIDEO_FORMAT_MATRIX_ITURBT709,4,2 ; @NV_PVIDEO_FORMAT_MATRIX_ITURBT709
	.comm	_NV_PVIDEO_FORMAT_DISPLAY_COLOR_KEY,4,2 ; @NV_PVIDEO_FORMAT_DISPLAY_COLOR_KEY
	.no_dead_strip	_nv10_set_params
.subsections_via_symbols
