	.file	"extr_sisusb_init.c_SiS_SetATTRegs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	SiS_SetATTRegs, @function
SiS_SetATTRegs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movzx	r13d, si
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	sal	r13, 3
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	rax, QWORD PTR [rax+r13]
	movzx	r12d, BYTE PTR [rax+rbx]
	call	SiS_GetRegByte@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, ebx
	mov	rdi, rbp
	add	rbx, 1
	call	SiS_SetRegByte@PLT
	mov	esi, DWORD PTR 4[rbp]
	movzx	edx, r12b
	mov	rdi, rbp
	call	SiS_SetRegByte@PLT
	cmp	rbx, 20
	jne	.L2
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rbp
	call	SiS_GetRegByte@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, rbp
	mov	edx, 20
	call	SiS_SetRegByte@PLT
	mov	esi, DWORD PTR 4[rbp]
	xor	edx, edx
	mov	rdi, rbp
	call	SiS_SetRegByte@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rbp
	call	SiS_GetRegByte@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, rbp
	mov	edx, 32
	call	SiS_SetRegByte@PLT
	mov	esi, DWORD PTR 0[rbp]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	SiS_GetRegByte@PLT
	.cfi_endproc
.LFE0:
	.size	SiS_SetATTRegs, .-SiS_SetATTRegs
	.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_sisusb_init.c_SiS_SetATTRegs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SiS_SetATTRegs, %function
SiS_SetATTRegs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, #0
	lsl	r7, r1, #2
.L2:
	ldr	r3, [r4, #8]
	ldr	r1, [r4]
	ldr	r3, [r3, r7]
	mov	r0, r4
	ldrb	r6, [r3, r5]	@ zero_extendqisi2
	bl	SiS_GetRegByte
	mov	r2, r5
	ldr	r1, [r4, #4]
	mov	r0, r4
	bl	SiS_SetRegByte
	add	r5, r5, #1
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r4, #4]
	bl	SiS_SetRegByte
	cmp	r5, #20
	bne	.L2
	ldr	r1, [r4]
	mov	r0, r4
	bl	SiS_GetRegByte
	mov	r2, r5
	ldr	r1, [r4, #4]
	mov	r0, r4
	bl	SiS_SetRegByte
	mov	r2, #0
	ldr	r1, [r4, #4]
	mov	r0, r4
	bl	SiS_SetRegByte
	ldr	r1, [r4]
	mov	r0, r4
	bl	SiS_GetRegByte
	ldr	r1, [r4, #4]
	mov	r0, r4
	mov	r2, #32
	bl	SiS_SetRegByte
	mov	r0, r4
	ldr	r1, [r4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	SiS_GetRegByte
	.size	SiS_SetATTRegs, .-SiS_SetATTRegs
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
