	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_upload_microcode
_b43_upload_microcode:                  ## @b43_upload_microcode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_B43_MMIO_MACCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_b43_read32
	movq	%rax, %rbx
	movq	_B43_MACCTL_PSM_RUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	andq	%rbx, %rdi
	callq	_B43_WARN_ON
	movq	_B43_MACCTL_PSM_JMP0@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_b43_write32
	xorl	%ebx, %ebx
	movq	_B43_SHM_SCRATCH@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_b43_shm_write16
	incl	%ebx
	cmpl	$64, %ebx
	jne	LBB0_1
## %bb.2:
	movl	$-2, %ebx
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addl	$2, %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_b43_shm_write16
	cmpl	$4094, %ebx                     ## imm = 0xFFE
	jb	LBB0_3
## %bb.4:
	movabsq	$17179869180, %rcx              ## imm = 0x3FFFFFFFC
	movq	56(%r15), %rax
	movq	8(%rax), %r13
	movq	(%rax), %rbx
	addq	%rcx, %rbx
	shrq	$2, %rbx
	movq	_B43_SHM_UCODE@GOTPCREL(%rip), %rax
	movq	_B43_SHM_AUTOINC_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_b43_shm_control_word
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	movl	%ebx, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_B43_MMIO_SHM_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	4(%r13,%rbx,4), %edi
	callq	_be32_to_cpu
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_b43_write32
	movl	$10, %edi
	callq	_udelay
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_6
LBB0_7:
	movq	48(%r15), %rax
	testq	%rax, %rax
	movabsq	$17179869180, %rbx              ## imm = 0x3FFFFFFFC
	je	LBB0_11
## %bb.8:
	addq	(%rax), %rbx
	movq	8(%rax), %r13
	shrq	$2, %rbx
	movq	_B43_SHM_HW@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$490, %edx                      ## imm = 0x1EA
	callq	_b43_shm_control_word
	movq	_B43_MMIO_SHM_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$16384, %edx                    ## imm = 0x4000
	callq	_b43_write32
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$491, %edx                      ## imm = 0x1EB
	callq	_b43_shm_control_word
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.9:
	movl	%ebx, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_B43_MMIO_SHM_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r13,%r14,4), %edi
	callq	_be32_to_cpu
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_b43_write32
	movl	$10, %edi
	callq	_udelay
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_10
LBB0_11:
	movq	_B43_MMIO_GEN_IRQ_REASON@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_B43_IRQ_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_b43_write32
	movq	_B43_MMIO_MACCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_MACCTL_PSM_JMP0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	notq	%rdx
	movq	_B43_MACCTL_PSM_RUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rdi
	callq	_b43_maskset32
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_b43_read32
	movq	_B43_IRQ_MAC_SUSPENDED@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_16
## %bb.12:
	movl	$20, %r13d
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	decl	%r13d
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	$50, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_b43_read32
	cmpq	(%rbx), %rax
	jne	LBB0_13
LBB0_16:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_b43_read32
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_B43_SHM_SH_UCODEREV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_b43_shm_read16
	movl	%eax, %r14d
	movl	(%rbx), %esi
	movq	_B43_SHM_SH_UCODEPATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_b43_shm_read16
	movl	%eax, %r12d
	movl	(%rbx), %esi
	movq	_B43_SHM_SH_UCODEDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_b43_shm_read16
	movl	%eax, %r13d
	movl	(%rbx), %esi
	movq	_B43_SHM_SH_UCODETIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_b43_shm_read16
	cmpl	$297, %r14d                     ## imm = 0x129
	jge	LBB0_19
## %bb.17:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_18
LBB0_19:
	movl	%eax, %ebx
	movl	%r14d, 16(%r15)
	movl	%r12d, 20(%r15)
	cmpl	$410, %r14d                     ## imm = 0x19A
	jb	LBB0_20
