	.file	"extr_mach64_gx.c_aty_set_dac_ATI68860_B.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aty_set_dac_ATI68860_B, @function
aty_set_dac_ATI68860_B:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	sub	edx, 8
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 8[rdi]
	cmp	edx, 24
	ja	.L5
	lea	rax, CSWTCH.22[rip]
	mov	r13d, DWORD PTR [rax+rdx*4]
	lea	rax, CSWTCH.23[rip]
	mov	ebx, DWORD PTR [rax+rdx*4]
.L2:
	test	ecx, ecx
	mov	rdi, QWORD PTR DAC_CNTL[rip]
	mov	eax, 97
	mov	rsi, r12
	cmove	ebx, eax
	mov	eax, 128
	cmove	r13d, eax
	call	aty_ld_8@PLT
	mov	esi, DWORD PTR DAC_EXT_SEL_RS2[rip]
	mov	rdi, QWORD PTR DAC_CNTL[rip]
	mov	rdx, r12
	not	esi
	and	esi, eax
	or	esi, DWORD PTR DAC_EXT_SEL_RS3[rip]
	call	aty_st_8@PLT
	mov	rax, QWORD PTR DAC_REGS[rip]
	mov	rdx, r12
	mov	esi, 29
	lea	rdi, 2[rax]
	call	aty_st_8@PLT
	mov	rax, QWORD PTR DAC_REGS[rip]
	mov	esi, r13d
	mov	rdx, r12
	mov	r13d, 4
	lea	rdi, 3[rax]
	call	aty_st_8@PLT
	mov	rdi, QWORD PTR DAC_REGS[rip]
	mov	rdx, r12
	mov	esi, 2
	call	aty_st_8@PLT
	mov	rdi, QWORD PTR DAC_CNTL[rip]
	mov	rsi, r12
	call	aty_ld_8@PLT
	mov	esi, DWORD PTR DAC_EXT_SEL_RS2[rip]
	mov	rdi, QWORD PTR DAC_CNTL[rip]
	mov	rdx, r12
	or	esi, DWORD PTR DAC_EXT_SEL_RS3[rip]
	or	esi, eax
	call	aty_st_8@PLT
	mov	rax, QWORD PTR ONE_MB[rip]
	cmp	QWORD PTR 0[rbp], rax
	jl	.L4
	setne	r13b
	movzx	r13d, r13b
	lea	r13d, 8[0+r13*4]
.L4:
	mov	rdi, QWORD PTR DAC_REGS[rip]
	mov	rsi, r12
	or	ebx, r13d
	call	aty_ld_8@PLT
	mov	rdi, QWORD PTR DAC_REGS[rip]
	mov	rdx, r12
	and	eax, 128
	mov	esi, eax
	or	esi, ebx
	call	aty_st_8@PLT
	mov	rdi, QWORD PTR DAC_CNTL[rip]
	mov	rsi, r12
	call	aty_ld_8@PLT
	mov	esi, DWORD PTR DAC_EXT_SEL_RS2[rip]
	or	esi, DWORD PTR DAC_EXT_SEL_RS3[rip]
	mov	rdx, r12
	mov	rdi, QWORD PTR DAC_CNTL[rip]
	not	esi
	and	esi, eax
	call	aty_st_8@PLT
	mov	rdi, QWORD PTR BUS_CNTL[rip]
	mov	rdx, r12
	mov	esi, -1995562767
	call	aty_st_le32@PLT
	mov	rdi, QWORD PTR DAC_CNTL[rip]
	mov	rdx, r12
	mov	esi, 1191518464
	call	aty_st_le32@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	ebx, ebx
	xor	r13d, r13d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	aty_set_dac_ATI68860_B, .-aty_set_dac_ATI68860_B
	.section	.rodata
	.align 32
	.type	CSWTCH.23, @object
	.size	CSWTCH.23, 100
CSWTCH.23:
	.long	96
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	96
	.long	96
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	96
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	96
	.align 32
	.type	CSWTCH.22, @object
	.size	CSWTCH.22, 100
