	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv17_tv_set_property
_nv17_tv_set_property:                  ## @nv17_tv_set_property
	.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
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	callq	_to_tv_enc
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_get_tv_norm
	cmpq	%r12, 40(%r13)
	je	LBB0_1
## %bb.4:
	cmpq	%r12, 32(%r13)
	je	LBB0_5
## %bb.9:
	cmpq	%r12, 24(%r13)
	je	LBB0_10
## %bb.12:
	cmpq	%r12, 16(%r13)
	je	LBB0_13
## %bb.16:
	cmpq	%r12, 8(%r13)
	je	LBB0_17
## %bb.21:
	cmpq	%r12, (%r13)
	jne	LBB0_6
## %bb.22:
	movq	(%rax), %rax
	movq	_TV_ENC_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.23:
	movq	%r14, (%r15)
	jmp	LBB0_8
LBB0_1:
	movq	%r14, 40(%r15)
	xorl	%r14d, %r14d
	cmpq	$0, (%rbx)
	je	LBB0_20
## %bb.2:
	movq	(%rax), %rax
	movq	_CTV_ENC_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.3:
	movq	%rbx, %rdi
	callq	_nv17_ctv_update_rescaler
	jmp	LBB0_20
LBB0_5:
	movq	(%rax), %rax
	movq	_TV_ENC_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	%r14, 32(%r15)
	jmp	LBB0_8
LBB0_10:
	movq	(%rax), %rax
	movq	_TV_ENC_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.11:
	movq	%r14, 24(%r15)
LBB0_8:
	movq	%rbx, %rdi
	callq	_nv17_tv_update_properties
	xorl	%r14d, %r14d
	jmp	LBB0_20
LBB0_13:
	movq	(%rax), %rax
	movq	_TV_ENC_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.14:
	movq	%r14, 16(%r15)
	xorl	%r14d, %r14d
	cmpq	$0, (%rbx)
	je	LBB0_20
LBB0_15:
	movq	%rbx, %rdi
	callq	_nv17_tv_update_rescaler
	jmp	LBB0_20
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.18:
	movq	%r14, 8(%r15)
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_drm_helper_probe_single_connector_modes
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	leaq	16(%rdi), %rsi
	movl	12(%rdi), %edx
	movl	8(%rdi), %ecx
	movq	(%rdi), %rax
	movl	(%rax), %r8d
	callq	_drm_crtc_helper_set_mode
	jmp	LBB0_20
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTV_ENC_MODE,8,3               ## @CTV_ENC_MODE
	.comm	_TV_ENC_MODE,8,3                ## @TV_ENC_MODE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MODE_DPMS_OFF,8,3          ## @DRM_MODE_DPMS_OFF
	.no_dead_strip	_nv17_tv_set_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv17_tv_set_property
_nv17_tv_set_property:                  ; @nv17_tv_set_property
	.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	x20, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	ldp	x22, x25, [x0]
	bl	_to_tv_enc
	mov	x21, x0
	mov	x0, x19
	bl	_get_tv_norm
	ldr	x8, [x25, #40]
	cmp	x8, x24
	b.eq	LBB0_8
; %bb.1:
	ldr	x8, [x25, #32]
	cmp	x8, x24
	b.eq	LBB0_11
; %bb.2:
	ldr	x8, [x25, #24]
	cmp	x8, x24
	b.eq	LBB0_13
; %bb.3:
	ldr	x8, [x25, #16]
	cmp	x8, x24
	b.eq	LBB0_16
; %bb.4:
	ldr	x8, [x25, #8]
	cmp	x8, x24
	b.eq	LBB0_19
; %bb.5:
	ldr	x8, [x25]
	cmp	x8, x24
	b.ne	LBB0_23
; %bb.6:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TV_ENC_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TV_ENC_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.7:
	str	x20, [x21]
	b	LBB0_15
LBB0_8:
	str	x20, [x21, #40]
	ldr	x8, [x19]
	cbz	x8, LBB0_22
; %bb.9:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _CTV_ENC_MODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CTV_ENC_MODE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.10:
	mov	x0, x19
	bl	_nv17_ctv_update_rescaler
	mov	w0, #0
	b	LBB0_24
LBB0_11:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _TV_ENC_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TV_ENC_MODE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.12:
	str	x20, [x21, #32]
	b	LBB0_15
LBB0_13:
	ldr	x8, [x0]
Lloh9:
	adrp	x9, _TV_ENC_MODE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TV_ENC_MODE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.14:
	str	x20, [x21, #24]
LBB0_15:
	mov	x0, x19
	bl	_nv17_tv_update_properties
	mov	w0, #0
	b	LBB0_24
LBB0_16:
	ldr	x8, [x0]
Lloh12:
	adrp	x9, _TV_ENC_MODE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TV_ENC_MODE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.17:
	str	x20, [x21, #16]
	ldr	x8, [x19]
	cbz	x8, LBB0_22
LBB0_18:
	mov	x0, x19
	bl	_nv17_tv_update_rescaler
	mov	w0, #0
	b	LBB0_24
LBB0_19:
	ldr	x8, [x23]
Lloh15:
	adrp	x9, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.20:
	str	x20, [x21, #8]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #0
	bl	_drm_helper_probe_single_connector_modes
	cbz	x22, LBB0_22
; %bb.21:
	add	x1, x22, #16
	ldp	w3, w2, [x22, #8]
	ldr	x8, [x22]
	ldr	w4, [x8]
	mov	x0, x22
	bl	_drm_crtc_helper_set_mode
LBB0_22:
	mov	w0, #0
	b	LBB0_24
LBB0_23:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CTV_ENC_MODE,8,3               ; @CTV_ENC_MODE
	.comm	_TV_ENC_MODE,8,3                ; @TV_ENC_MODE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MODE_DPMS_OFF,8,3          ; @DRM_MODE_DPMS_OFF
	.no_dead_strip	_nv17_tv_set_property
.subsections_via_symbols