## %bb.21:
	movq	_B43_FW_HDR_410@GOTPCREL(%rip), %rax
	cmpl	$598, %r14d                     ## imm = 0x256
	jae	LBB0_23
	jmp	LBB0_24
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rbx
LBB0_18:
	movq	8(%r15), %rdi
	movq	%r14, %rsi
	callq	_b43err
	movq	8(%r15), %rdi
	movl	$1, %esi
	callq	_b43_print_fw_helptext
	xorl	%r14d, %r14d
	subl	(%rbx), %r14d
	movq	_B43_MMIO_MACCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_MACCTL_PSM_RUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	notq	%rdx
	movq	_B43_MACCTL_PSM_JMP0@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rdi
	callq	_b43_maskset32
	jmp	LBB0_33
LBB0_20:
	movq	_B43_FW_HDR_351@GOTPCREL(%rip), %rax
	cmpl	$598, %r14d                     ## imm = 0x256
	jb	LBB0_24
LBB0_23:
	movq	_B43_FW_HDR_598@GOTPCREL(%rip), %rax
LBB0_24:
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	xorl	%eax, %eax
	cmpl	$65535, %r13d                   ## imm = 0xFFFF
	sete	%al
	xorl	%edi, %edi
	cmpl	%eax, 32(%r15)
	setne	%dil
	callq	_WARN_ON
	movq	8(%r15), %rdi
	movq	(%rdi), %rax
	xorl	%ecx, %ecx
	cmpl	$2, (%rax)
	setge	%cl
	movl	%ecx, (%r15)
	movl	$1, 4(%r15)
	cmpl	$0, 32(%r15)
	je	LBB0_29
