	.file	"extr_hw.c_viafb_init_dac.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	viafb_init_dac
	.type	viafb_init_dac, @function
viafb_init_dac:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR IGA1[rip], edi
	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
	je	.L9
	mov	esi, DWORD PTR CR6A[rip]
	mov	edi, DWORD PTR VIACR[rip]
	xor	ebp, ebp
	xor	ebx, ebx
	call	viafb_read_reg@PLT
	mov	esi, DWORD PTR VIACR[rip]
	mov	edi, DWORD PTR CR6A[rip]
	mov	edx, 64
	mov	rcx, QWORD PTR BIT6[rip]
	mov	r12d, eax
	call	viafb_write_reg_mask@PLT
	mov	esi, DWORD PTR VIASR[rip]
	mov	edi, DWORD PTR SR1A[rip]
	mov	edx, 1
	mov	rcx, QWORD PTR BIT0[rip]
	call	viafb_write_reg_mask@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR palLUT_table[rip]
	mov	edi, ebx
	add	ebx, 1
	add	rax, rbp
	add	rbp, 12
	mov	edx, DWORD PTR 4[rax]
	mov	esi, DWORD PTR 8[rax]
	mov	ecx, DWORD PTR [rax]
	call	write_dac_reg@PLT
	cmp	ebx, 256
	jne	.L4
	mov	esi, DWORD PTR VIASR[rip]
	mov	edi, DWORD PTR SR1A[rip]
	xor	edx, edx
	mov	rcx, QWORD PTR BIT0[rip]
	call	viafb_write_reg_mask@PLT
	mov	esi, DWORD PTR VIACR[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	mov	edi, DWORD PTR CR6A[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	viafb_write_reg@PLT
.L9:
	.cfi_restore_state
	mov	rcx, QWORD PTR BIT0[rip]
	xor	edx, edx
	xor	ebp, ebp
	xor	ebx, ebx
	mov	esi, DWORD PTR VIASR[rip]
	mov	edi, DWORD PTR SR1A[rip]
	call	viafb_write_reg_mask@PLT
	mov	esi, DWORD PTR VIASR[rip]
	mov	edi, DWORD PTR SR1B[rip]
	xor	edx, edx
	mov	rcx, QWORD PTR BIT6[rip]
	add	rcx, QWORD PTR BIT7[rip]
	call	viafb_write_reg_mask@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR palLUT_table[rip]
	mov	edi, ebx
	add	ebx, 1
	add	rax, rbp
	add	rbp, 12
	mov	edx, DWORD PTR 4[rax]
	mov	esi, DWORD PTR 8[rax]
	mov	ecx, DWORD PTR [rax]
	call	write_dac_reg@PLT
	cmp	ebx, 256
	jne	.L3
	mov	esi, DWORD PTR VIASR[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	edx, 192
	mov	edi, DWORD PTR SR1B[rip]
	mov	rcx, QWORD PTR BIT6[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	add	rcx, QWORD PTR BIT7[rip]
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	viafb_write_reg_mask@PLT
	.cfi_endproc
.LFE0:
	.size	viafb_init_dac, .-viafb_init_dac
	.comm	palLUT_table,8,8
	.comm	VIASR,4,4
	.comm	VIACR,4,4
	.comm	SR1B,4,4
	.comm	SR1A,4,4
	.comm	IGA1,4,4
	.comm	CR6A,4,4
	.comm	BIT7,8,8
	.comm	BIT6,8,8
	.comm	BIT0,8,8
	.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_hw.c_viafb_init_dac.c"
	.text
	.align	2
	.global	viafb_init_dac
	.syntax unified
	.arm
	.fpu softvfp
	.type	viafb_init_dac, %function
viafb_init_dac:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L10
	sub	sp, sp, #4
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L9
	ldr	r8, .L10+4
	ldr	r9, .L10+8
	ldr	r1, [r8]
	ldr	r0, [r9]
	bl	viafb_read_reg
	mov	r4, #0
	ldr	r3, .L10+12
	mov	r2, #64
	ldr	r1, [r9]
	ldr	r3, [r3]
	mov	r10, r0
	ldr	r0, [r8]
	bl	viafb_write_reg_mask
	ldr	fp, .L10+16
	ldr	r2, .L10+20
	ldr	r7, .L10+24
	ldr	r0, [r2]
	ldr	r3, [fp]
	mov	r2, #1
	ldr	r1, [r7]
	bl	viafb_write_reg_mask
	mov	r5, r4
	ldr	r6, .L10+28
.L4:
	ldr	r3, [r6]
	mov	r0, r5
	add	r1, r3, r4
	ldr	r2, [r1, #4]
	ldr	r3, [r3, r4]
	ldr	r1, [r1, #8]
	add	r5, r5, #1
	bl	write_dac_reg
	cmp	r5, #256
	add	r4, r4, #12
	bne	.L4
	ldr	r2, .L10+20
	ldr	r1, [r7]
	ldr	r3, [fp]
	ldr	r0, [r2]
	mov	r2, #0
	bl	viafb_write_reg_mask
	mov	r2, r10
	ldr	r1, [r9]
	ldr	r0, [r8]
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	viafb_write_reg
.L9:
	mov	r4, #0
	ldr	r7, .L10+24
	ldr	r2, .L10+20
	ldr	r3, .L10+16
	ldr	r10, .L10+32
	ldr	r9, .L10+12
	ldr	r3, [r3]
	ldr	r1, [r7]
	ldr	r0, [r2]
	mov	r2, r4
	bl	viafb_write_reg_mask
	ldr	r8, .L10+36
	ldr	r2, [r10]
	ldr	r3, [r9]
	ldr	r1, [r7]
	add	r3, r2, r3
	ldr	r0, [r8]
	mov	r2, r4
	bl	viafb_write_reg_mask
	mov	r5, r4
	ldr	r6, .L10+28
.L3:
	ldr	r3, [r6]
	mov	r0, r5
	add	r1, r3, r4
	ldr	r2, [r1, #4]
	ldr	r3, [r3, r4]
	ldr	r1, [r1, #8]
	add	r5, r5, #1
	bl	write_dac_reg
	cmp	r5, #256
	add	r4, r4, #12
	bne	.L3
	ldr	r2, [r10]
	ldr	r3, [r9]
	ldr	r1, [r7]
	add	r3, r2, r3
	mov	r2, #192
	ldr	r0, [r8]
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	viafb_write_reg_mask
.L11:
	.align	2
.L10:
	.word	IGA1
	.word	CR6A
	.word	VIACR
	.word	BIT6
	.word	BIT0
	.word	SR1A
	.word	VIASR
	.word	palLUT_table
	.word	BIT7
	.word	SR1B
	.size	viafb_init_dac, .-viafb_init_dac
	.comm	palLUT_table,4,4
	.comm	VIASR,4,4
	.comm	VIACR,4,4
	.comm	SR1B,4,4
	.comm	SR1A,4,4
	.comm	IGA1,4,4
	.comm	CR6A,4,4
	.comm	BIT7,4,4
	.comm	BIT6,4,4
	.comm	BIT0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
