	.file	"extr_main.c_brcms_b_attach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"wl%d: vendor 0x%x device 0x%x\n"
	.align 8
.LC1:
	.string	"wl%d: brcms_b_attach: si_attach failed\n"
	.align 8
.LC2:
	.string	"wl%d: brcms_b_attach: Unsupported device\n"
	.align 8
.LC3:
	.string	"wl%d: brcms_b_attach: validate_chip_access failed\n"
	.align 8
.LC4:
	.string	"wl%d: brcms_b_attach: Unsupported Broadcom board type (0x%x) or revision level (0x%x)\n"
	.align 8
.LC5:
	.string	"wl%d: brcms_b_attach: wlc_phy_shim_attach failed\n"
	.align 8
.LC6:
	.string	"wl%d: brcms_b_attach: wlc_phy_attach failed\n"
	.align 8
.LC7:
	.string	"wl%d: brcms_b_attach: unsupported phy type/rev (%d/%d)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC8:
	.string	"wl%d: phy %u/%u radio %x/%u\n"
	.section	.rodata.str1.8
	.align 8
.LC9:
	.string	"wl%d: brcms_b_attach: bad macaddr\n"
	.align 8
.LC10:
	.string	"deviceid 0x%x nbands %d board 0x%x\n"
	.align 8
.LC11:
	.string	"wl%d: brcms_b_attach: failed with err %d\n"
	.text
	.p2align 4
	.type	brcms_b_attach, @function
brcms_b_attach:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 136
	.cfi_def_cfa_offset 192
	mov	r12, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 24[rdi]
	mov	DWORD PTR 12[rsp], ecx
	mov	r15, QWORD PTR 56[r12]
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR BCMA_HOSTTYPE_PCI[rip]
	cmp	QWORD PTR [r12], rax
	je	.L53
	mov	ecx, DWORD PTR 8[r12]
	mov	r8, QWORD PTR 16[r12]
.L51:
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	brcms_dbg_info@PLT
	mov	r14, QWORD PTR 56[rbx]
	mov	r9d, DWORD PTR 12[rsp]
	mov	rax, QWORD PTR 128[r14]
	mov	QWORD PTR 136[r14], rbx
	mov	rdi, r14
	mov	DWORD PTR [r14], r13d
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 4[r14], r9d
	mov	QWORD PTR 64[r14], rax
	call	brcms_b_info_init@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	ai_attach@PLT
	mov	QWORD PTR 40[r14], rax
	test	rax, rax
	je	.L54
	mov	rdi, rbp
	call	brcms_c_chipmatch@PLT
	test	eax, eax
	je	.L55
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR BCMA_HOSTTYPE_PCI[rip]
	cmp	QWORD PTR [rax], rsi
	je	.L56
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	DWORD PTR 8[r14], edx
	mov	QWORD PTR 16[r14], rax
.L8:
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 48[r14], rbp
	mov	rdi, r14
	mov	r15d, 13
	mov	QWORD PTR 24[r14], rax
	call	brcms_c_isgoodchip@PLT
	test	eax, eax
	je	.L5
	mov	rdi, QWORD PTR 40[r14]
	call	ai_clkctl_init@PLT
	mov	esi, DWORD PTR BCMA_CLKMODE_FAST[rip]
	mov	rdi, r14
	call	brcms_b_clkctl_clk@PLT
	mov	esi, DWORD PTR BRCMS_USE_COREFLAGS[rip]
	mov	rdi, r14
	call	brcms_b_corereset@PLT
	mov	rdi, r14
	call	brcms_b_validate_chip_access@PLT
	test	eax, eax
	je	.L57
	movsx	rax, DWORD PTR 24[r12]
	cmp	DWORD PTR BOARDREV_PROMOTABLE[rip], eax
	je	.L58
.L10:
	mov	QWORD PTR 104[r14], rax
	mov	rdi, r14
	call	brcms_c_validboardtype@PLT
	test	eax, eax
	je	.L59
	mov	eax, DWORD PTR 48[r12]
	mov	edx, DWORD PTR 32[r12]
	mov	DWORD PTR 112[r14], eax
	mov	eax, DWORD PTR 36[r12]
	sal	edx, 16
	add	edx, DWORD PTR 28[r12]
	sal	eax, 16
	mov	DWORD PTR 32[r14], edx
	cdqe
	add	rax, QWORD PTR 40[r12]
	mov	QWORD PTR 96[r14], rax
	test	DWORD PTR BFL_NOPLLDOWN[rip], edx
	jne	.L60
