	.file	"519692.c"
	.intel_syntax noprefix
	.text
	.globl	B43_FWCAPA_HWCRYPTO
	.bss
	.align 4
	.type	B43_FWCAPA_HWCRYPTO, @object
	.size	B43_FWCAPA_HWCRYPTO, 4
B43_FWCAPA_HWCRYPTO:
	.zero	4
	.globl	B43_FWCAPA_QOS
	.align 4
	.type	B43_FWCAPA_QOS, @object
	.size	B43_FWCAPA_QOS, 4
B43_FWCAPA_QOS:
	.zero	4
	.globl	B43_FW_HDR_351
	.align 8
	.type	B43_FW_HDR_351, @object
	.size	B43_FW_HDR_351, 8
B43_FW_HDR_351:
	.zero	8
	.globl	B43_FW_HDR_410
	.align 8
	.type	B43_FW_HDR_410, @object
	.size	B43_FW_HDR_410, 8
B43_FW_HDR_410:
	.zero	8
	.globl	B43_FW_HDR_598
	.align 8
	.type	B43_FW_HDR_598, @object
	.size	B43_FW_HDR_598, 8
B43_FW_HDR_598:
	.zero	8
	.globl	B43_IRQ_ALL
	.align 4
	.type	B43_IRQ_ALL, @object
	.size	B43_IRQ_ALL, 4
B43_IRQ_ALL:
	.zero	4
	.globl	B43_IRQ_MAC_SUSPENDED
	.align 8
	.type	B43_IRQ_MAC_SUSPENDED, @object
	.size	B43_IRQ_MAC_SUSPENDED, 8
B43_IRQ_MAC_SUSPENDED:
	.zero	8
	.globl	B43_MACCTL_PSM_JMP0
	.align 8
	.type	B43_MACCTL_PSM_JMP0, @object
	.size	B43_MACCTL_PSM_JMP0, 8
B43_MACCTL_PSM_JMP0:
	.zero	8
	.globl	B43_MACCTL_PSM_RUN
	.align 8
	.type	B43_MACCTL_PSM_RUN, @object
	.size	B43_MACCTL_PSM_RUN, 8
B43_MACCTL_PSM_RUN:
	.zero	8
	.globl	B43_MMIO_GEN_IRQ_REASON
	.align 4
	.type	B43_MMIO_GEN_IRQ_REASON, @object
	.size	B43_MMIO_GEN_IRQ_REASON, 4
B43_MMIO_GEN_IRQ_REASON:
	.zero	4
	.globl	B43_MMIO_MACCTL
	.align 4
	.type	B43_MMIO_MACCTL, @object
	.size	B43_MMIO_MACCTL, 4
B43_MMIO_MACCTL:
	.zero	4
	.globl	B43_MMIO_SHM_DATA
	.align 4
	.type	B43_MMIO_SHM_DATA, @object
	.size	B43_MMIO_SHM_DATA, 4
B43_MMIO_SHM_DATA:
	.zero	4
	.globl	B43_SHM_AUTOINC_W
	.align 4
	.type	B43_SHM_AUTOINC_W, @object
	.size	B43_SHM_AUTOINC_W, 4
B43_SHM_AUTOINC_W:
	.zero	4
	.globl	B43_SHM_HW
	.align 4
	.type	B43_SHM_HW, @object
	.size	B43_SHM_HW, 4
B43_SHM_HW:
	.zero	4
	.globl	B43_SHM_SCRATCH
	.align 4
	.type	B43_SHM_SCRATCH, @object
	.size	B43_SHM_SCRATCH, 4
B43_SHM_SCRATCH:
	.zero	4
	.globl	B43_SHM_SHARED
	.align 4
	.type	B43_SHM_SHARED, @object
	.size	B43_SHM_SHARED, 4
B43_SHM_SHARED:
	.zero	4
	.globl	B43_SHM_SH_UCODEDATE
	.align 4
	.type	B43_SHM_SH_UCODEDATE, @object
	.size	B43_SHM_SH_UCODEDATE, 4
B43_SHM_SH_UCODEDATE:
	.zero	4
	.globl	B43_SHM_SH_UCODEPATCH
	.align 4
	.type	B43_SHM_SH_UCODEPATCH, @object
	.size	B43_SHM_SH_UCODEPATCH, 4
B43_SHM_SH_UCODEPATCH:
	.zero	4
	.globl	B43_SHM_SH_UCODEREV
	.align 4
	.type	B43_SHM_SH_UCODEREV, @object
	.size	B43_SHM_SH_UCODEREV, 4
