	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function nv17_tv_mode_set
LCPI0_0:
	.long	8421392                         ## 0x808010
	.long	47185920                        ## 0x2d00000
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_1:
	.long	59616                           ## 0xe8e0
	.long	5904                            ## 0x1710
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_2:
	.long	19344                           ## 0x4b90
	.long	111744                          ## 0x1b480
	.long	16                              ## 0x10
	.long	32                              ## 0x20
LCPI0_3:
	.long	104208                          ## 0x19710
	.long	26864                           ## 0x68f0
	.long	32                              ## 0x20
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_nv17_tv_mode_set:                      ## @nv17_tv_mode_set
	.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, %rbx
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_nouveau_drm
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_nouveau_crtc
	movslq	(%rax), %r15
	movq	%r14, %rdi
	callq	_nv04_display
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_to_tv_enc
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_get_tv_norm
	movq	%r14, %r10
	movq	%rax, %r14
	leaq	(%r15,%r15,8), %r13
	movq	(%r10,%r13,8), %rax
	movq	_NV_CIO_CRE_53@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$64, (%rax,%rcx,4)
	movq	_NV_CIO_CRE_54@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$0, (%rax,%rcx,4)
	movabsq	$4294967298, %rax               ## imm = 0x100000002
	movq	%rax, 8(%r10,%r13,8)
	movl	$0, 16(%r10,%r13,8)
	movq	(%r14), %rax
	movq	_TV_ENC_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.14:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
	shll	$4, %eax
	orl	$319885568, %eax                ## imm = 0x13111100
	movl	%eax, (%r12)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [8421392,47185920,0,0]
	movups	%xmm0, 4(%r12)
	movl	$31457280, 20(%r12)             ## imm = 0x1E00000
	movl	72(%r14), %eax
	cmpl	$576, %eax                      ## imm = 0x240
	je	LBB0_15
## %bb.16:
	cmpl	$480, %eax                      ## imm = 0x1E0
	jne	LBB0_19
## %bb.17:
	movl	$19, %ecx
	movl	$15728640, %edx                 ## imm = 0xF00000
	jmp	LBB0_18
LBB0_1:
	movq	8(%r14), %rax
	movq	64(%r10,%r13,8), %rcx
	movq	%rcx, %r9
	subq	%rax, %r9
	cmpq	$15, %r9
	ja	LBB0_13
## %bb.2:
	xorl	%r8d, %r8d
	jmp	LBB0_3
LBB0_13:
	movups	(%rax), %xmm0
	movups	%xmm0, (%rcx)
	movups	16(%rax), %xmm0
	movups	%xmm0, 16(%rcx)
	movups	32(%rax), %xmm0
	movups	%xmm0, 32(%rcx)
	movups	48(%rax), %xmm0
	movups	%xmm0, 48(%rcx)
	movups	64(%rax), %xmm0
	movups	%xmm0, 64(%rcx)
	movups	80(%rax), %xmm0
	movups	%xmm0, 80(%rcx)
	movups	96(%rax), %xmm0
	movups	%xmm0, 96(%rcx)
	movups	112(%rax), %xmm0
	movups	%xmm0, 112(%rcx)
	movups	128(%rax), %xmm0
	movups	%xmm0, 128(%rcx)
	movl	$36, %r8d
LBB0_3:
	leaq	(%rcx,%r8,4), %rsi
	leaq	(%rax,%r8,4), %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdi,4), %edx
	movl	%edx, (%rsi,%rdi,4)
	incq	%rdi
	cmpq	$2, %rdi
	jne	LBB0_4
## %bb.5:
	cmpq	$15, %r9
	ja	LBB0_8
## %bb.6:
	leaq	(%r8,%rdi), %rdx
	addq	$3, %rdx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-12(%rax,%rdx,4), %esi
	movl	%esi, -12(%rcx,%rdx,4)
	movl	-8(%rax,%rdx,4), %esi
	movl	%esi, -8(%rcx,%rdx,4)
	movl	-4(%rax,%rdx,4), %esi
	movl	%esi, -4(%rcx,%rdx,4)
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	addq	$4, %rdx
	cmpq	$41, %rdx
	jne	LBB0_7
