	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv17_tv_get_ld_modes
_nv17_tv_get_ld_modes:                  ## @nv17_tv_get_ld_modes
	.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	%rsi, %r14
	movq	%rdi, %r15
	callq	_get_tv_norm
	movq	%rax, %r12
	movq	_nv17_tv_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_drm_mode_probed_add
	incl	%r13d
	cmpq	$0, 40(%rbx)
	leaq	40(%rbx), %rbx
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_drm_mode_duplicate
	movl	12(%rax), %ecx
	imull	(%r12), %ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	imull	16(%rax), %ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movl	%ecx, 8(%rax)
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 20(%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%ecx, %ecx
	movl	%ecx, 8(%rax)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rcx
	cmpq	8(%r12), %rcx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rax), %rcx
	cmpq	16(%r12), %rcx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_DRM_MODE_TYPE_PREFERRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 32(%rax)
	jmp	LBB0_8
LBB0_1:
	xorl	%r13d, %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nv17_tv_modes,8,3              ## @nv17_tv_modes
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ## @DRM_MODE_TYPE_PREFERRED
	.no_dead_strip	_nv17_tv_get_ld_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv17_tv_get_ld_modes
_nv17_tv_get_ld_modes:                  ; @nv17_tv_get_ld_modes
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_get_tv_norm
Lloh0:
	adrp	x8, _nv17_tv_modes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nv17_tv_modes@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x21, x0
	mov	w22, #0
	mov	w24, #19923
	movk	w24, #4194, lsl #16
Lloh3:
	adrp	x25, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh5:
	adrp	x26, _DRM_MODE_TYPE_PREFERRED@GOTPAGE
Lloh6:
	ldr	x26, [x26, _DRM_MODE_TYPE_PREFERRED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_drm_mode_probed_add
	add	w22, w22, #1
	ldr	x8, [x23, #40]!
	cbz	x8, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	x1, x23
	bl	_drm_mode_duplicate
	mov	x1, x0
	ldr	w8, [x21]
	ldp	w9, w10, [x0, #12]
	mul	w8, w9, w8
	smull	x8, w8, w24
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	mul	w8, w8, w10
	smull	x8, w8, w24
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x0, #8]
	ldr	w9, [x0, #20]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w8, w8, #1
	str	w8, [x1, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x1]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x1, #24]
	ldr	x9, [x21, #16]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	ldr	w9, [x1, #32]
	orr	w8, w9, w8
	str	w8, [x1, #32]
	b	LBB0_2
LBB0_8:
	mov	w22, #0
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_nv17_tv_modes,8,3              ; @nv17_tv_modes
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ; @DRM_MODE_TYPE_PREFERRED
	.no_dead_strip	_nv17_tv_get_ld_modes
.subsections_via_symbols