.L12:
	mov	rdx, QWORD PTR 16[r14]
	cmp	rdx, QWORD PTR BCM43224_D11N_ID[rip]
	mov	eax, 2
	je	.L13
	cmp	rdx, QWORD PTR BCM43224_D11N_ID_VEN1[rip]
	je	.L13
	xor	eax, eax
	cmp	rdx, QWORD PTR BCM43224_CHIP_ID[rip]
	sete	al
	add	eax, 1
.L13:
	mov	DWORD PTR 36[r14], eax
	mov	rdi, QWORD PTR 40[r14]
	call	ai_get_chip_id@PLT
	cmp	rax, QWORD PTR BCMA_CHIP_ID_BCM43225[rip]
	je	.L14
	mov	edx, DWORD PTR 36[r14]
.L15:
	mov	eax, DWORD PTR 8[r14]
	mov	rcx, QWORD PTR 40[r14]
	mov	rdi, r14
	mov	esi, DWORD PTR 40[rbx]
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 16[r14]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 48[rbx]
	mov	QWORD PTR 40[rax], rcx
	mov	rcx, QWORD PTR 24[r14]
	mov	QWORD PTR [rax], rcx
	mov	ecx, DWORD PTR 112[r14]
	mov	DWORD PTR 32[rax], ecx
	mov	rcx, QWORD PTR 104[r14]
	mov	QWORD PTR 24[rax], rcx
	mov	ecx, DWORD PTR 32[r14]
	mov	DWORD PTR 8[rax], ecx
	mov	rcx, QWORD PTR 96[r14]
	mov	DWORD PTR 12[rax], edx
	mov	rdx, rbx
	mov	QWORD PTR 16[rax], rcx
	call	wlc_phy_shim_attach@PLT
	mov	QWORD PTR 120[r14], rax
	test	rax, rax
	je	.L61
	mov	rdi, QWORD PTR 40[r14]
	mov	QWORD PTR 104[rsp], rax
	mov	rax, QWORD PTR 24[r14]
	mov	DWORD PTR 16[rsp], r13d
	mov	QWORD PTR 112[rsp], rdi
	mov	QWORD PTR 24[rsp], rax
	mov	eax, DWORD PTR 8[r14]
	mov	DWORD PTR 32[rsp], eax
	mov	rax, QWORD PTR 16[r14]
	mov	QWORD PTR 40[rsp], rax
	call	ai_get_chip_id@PLT
	mov	rdi, QWORD PTR 40[r14]
	mov	QWORD PTR 96[rsp], rax
	call	ai_get_chiprev@PLT
	mov	rdi, QWORD PTR 40[r14]
	mov	DWORD PTR 88[rsp], eax
	call	ai_get_chippkg@PLT
	mov	rdi, QWORD PTR 40[r14]
	mov	DWORD PTR 84[rsp], eax
	mov	eax, DWORD PTR 112[r14]
	mov	DWORD PTR 80[rsp], eax
	call	ai_get_boardtype@PLT
	lea	rdi, 16[rsp]
	mov	QWORD PTR 48[rsp], rax
	mov	rax, QWORD PTR 104[r14]
	mov	QWORD PTR 72[rsp], rax
	mov	eax, DWORD PTR 32[r14]
	mov	DWORD PTR 56[rsp], eax
	mov	rax, QWORD PTR 96[r14]
	mov	QWORD PTR 64[rsp], rax
	call	wlc_phy_shared_attach@PLT
	mov	DWORD PTR 76[r14], eax
	test	eax, eax
	je	.L34
	mov	edi, DWORD PTR 36[r14]
	test	edi, edi
	jle	.L27
	xor	r12d, r12d
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L64:
	mov	rax, QWORD PTR 64[r14]
	mov	rdi, QWORD PTR 24[rax]
	call	NCONF_HAS@PLT
	test	rax, rax
	je	.L26
