	.file	"extr_dc21285.c_dc21285_read_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dc21285_read_config, @function
dc21285_read_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, ecx
	call	dc21285_base_address@PLT
	mov	edx, -1
	test	rax, rax
	je	.L2
	cmp	ebx, 2
	je	.L3
	cmp	ebx, 4
	je	.L4
	cmp	ebx, 1
	je	.L12
.L2:
	mov	DWORD PTR 0[rbp], edx
	mov	rdx, QWORD PTR CSR_PCICMD[rip]
	mov	eax, DWORD PTR PCICMD_ABORT[rip]
	mov	ecx, DWORD PTR [rdx]
	test	eax, ecx
	jne	.L13
	mov	eax, DWORD PTR PCIBIOS_SUCCESSFUL[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
#APP
# 32 "data/linux/arch/arm/mach-footbridge/extr_dc21285.c_dc21285_read_config.c" 1
	ldrb	edx, [rax, r12d]
# 0 "" 2
#NO_APP
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
#APP
# 40 "data/linux/arch/arm/mach-footbridge/extr_dc21285.c_dc21285_read_config.c" 1
	ldr	eax, [rax, r12d]
# 0 "" 2
#NO_APP
	mov	edx, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
#APP
# 36 "data/linux/arch/arm/mach-footbridge/extr_dc21285.c_dc21285_read_config.c" 1
	ldrh	eax, [rax, r12d]
# 0 "" 2
#NO_APP
	mov	edx, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	or	eax, 65535
	and	eax, ecx
	mov	DWORD PTR [rdx], eax
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	dc21285_read_config, .-dc21285_read_config
	.comm	PCICMD_ABORT,4,4
	.comm	PCIBIOS_SUCCESSFUL,4,4
	.comm	CSR_PCICMD,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_dc21285.c_dc21285_read_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dc21285_read_config, %function
dc21285_read_config:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [sp, #16]
	mov	r6, r2
	mov	r4, r3
	bl	dc21285_base_address
	cmp	r0, #0
	beq	.L8
	cmp	r4, #2
	beq	.L3
	cmp	r4, #4
	beq	.L4
	.syntax divided
@ 32 "data/linux/arch/arm/mach-footbridge/extr_dc21285.c_dc21285_read_config.c" 1
	ldrb	r0, [r0, r6]
@ 0 "" 2
	.arm
	.syntax unified
	cmp	r4, #1
	beq	.L2
.L8:
	mvn	r0, #0
.L2:
	ldr	r2, .L11
	ldr	r3, .L11+4
	ldr	r2, [r2]
	str	r0, [r5]
	ldr	r3, [r3]
	ldr	r1, [r2]
	tst	r3, r1
	mvnne	r3, r3, lsr #16
	mvnne	r3, r3, lsl #16
	ldreq	r3, .L11+8
	andne	r3, r3, r1
	mvnne	r0, #0
	strne	r3, [r2]
	ldreq	r0, [r3]
	pop	{r4, r5, r6, pc}
.L4:
	.syntax divided
@ 40 "data/linux/arch/arm/mach-footbridge/extr_dc21285.c_dc21285_read_config.c" 1
	ldr	r0, [r0, r6]
@ 0 "" 2
	.arm
	.syntax unified
	b	.L2
.L3:
	.syntax divided
@ 36 "data/linux/arch/arm/mach-footbridge/extr_dc21285.c_dc21285_read_config.c" 1
	ldrh	r0, [r0, r6]
@ 0 "" 2
	.arm
	.syntax unified
	b	.L2
.L12:
	.align	2
.L11:
	.word	CSR_PCICMD
	.word	PCICMD_ABORT
	.word	PCIBIOS_SUCCESSFUL
	.size	dc21285_read_config, .-dc21285_read_config
	.comm	PCICMD_ABORT,4,4
	.comm	PCIBIOS_SUCCESSFUL,4,4
	.comm	CSR_PCICMD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