## %bb.25:
	movl	%ebx, 20(%r15)
	movl	16(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_b43info
	movq	%r15, %rdi
	callq	_b43_fwcapa_read
	movl	%eax, %r14d
	movq	_B43_FWCAPA_HWCRYPTO@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_27
## %bb.26:
	cmpq	$0, 40(%r15)
	je	LBB0_28
LBB0_27:
	movq	8(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_b43info
	movl	$0, 4(%r15)
LBB0_28:
	movq	_B43_FWCAPA_QOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r14d, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_WARN
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_29:
	movl	%r13d, %r8d
	shrl	$12, %r8d
	andl	$15, %r8d
	movl	%r13d, %r9d
	shrl	$8, %r9d
	andl	$15, %r9d
	movzbl	%r13b, %r10d
	movl	%ebx, %r11d
	shrl	$11, %r11d
	andl	$31, %r11d
	movl	%r12d, %ecx
	movq	%rbx, %r12
	shrl	$5, %ebx
	andl	$63, %ebx
	andl	$31, %r12d
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	pushq	%r12
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_b43info
	addq	$32, %rsp
	cmpq	$0, 40(%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_31
## %bb.30:
	movq	8(%r15), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_b43warn
	movq	8(%r15), %rdi
	xorl	%esi, %esi
	callq	_b43_print_fw_helptext
LBB0_31:
	movl	4(%rbx), %edi
	movl	16(%r15), %ecx
	movl	20(%r15), %r8d
	leaq	L_.str.7(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	64(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	24(%r15), %rax
	movq	_B43_FW_HDR_351@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_33
## %bb.32:
	movq	8(%r15), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_b43warn
	movq	8(%r15), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_b43_print_fw_helptext
LBB0_33:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_MMIO_MACCTL,4,2            ## @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_PSM_RUN,8,3         ## @B43_MACCTL_PSM_RUN
	.comm	_B43_MACCTL_PSM_JMP0,8,3        ## @B43_MACCTL_PSM_JMP0
	.comm	_B43_SHM_SCRATCH,4,2            ## @B43_SHM_SCRATCH
	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
	.comm	_B43_SHM_UCODE,4,2              ## @B43_SHM_UCODE
	.comm	_B43_SHM_AUTOINC_W,4,2          ## @B43_SHM_AUTOINC_W
	.comm	_B43_MMIO_SHM_DATA,4,2          ## @B43_MMIO_SHM_DATA
	.comm	_B43_SHM_HW,4,2                 ## @B43_SHM_HW
	.comm	_B43_MMIO_GEN_IRQ_REASON,4,2    ## @B43_MMIO_GEN_IRQ_REASON
	.comm	_B43_IRQ_ALL,4,2                ## @B43_IRQ_ALL
	.comm	_B43_IRQ_MAC_SUSPENDED,8,3      ## @B43_IRQ_MAC_SUSPENDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Microcode not responding\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_B43_SHM_SH_UCODEREV,4,2        ## @B43_SHM_SH_UCODEREV
	.comm	_B43_SHM_SH_UCODEPATCH,4,2      ## @B43_SHM_SH_UCODEPATCH
	.comm	_B43_SHM_SH_UCODEDATE,4,2       ## @B43_SHM_SH_UCODEDATE
	.comm	_B43_SHM_SH_UCODETIME,4,2       ## @B43_SHM_SH_UCODETIME
L_.str.1:                               ## @.str.1
	.asciz	"YOUR FIRMWARE IS TOO OLD. Firmware from binary drivers older than version 4.x is unsupported. You must upgrade your firmware files.\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_B43_FW_HDR_598,8,3             ## @B43_FW_HDR_598
	.comm	_B43_FW_HDR_410,8,3             ## @B43_FW_HDR_410
	.comm	_B43_FW_HDR_351,8,3             ## @B43_FW_HDR_351
L_.str.2:                               ## @.str.2
	.asciz	"Loading OpenSource firmware version %u.%u\n"

	.comm	_B43_FWCAPA_HWCRYPTO,4,2        ## @B43_FWCAPA_HWCRYPTO
L_.str.3:                               ## @.str.3
	.asciz	"Hardware crypto acceleration not supported by firmware\n"

	.comm	_B43_FWCAPA_QOS,4,2             ## @B43_FWCAPA_QOS
L_.str.4:                               ## @.str.4
	.asciz	"QoS in OpenFW not supported\n"

L_.str.5:                               ## @.str.5
	.asciz	"Loading firmware version %u.%u (20%.2i-%.2i-%.2i %.2i:%.2i:%.2i)\n"

L_.str.6:                               ## @.str.6
	.asciz	"No \"pcm5.fw\" firmware file found. Hardware accelerated cryptography is disabled.\n"

L_.str.7:                               ## @.str.7
	.asciz	"%u.%u"

L_.str.8:                               ## @.str.8
	.asciz	"You are using an old firmware image. Support for old firmware will be removed soon (official deadline was July 2008).\n"

	.no_dead_strip	_b43_upload_microcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_upload_microcode
_b43_upload_microcode:                  ; @b43_upload_microcode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x25, _B43_MMIO_MACCTL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _B43_MMIO_MACCTL@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_b43_read32
	mov	x20, x0
Lloh2:
	adrp	x26, _B43_MACCTL_PSM_RUN@GOTPAGE
Lloh3:
	ldr	x26, [x26, _B43_MACCTL_PSM_RUN@GOTPAGEOFF]
	ldr	x8, [x26]
	and	x0, x8, x0
	bl	_B43_WARN_ON
Lloh4:
	adrp	x27, _B43_MACCTL_PSM_JMP0@GOTPAGE
Lloh5:
	ldr	x27, [x27, _B43_MACCTL_PSM_JMP0@GOTPAGEOFF]
	ldr	w8, [x27]
	orr	w2, w8, w20
	ldr	w1, [x25]
	mov	x0, x19
	bl	_b43_write32
	mov	w20, #0
Lloh6:
	adrp	x21, _B43_SHM_SCRATCH@GOTPAGE
Lloh7:
	ldr	x21, [x21, _B43_SHM_SCRATCH@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_b43_shm_write16
	add	w20, w20, #1
	cmp	w20, #64
	b.ne	LBB0_1
; %bb.2:
	mov	w20, #-2
Lloh8:
	adrp	x22, _B43_SHM_SHARED@GOTPAGE
Lloh9:
	ldr	x22, [x22, _B43_SHM_SHARED@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #2
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_b43_shm_write16
	cmp	w20, #4094
	b.lo	LBB0_3
; %bb.4:
	ldr	x8, [x19, #56]
	ldp	x8, x20, [x8]
	mov	x9, #17179869180
	add	x24, x8, x9
Lloh10:
	adrp	x8, _B43_SHM_UCODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _B43_SHM_UCODE@GOTPAGEOFF]
	lsr	x23, x24, #2
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _B43_SHM_AUTOINC_W@GOTPAGE
Lloh14:
	ldr	x9, [x9, _B43_SHM_AUTOINC_W@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #0
	bl	_b43_shm_control_word
Lloh16:
	adrp	x21, _B43_MMIO_SHM_DATA@GOTPAGE
Lloh17:
	ldr	x21, [x21, _B43_MMIO_SHM_DATA@GOTPAGEOFF]
	cbz	w23, LBB0_7
; %bb.5:
	add	x23, x20, #4
	ubfx	x28, x24, #2, #32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x21]
	ldr	w0, [x23], #4
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_b43_write32
	mov	w0, #10
	bl	_udelay
	subs	x28, x28, #1
	b.ne	LBB0_6
LBB0_7:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_11
; %bb.8:
	ldp	x8, x20, [x8]
	mov	x9, #17179869180
	add	x28, x8, x9
	lsr	x23, x28, #2
Lloh18:
	adrp	x24, _B43_SHM_HW@GOTPAGE
Lloh19:
	ldr	x24, [x24, _B43_SHM_HW@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #490
	bl	_b43_shm_control_word
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #16384
	bl	_b43_write32
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #491
	bl	_b43_shm_control_word
	cbz	w23, LBB0_11
; %bb.9:
	add	x23, x20, #4
	ubfx	x28, x28, #2, #32
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x21]
	ldr	w0, [x23], #4
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_b43_write32
	mov	w0, #10
	bl	_udelay
	subs	x28, x28, #1
	b.ne	LBB0_10
LBB0_11:
Lloh20:
	adrp	x21, _B43_MMIO_GEN_IRQ_REASON@GOTPAGE
Lloh21:
	ldr	x21, [x21, _B43_MMIO_GEN_IRQ_REASON@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh22:
	adrp	x8, _B43_IRQ_ALL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _B43_IRQ_ALL@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43_write32
	ldr	w1, [x25]
	ldr	x8, [x27]
	mvn	x2, x8
	ldr	x3, [x26]
	mov	x0, x19
	bl	_b43_maskset32
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_read32
Lloh25:
	adrp	x28, _B43_IRQ_MAC_SUSPENDED@GOTPAGE
Lloh26:
	ldr	x28, [x28, _B43_IRQ_MAC_SUSPENDED@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.12:
	mov	w24, #20
Lloh27:
	adrp	x23, _ENODEV@GOTPAGE
Lloh28:
	ldr	x23, [x23, _ENODEV@GOTPAGEOFF]
Lloh29:
	adrp	x20, l_.str@PAGE
Lloh30:
	add	x20, x20, l_.str@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	subs	w24, w24, #1
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #50
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_read32
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_13
LBB0_15:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_read32
	ldr	w1, [x22]
Lloh31:
	adrp	x8, _B43_SHM_SH_UCODEREV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _B43_SHM_SH_UCODEREV@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43_shm_read16
	mov	x20, x0
	ldr	w1, [x22]
Lloh34:
	adrp	x8, _B43_SHM_SH_UCODEPATCH@GOTPAGE
Lloh35:
	ldr	x8, [x8, _B43_SHM_SH_UCODEPATCH@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43_shm_read16
	mov	x21, x0
	ldr	w1, [x22]
Lloh37:
	adrp	x8, _B43_SHM_SH_UCODEDATE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _B43_SHM_SH_UCODEDATE@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43_shm_read16
	mov	x23, x0
	ldr	w1, [x22]
Lloh40:
	adrp	x8, _B43_SHM_SH_UCODETIME@GOTPAGE
Lloh41:
	ldr	x8, [x8, _B43_SHM_SH_UCODETIME@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43_shm_read16
	cmp	w20, #297
	b.ge	LBB0_18
; %bb.16:
Lloh43:
	adrp	x23, _EOPNOTSUPP@GOTPAGE
Lloh44:
	ldr	x23, [x23, _EOPNOTSUPP@GOTPAGEOFF]
Lloh45:
	adrp	x20, l_.str.1@PAGE
Lloh46:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_17:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_b43err
	ldr	x0, [x19, #8]
	mov	w1, #1
	bl	_b43_print_fw_helptext
	ldr	w8, [x23]
	neg	w20, w8
	ldr	w1, [x25]
	ldr	x8, [x26]
	mvn	x2, x8
	ldr	x3, [x27]
	mov	x0, x19
	bl	_b43_maskset32
	b	LBB0_28
LBB0_18:
	mov	x22, x0
	stp	w20, w21, [x19, #16]
Lloh47:
	adrp	x8, _B43_FW_HDR_598@GOTPAGE
Lloh48:
	ldr	x8, [x8, _B43_FW_HDR_598@GOTPAGEOFF]
Lloh49:
	adrp	x9, _B43_FW_HDR_410@GOTPAGE
Lloh50:
	ldr	x9, [x9, _B43_FW_HDR_410@GOTPAGEOFF]
Lloh51:
	adrp	x25, _B43_FW_HDR_351@GOTPAGE
Lloh52:
	ldr	x25, [x25, _B43_FW_HDR_351@GOTPAGEOFF]
	cmp	w20, #409
	csel	x9, x9, x25, hi
	cmp	w20, #597
	csel	x8, x8, x9, hi
	ldr	x8, [x8]
	str	x8, [x19, #24]
	ldr	w8, [x19, #32]
	mov	w9, #65535
	cmp	w23, w9
	cset	w9, eq
	cmp	w8, w9
	cset	w0, ne
	bl	_WARN_ON
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #1
	cset	w8, gt
	mov	w9, #1
	stp	w8, w9, [x19]
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_23
; %bb.19:
	str	w22, [x19, #20]
	ldr	w8, [x19, #16]
	stp	x8, x22, [sp]
Lloh53:
	adrp	x1, l_.str.2@PAGE
Lloh54:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_b43info
	mov	x0, x19
	bl	_b43_fwcapa_read
	mov	x20, x0
Lloh55:
	adrp	x8, _B43_FWCAPA_HWCRYPTO@GOTPAGE
Lloh56:
	ldr	x8, [x8, _B43_FWCAPA_HWCRYPTO@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_21
; %bb.20:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_22
LBB0_21:
	ldr	x0, [x19, #8]
Lloh58:
	adrp	x1, l_.str.3@PAGE
Lloh59:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_b43info
	str	wzr, [x19, #4]
LBB0_22:
Lloh60:
	adrp	x8, _B43_FWCAPA_QOS@GOTPAGE
Lloh61:
	ldr	x8, [x8, _B43_FWCAPA_QOS@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	and	w0, w8, w20
Lloh63:
	adrp	x1, l_.str.4@PAGE
Lloh64:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_WARN
	ldr	x20, [sp, #72]                  ; 8-byte Folded Reload
	b	LBB0_25
LBB0_23:
	ubfx	w8, w23, #12, #4
	ubfx	w9, w23, #8, #4
	and	w10, w23, #0xff
	ubfx	w11, w22, #11, #5
	and	w12, w22, #0x1f
	ubfx	w13, w22, #5, #6
	stp	x20, x21, [sp]
	stp	x13, x12, [sp, #48]
	stp	x10, x11, [sp, #32]
Lloh65:
	adrp	x1, l_.str.5@PAGE
Lloh66:
	add	x1, x1, l_.str.5@PAGEOFF
	stp	x8, x9, [sp, #16]
	bl	_b43info
	ldr	x8, [x19, #40]
	ldr	x20, [sp, #72]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_25
; %bb.24:
	ldr	x0, [x19, #8]
Lloh67:
	adrp	x1, l_.str.6@PAGE
Lloh68:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_b43warn
	ldr	x0, [x19, #8]
	mov	w1, #0
	bl	_b43_print_fw_helptext
LBB0_25:
	ldr	w0, [x20, #4]
	ldp	w3, w4, [x19, #16]
Lloh69:
	adrp	x2, l_.str.7@PAGE
Lloh70:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	x8, [x19, #64]
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	x8, [x19, #24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.26:
	ldr	x0, [x19, #8]
Lloh71:
	adrp	x1, l_.str.8@PAGE
Lloh72:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_b43warn
	ldr	x0, [x19, #8]
	mov	w1, #0
	bl	_b43_print_fw_helptext
LBB0_27:
	mov	w20, #0
LBB0_28:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_MMIO_MACCTL,4,2            ; @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_PSM_RUN,8,3         ; @B43_MACCTL_PSM_RUN
	.comm	_B43_MACCTL_PSM_JMP0,8,3        ; @B43_MACCTL_PSM_JMP0
	.comm	_B43_SHM_SCRATCH,4,2            ; @B43_SHM_SCRATCH
	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
	.comm	_B43_SHM_UCODE,4,2              ; @B43_SHM_UCODE
	.comm	_B43_SHM_AUTOINC_W,4,2          ; @B43_SHM_AUTOINC_W
	.comm	_B43_MMIO_SHM_DATA,4,2          ; @B43_MMIO_SHM_DATA
	.comm	_B43_SHM_HW,4,2                 ; @B43_SHM_HW
	.comm	_B43_MMIO_GEN_IRQ_REASON,4,2    ; @B43_MMIO_GEN_IRQ_REASON
	.comm	_B43_IRQ_ALL,4,2                ; @B43_IRQ_ALL
	.comm	_B43_IRQ_MAC_SUSPENDED,8,3      ; @B43_IRQ_MAC_SUSPENDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Microcode not responding\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_B43_SHM_SH_UCODEREV,4,2        ; @B43_SHM_SH_UCODEREV
	.comm	_B43_SHM_SH_UCODEPATCH,4,2      ; @B43_SHM_SH_UCODEPATCH
	.comm	_B43_SHM_SH_UCODEDATE,4,2       ; @B43_SHM_SH_UCODEDATE
	.comm	_B43_SHM_SH_UCODETIME,4,2       ; @B43_SHM_SH_UCODETIME
l_.str.1:                               ; @.str.1
	.asciz	"YOUR FIRMWARE IS TOO OLD. Firmware from binary drivers older than version 4.x is unsupported. You must upgrade your firmware files.\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_B43_FW_HDR_598,8,3             ; @B43_FW_HDR_598
	.comm	_B43_FW_HDR_410,8,3             ; @B43_FW_HDR_410
	.comm	_B43_FW_HDR_351,8,3             ; @B43_FW_HDR_351
l_.str.2:                               ; @.str.2
	.asciz	"Loading OpenSource firmware version %u.%u\n"

	.comm	_B43_FWCAPA_HWCRYPTO,4,2        ; @B43_FWCAPA_HWCRYPTO
l_.str.3:                               ; @.str.3
	.asciz	"Hardware crypto acceleration not supported by firmware\n"

	.comm	_B43_FWCAPA_QOS,4,2             ; @B43_FWCAPA_QOS
l_.str.4:                               ; @.str.4
	.asciz	"QoS in OpenFW not supported\n"

l_.str.5:                               ; @.str.5
	.asciz	"Loading firmware version %u.%u (20%.2i-%.2i-%.2i %.2i:%.2i:%.2i)\n"

l_.str.6:                               ; @.str.6
	.asciz	"No \"pcm5.fw\" firmware file found. Hardware accelerated cryptography is disabled.\n"

l_.str.7:                               ; @.str.7
	.asciz	"%u.%u"

l_.str.8:                               ; @.str.8
	.asciz	"You are using an old firmware image. Support for old firmware will be removed soon (official deadline was July 2008).\n"

	.no_dead_strip	_b43_upload_microcode
.subsections_via_symbols
