	.file	"extr_init301.c_SiS_SetCRT2Offset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	SiS_SetCRT2Offset, @function
SiS_SetCRT2Offset:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR SetInSlaveMode[rip], eax
	je	.L9
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movzx	ecx, cx
	movzx	edx, dx
	movzx	esi, si
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	SiS_GetOffset@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, 7
	mov	ebp, eax
	movzx	edx, al
	call	SiS_SetReg@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	eax, ebp
	mov	esi, 9
	movzx	edx, ah
	call	SiS_SetReg@PLT
	mov	eax, ebp
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, 3
	shr	ax, 3
	and	ebp, 7
	setne	dl
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	edx, 1[rdx+rax]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	movzx	edx, dl
	jmp	SiS_SetReg@PLT
	.cfi_endproc
.LFE0:
	.size	SiS_SetCRT2Offset, .-SiS_SetCRT2Offset
	.comm	SetInSlaveMode,4,4
	.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_init301.c_SiS_SetCRT2Offset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SiS_SetCRT2Offset, %function
SiS_SetCRT2Offset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L7
	push	{r4, r5, r6, lr}
	ldr	ip, [ip]
	ldr	lr, [r0]
	tst	lr, ip
	popne	{r4, r5, r6, pc}
	mov	r5, r0
	bl	SiS_GetOffset
	mov	r4, r0
	and	r2, r0, #255
	mov	r1, #7
	ldr	r0, [r5, #4]
	bl	SiS_SetReg
	lsr	r2, r4, #8
	mov	r1, #9
	ldr	r0, [r5, #4]
	and	r2, r2, #255
	bl	SiS_SetReg
	lsr	r2, r4, #3
	tst	r4, #7
	and	r2, r2, #255
	addeq	r2, r2, #1
	addne	r2, r2, #2
	ldr	r0, [r5, #4]
	mov	r1, #3
	pop	{r4, r5, r6, lr}
	and	r2, r2, #255
	b	SiS_SetReg
.L8:
	.align	2
.L7:
	.word	SetInSlaveMode
	.size	SiS_SetCRT2Offset, .-SiS_SetCRT2Offset
	.comm	SetInSlaveMode,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