LBB0_8:
	movl	16(%r14), %eax
	decl	%eax
	movq	24(%r10,%r13,8), %rcx
	movq	_FP_DISPLAY_END@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	20(%r14), %eax
	decl	%eax
	movq	_FP_TOTAL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	24(%r14), %eax
	decl	%eax
	movq	_FP_SYNC_START@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	28(%r14), %eax
	decl	%eax
	movq	_FP_SYNC_END@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	16(%r14), %ebx
	leal	-600(%rbx), %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	sarq	$36, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edi
	decl	%edi
	movl	$1, %esi
	movq	%r10, %r15
	callq	_max
	addl	%ebx, %eax
	movq	24(%r15,%r13,8), %rcx
	movq	_FP_CRTC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	%eax, (%rcx,%rsi,4)
	movq	40(%r14), %rax
	decq	%rax
	movq	56(%r15,%r13,8), %rcx
	movq	_FP_DISPLAY_END@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rax, (%rcx,%rsi,8)
	movq	64(%r14), %rax
	decq	%rax
	movq	_FP_TOTAL@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rax, (%rcx,%rsi,8)
	movq	56(%r14), %rax
	decq	%rax
	movq	_FP_SYNC_START@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rax, (%rcx,%rsi,8)
	movq	48(%r14), %rax
	decq	%rax
	movq	(%r12), %rsi
	movq	%rax, (%rcx,%rsi,8)
	movq	40(%r14), %rax
	decq	%rax
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	_NV_PRAMDAC_FP_TG_CONTROL_DISPEN_POS@GOTPCREL(%rip), %rcx
	movq	_NV_PRAMDAC_FP_TG_CONTROL_READ_PROG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_NV_PRAMDAC_FP_TG_CONTROL_WIDTH_12@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	leaq	(%r15,%r13,8), %rcx
	addq	$32, %rcx
	movl	%eax, 32(%r15,%r13,8)
	movl	32(%r14), %edx
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_10
## %bb.9:
	movq	_NV_PRAMDAC_FP_TG_CONTROL_VSYNC_POS@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%rcx)
LBB0_10:
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_12
## %bb.11:
	movq	_NV_PRAMDAC_FP_TG_CONTROL_HSYNC_POS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rcx)
LBB0_12:
	movq	_NV_PRAMDAC_FP_DEBUG_0_YWEIGHT_ROUND@GOTPCREL(%rip), %rax
	movq	_NV_PRAMDAC_FP_DEBUG_0_XWEIGHT_ROUND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NV_PRAMDAC_FP_DEBUG_0_YINTERP_BILINEAR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NV_PRAMDAC_FP_DEBUG_0_XINTERP_BILINEAR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NV_RAMDAC_FP_DEBUG_0_TMDS_ENABLED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NV_PRAMDAC_FP_DEBUG_0_YSCALE_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NV_PRAMDAC_FP_DEBUG_0_XSCALE_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 36(%r15,%r13,8)
	movq	$0, 48(%r15,%r13,8)
	movl	$8392832, 40(%r15,%r13,8)       ## imm = 0x801080
	jmp	LBB0_29
LBB0_15:
	movl	$51, %ecx
	movl	$18874368, %edx                 ## imm = 0x1200000
LBB0_18:
	movl	%edx, 24(%r12)
	movl	%ecx, 28(%r12)
LBB0_19:
	movq	(%rsi), %rcx
	movq	_NV_DEVICE_INFO_V0_RANKINE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_20
## %bb.21:
	cmpl	$480, %eax                      ## imm = 0x1E0
	je	LBB0_24
## %bb.22:
	cmpl	$576, %eax                      ## imm = 0x240
	jne	LBB0_26
## %bb.23:
	movaps	LCPI0_3(%rip), %xmm0            ## xmm0 = [104208,26864,32,16]
	jmp	LBB0_25