.L25:
	mov	rdx, QWORD PTR 64[r14]
	mov	rax, QWORD PTR 16[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 200
	mov	rdi, rbp
	lea	rsi, .LC8[rip]
	mov	rcx, QWORD PTR 40[rdx]
	mov	r8, QWORD PTR 24[rdx]
	mov	r9d, DWORD PTR 16[rdx]
	mov	QWORD PTR 32[rax], rcx
	mov	ecx, DWORD PTR 32[rdx]
	mov	edx, DWORD PTR 12[rdx]
	mov	QWORD PTR 16[rax], r8
	mov	DWORD PTR 24[rax], ecx
	mov	DWORD PTR 8[rax], r9d
	mov	DWORD PTR 4[rax], edx
	xor	eax, eax
	push	rdx
	.cfi_def_cfa_offset 208
	mov	edx, r13d
	call	brcms_dbg_info@PLT
	mov	rax, QWORD PTR 64[r14]
	mov	esi, r12d
	mov	rdi, rbx
	mov	edx, DWORD PTR APHY_CWMIN[rip]
	mov	DWORD PTR 8[rax], edx
	mov	edx, DWORD PTR PHY_CWMAX[rip]
	mov	DWORD PTR 4[rax], edx
	mov	edx, 1
	call	brcms_b_attach_dmapio@PLT
	pop	rdx
	.cfi_def_cfa_offset 200
	pop	rcx
	.cfi_def_cfa_offset 192
	test	eax, eax
	je	.L37
	add	r12d, 1
	cmp	DWORD PTR 36[r14], r12d
	jle	.L27
.L17:
	mov	esi, r12d
	mov	rdi, r14
	call	brcms_c_setxband@PLT
	mov	rdx, QWORD PTR 64[r14]
	mov	rax, QWORD PTR BRCM_BAND_5G[rip]
	test	r12d, r12d
	cmove	rax, QWORD PTR BRCM_BAND_2G[rip]
	mov	DWORD PTR [rdx], r12d
	mov	QWORD PTR 64[rdx], rax
	mov	rdx, QWORD PTR 16[rbx]
	mov	QWORD PTR 48[rdx], rax
	mov	rax, QWORD PTR 32[rbx]
	mov	DWORD PTR [rdx], r12d
	mov	edx, DWORD PTR 8[rbp]
	mov	DWORD PTR [rax], edx
	mov	edi, DWORD PTR machwcap[rip]
	call	D11REGOFFS@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	bcma_read32@PLT
	mov	r15, QWORD PTR 24[r14]
	mov	edi, 1
	mov	DWORD PTR 72[r14], eax
	mov	DWORD PTR 88[r14], eax
	mov	rax, QWORD PTR XMTFIFOTBL_STARTREV[rip]
	cmp	r15, rax
	jge	.L62
.L22:
	call	WARN_ON@PLT
	mov	rdx, QWORD PTR xmtfifo_sz[rip]
	mov	rax, QWORD PTR 24[r14]
	xor	edi, edi
	sub	rax, QWORD PTR XMTFIFOTBL_STARTREV[rip]
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	esi, DWORD PTR [rax]
	mov	QWORD PTR 80[r14], rax
	test	esi, esi
	sete	dil
	call	WARN_ON@PLT
	mov	r15, QWORD PTR 64[r14]
	mov	edi, DWORD PTR 76[r14]
	mov	rsi, rbp
	mov	rcx, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR 64[r15]
	call	wlc_phy_attach@PLT
	mov	QWORD PTR 40[r15], rax
	mov	rax, QWORD PTR 64[r14]
	mov	rdi, QWORD PTR 40[rax]
	test	rdi, rdi
	je	.L63
	mov	esi, DWORD PTR 72[r14]
	call	wlc_phy_machwcap_set@PLT
	mov	rax, QWORD PTR 64[r14]
	mov	rdi, QWORD PTR 40[rax]
	lea	rcx, 16[rax]
	lea	rdx, 24[rax]
	lea	rsi, 32[rax]
	lea	r8, 12[rax]
	call	wlc_phy_get_phyversion@PLT
	mov	r15, QWORD PTR 64[r14]
	mov	rdi, QWORD PTR 40[r15]
	call	wlc_phy_get_encore@PLT
	mov	QWORD PTR 56[r15], rax
	mov	rax, QWORD PTR 64[r14]
	mov	r15, QWORD PTR 16[rbx]
	mov	rdi, QWORD PTR 40[rax]
	call	wlc_phy_get_encore@PLT
	mov	QWORD PTR 40[r15], rax
	mov	r15, QWORD PTR 64[r14]
	mov	rdi, QWORD PTR 40[r15]
	call	wlc_phy_get_coreflags@PLT
	mov	rdi, QWORD PTR 64[r14]
	mov	DWORD PTR 48[r15], eax
	call	BRCMS_ISNPHY@PLT
	test	rax, rax
	jne	.L64
	mov	rdi, QWORD PTR 64[r14]
	call	BRCMS_ISLCNPHY@PLT
	test	rax, rax
	je	.L26
	mov	rax, QWORD PTR 64[r14]
	mov	rdi, QWORD PTR 24[rax]
	call	LCNCONF_HAS@PLT
	test	rax, rax
	jne	.L25
.L26:
	mov	rax, QWORD PTR 64[r14]
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r13d
	lea	rsi, .LC7[rip]
	mov	r15d, 18
	mov	ecx, DWORD PTR 32[rax]
	mov	r8, QWORD PTR 24[rax]
	xor	eax, eax
	call	wiphy_err@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR [rsp]
	mov	ecx, r15d
	mov	edx, r13d
	xor	eax, eax
	lea	rsi, .LC11[rip]
	call	wiphy_err@PLT
.L1:
	mov	rax, QWORD PTR 120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L65
	add	rsp, 136
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L56:
	.cfi_restore_state
	mov	eax, DWORD PTR [r15]
	mov	DWORD PTR 8[r14], eax
	mov	rax, QWORD PTR 8[r15]
	mov	QWORD PTR 16[r14], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L53:
	mov	r8, QWORD PTR 8[r15]
	mov	ecx, DWORD PTR [r15]
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L58:
	movsx	rax, DWORD PTR BOARDREV_PROMOTED[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L14:
	mov	DWORD PTR 36[r14], 1
	mov	edx, 1
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L60:
	mov	edx, DWORD PTR BRCMS_PLLREQ_SHARED[rip]
	mov	esi, 1
	mov	rdi, r14
	call	brcms_b_pllreq@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L62:
	mov	rdi, QWORD PTR xmtfifo_sz[rip]
	sub	r15, rax
	call	ARRAY_SIZE@PLT
	xor	edi, edi
	cmp	r15, rax
	setg	dil
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L54:
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r13d
	lea	rsi, .LC1[rip]
	mov	r15d, 11
	call	wiphy_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L55:
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r13d
	lea	rsi, .LC2[rip]
	mov	r15d, 12
	call	wiphy_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L57:
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r13d
	lea	rsi, .LC3[rip]
	mov	r15d, 14
	call	wiphy_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L34:
	mov	r15d, 16
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L59:
	mov	rdi, QWORD PTR 40[r14]
	mov	rbx, QWORD PTR 104[r14]
	mov	r15d, 15
	call	ai_get_boardtype@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	r8, rbx
	mov	edx, r13d
	mov	rcx, rax
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	wiphy_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L61:
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r13d
	lea	rsi, .LC5[rip]
	mov	r15d, 25
	call	wiphy_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, r14
	call	brcms_c_coredisable@PLT
	mov	rax, QWORD PTR 48[r14]
	mov	rdi, QWORD PTR [rax]
	call	bcma_host_pci_down@PLT
	mov	esi, DWORD PTR OFF[rip]
	mov	rdi, r14
	call	brcms_b_xtal@PLT
	mov	esi, DWORD PTR 56[r14]
	mov	rdi, r14
	call	brcms_c_get_macaddr@PLT
	mov	edi, DWORD PTR 56[r14]
	call	is_broadcast_ether_addr@PLT
	test	rax, rax
	jne	.L18
	mov	edi, DWORD PTR 56[r14]
	call	is_zero_ether_addr@PLT
	test	rax, rax
	jne	.L18
	mov	rdi, QWORD PTR 40[r14]
	xor	r15d, r15d
	call	ai_get_boardtype@PLT
	mov	ecx, DWORD PTR 36[r14]
	mov	rdx, QWORD PTR 16[r14]
	lea	rsi, .LC10[rip]
	mov	rdi, QWORD PTR 48[r14]
	mov	r8, rax
	xor	eax, eax
	call	brcms_dbg_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L63:
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r13d
	lea	rsi, .LC6[rip]
	xor	eax, eax
	mov	r15d, 17
	call	wiphy_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L37:
	mov	r15d, 19
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r13d
	lea	rsi, .LC9[rip]
	xor	eax, eax
	mov	r15d, 22
	call	wiphy_err@PLT
	jmp	.L5
.L65:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	brcms_b_attach, .-brcms_b_attach
	.comm	xmtfifo_sz,8,8
	.comm	machwcap,4,4
	.comm	XMTFIFOTBL_STARTREV,8,8
	.comm	PHY_CWMAX,4,4
	.comm	OFF,4,4
	.comm	BRCM_BAND_5G,8,8
	.comm	BRCM_BAND_2G,8,8
	.comm	BRCMS_USE_COREFLAGS,4,4
	.comm	BRCMS_PLLREQ_SHARED,4,4
	.comm	BOARDREV_PROMOTED,4,4
	.comm	BOARDREV_PROMOTABLE,4,4
	.comm	BFL_NOPLLDOWN,4,4
	.comm	BCMA_HOSTTYPE_PCI,8,8
	.comm	BCMA_CLKMODE_FAST,4,4
	.comm	BCMA_CHIP_ID_BCM43225,8,8
	.comm	BCM43224_D11N_ID_VEN1,8,8
	.comm	BCM43224_D11N_ID,8,8
	.comm	BCM43224_CHIP_ID,8,8
	.comm	APHY_CWMIN,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_main.c_brcms_b_attach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wl%d: vendor 0x%x device 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"wl%d: brcms_b_attach: si_attach failed\012\000"
	.align	2
.LC2:
	.ascii	"wl%d: brcms_b_attach: Unsupported device\012\000"
	.align	2
.LC3:
	.ascii	"wl%d: brcms_b_attach: validate_chip_access failed\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"wl%d: brcms_b_attach: Unsupported Broadcom board ty"
	.ascii	"pe (0x%x) or revision level (0x%x)\012\000"
	.align	2
.LC5:
	.ascii	"wl%d: brcms_b_attach: wlc_phy_shim_attach failed\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"wl%d: brcms_b_attach: wlc_phy_attach failed\012\000"
	.align	2
.LC7:
	.ascii	"wl%d: brcms_b_attach: unsupported phy type/rev (%d/"
	.ascii	"%d)\012\000"
	.align	2
.LC8:
	.ascii	"wl%d: phy %u/%u radio %x/%u\012\000"
	.align	2
.LC9:
	.ascii	"wl%d: brcms_b_attach: bad macaddr\012\000"
	.align	2
.LC10:
	.ascii	"deviceid 0x%x nbands %d board 0x%x\012\000"
	.align	2
.LC11:
	.ascii	"wl%d: brcms_b_attach: failed with err %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	brcms_b_attach, %function
brcms_b_attach:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r6, r1
	mov	r7, r2
	mov	r9, r3
	ldr	r8, [r1]
	ldr	r10, .L63
	ldr	r0, [r8]
	ldr	r1, [r10]
	ldr	fp, [r8, #36]
	ldr	r3, .L63+4
	cmp	r0, r1
	sub	sp, sp, #92
	ldreq	r1, [fp, #4]
	ldrne	r1, [r8, #8]
	ldr	r3, [r3]
	str	r3, [sp, #84]
	mov	r3,#0
	ldr	r3, [r5, #12]
	mov	r0, r6
	str	r3, [sp, #16]
	ldreq	r3, [fp]
	ldrne	r3, [r8, #4]
	str	r1, [sp]
	ldr	r1, .L63+8
	bl	brcms_dbg_info
	ldr	r4, [r5, #28]
	ldr	r3, [r4, #76]
	mov	r0, r4
	ldr	r3, [r3]
	str	r5, [r4, #80]
	str	r3, [r4, #40]
	str	r7, [r4]
	str	r9, [r4, #4]
	bl	brcms_b_info_init
	ldr	r0, [r6]
	bl	ai_attach
	cmp	r0, #0
	str	r0, [r4, #28]
	beq	.L51
	mov	r0, r6
	bl	brcms_c_chipmatch
	cmp	r0, #0
	beq	.L52
	ldr	r3, [r6]
	ldr	r2, [r10]
	ldr	r1, [r3]
	mov	r0, r4
	cmp	r1, r2
	ldmeq	fp, {r2, r3}
	ldmibne	r3, {r2, r3}
	str	r3, [r4, #12]
	ldr	r3, [r6, #8]
	str	r2, [r4, #8]
	str	r6, [r4, #32]
	str	r3, [r4, #16]
	bl	brcms_c_isgoodchip
	cmp	r0, #0
	moveq	r5, #13
	bne	.L53
.L5:
	mov	r2, r7
	mov	r3, r5
	ldr	r0, [sp, #16]
	ldr	r1, .L63+12
	bl	wiphy_err
.L1:
	ldr	r3, .L63+4
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L54
	mov	r0, r5
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L53:
	ldr	r0, [r4, #28]
	bl	ai_clkctl_init
	ldr	r3, .L63+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	brcms_b_clkctl_clk
	ldr	r3, .L63+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	brcms_b_corereset
	mov	r0, r4
	bl	brcms_b_validate_chip_access
	cmp	r0, #0
	beq	.L55
	ldr	r2, .L63+24
	ldr	r3, [r8, #12]
	ldr	r2, [r2]
	mov	r0, r4
	cmp	r2, r3
	ldreq	r3, .L63+28
	ldreq	r3, [r3]
	str	r3, [r4, #64]
	bl	brcms_c_validboardtype
	cmp	r0, #0
	beq	.L56
	ldr	r2, [r8, #20]
	ldr	r3, [r8, #16]
	ldr	r1, .L63+32
	ldr	r0, [r8, #24]
	add	r3, r3, r2, lsl #16
	ldr	ip, [r1]
	ldr	r2, [r8, #28]
	ldr	r1, [r8, #32]
	add	r2, r2, r0, lsl #16
	tst	r3, ip
	str	r3, [r4, #20]
	str	r1, [r4, #68]
	str	r2, [r4, #60]
	bne	.L57
.L12:
	ldr	r2, .L63+36
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L32
	ldr	r2, .L63+40
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L32
	ldr	r2, .L63+44
	ldr	r2, [r2]
	cmp	r3, r2
	moveq	r3, #2
	movne	r3, #1
.L13:
	str	r3, [r4, #24]
	ldr	r0, [r4, #28]
	bl	ai_get_chip_id
	ldr	r3, .L63+48
	ldr	r1, [r4, #12]
	ldr	r3, [r3]
	cmp	r0, r3
	moveq	r3, #1
	moveq	r2, r3
	ldr	r0, [r4, #8]
	ldrne	r2, [r4, #24]
	streq	r3, [r4, #24]
	ldr	r3, [r5, #24]
	str	r0, [r5]
	ldr	r0, [r4, #28]
	str	r1, [r5, #4]
	ldr	r1, [r4, #16]
	str	r0, [r3, #24]
	ldr	r0, [r4, #68]
	str	r1, [r3]
	ldr	r1, [r4, #64]
	str	r0, [r3, #20]
	ldr	r0, [r4, #20]
	str	r1, [r3, #16]
	ldr	r1, [r4, #60]
	str	r0, [r3, #4]
	str	r1, [r3, #12]
	str	r2, [r3, #8]
	mov	r0, r4
	mov	r2, r5
	ldr	r1, [r5, #20]
	bl	wlc_phy_shim_attach
	cmp	r0, #0
	mov	r3, r0
	str	r0, [r4, #72]
	beq	.L58
	ldr	r1, [r4, #16]
	ldr	r2, [r4, #8]
	ldr	r0, [r4, #28]
	str	r3, [sp, #76]
	ldr	r3, [r4, #12]
	str	r1, [sp, #32]
	str	r2, [sp, #36]
	str	r3, [sp, #40]
	str	r7, [sp, #28]
	str	r0, [sp, #80]
	bl	ai_get_chip_id
	mov	r3, r0
	ldr	r0, [r4, #28]
	str	r3, [sp, #72]
	bl	ai_get_chiprev
	mov	r3, r0
	ldr	r0, [r4, #28]
	str	r3, [sp, #68]
	bl	ai_get_chippkg
	mov	r2, r0
	ldr	r3, [r4, #68]
	ldr	r0, [r4, #28]
	str	r2, [sp, #64]
	str	r3, [sp, #60]
	bl	ai_get_boardtype
	ldr	r2, [r4, #20]
	ldr	r1, [r4, #64]
	ldr	r3, [r4, #60]
	str	r0, [sp, #44]
	add	r0, sp, #28
	str	r1, [sp, #56]
	str	r2, [sp, #48]
	str	r3, [sp, #52]
	bl	wlc_phy_shared_attach
	cmp	r0, #0
	str	r0, [r4, #48]
	beq	.L34
	ldr	r3, [r4, #24]
	cmp	r3, #0
	ble	.L27
	mov	r8, #0
	ldr	r10, .L63+52
	ldr	fp, .L63+56
	str	r7, [sp, #20]
	b	.L17
.L62:
	ldr	r3, [r4, #40]
	ldr	r0, [r3, #20]
	bl	NCONF_HAS
	cmp	r0, #0
	beq	.L26
.L25:
	ldr	r1, [r4, #40]
	ldr	r2, [r5, #8]
	ldr	lr, [r1, #28]
	ldr	r3, [r1, #24]
	ldr	ip, [r1, #20]
	ldr	r0, [r1, #16]
	ldr	r1, [r1, #12]
	str	lr, [r2, #20]
	str	r3, [r2, #16]
	str	ip, [r2, #12]
	str	r0, [r2, #8]
	str	r1, [r2, #4]
	stmib	sp, {r0, r1}
	ldr	r2, [sp, #20]
	ldr	r1, .L63+60
	str	ip, [sp]
	mov	r0, r6
	bl	brcms_dbg_info
	ldr	r2, .L63+64
	ldr	r3, [r4, #40]
	ldr	r1, [r2]
	ldr	r2, .L63+68
	str	r1, [r3, #8]
	ldr	r2, [r2]
	mov	r1, r8
	str	r2, [r3, #4]
	mov	r0, r5
	mov	r2, #1
	bl	brcms_b_attach_dmapio
	cmp	r0, #0
	beq	.L37
	ldr	r3, [r4, #24]
	add	r8, r8, #1
	cmp	r3, r8
	ble	.L59
.L17:
	mov	r1, r8
	mov	r0, r4
	bl	brcms_c_setxband
	cmp	r8, #0
	ldrne	r3, .L63+72
	ldreq	r3, .L63+76
	ldr	r1, [r4, #40]
	ldr	r2, [r3]
	ldr	r3, [r5, #8]
	str	r8, [r1]
	str	r2, [r1, #40]
	ldr	r1, [r5, #16]
	str	r8, [r3]
	str	r2, [r3, #28]
	ldr	r3, [r6, #4]
	str	r3, [r1]
	ldr	r3, .L63+80
	ldr	r0, [r3]
	bl	D11REGOFFS
	mov	r1, r0
	mov	r0, r6
	bl	bcma_read32
	ldr	r3, [r4, #16]
	ldr	r9, [r10]
	str	r0, [r4, #44]
	cmp	r3, r9
	str	r0, [r4, #56]
	movlt	r0, #1
	bge	.L60
.L22:
	bl	WARN_ON
	ldr	r1, [r10]
	ldr	r3, [r4, #16]
	ldr	r2, [fp]
	sub	r3, r3, r1
	ldr	r3, [r2, r3, lsl #2]
	ldr	r0, [r3]
	str	r3, [r4, #52]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN_ON
	ldr	r9, [r4, #40]
	ldr	r3, [r5, #12]
	mov	r1, r6
	ldr	r2, [r9, #40]
	ldr	r0, [r4, #48]
	bl	wlc_phy_attach
	ldr	r3, [r4, #40]
	str	r0, [r9, #28]
	ldr	r0, [r3, #28]
	cmp	r0, #0
	beq	.L61
	ldr	r1, [r4, #44]
	bl	wlc_phy_machwcap_set
	ldr	r1, [r4, #40]
	add	r3, r1, #12
	ldr	r0, [r1, #28]
	add	r2, r1, #20
	str	r3, [sp]
	add	r3, r1, #16
	add	r1, r1, #24
	bl	wlc_phy_get_phyversion
	ldr	r9, [r4, #40]
	ldr	r0, [r9, #28]
	bl	wlc_phy_get_encore
	ldr	r3, [r4, #40]
	str	r0, [r9, #36]
	ldr	r0, [r3, #28]
	ldr	r7, [r5, #8]
	bl	wlc_phy_get_encore
	ldr	r9, [r4, #40]
	str	r0, [r7, #24]
	ldr	r0, [r9, #28]
	bl	wlc_phy_get_coreflags
	mov	r3, r0
	ldr	r0, [r4, #40]
	str	r3, [r9, #32]
	bl	BRCMS_ISNPHY
	cmp	r0, #0
	bne	.L62
	ldr	r0, [r4, #40]
	bl	BRCMS_ISLCNPHY
	cmp	r0, #0
	beq	.L26
	ldr	r3, [r4, #40]
	ldr	r0, [r3, #20]
	bl	LCNCONF_HAS
	cmp	r0, #0
	bne	.L25
.L26:
	ldr	r1, [r4, #40]
	ldr	r7, [sp, #20]
	ldr	r3, [r1, #24]
	ldr	r1, [r1, #20]
	mov	r2, r7
	str	r1, [sp]
	ldr	r0, [sp, #16]
	ldr	r1, .L63+84
	bl	wiphy_err
	mov	r5, #18
	b	.L5
.L32:
	mov	r3, #2
	b	.L13
.L57:
	ldr	r3, .L63+88
	mov	r1, #1
	mov	r0, r4
	ldr	r2, [r3]
	bl	brcms_b_pllreq
	b	.L12
.L60:
	ldr	r0, [fp]
	sub	r9, r3, r9
	bl	ARRAY_SIZE
	cmp	r9, r0
	movle	r0, #0
	movgt	r0, #1
	b	.L22
.L51:
	mov	r2, r7
	ldr	r1, .L63+92
	ldr	r0, [sp, #16]
	bl	wiphy_err
	mov	r5, #11
	b	.L5
.L52:
	mov	r2, r7
	ldr	r1, .L63+96
	ldr	r0, [sp, #16]
	bl	wiphy_err
	mov	r5, #12
	b	.L5
.L55:
	mov	r2, r7
	ldr	r1, .L63+100
	ldr	r0, [sp, #16]
	bl	wiphy_err
	mov	r5, #14
	b	.L5
.L34:
	mov	r5, #16
	b	.L5
.L56:
	ldr	r0, [r4, #28]
	bl	ai_get_boardtype
	ldr	r2, [r4, #64]
	mov	r3, r0
	str	r2, [sp]
	ldr	r1, .L63+104
	mov	r2, r7
	ldr	r0, [sp, #16]
	bl	wiphy_err
	mov	r5, #15
	b	.L5
.L58:
	mov	r2, r7
	ldr	r1, .L63+108
	ldr	r0, [sp, #16]
	bl	wiphy_err
	mov	r5, #25
	b	.L5
.L59:
	ldr	r7, [sp, #20]
.L27:
	mov	r0, r4
	bl	brcms_c_coredisable
	ldr	r3, [r4, #32]
	ldr	r0, [r3]
	bl	bcma_host_pci_down
	ldr	r3, .L63+112
	mov	r0, r4
	ldr	r1, [r3]
	bl	brcms_b_xtal
	ldr	r1, [r4, #36]
	mov	r0, r4
	bl	brcms_c_get_macaddr
	ldr	r0, [r4, #36]
	bl	is_broadcast_ether_addr
	cmp	r0, #0
	bne	.L18
	ldr	r0, [r4, #36]
	bl	is_zero_ether_addr
	subs	r5, r0, #0
	bne	.L18
	ldr	r0, [r4, #28]
	ldr	r6, [r4, #32]
	ldr	r7, [r4, #12]
	ldr	r4, [r4, #24]
	bl	ai_get_boardtype
	mov	r3, r4
	str	r0, [sp]
	mov	r2, r7
	mov	r0, r6
	ldr	r1, .L63+116
	bl	brcms_dbg_info
	b	.L1
.L61:
	ldr	r7, [sp, #20]
	ldr	r1, .L63+120
	mov	r2, r7
	ldr	r0, [sp, #16]
	bl	wiphy_err
	mov	r5, #17
	b	.L5
.L37:
	mov	r5, #19
	ldr	r7, [sp, #20]
	b	.L5
.L18:
	mov	r2, r7
	ldr	r1, .L63+124
	ldr	r0, [sp, #16]
	bl	wiphy_err
	mov	r5, #22
	b	.L5
.L54:
	bl	__stack_chk_fail
.L64:
	.align	2
.L63:
	.word	BCMA_HOSTTYPE_PCI
	.word	.LC12
	.word	.LC0
	.word	.LC11
	.word	BCMA_CLKMODE_FAST
	.word	BRCMS_USE_COREFLAGS
	.word	BOARDREV_PROMOTABLE
	.word	BOARDREV_PROMOTED
	.word	BFL_NOPLLDOWN
	.word	BCM43224_D11N_ID
	.word	BCM43224_D11N_ID_VEN1
	.word	BCM43224_CHIP_ID
	.word	BCMA_CHIP_ID_BCM43225
	.word	XMTFIFOTBL_STARTREV
	.word	xmtfifo_sz
	.word	.LC8
	.word	APHY_CWMIN
	.word	PHY_CWMAX
	.word	BRCM_BAND_5G
	.word	BRCM_BAND_2G
	.word	machwcap
	.word	.LC7
	.word	BRCMS_PLLREQ_SHARED
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	OFF
	.word	.LC10
	.word	.LC6
	.word	.LC9
	.size	brcms_b_attach, .-brcms_b_attach
	.comm	xmtfifo_sz,4,4
	.comm	machwcap,4,4
	.comm	XMTFIFOTBL_STARTREV,4,4
	.comm	PHY_CWMAX,4,4
	.comm	OFF,4,4
	.comm	BRCM_BAND_5G,4,4
	.comm	BRCM_BAND_2G,4,4
	.comm	BRCMS_USE_COREFLAGS,4,4
	.comm	BRCMS_PLLREQ_SHARED,4,4
	.comm	BOARDREV_PROMOTED,4,4
	.comm	BOARDREV_PROMOTABLE,4,4
	.comm	BFL_NOPLLDOWN,4,4
	.comm	BCMA_HOSTTYPE_PCI,4,4
	.comm	BCMA_CLKMODE_FAST,4,4
	.comm	BCMA_CHIP_ID_BCM43225,4,4
	.comm	BCM43224_D11N_ID_VEN1,4,4
	.comm	BCM43224_D11N_ID,4,4
	.comm	BCM43224_CHIP_ID,4,4
	.comm	APHY_CWMIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