B43_SHM_SH_UCODEREV:
	.zero	4
	.globl	B43_SHM_SH_UCODETIME
	.align 4
	.type	B43_SHM_SH_UCODETIME, @object
	.size	B43_SHM_SH_UCODETIME, 4
B43_SHM_SH_UCODETIME:
	.zero	4
	.globl	B43_SHM_UCODE
	.align 4
	.type	B43_SHM_UCODE, @object
	.size	B43_SHM_UCODE, 4
B43_SHM_UCODE:
	.zero	4
	.globl	ENODEV
	.align 4
	.type	ENODEV, @object
	.size	ENODEV, 4
ENODEV:
	.zero	4
	.globl	EOPNOTSUPP
	.align 4
	.type	EOPNOTSUPP, @object
	.size	EOPNOTSUPP, 4
EOPNOTSUPP:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Microcode not responding\n"
	.align 8
.LC1:
	.string	"YOUR FIRMWARE IS TOO OLD. Firmware from binary drivers older than version 4.x is unsupported. You must upgrade your firmware files.\n"
	.align 8
.LC2:
	.string	"Loading OpenSource firmware version %u.%u\n"
	.align 8
.LC3:
	.string	"Hardware crypto acceleration not supported by firmware\n"
.LC4:
	.string	"QoS in OpenFW not supported\n"
	.align 8
.LC5:
	.string	"Loading firmware version %u.%u (20%.2i-%.2i-%.2i %.2i:%.2i:%.2i)\n"
	.align 8
.LC6:
	.string	"No \"pcm5.fw\" firmware file found. Hardware accelerated cryptography is disabled.\n"
.LC7:
	.string	"%u.%u"
	.align 8
.LC8:
	.string	"You are using an old firmware image. Support for old firmware will be removed soon (official deadline was July 2008).\n"
	.text
	.type	b43_upload_microcode, @function