LBB0_20:
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [59616,5904,0,0]
	jmp	LBB0_25
LBB0_24:
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [19344,111744,16,32]
LBB0_25:
	movups	%xmm0, 32(%r12)
LBB0_26:
	movq	80(%r14), %rax
	movq	48(%r12), %rcx
	movq	%rcx, %rdx
	subq	%rax, %rdx
	cmpq	$15, %rdx
	ja	LBB0_30
## %bb.27:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	movl	4(%rax,%rdx,4), %esi
	movl	%esi, 4(%rcx,%rdx,4)
	movl	8(%rax,%rdx,4), %esi
	movl	%esi, 8(%rcx,%rdx,4)
	movl	12(%rax,%rdx,4), %esi
	movl	%esi, 12(%rcx,%rdx,4)
	addq	$4, %rdx
	cmpq	$64, %rdx
	jne	LBB0_28
	jmp	LBB0_29
LBB0_30:
	movups	(%rax), %xmm0
	movups	%xmm0, (%rcx)
	movups	16(%rax), %xmm0
	movups	%xmm0, 16(%rcx)
	movups	32(%rax), %xmm0
	movups	%xmm0, 32(%rcx)
	movups	48(%rax), %xmm0
	movups	%xmm0, 48(%rcx)
	movups	64(%rax), %xmm0
	movups	%xmm0, 64(%rcx)
	movups	80(%rax), %xmm0
	movups	%xmm0, 80(%rcx)
	movups	96(%rax), %xmm0
	movups	%xmm0, 96(%rcx)
	movups	112(%rax), %xmm0
	movups	%xmm0, 112(%rcx)
	movups	128(%rax), %xmm0
	movups	%xmm0, 128(%rcx)
	movups	144(%rax), %xmm0
	movups	%xmm0, 144(%rcx)
	movups	160(%rax), %xmm0
	movups	%xmm0, 160(%rcx)
	movups	176(%rax), %xmm0
	movups	%xmm0, 176(%rcx)
	movups	192(%rax), %xmm0
	movups	%xmm0, 192(%rcx)
	movups	208(%rax), %xmm0
	movups	%xmm0, 208(%rcx)
	movups	224(%rax), %xmm0
	movups	%xmm0, 224(%rcx)
	movups	240(%rax), %xmm0
	movups	%xmm0, 240(%rcx)
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_CIO_CRE_53,8,3              ## @NV_CIO_CRE_53
	.comm	_NV_CIO_CRE_54,8,3              ## @NV_CIO_CRE_54
	.comm	_TV_ENC_MODE,8,3                ## @TV_ENC_MODE
	.comm	_NV_DEVICE_INFO_V0_RANKINE,8,3  ## @NV_DEVICE_INFO_V0_RANKINE
	.comm	_FP_DISPLAY_END,8,3             ## @FP_DISPLAY_END
	.comm	_FP_TOTAL,8,3                   ## @FP_TOTAL
	.comm	_FP_SYNC_START,8,3              ## @FP_SYNC_START
	.comm	_FP_SYNC_END,8,3                ## @FP_SYNC_END
	.comm	_FP_CRTC,8,3                    ## @FP_CRTC
	.comm	_NV_PRAMDAC_FP_TG_CONTROL_DISPEN_POS,4,2 ## @NV_PRAMDAC_FP_TG_CONTROL_DISPEN_POS
	.comm	_NV_PRAMDAC_FP_TG_CONTROL_READ_PROG,4,2 ## @NV_PRAMDAC_FP_TG_CONTROL_READ_PROG
	.comm	_NV_PRAMDAC_FP_TG_CONTROL_WIDTH_12,4,2 ## @NV_PRAMDAC_FP_TG_CONTROL_WIDTH_12
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.comm	_NV_PRAMDAC_FP_TG_CONTROL_VSYNC_POS,4,2 ## @NV_PRAMDAC_FP_TG_CONTROL_VSYNC_POS
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_NV_PRAMDAC_FP_TG_CONTROL_HSYNC_POS,4,2 ## @NV_PRAMDAC_FP_TG_CONTROL_HSYNC_POS
	.comm	_NV_PRAMDAC_FP_DEBUG_0_YWEIGHT_ROUND,4,2 ## @NV_PRAMDAC_FP_DEBUG_0_YWEIGHT_ROUND
	.comm	_NV_PRAMDAC_FP_DEBUG_0_XWEIGHT_ROUND,4,2 ## @NV_PRAMDAC_FP_DEBUG_0_XWEIGHT_ROUND
	.comm	_NV_PRAMDAC_FP_DEBUG_0_YINTERP_BILINEAR,4,2 ## @NV_PRAMDAC_FP_DEBUG_0_YINTERP_BILINEAR
	.comm	_NV_PRAMDAC_FP_DEBUG_0_XINTERP_BILINEAR,4,2 ## @NV_PRAMDAC_FP_DEBUG_0_XINTERP_BILINEAR
	.comm	_NV_RAMDAC_FP_DEBUG_0_TMDS_ENABLED,4,2 ## @NV_RAMDAC_FP_DEBUG_0_TMDS_ENABLED
	.comm	_NV_PRAMDAC_FP_DEBUG_0_YSCALE_ENABLE,4,2 ## @NV_PRAMDAC_FP_DEBUG_0_YSCALE_ENABLE
	.comm	_NV_PRAMDAC_FP_DEBUG_0_XSCALE_ENABLE,4,2 ## @NV_PRAMDAC_FP_DEBUG_0_XSCALE_ENABLE
	.no_dead_strip	_nv17_tv_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function nv17_tv_mode_set
