	.file	"extr_init.c_SiS_SetCRT1VCLK.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	SiS_SetCRT1VCLK, @function
SiS_SetCRT1VCLK:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR 56[rdi], 0
	mov	rbx, rdi
	je	.L2
	movzx	r12d, WORD PTR [rdi]
	movzx	ebp, WORD PTR 2[rdi]
.L3:
	mov	edi, DWORD PTR 24[rbx]
	mov	edx, 207
	mov	esi, 49
	call	SiS_SetRegAND@PLT
	mov	edi, DWORD PTR 24[rbx]
	movzx	edx, r12w
	mov	esi, 43
	call	SiS_SetReg@PLT
	mov	edi, DWORD PTR 24[rbx]
	movzx	edx, bp
	mov	esi, 44
	call	SiS_SetReg@PLT
	mov	rax, QWORD PTR SIS_315H[rip]
	cmp	QWORD PTR 16[rbx], rax
	jl	.L17
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movzx	edx, dx
	movzx	ecx, cx
	movzx	esi, si
	call	SiS_GetVCLK2Ptr@PLT
	mov	edx, DWORD PTR 4[rbx]
	test	DWORD PTR VB_SIS30xBLV[rip], edx
	je	.L4
	mov	edx, DWORD PTR 8[rbx]
	test	DWORD PTR SetCRT2ToLCDA[rip], edx
	je	.L4
	cmp	ax, 33
	je	.L5
	movzx	eax, ax
	sal	rax, 2
.L6:
	add	rax, QWORD PTR 40[rbx]
	movzx	r12d, WORD PTR [rax]
	movzx	ebp, WORD PTR 2[rax]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR 32[rbx]
	movzx	eax, ax
	lea	rax, [rdx+rax*4]
	movzx	r12d, WORD PTR [rax]
	movzx	ebp, WORD PTR 2[rax]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR 24[rbx]
	mov	edx, 128
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, 45
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	SiS_SetReg@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmp	QWORD PTR 48[rbx], 1
	sbb	rax, rax
	and	rax, -324
	add	rax, 456
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	SiS_SetCRT1VCLK, .-SiS_SetCRT1VCLK
	.comm	XGI_20,8,8
	.comm	VB_SIS30xBLV,4,4
	.comm	SetCRT2ToLCDA,4,4
	.comm	SIS_315H,8,8
	.comm	HalfDCLK,2,2
	.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_init.c_SiS_SetCRT1VCLK.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SiS_SetCRT1VCLK, %function
SiS_SetCRT1VCLK:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0, #32]
	push	{r4, r5, r6, lr}
	cmp	ip, #0
	mov	r4, r0
	beq	.L2
	ldrh	r6, [r0]
	ldrh	r5, [r0, #2]
.L3:
	mov	r2, #207
	mov	r1, #49
	ldr	r0, [r4, #16]
	bl	SiS_SetRegAND
	mov	r2, r6
	mov	r1, #43
	ldr	r0, [r4, #16]
	bl	SiS_SetReg
	mov	r2, r5
	mov	r1, #44
	ldr	r0, [r4, #16]
	bl	SiS_SetReg
	ldr	r3, .L17
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	popge	{r4, r5, r6, pc}
	ldr	r0, [r4, #16]
	mov	r2, #128
	pop	{r4, r5, r6, lr}
	mov	r1, #45
	b	SiS_SetReg
.L2:
	bl	SiS_GetVCLK2Ptr
	ldr	r3, .L17+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L4
	ldr	r3, .L17+8
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L4
	cmp	r0, #33
	lslne	r0, r0, #2
	bne	.L6
	ldr	r3, [r4, #28]
	cmp	r3, #0
	moveq	r0, #132
	movne	r0, #456
.L6:
	ldr	r3, [r4, #24]
	add	r2, r3, r0
	ldrh	r5, [r2, #2]
	ldrh	r6, [r3, r0]
	b	.L3
.L4:
	ldr	r3, [r4, #20]
	lsl	r2, r0, #2
	add	r0, r3, r0, lsl #2
	ldrh	r5, [r0, #2]
	ldrh	r6, [r3, r2]
	b	.L3
.L18:
	.align	2
.L17:
	.word	SIS_315H
	.word	VB_SIS30xBLV
	.word	SetCRT2ToLCDA
	.size	SiS_SetCRT1VCLK, .-SiS_SetCRT1VCLK
	.comm	XGI_20,4,4
	.comm	VB_SIS30xBLV,4,4
	.comm	SetCRT2ToLCDA,4,4
	.comm	SIS_315H,4,4
	.comm	HalfDCLK,2,2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
