	.file	"extr_atyfb_base.c_correct_chipset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s [0x%04x rev 0x%02x]\n"
	.text
	.p2align 4
	.type	correct_chipset, @function
correct_chipset:
.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
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR aty_chips[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, eax
	sub	esi, 1
	js	.L2
	mov	rdi, QWORD PTR aty_chips[rip]
	movsx	rdx, esi
	cdqe
	mov	esi, esi
	lea	rax, [rax+rax*4]
	lea	rsi, [rsi+rsi*4]
	mov	rcx, QWORD PTR 0[rbp]
	lea	rdx, [rdx+rdx*4]
	lea	rax, -80[rdi+rax*8]
	sal	rsi, 3
	lea	rdx, [rdi+rdx*8]
	sub	rax, rsi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	sub	rdx, 40
	cmp	rdx, rax
	je	.L2
.L4:
	cmp	rcx, QWORD PTR [rdx]
	jne	.L9
	mov	eax, DWORD PTR 16[rdx]
	mov	r12, QWORD PTR 8[rdx]
	mov	rsi, rbp
	mov	edi, DWORD PTR CNFG_CHIP_ID[rip]
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR 20[rdx]
	mov	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR 24[rdx]
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR 28[rdx]
	mov	DWORD PTR 28[rbp], eax
	mov	rax, QWORD PTR 32[rdx]
	mov	QWORD PTR 8[rbp], rax
	call	aty_ld_le32@PLT
	mov	ecx, DWORD PTR CFG_CHIP_REV[rip]
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	and	ecx, eax
	and	eax, DWORD PTR CFG_CHIP_TYPE[rip]
	sar	ecx, 24
	mov	edx, eax
	call	PRINTKI@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	correct_chipset, .-correct_chipset
	.comm	aty_chips,8,8
	.comm	M64F_MAGIC_POSTDIV,8,8
	.comm	ENODEV,4,4
	.comm	CNFG_CHIP_ID,4,4
	.comm	CFG_CHIP_TYPE,4,4
	.comm	CFG_CHIP_REV,4,4
	.comm	ATI_CHIP_264VTB,8,8
	.comm	ATI_CHIP_264VT3,8,8
	.comm	ATI_CHIP_264VT,8,8
	.comm	ATI_CHIP_264GTB,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_atyfb_base.c_correct_chipset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s [0x%04x rev 0x%02x]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	correct_chipset, %function
correct_chipset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L10
	mov	r4, r0
	ldr	r0, [r5]
	bl	ARRAY_SIZE
	subs	r3, r0, #1
	bmi	.L2
	ldr	ip, [r5]
	rsb	r2, r3, r3, lsl #3
	ldr	lr, [r4]
	add	r2, ip, r2, lsl #2
	b	.L4
.L9:
	cmn	r3, #1
	sub	r2, r2, #28
	beq	.L2
.L4:
	ldr	ip, [r2]
	sub	r3, r3, #1
	cmp	lr, ip
	bne	.L9
	ldr	r3, [r2, #12]
	ldr	ip, [r2, #8]
	ldr	r5, [r2, #4]
	ldr	r0, [r2, #16]
	ldr	r1, [r2, #20]
	ldr	r2, [r2, #24]
	str	r3, [r4, #12]
	ldr	r3, .L10+4
	str	ip, [r4, #8]
	str	r0, [r4, #16]
	str	r1, [r4, #20]
	str	r2, [r4, #4]
	mov	r1, r4
	ldr	r0, [r3]
	bl	aty_ld_le32
	ldr	r3, .L10+8
	ldr	r2, .L10+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	and	r3, r3, r0
	and	r2, r2, r0
	mov	r1, r5
	asr	r3, r3, #24
	ldr	r0, .L10+16
	bl	PRINTKI
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L10+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	aty_chips
	.word	CNFG_CHIP_ID
	.word	CFG_CHIP_REV
	.word	CFG_CHIP_TYPE
	.word	.LC0
	.word	ENODEV
	.size	correct_chipset, .-correct_chipset
	.comm	aty_chips,4,4
	.comm	M64F_MAGIC_POSTDIV,4,4
	.comm	ENODEV,4,4
	.comm	CNFG_CHIP_ID,4,4
	.comm	CFG_CHIP_TYPE,4,4
	.comm	CFG_CHIP_REV,4,4
	.comm	ATI_CHIP_264VTB,4,4
	.comm	ATI_CHIP_264VT3,4,4
	.comm	ATI_CHIP_264VT,4,4
	.comm	ATI_CHIP_264GTB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
