	.file	"extr_tvmodesnv17.c_nv17_tv_update_properties.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nv17_tv_update_properties
	.type	nv17_tv_update_properties, @function
nv17_tv_update_properties:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rdi]
	call	to_tv_enc@PLT
	mov	rdi, r13
	mov	rbx, rax
	lea	r12, 24[rax]
	call	get_tv_norm@PLT
	mov	r13, rax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR 4[rbx]
.L2:
	cmp	eax, 130
	je	.L3
	jg	.L4
	cmp	eax, 128
	je	.L5
	cmp	eax, 129
	jne	.L7
	mov	rax, QWORD PTR 32[rbx]
	mov	DWORD PTR 24[rbx], 1118226
	mov	DWORD PTR 28[rax], 24
.L7:
	mov	rax, QWORD PTR 0[r13]
	mov	ecx, DWORD PTR 16[rbx]
	mov	edx, 255
	xor	edi, edi
	mov	esi, DWORD PTR 128[rax]
	call	interpolate@PLT
	mov	rdx, QWORD PTR 32[rbx]
	xor	edi, edi
	mov	DWORD PTR 128[rdx], eax
	mov	rax, QWORD PTR 0[r13]
	mov	edx, 255
	mov	ecx, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR 136[rax]
	call	interpolate@PLT
	mov	rcx, QWORD PTR 32[rbx]
	mov	rsi, r12
	mov	rdi, rbp
	mov	DWORD PTR 136[rcx], eax
	mov	eax, DWORD PTR 12[rbx]
	mov	edx, eax
	sal	edx, 8
	sub	edx, eax
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1374389535
	sar	rax, 37
	sub	eax, edx
	mov	edx, 204
	mov	DWORD PTR 148[rcx], eax
	call	nv_load_ptv@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, 7
	call	nv_load_tv_enc@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, 20
	call	nv_load_tv_enc@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, 22
	call	nv_load_tv_enc@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	edx, 25
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	nv_load_tv_enc@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	cmp	eax, 131
	jne	.L7
	mov	rax, QWORD PTR 32[rbx]
	mov	DWORD PTR 24[rbx], 1119027
	mov	DWORD PTR 28[rax], 20
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 8[rbx]
	test	al, 4
	je	.L9
	mov	DWORD PTR 24[rbx], 65538
.L10:
	mov	rax, QWORD PTR 32[rbx]
	mov	DWORD PTR 28[rax], 16
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 32[rbx]
	mov	DWORD PTR 24[rbx], 69650
	mov	DWORD PTR 28[rax], 24
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	and	eax, 2
	cmp	eax, 1
	sbb	eax, eax
	and	eax, 65536
	add	eax, 1048578
	mov	DWORD PTR 24[rbx], eax
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	nv17_tv_update_properties, .-nv17_tv_update_properties
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tvmodesnv17.c_nv17_tv_update_properties.c"
	.text
	.align	2
	.global	nv17_tv_update_properties
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv17_tv_update_properties, %function
nv17_tv_update_properties:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r6, [r0]
	bl	to_tv_enc
	mov	r5, r0
	mov	r4, r0
	mov	r0, r7
	bl	get_tv_norm
	ldr	r3, [r5], #20
	mov	r7, r0
	cmp	r3, #0
	ldreq	r3, [r4, #4]
	sub	r3, r3, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L6:
	ldr	r3, [r4, #8]
	tst	r3, #4
	beq	.L9
	ldr	r3, .L14
	str	r3, [r4, #20]
.L10:
	mov	r2, #16
	ldr	r3, [r4, #24]
	str	r2, [r3, #28]
.L3:
	ldr	r2, [r7]
	ldr	r3, [r4, #16]
	ldr	r1, [r2, #128]
	mov	r0, #0
	mov	r2, #255
	bl	interpolate
	ldr	r2, [r4, #24]
	ldr	r3, [r7]
	str	r0, [r2, #128]
	ldr	r1, [r3, #136]
	mov	r2, #255
	ldr	r3, [r4, #16]
	mov	r0, #0
	bl	interpolate
	ldr	ip, [r4, #24]
	ldr	r1, .L14+4
	str	r0, [ip, #136]
	ldr	r3, [r4, #12]
	mov	r2, #204
	rsb	r3, r3, r3, lsl #8
	smull	r0, r1, r3, r1
	asr	r3, r3, #31
	rsb	r3, r3, r1, asr #5
	str	r3, [ip, #148]
	mov	r1, r5
	mov	r0, r6
	bl	nv_load_ptv
	mov	r1, r5
	mov	r2, #7
	mov	r0, r6
	bl	nv_load_tv_enc
	mov	r1, r5
	mov	r2, #20
	mov	r0, r6
	bl	nv_load_tv_enc
	mov	r1, r5
	mov	r2, #22
	mov	r0, r6
	bl	nv_load_tv_enc
	mov	r1, r5
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #25
	b	nv_load_tv_enc
.L4:
	mov	r2, #20
	ldr	r1, .L14+8
	ldr	r3, [r4, #24]
	str	r1, [r4, #20]
	str	r2, [r3, #28]
	b	.L3
.L8:
	mov	r2, #24
	ldr	r1, .L14+12
	ldr	r3, [r4, #24]
	str	r1, [r4, #20]
	str	r2, [r3, #28]
	b	.L3
.L7:
	mov	r2, #24
	ldr	r1, .L14+16
	ldr	r3, [r4, #24]
	str	r1, [r4, #20]
	str	r2, [r3, #28]
	b	.L3
.L9:
	tst	r3, #2
	ldrne	r3, .L14+20
	ldreq	r3, .L14+24
	str	r3, [r4, #20]
	b	.L10
.L15:
	.align	2
.L14:
	.word	65538
	.word	1374389535
	.word	1119027
	.word	69650
	.word	1118226
	.word	1048578
	.word	1114114
	.size	nv17_tv_update_properties, .-nv17_tv_update_properties
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