CSWTCH.22:
	.long	131
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	160
	.long	161
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	192
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	227
	.comm	ONE_MB,8,8
	.comm	DAC_REGS,8,8
	.comm	DAC_EXT_SEL_RS3,4,4
	.comm	DAC_EXT_SEL_RS2,4,4
	.comm	DAC_CNTL,8,8
	.comm	BUS_CNTL,8,8
	.comm	A860_DELAY_L,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_mach64_gx.c_aty_set_dac_ATI68860_B.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aty_set_dac_ATI68860_B, %function
aty_set_dac_ATI68860_B:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	sub	r2, r2, #8
	cmp	r2, #24
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	movhi	r6, #0
	ldrls	r1, .L11
	ldr	r4, [r0, #4]
	ldr	r5, .L11+4
	mov	r8, r0
	addls	r0, r1, r2, lsl #2
	ldrls	fp, [r1, r2, lsl #2]
	movhi	fp, r6
	ldrls	r6, [r0, #100]
	mov	r1, r4
	cmp	r3, #0
	ldr	r0, [r5]
	moveq	fp, #128
	moveq	r6, #97
	bl	aty_ld_8
	ldr	r10, .L11+8
	ldr	r9, .L11+12
	ldr	r3, [r10]
	ldr	r1, [r9]
	bic	r0, r0, r3
	ldr	r7, .L11+16
	orr	r1, r0, r1
	mov	r2, r4
	ldr	r0, [r5]
	bl	aty_st_8
	ldr	r0, [r7]
	mov	r2, r4
	mov	r1, #29
	add	r0, r0, #2
	bl	aty_st_8
	ldr	r0, [r7]
	mov	r1, fp
	mov	r2, r4
	add	r0, r0, #3
	bl	aty_st_8
	mov	r2, r4
	mov	r1, #2
	ldr	r0, [r7]
	bl	aty_st_8
	mov	r1, r4
	ldr	r0, [r5]
	bl	aty_ld_8
	mov	r1, r0
	ldr	r2, [r9]
	ldr	r3, [r10]
	ldr	r0, [r5]
	orr	r3, r3, r2
	orr	r1, r3, r1
	mov	r2, r4
	bl	aty_st_8
	ldr	r3, .L11+20
	ldr	r2, [r8]
	ldr	r3, [r3]
	cmp	r2, r3
	movlt	r8, #4
	blt	.L4
	movne	r8, #12
	beq	.L10
.L4:
	mov	r1, r4
	ldr	r0, [r7]
	bl	aty_ld_8
	orr	r6, r6, r8
	and	r1, r0, #128
	mov	r2, r4
	orr	r1, r6, r1
	ldr	r0, [r7]
	bl	aty_st_8
	mov	r1, r4
	ldr	r0, [r5]
	bl	aty_ld_8
	ldr	r3, [r10]
	ldr	r1, [r9]
	mov	r2, r4
	orr	r1, r3, r1
	bic	r1, r0, r1
	ldr	r0, [r5]
	bl	aty_st_8
	ldr	r3, .L11+24
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L11+28
	bl	aty_st_le32
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L11+32
	bl	aty_st_le32
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r8, #8
	b	.L4
.L12:
	.align	2
.L11:
	.word	.LANCHOR0
	.word	DAC_CNTL
	.word	DAC_EXT_SEL_RS2
	.word	DAC_EXT_SEL_RS3
	.word	DAC_REGS
	.word	ONE_MB
	.word	BUS_CNTL
	.word	-1995562767
	.word	1191518464
	.size	aty_set_dac_ATI68860_B, .-aty_set_dac_ATI68860_B
	.comm	ONE_MB,4,4
	.comm	DAC_REGS,4,4
	.comm	DAC_EXT_SEL_RS3,4,4
	.comm	DAC_EXT_SEL_RS2,4,4
	.comm	DAC_CNTL,4,4
	.comm	BUS_CNTL,4,4
	.comm	A860_DELAY_L,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	CSWTCH.22, %object
	.size	CSWTCH.22, 100
CSWTCH.22:
	.word	131
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	160
	.word	161
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	192
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	227
	.type	CSWTCH.23, %object
	.size	CSWTCH.23, 100
CSWTCH.23:
	.word	96
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	96
	.word	96
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	96
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	96
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