lCPI0_0:
	.long	2                               ; 0x2
	.long	1                               ; 0x1
lCPI0_2:
	.long	18874368                        ; 0x1200000
	.long	51                              ; 0x33
lCPI0_3:
	.long	15728640                        ; 0xf00000
	.long	19                              ; 0x13
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	8421392                         ; 0x808010
	.long	47185920                        ; 0x2d00000
	.long	0                               ; 0x0
	.long	0                               ; 0x0
lCPI0_4:
	.long	59616                           ; 0xe8e0
	.long	5904                            ; 0x1710
	.long	0                               ; 0x0
	.long	0                               ; 0x0
lCPI0_5:
	.long	104208                          ; 0x19710
	.long	26864                           ; 0x68f0
	.long	32                              ; 0x20
	.long	16                              ; 0x10
lCPI0_6:
	.long	19344                           ; 0x4b90
	.long	111744                          ; 0x1b480
	.long	16                              ; 0x10
	.long	32                              ; 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nv17_tv_mode_set:                      ; @nv17_tv_mode_set
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_nouveau_drm
	mov	x21, x0
	ldr	w0, [x19]
	bl	_nouveau_crtc
	ldrsw	x22, [x0]
	mov	x0, x20
	bl	_nv04_display
	ldr	x23, [x0]
	mov	x0, x19
	bl	_to_tv_enc
	mov	x20, x0
	mov	x0, x19
	bl	_get_tv_norm
	mov	x19, x0
	mov	w8, #72
	madd	x8, x22, x8, x23
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _NV_CIO_CRE_53@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NV_CIO_CRE_53@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	mov	w11, #64
	str	w11, [x9, x10, lsl #2]
Lloh3:
	adrp	x10, _NV_CIO_CRE_54@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NV_CIO_CRE_54@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	str	wzr, [x9, x10, lsl #2]
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8, #8]
	str	wzr, [x8, #16]
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _TV_ENC_MODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TV_ENC_MODE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	w8, #4352
	movk	w8, #4881, lsl #16
	orr	w9, w8, #0x10
	cmp	w22, #0
	csel	w8, w8, w9, eq
	str	w8, [x20]
Lloh11:
	adrp	x8, lCPI0_1@PAGE
Lloh12:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	stur	q0, [x20, #4]
	mov	w8, #31457280
	str	w8, [x20, #20]
	ldr	w8, [x19, #72]
	cmp	w8, #576
	b.eq	LBB0_9
; %bb.2:
	cmp	w8, #480
	b.ne	LBB0_11
; %bb.3:
Lloh13:
	adrp	x9, lCPI0_3@PAGE
Lloh14:
	ldr	d0, [x9, lCPI0_3@PAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	x8, [x19, #8]
	mov	w9, #72
	madd	x20, x22, x9, x23
	ldr	x9, [x20, #64]
	ldr	w10, [x8]
	str	w10, [x9]
	ldr	w10, [x8, #4]
	str	w10, [x9, #4]
	ldr	w10, [x8, #8]
	str	w10, [x9, #8]
	ldr	w10, [x8, #12]
	str	w10, [x9, #12]
	ldr	w10, [x8, #16]
	str	w10, [x9, #16]
	ldr	w10, [x8, #20]
	str	w10, [x9, #20]
	ldr	w10, [x8, #24]
	str	w10, [x9, #24]
	ldr	w10, [x8, #28]
	str	w10, [x9, #28]
	ldr	w10, [x8, #32]
	str	w10, [x9, #32]
	ldr	w10, [x8, #36]
	str	w10, [x9, #36]
	ldr	w10, [x8, #40]
	str	w10, [x9, #40]
	ldr	w10, [x8, #44]
	str	w10, [x9, #44]
	ldr	w10, [x8, #48]
	str	w10, [x9, #48]
	ldr	w10, [x8, #52]
	str	w10, [x9, #52]
	ldr	w10, [x8, #56]
	str	w10, [x9, #56]
	ldr	w10, [x8, #60]
	str	w10, [x9, #60]
	ldr	w10, [x8, #64]
	str	w10, [x9, #64]
	ldr	w10, [x8, #68]
	str	w10, [x9, #68]
	ldr	w10, [x8, #72]
	str	w10, [x9, #72]
	ldr	w10, [x8, #76]
	str	w10, [x9, #76]
	ldr	w10, [x8, #80]
	str	w10, [x9, #80]
	ldr	w10, [x8, #84]
	str	w10, [x9, #84]
	ldr	w10, [x8, #88]
	str	w10, [x9, #88]
	ldr	w10, [x8, #92]
	str	w10, [x9, #92]
	ldr	w10, [x8, #96]
	str	w10, [x9, #96]
	ldr	w10, [x8, #100]
	str	w10, [x9, #100]
	ldr	w10, [x8, #104]
	str	w10, [x9, #104]
	ldr	w10, [x8, #108]
	str	w10, [x9, #108]
	ldr	w10, [x8, #112]
	str	w10, [x9, #112]
	ldr	w10, [x8, #116]
	str	w10, [x9, #116]
	ldr	w10, [x8, #120]
	str	w10, [x9, #120]
	ldr	w10, [x8, #124]
	str	w10, [x9, #124]
	ldr	w10, [x8, #128]
	str	w10, [x9, #128]
	ldr	w10, [x8, #132]
	str	w10, [x9, #132]
	ldr	w10, [x8, #136]
	str	w10, [x9, #136]
	ldr	w10, [x8, #140]
	str	w10, [x9, #140]
	ldr	w10, [x8, #144]
	str	w10, [x9, #144]
	ldr	w8, [x8, #148]
	str	w8, [x9, #148]
	ldr	w8, [x19, #16]
	sub	w8, w8, #1
	ldr	x9, [x20, #24]
Lloh15:
	adrp	x21, _FP_DISPLAY_END@GOTPAGE
Lloh16:
	ldr	x21, [x21, _FP_DISPLAY_END@GOTPAGEOFF]
	ldr	x10, [x21]
	str	w8, [x9, x10, lsl #2]
	ldr	w8, [x19, #20]
	sub	w8, w8, #1
Lloh17:
	adrp	x24, _FP_TOTAL@GOTPAGE
Lloh18:
	ldr	x24, [x24, _FP_TOTAL@GOTPAGEOFF]
	ldr	x10, [x24]
	str	w8, [x9, x10, lsl #2]
	ldr	w8, [x19, #24]
	sub	w8, w8, #1
Lloh19:
	adrp	x25, _FP_SYNC_START@GOTPAGE
Lloh20:
	ldr	x25, [x25, _FP_SYNC_START@GOTPAGEOFF]
	ldr	x10, [x25]
	str	w8, [x9, x10, lsl #2]
	ldr	w8, [x19, #28]
Lloh21:
	adrp	x26, _FP_SYNC_END@GOTPAGE
Lloh22:
	ldr	x26, [x26, _FP_SYNC_END@GOTPAGEOFF]
	sub	w8, w8, #1
	ldr	x10, [x26]
	str	w8, [x9, x10, lsl #2]
	ldr	w27, [x19, #16]
	sub	w8, w27, #600
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #4
	sub	w0, w8, #1
	mov	w1, #1
	bl	_max
	add	w8, w0, w27
	ldr	x9, [x20, #24]
Lloh23:
	adrp	x10, _FP_CRTC@GOTPAGE
Lloh24:
	ldr	x10, [x10, _FP_CRTC@GOTPAGEOFF]
	ldr	x11, [x10]
	str	w8, [x9, x11, lsl #2]
	ldr	x8, [x19, #40]
	sub	x8, x8, #1
	ldr	x9, [x20, #56]
	ldr	x11, [x21]
	str	x8, [x9, x11, lsl #3]
	ldr	x8, [x19, #64]
	sub	x8, x8, #1
	ldr	x11, [x24]
	str	x8, [x9, x11, lsl #3]
	ldr	x8, [x19, #56]
	sub	x8, x8, #1
	ldr	x11, [x25]
	str	x8, [x9, x11, lsl #3]
	ldr	x8, [x19, #48]
	sub	x8, x8, #1
	ldr	x11, [x26]
	str	x8, [x9, x11, lsl #3]
	ldr	x8, [x19, #40]
	sub	x8, x8, #1
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
Lloh25:
	adrp	x8, _NV_PRAMDAC_FP_TG_CONTROL_DISPEN_POS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NV_PRAMDAC_FP_TG_CONTROL_DISPEN_POS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _NV_PRAMDAC_FP_TG_CONTROL_READ_PROG@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NV_PRAMDAC_FP_TG_CONTROL_READ_PROG@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _NV_PRAMDAC_FP_TG_CONTROL_WIDTH_12@GOTPAGE
Lloh32:
	ldr	x9, [x9, _NV_PRAMDAC_FP_TG_CONTROL_WIDTH_12@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20, #32]!
	ldr	w9, [x19, #32]
Lloh34:
	adrp	x10, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh35:
	ldr	x10, [x10, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
Lloh37:
	adrp	x10, _NV_PRAMDAC_FP_TG_CONTROL_VSYNC_POS@GOTPAGE
Lloh38:
	ldr	x10, [x10, _NV_PRAMDAC_FP_TG_CONTROL_VSYNC_POS@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x20]
LBB0_6:
Lloh40:
	adrp	x10, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh41:
	ldr	x10, [x10, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
Lloh43:
	adrp	x9, _NV_PRAMDAC_FP_TG_CONTROL_HSYNC_POS@GOTPAGE
Lloh44:
	ldr	x9, [x9, _NV_PRAMDAC_FP_TG_CONTROL_HSYNC_POS@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
LBB0_8:
Lloh46:
	adrp	x8, _NV_PRAMDAC_FP_DEBUG_0_YWEIGHT_ROUND@GOTPAGE
Lloh47:
	ldr	x8, [x8, _NV_PRAMDAC_FP_DEBUG_0_YWEIGHT_ROUND@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _NV_PRAMDAC_FP_DEBUG_0_XWEIGHT_ROUND@GOTPAGE
Lloh50:
	ldr	x9, [x9, _NV_PRAMDAC_FP_DEBUG_0_XWEIGHT_ROUND@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh52:
	adrp	x9, _NV_PRAMDAC_FP_DEBUG_0_YINTERP_BILINEAR@GOTPAGE
Lloh53:
	ldr	x9, [x9, _NV_PRAMDAC_FP_DEBUG_0_YINTERP_BILINEAR@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh55:
	adrp	x9, _NV_PRAMDAC_FP_DEBUG_0_XINTERP_BILINEAR@GOTPAGE
Lloh56:
	ldr	x9, [x9, _NV_PRAMDAC_FP_DEBUG_0_XINTERP_BILINEAR@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh58:
	adrp	x9, _NV_RAMDAC_FP_DEBUG_0_TMDS_ENABLED@GOTPAGE
Lloh59:
	ldr	x9, [x9, _NV_RAMDAC_FP_DEBUG_0_TMDS_ENABLED@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh61:
	adrp	x9, _NV_PRAMDAC_FP_DEBUG_0_YSCALE_ENABLE@GOTPAGE
Lloh62:
	ldr	x9, [x9, _NV_PRAMDAC_FP_DEBUG_0_YSCALE_ENABLE@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh64:
	adrp	x9, _NV_PRAMDAC_FP_DEBUG_0_XSCALE_ENABLE@GOTPAGE
Lloh65:
	ldr	x9, [x9, _NV_PRAMDAC_FP_DEBUG_0_XSCALE_ENABLE@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mov	w9, #72
	madd	x9, x22, x9, x23
	str	xzr, [x9, #48]
	mov	w10, #4224
	movk	w10, #128, lsl #16
	stp	w8, w10, [x9, #36]
	b	LBB0_22
LBB0_9:
Lloh67:
	adrp	x9, lCPI0_2@PAGE
Lloh68:
	ldr	d0, [x9, lCPI0_2@PAGEOFF]
LBB0_10:
	str	d0, [x20, #24]
LBB0_11:
	ldr	x9, [x21]
Lloh69:
	adrp	x10, _NV_DEVICE_INFO_V0_RANKINE@GOTPAGE
Lloh70:
	ldr	x10, [x10, _NV_DEVICE_INFO_V0_RANKINE@GOTPAGEOFF]
Lloh71:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_15
; %bb.12:
	cmp	w8, #576
	b.eq	LBB0_16
; %bb.13:
	cmp	w8, #480
	b.ne	LBB0_18
; %bb.14:
Lloh72:
	adrp	x8, lCPI0_6@PAGE
Lloh73:
	ldr	q0, [x8, lCPI0_6@PAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh74:
	adrp	x8, lCPI0_4@PAGE
Lloh75:
	ldr	q0, [x8, lCPI0_4@PAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh76:
	adrp	x8, lCPI0_5@PAGE
Lloh77:
	ldr	q0, [x8, lCPI0_5@PAGEOFF]
LBB0_17:
	str	q0, [x20, #32]
LBB0_18:
	ldr	x8, [x19, #80]
	ldr	x9, [x20, #48]
	sub	x10, x9, x8
	cmp	x10, #15
	b.hi	LBB0_21
; %bb.19:
	mov	x10, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, x10]
	str	w11, [x9, x10]
	add	x10, x10, #4
	cmp	x10, #256
	b.ne	LBB0_20
	b	LBB0_22
LBB0_21:
	ldr	q0, [x8]
	str	q0, [x9]
	ldr	q0, [x8, #16]
	str	q0, [x9, #16]
	ldr	q0, [x8, #32]
	str	q0, [x9, #32]
	ldr	q0, [x8, #48]
	str	q0, [x9, #48]
	ldr	q0, [x8, #64]
	str	q0, [x9, #64]
	ldr	q0, [x8, #80]
	str	q0, [x9, #80]
	ldr	q0, [x8, #96]
	str	q0, [x9, #96]
	ldr	q0, [x8, #112]
	str	q0, [x9, #112]
	ldr	q0, [x8, #128]
	str	q0, [x9, #128]
	ldr	q0, [x8, #144]
	str	q0, [x9, #144]
	ldr	q0, [x8, #160]
	str	q0, [x9, #160]
	ldr	q0, [x8, #176]
	str	q0, [x9, #176]
	ldr	q0, [x8, #192]
	str	q0, [x9, #192]
	ldr	q0, [x8, #208]
	str	q0, [x9, #208]
	ldr	q0, [x8, #224]
	str	q0, [x9, #224]
	ldr	q0, [x8, #240]
	str	q0, [x9, #240]
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdr	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdr	Lloh72, Lloh73
	.loh AdrpLdr	Lloh74, Lloh75
	.loh AdrpLdr	Lloh76, Lloh77
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_CIO_CRE_53,8,3              ; @NV_CIO_CRE_53
	.comm	_NV_CIO_CRE_54,8,3              ; @NV_CIO_CRE_54
	.comm	_TV_ENC_MODE,8,3                ; @TV_ENC_MODE
	.comm	_NV_DEVICE_INFO_V0_RANKINE,8,3  ; @NV_DEVICE_INFO_V0_RANKINE
	.comm	_FP_DISPLAY_END,8,3             ; @FP_DISPLAY_END
	.comm	_FP_TOTAL,8,3                   ; @FP_TOTAL
	.comm	_FP_SYNC_START,8,3              ; @FP_SYNC_START
	.comm	_FP_SYNC_END,8,3                ; @FP_SYNC_END
	.comm	_FP_CRTC,8,3                    ; @FP_CRTC
	.comm	_NV_PRAMDAC_FP_TG_CONTROL_DISPEN_POS,4,2 ; @NV_PRAMDAC_FP_TG_CONTROL_DISPEN_POS
	.comm	_NV_PRAMDAC_FP_TG_CONTROL_READ_PROG,4,2 ; @NV_PRAMDAC_FP_TG_CONTROL_READ_PROG
	.comm	_NV_PRAMDAC_FP_TG_CONTROL_WIDTH_12,4,2 ; @NV_PRAMDAC_FP_TG_CONTROL_WIDTH_12
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.comm	_NV_PRAMDAC_FP_TG_CONTROL_VSYNC_POS,4,2 ; @NV_PRAMDAC_FP_TG_CONTROL_VSYNC_POS
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_NV_PRAMDAC_FP_TG_CONTROL_HSYNC_POS,4,2 ; @NV_PRAMDAC_FP_TG_CONTROL_HSYNC_POS
	.comm	_NV_PRAMDAC_FP_DEBUG_0_YWEIGHT_ROUND,4,2 ; @NV_PRAMDAC_FP_DEBUG_0_YWEIGHT_ROUND
	.comm	_NV_PRAMDAC_FP_DEBUG_0_XWEIGHT_ROUND,4,2 ; @NV_PRAMDAC_FP_DEBUG_0_XWEIGHT_ROUND
	.comm	_NV_PRAMDAC_FP_DEBUG_0_YINTERP_BILINEAR,4,2 ; @NV_PRAMDAC_FP_DEBUG_0_YINTERP_BILINEAR
	.comm	_NV_PRAMDAC_FP_DEBUG_0_XINTERP_BILINEAR,4,2 ; @NV_PRAMDAC_FP_DEBUG_0_XINTERP_BILINEAR
	.comm	_NV_RAMDAC_FP_DEBUG_0_TMDS_ENABLED,4,2 ; @NV_RAMDAC_FP_DEBUG_0_TMDS_ENABLED
	.comm	_NV_PRAMDAC_FP_DEBUG_0_YSCALE_ENABLE,4,2 ; @NV_PRAMDAC_FP_DEBUG_0_YSCALE_ENABLE
	.comm	_NV_PRAMDAC_FP_DEBUG_0_XSCALE_ENABLE,4,2 ; @NV_PRAMDAC_FP_DEBUG_0_XSCALE_ENABLE
	.no_dead_strip	_nv17_tv_mode_set
.subsections_via_symbols