b43_upload_microcode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -32[rbp], 4
	mov	DWORD PTR -68[rbp], 0
	mov	edx, DWORD PTR B43_MMIO_MACCTL[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	b43_read32@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR B43_MACCTL_PSM_RUN[rip]
	and	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	B43_WARN_ON@PLT
	mov	rax, QWORD PTR B43_MACCTL_PSM_JMP0[rip]
	or	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, eax
	mov	ecx, DWORD PTR B43_MMIO_MACCTL[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	b43_write32@PLT
	mov	DWORD PTR -72[rbp], 0
	jmp	.L2
.L3:
	mov	esi, DWORD PTR B43_SHM_SCRATCH[rip]
	mov	edx, DWORD PTR -72[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	b43_shm_write16@PLT
	add	DWORD PTR -72[rbp], 1
.L2:
	cmp	DWORD PTR -72[rbp], 63
	jbe	.L3
	mov	DWORD PTR -72[rbp], 0
	jmp	.L4
.L5:
	mov	esi, DWORD PTR B43_SHM_SHARED[rip]
	mov	edx, DWORD PTR -72[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	b43_shm_write16@PLT
	add	DWORD PTR -72[rbp], 2
.L4:
	cmp	DWORD PTR -72[rbp], 4095
	jbe	.L5
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rax, QWORD PTR [rax]
	sub	rax, QWORD PTR -32[rbp]
	shr	rax, 2
	mov	DWORD PTR -64[rbp], eax
	mov	edx, DWORD PTR B43_SHM_UCODE[rip]
	mov	eax, DWORD PTR B43_SHM_AUTOINC_W[rip]
	mov	ecx, edx
	or	ecx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	b43_shm_control_word@PLT
	mov	DWORD PTR -72[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	be32_to_cpu@PLT
	mov	edx, eax
	mov	ecx, DWORD PTR B43_MMIO_SHM_DATA[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	b43_write32@PLT
	mov	edi, 10
	call	udelay@PLT
	add	DWORD PTR -72[rbp], 1
.L6:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jb	.L7
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rax, QWORD PTR [rax]
	sub	rax, QWORD PTR -32[rbp]
	shr	rax, 2
	mov	DWORD PTR -64[rbp], eax
	mov	ecx, DWORD PTR B43_SHM_HW[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 490
	mov	esi, ecx
	mov	rdi, rax
	call	b43_shm_control_word@PLT
	mov	ecx, DWORD PTR B43_MMIO_SHM_DATA[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 16384
	mov	esi, ecx
	mov	rdi, rax
	call	b43_write32@PLT
	mov	ecx, DWORD PTR B43_SHM_HW[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 491
	mov	esi, ecx
	mov	rdi, rax
	call	b43_shm_control_word@PLT
	mov	DWORD PTR -72[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	be32_to_cpu@PLT
	mov	edx, eax
	mov	ecx, DWORD PTR B43_MMIO_SHM_DATA[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	b43_write32@PLT
	mov	edi, 10
	call	udelay@PLT
	add	DWORD PTR -72[rbp], 1
.L9:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jb	.L10
.L8:
	mov	edx, DWORD PTR B43_IRQ_ALL[rip]
	mov	ecx, DWORD PTR B43_MMIO_GEN_IRQ_REASON[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	b43_write32@PLT
	mov	rdx, QWORD PTR B43_MACCTL_PSM_RUN[rip]
	mov	rax, QWORD PTR B43_MACCTL_PSM_JMP0[rip]
	not	rax
	mov	rdi, rax
	mov	esi, DWORD PTR B43_MMIO_MACCTL[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, rdx
	mov	rdx, rdi
	mov	rdi, rax
	call	b43_maskset32@PLT
	mov	DWORD PTR -72[rbp], 0
.L15:
	mov	edx, DWORD PTR B43_MMIO_GEN_IRQ_REASON[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	b43_read32@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR B43_IRQ_MAC_SUSPENDED[rip]
	cmp	QWORD PTR -8[rbp], rax
	je	.L27
	add	DWORD PTR -72[rbp], 1
	cmp	DWORD PTR -72[rbp], 19
	jbe	.L13
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	b43err@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, 1
	mov	rdi, rax
	call	b43_print_fw_helptext@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	mov	DWORD PTR -68[rbp], eax
	jmp	.L14
.L13:
	mov	edi, 50
	call	msleep@PLT
	jmp	.L15
.L27:
	nop
	mov	edx, DWORD PTR B43_MMIO_GEN_IRQ_REASON[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	b43_read32@PLT
	mov	edx, DWORD PTR B43_SHM_SH_UCODEREV[rip]
	mov	ecx, DWORD PTR B43_SHM_SHARED[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	b43_shm_read16@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	edx, DWORD PTR B43_SHM_SH_UCODEPATCH[rip]
	mov	ecx, DWORD PTR B43_SHM_SHARED[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	b43_shm_read16@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	edx, DWORD PTR B43_SHM_SH_UCODEDATE[rip]
	mov	ecx, DWORD PTR B43_SHM_SHARED[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	b43_shm_read16@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	edx, DWORD PTR B43_SHM_SH_UCODETIME[rip]
	mov	ecx, DWORD PTR B43_SHM_SHARED[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	b43_shm_read16@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -60[rbp], 296
	jg	.L16
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	b43err@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, 1
	mov	rdi, rax
	call	b43_print_fw_helptext@PLT
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	neg	eax
	mov	DWORD PTR -68[rbp], eax
	jmp	.L14
.L16:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -60[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -56[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 597
	jle	.L17
	mov	rdx, QWORD PTR B43_FW_HDR_598[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 24[rax], rdx
	jmp	.L18
.L17:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 409
	jle	.L19
	mov	rdx, QWORD PTR B43_FW_HDR_410[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 24[rax], rdx
	jmp	.L18
.L19:
	mov	rdx, QWORD PTR B43_FW_HDR_351[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 24[rax], rdx
.L18:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR 32[rax]
	cmp	DWORD PTR -52[rbp], 65535
	sete	al
	movzx	eax, al
	cmp	edx, eax
	setne	al
	movzx	eax, al
	mov	edi, eax
	call	WARN_ON@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	setg	al
	movzx	edx, al
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	je	.L20
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	b43info@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	b43_fwcapa_read@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR B43_FWCAPA_HWCRYPTO[rip]
	and	eax, DWORD PTR -44[rbp]
	test	eax, eax
	je	.L21
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L22
.L21:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	b43info@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 4[rax], 0
.L22:
	mov	eax, DWORD PTR B43_FWCAPA_QOS[rip]
	and	eax, DWORD PTR -44[rbp]
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	WARN@PLT
	jmp	.L23
.L20:
	mov	eax, DWORD PTR -48[rbp]
	and	eax, 31
	mov	r9d, eax
	mov	eax, DWORD PTR -48[rbp]
	sar	eax, 5
	and	eax, 63
	mov	r8d, eax
	mov	eax, DWORD PTR -48[rbp]
	sar	eax, 11
	and	eax, 31
	mov	edi, eax
	mov	eax, DWORD PTR -52[rbp]
	movzx	esi, al
	mov	eax, DWORD PTR -52[rbp]
	sar	eax, 8
	and	eax, 15
	mov	r11d, eax
	mov	eax, DWORD PTR -52[rbp]
	sar	eax, 12
	and	eax, 15
	mov	r10d, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	ecx, DWORD PTR -56[rbp]
	mov	edx, DWORD PTR -60[rbp]
	push	r9
	push	r8
	push	rdi
	push	rsi
	mov	r9d, r11d
	mov	r8d, r10d
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	b43info@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	b43warn@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, 0
	mov	rdi, rax
	call	b43_print_fw_helptext@PLT
.L23:
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	r8d, ecx
	mov	ecx, edx
	lea	rdx, .LC7[rip]
	mov	esi, 4
	mov	edi, eax
	call	snprintf@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR B43_FW_HDR_351[rip]
	cmp	rdx, rax
	jne	.L24
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	b43warn@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, 0
	mov	rdi, rax
	call	b43_print_fw_helptext@PLT
.L24:
	mov	eax, 0
	jmp	.L25
.L14:
	mov	rdx, QWORD PTR B43_MACCTL_PSM_JMP0[rip]
	mov	rax, QWORD PTR B43_MACCTL_PSM_RUN[rip]
	not	rax
	mov	rdi, rax
	mov	esi, DWORD PTR B43_MMIO_MACCTL[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, rdx
	mov	rdx, rdi
	mov	rdi, rax
	call	b43_maskset32@PLT
	mov	eax, DWORD PTR -68[rbp]
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	b43_upload_microcode, .-b43_upload_microcode
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"519692.c"
	.text
	.comm	B43_FWCAPA_HWCRYPTO,4,4
	.comm	B43_FWCAPA_QOS,4,4
	.comm	B43_FW_HDR_351,4,4
	.comm	B43_FW_HDR_410,4,4
	.comm	B43_FW_HDR_598,4,4
	.comm	B43_IRQ_ALL,4,4
	.comm	B43_IRQ_MAC_SUSPENDED,4,4
	.comm	B43_MACCTL_PSM_JMP0,4,4
	.comm	B43_MACCTL_PSM_RUN,4,4
	.comm	B43_MMIO_GEN_IRQ_REASON,4,4
	.comm	B43_MMIO_MACCTL,4,4
	.comm	B43_MMIO_SHM_DATA,4,4
	.comm	B43_SHM_AUTOINC_W,4,4
	.comm	B43_SHM_HW,4,4
	.comm	B43_SHM_SCRATCH,4,4
	.comm	B43_SHM_SHARED,4,4
	.comm	B43_SHM_SH_UCODEDATE,4,4
	.comm	B43_SHM_SH_UCODEPATCH,4,4
	.comm	B43_SHM_SH_UCODEREV,4,4
	.comm	B43_SHM_SH_UCODETIME,4,4
	.comm	B43_SHM_UCODE,4,4
	.comm	ENODEV,4,4
	.comm	EOPNOTSUPP,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Microcode not responding\012\000"
	.align	2
.LC1:
	.ascii	"YOUR FIRMWARE IS TOO OLD. Firmware from binary driv"
	.ascii	"ers older than version 4.x is unsupported. You must"
	.ascii	" upgrade your firmware files.\012\000"
	.align	2
.LC2:
	.ascii	"Loading OpenSource firmware version %u.%u\012\000"
	.align	2
.LC3:
	.ascii	"Hardware crypto acceleration not supported by firmw"
	.ascii	"are\012\000"
	.align	2
.LC4:
	.ascii	"QoS in OpenFW not supported\012\000"
	.align	2
.LC5:
	.ascii	"Loading firmware version %u.%u (20%.2i-%.2i-%.2i %."
	.ascii	"2i:%.2i:%.2i)\012\000"
	.align	2
.LC6:
	.ascii	"No \"pcm5.fw\" firmware file found. Hardware accele"
	.ascii	"rated cryptography is disabled.\012\000"
	.align	2
.LC7:
	.ascii	"%u.%u\000"
	.align	2
.LC8:
	.ascii	"You are using an old firmware image. Support for ol"
	.ascii	"d firmware will be removed soon (official deadline "
	.ascii	"was July 2008).\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43_upload_microcode, %function
b43_upload_microcode:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-56]
	mov	r3, #4
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_read32
	str	r0, [fp, #-48]
	ldr	r3, .L28+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	and	r3, r3, r2
	mov	r0, r3
	bl	B43_WARN_ON
	ldr	r3, .L28+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	orr	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, .L28
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_write32
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L2
.L3:
	ldr	r3, .L28+12
	ldr	r1, [r3]
	mov	r3, #0
	ldr	r2, [fp, #-64]
	ldr	r0, [fp, #-72]
	bl	b43_shm_write16
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L2:
	ldr	r3, [fp, #-64]
	cmp	r3, #63
	bls	.L3
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L4
.L5:
	ldr	r3, .L28+16
	ldr	r1, [r3]
	mov	r3, #0
	ldr	r2, [fp, #-64]
	ldr	r0, [fp, #-72]
	bl	b43_shm_write16
	ldr	r3, [fp, #-64]
	add	r3, r3, #2
	str	r3, [fp, #-64]
.L4:
	ldr	r3, [fp, #-64]
	cmp	r3, #4096
	bcc	.L5
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #36]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	lsr	r3, r3, #2
	str	r3, [fp, #-40]
	ldr	r3, .L28+20
	ldr	r2, [r3]
	ldr	r3, .L28+24
	ldr	r3, [r3]
	orr	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_shm_control_word
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L6
.L7:
	ldr	r3, .L28+28
	ldr	r4, [r3]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	be32_to_cpu
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-72]
	bl	b43_write32
	mov	r0, #10
	bl	udelay
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L6:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bcc	.L7
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #32]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #32]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	lsr	r3, r3, #2
	str	r3, [fp, #-40]
	ldr	r3, .L28+32
	ldr	r3, [r3]
	ldr	r2, .L28+36
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_shm_control_word
	ldr	r3, .L28+28
	ldr	r3, [r3]
	mov	r2, #16384
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_write32
	ldr	r3, .L28+32
	ldr	r3, [r3]
	ldr	r2, .L28+40
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_shm_control_word
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L9
.L10:
	ldr	r3, .L28+28
	ldr	r4, [r3]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	be32_to_cpu
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-72]
	bl	b43_write32
	mov	r0, #10
	bl	udelay
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L9:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bcc	.L10
.L8:
	ldr	r3, .L28+44
	ldr	r3, [r3]
	ldr	r2, .L28+48
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_write32
	ldr	r3, .L28
	ldr	r1, [r3]
	ldr	r3, .L28+8
	ldr	r3, [r3]
	mvn	r2, r3
	ldr	r3, .L28+4
	ldr	r3, [r3]
	ldr	r0, [fp, #-72]
	bl	b43_maskset32
	mov	r3, #0
	str	r3, [fp, #-64]
.L15:
	ldr	r3, .L28+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_read32
	str	r0, [fp, #-36]
	ldr	r3, .L28+52
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	beq	.L27
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #19
	bls	.L13
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	ldr	r1, .L28+56
	mov	r0, r3
	bl	b43err
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	mov	r1, #1
	mov	r0, r3
	bl	b43_print_fw_helptext
	ldr	r3, .L28+60
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-60]
	b	.L14
.L13:
	mov	r0, #50
	bl	msleep
	b	.L15
.L27:
	nop
	ldr	r3, .L28+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_read32
	ldr	r3, .L28+16
	ldr	r3, [r3]
	ldr	r2, .L28+64
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_shm_read16
	str	r0, [fp, #-32]
	ldr	r3, .L28+16
	ldr	r3, [r3]
	ldr	r2, .L28+68
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_shm_read16
	str	r0, [fp, #-28]
	ldr	r3, .L28+16
	ldr	r3, [r3]
	ldr	r2, .L28+72
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_shm_read16
	str	r0, [fp, #-24]
	ldr	r3, .L28+16
	ldr	r3, [r3]
	ldr	r2, .L28+76
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	b43_shm_read16
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r3, #296
	bgt	.L16
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	ldr	r1, .L28+80
	mov	r0, r3
	bl	b43err
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	mov	r1, #1
	mov	r0, r3
	bl	b43_print_fw_helptext
	ldr	r3, .L28+84
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-60]
	b	.L14
.L16:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #12]
	ldr	r2, .L28+88
	cmp	r3, r2
	ble	.L17
	ldr	r3, .L28+92
	ldr	r2, [r3]
	ldr	r3, [fp, #-72]
	str	r2, [r3, #20]
	b	.L18
.L17:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #12]
	ldr	r2, .L28+96
	cmp	r3, r2
	ble	.L19
	ldr	r3, .L28+100
	ldr	r2, [r3]
	ldr	r3, [fp, #-72]
	str	r2, [r3, #20]
	b	.L18
.L19:
	ldr	r3, .L28+104
	ldr	r2, [r3]
	ldr	r3, [fp, #-72]
	str	r2, [r3, #20]
.L18:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-24]
	ldr	r1, .L28+108
	cmp	r2, r1
	moveq	r2, #1
	movne	r2, #0
	and	r2, r2, #255
	cmp	r3, r2
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	WARN_ON
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #1
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-72]
	str	r2, [r3]
	ldr	r3, [fp, #-72]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-72]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-72]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #16]
	ldr	r1, .L28+112
	bl	b43info
	ldr	r0, [fp, #-72]
	bl	b43_fwcapa_read
	str	r0, [fp, #-16]
	ldr	r3, .L28+116
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L22
.L21:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	ldr	r1, .L28+120
	mov	r0, r3
	bl	b43info
	ldr	r3, [fp, #-72]
	mov	r2, #0
	str	r2, [r3, #4]
.L22:
	ldr	r3, .L28+124
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	and	r3, r3, r2
	ldr	r1, .L28+128
	mov	r0, r3
	bl	WARN
	b	.L23
.L20:
	ldr	r3, [fp, #-72]
	ldr	r4, [r3, #8]
	ldr	r3, [fp, #-24]
	asr	r3, r3, #12
	and	r3, r3, #15
	ldr	r2, [fp, #-24]
	asr	r2, r2, #8
	and	r2, r2, #15
	ldr	r1, [fp, #-24]
	and	r1, r1, #255
	ldr	r0, [fp, #-20]
	asr	r0, r0, #11
	and	r0, r0, #31
	ldr	ip, [fp, #-20]
	asr	ip, ip, #5
	and	ip, ip, #63
	ldr	lr, [fp, #-20]
	and	lr, lr, #31
	str	lr, [sp, #20]
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	ldr	r1, .L28+132
	mov	r0, r4
	bl	b43info
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	ldr	r1, .L28+136
	mov	r0, r3
	bl	b43warn
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	mov	r1, #0
	mov	r0, r3
	bl	b43_print_fw_helptext
.L23:
	ldr	r3, [fp, #-56]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-72]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #16]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L28+140
	mov	r1, #4
	bl	snprintf
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #40]
	ldr	r2, [r3]
	ldr	r3, [fp, #-56]
	str	r2, [r3]
	ldr	r3, [fp, #-72]
	ldr	r2, [r3, #20]
	ldr	r3, .L28+104
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L24
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	ldr	r1, .L28+144
	mov	r0, r3
	bl	b43warn
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	mov	r1, #0
	mov	r0, r3
	bl	b43_print_fw_helptext
.L24:
	mov	r3, #0
	b	.L25
.L14:
	ldr	r3, .L28
	ldr	r1, [r3]
	ldr	r3, .L28+4
	ldr	r3, [r3]
	mvn	r2, r3
	ldr	r3, .L28+8
	ldr	r3, [r3]
	ldr	r0, [fp, #-72]
	bl	b43_maskset32
	ldr	r3, [fp, #-60]
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L29:
	.align	2
.L28:
	.word	B43_MMIO_MACCTL
	.word	B43_MACCTL_PSM_RUN
	.word	B43_MACCTL_PSM_JMP0
	.word	B43_SHM_SCRATCH
	.word	B43_SHM_SHARED
	.word	B43_SHM_UCODE
	.word	B43_SHM_AUTOINC_W
	.word	B43_MMIO_SHM_DATA
	.word	B43_SHM_HW
	.word	490
	.word	491
	.word	B43_MMIO_GEN_IRQ_REASON
	.word	B43_IRQ_ALL
	.word	B43_IRQ_MAC_SUSPENDED
	.word	.LC0
	.word	ENODEV
	.word	B43_SHM_SH_UCODEREV
	.word	B43_SHM_SH_UCODEPATCH
	.word	B43_SHM_SH_UCODEDATE
	.word	B43_SHM_SH_UCODETIME
	.word	.LC1
	.word	EOPNOTSUPP
	.word	597
	.word	B43_FW_HDR_598
	.word	409
	.word	B43_FW_HDR_410
	.word	B43_FW_HDR_351
	.word	65535
	.word	.LC2
	.word	B43_FWCAPA_HWCRYPTO
	.word	.LC3
	.word	B43_FWCAPA_QOS
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	b43_upload_microcode, .-b43_upload_microcode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
