	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv17_tv_update_properties      ## -- Begin function nv17_tv_update_properties
	.p2align	4, 0x90
_nv17_tv_update_properties:             ## @nv17_tv_update_properties
	.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	(%rdi), %r14
	callq	_to_tv_enc
	movq	%rax, %r12
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_get_tv_norm
	movq	%rax, %r15
	movl	(%r12), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	4(%r13), %eax
LBB0_2:
	addq	$24, %r12
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movl	$69650, (%r12)                  ## imm = 0x11012
	jmp	LBB0_8
LBB0_7:
	movl	$1118226, (%r12)                ## imm = 0x111012
LBB0_8:
	movl	$24, %eax
	jmp	LBB0_9
LBB0_4:
	movl	8(%r13), %eax
	xorl	%ecx, %ecx
	testb	$2, %al
	sete	%cl
	shll	$16, %ecx
	orl	$1048578, %ecx                  ## imm = 0x100002
	testb	$4, %al
	movl	$65538, %eax                    ## imm = 0x10002
	cmovel	%ecx, %eax
	movl	%eax, 24(%r13)
	movl	$16, %eax
	jmp	LBB0_9
LBB0_6:
	movl	$1119027, (%r12)                ## imm = 0x111333
	movl	$20, %eax
LBB0_9:
	movq	32(%r13), %rcx
	movl	%eax, 28(%rcx)
LBB0_10:
	movq	(%r15), %rax
	movl	128(%rax), %esi
	movl	16(%r13), %ecx
	xorl	%edi, %edi
	movl	$255, %edx
	callq	_interpolate
	movq	32(%r13), %rcx
	movl	%eax, 128(%rcx)
	movq	(%r15), %rax
	movl	136(%rax), %esi
	movl	16(%r13), %ecx
	xorl	%edi, %edi
	movl	$255, %edx
	callq	_interpolate
	movq	32(%r13), %rcx
	movl	%eax, 136(%rcx)
	movl	12(%r13), %eax
	movl	%eax, %edx
	shll	$8, %edx
	subl	%eax, %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$37, %rax
	addl	%edx, %eax
	movl	%eax, 148(%rcx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$204, %edx
	callq	_nv_load_ptv
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$7, %edx
	callq	_nv_load_tv_enc
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$20, %edx
	callq	_nv_load_tv_enc
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$22, %edx
	callq	_nv_load_tv_enc
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$25, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_load_tv_enc                 ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv17_tv_update_properties      ; -- Begin function nv17_tv_update_properties
	.p2align	2
_nv17_tv_update_properties:             ; @nv17_tv_update_properties
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x19, [x0]
	bl	_to_tv_enc
	mov	x21, x0
	mov	x0, x20
	bl	_get_tv_norm
	mov	x22, x0
	mov	x20, x21
	ldr	w8, [x20], #24
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x21, #4]
LBB0_2:
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	w8, #4114
	movk	w8, #1, lsl #16
	b	LBB0_6
LBB0_5:
	mov	w8, #4114
	movk	w8, #17, lsl #16
LBB0_6:
	str	w8, [x20]
	mov	w8, #24
	b	LBB0_9
LBB0_7:
	ldr	w8, [x21, #8]
	mov	w9, #2
	movk	w9, #16, lsl #16
	orr	w10, w9, #0x10000
	tst	w8, #0x2
	csel	w9, w10, w9, eq
	tst	w8, #0x4
	mov	w8, #2
	movk	w8, #1, lsl #16
	csel	w8, w9, w8, eq
	str	w8, [x21, #24]
	mov	w8, #16
	b	LBB0_9
LBB0_8:
	mov	w8, #801
	mov	w9, #4114
	movk	w9, #17, lsl #16
	orr	w8, w9, w8
	str	w8, [x20]
	mov	w8, #20
LBB0_9:
	ldr	x9, [x21, #32]
	str	w8, [x9, #28]
LBB0_10:
	ldr	x8, [x22]
	ldr	w1, [x8, #128]
	ldr	w3, [x21, #16]
	mov	w0, #0
	mov	w2, #255
	bl	_interpolate
	ldr	x8, [x21, #32]
	str	w0, [x8, #128]
	ldr	x8, [x22]
	ldr	w1, [x8, #136]
	ldr	w3, [x21, #16]
	mov	w0, #0
	mov	w2, #255
	bl	_interpolate
	ldr	x8, [x21, #32]
	str	w0, [x8, #136]
	ldr	w9, [x21, #12]
	lsl	w10, w9, #8
	sub	w9, w10, w9
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	str	w9, [x8, #148]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #204
	bl	_nv_load_ptv
	mov	x0, x19
	mov	x1, x20
	mov	w2, #7
	bl	_nv_load_tv_enc
	mov	x0, x19
	mov	x1, x20
	mov	w2, #20
	bl	_nv_load_tv_enc
	mov	x0, x19
	mov	x1, x20
	mov	w2, #22
	bl	_nv_load_tv_enc
	mov	x0, x19
	mov	x1, x20
	mov	w2, #25
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nv_load_tv_enc
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
.subsections_via_symbols
