	.file	"extr_sprom.c_bcma_sprom_ext_available.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bcma_sprom_ext_available, @function
bcma_sprom_ext_available:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	rdi, QWORD PTR 16[rdi]
	cmp	DWORD PTR [rdi], 30
	jle	.L2
	mov	eax, DWORD PTR 8[rbx]
	and	eax, DWORD PTR BCMA_CC_CAP_SPROM[rip]
	jne	.L12
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR BCMA_CC_SROM_CONTROL[rip]
	call	bcma_read32@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	and	eax, DWORD PTR BCMA_CC_SROM_CONTROL_PRESENT[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR BCMA_CC_CHIPSTAT[rip]
	call	bcma_read32@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	edx, eax
	cmp	ecx, 128
	je	.L4
	mov	eax, 1
	cmp	ecx, 129
	jne	.L1
	mov	eax, DWORD PTR BCMA_CC_CHIPST_4313_SPROM_PRESENT[rip]
	and	eax, edx
.L13:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR BCMA_CC_CHIPST_4331_SPROM_PRESENT[rip]
	and	eax, edx
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	bcma_sprom_ext_available, .-bcma_sprom_ext_available
	.comm	BCMA_CC_SROM_CONTROL_PRESENT,4,4
	.comm	BCMA_CC_SROM_CONTROL,4,4
	.comm	BCMA_CC_CHIPST_4331_SPROM_PRESENT,4,4
	.comm	BCMA_CC_CHIPST_4313_SPROM_PRESENT,4,4
	.comm	BCMA_CC_CHIPSTAT,4,4
	.comm	BCMA_CC_CAP_SPROM,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_sprom.c_bcma_sprom_ext_available.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcma_sprom_ext_available, %function
bcma_sprom_ext_available:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #8]
	push	{r4, lr}
	ldr	r3, [r2]
	mov	r4, r0
	cmp	r3, #30
	ble	.L2
	ldr	r1, .L12
	ldr	r3, [r0, #4]
	ldr	r0, [r1]
	ands	r0, r3, r0
	popeq	{r4, pc}
	ldr	r3, .L12+4
	mov	r0, r2
	ldr	r1, [r3]
	bl	bcma_read32
	ldr	r3, .L12+8
	ldr	r3, [r3]
	and	r0, r0, r3
	pop	{r4, pc}
.L2:
	ldr	r3, .L12+12
	mov	r0, r2
	ldr	r1, [r3]
	bl	bcma_read32
	ldr	r3, [r4]
	cmp	r3, #128
	beq	.L4
	cmp	r3, #129
	bne	.L6
	ldr	r3, .L12+16
	ldr	r3, [r3]
	and	r0, r0, r3
	pop	{r4, pc}
.L6:
	mov	r0, #1
	pop	{r4, pc}
.L4:
	ldr	r3, .L12+20
	ldr	r3, [r3]
	and	r0, r0, r3
	pop	{r4, pc}
.L13:
	.align	2
.L12:
	.word	BCMA_CC_CAP_SPROM
	.word	BCMA_CC_SROM_CONTROL
	.word	BCMA_CC_SROM_CONTROL_PRESENT
	.word	BCMA_CC_CHIPSTAT
	.word	BCMA_CC_CHIPST_4313_SPROM_PRESENT
	.word	BCMA_CC_CHIPST_4331_SPROM_PRESENT
	.size	bcma_sprom_ext_available, .-bcma_sprom_ext_available
	.comm	BCMA_CC_SROM_CONTROL_PRESENT,4,4
	.comm	BCMA_CC_SROM_CONTROL,4,4
	.comm	BCMA_CC_CHIPST_4331_SPROM_PRESENT,4,4
	.comm	BCMA_CC_CHIPST_4313_SPROM_PRESENT,4,4
	.comm	BCMA_CC_CHIPSTAT,4,4
	.comm	BCMA_CC_CAP_SPROM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
