	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_upload_microcode
_b43legacy_upload_microcode:            ## @b43legacy_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, %r13
	movq	32(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_B43legacy_MMIO_MACCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_b43legacy_read32
	movl	%eax, %ebx
	movq	_B43legacy_MACCTL_PSM_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_B43legacy_WARN_ON
	movq	_B43legacy_MACCTL_PSM_JMP0@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_b43legacy_write32
	xorl	%ebx, %ebx
	movq	_B43legacy_SHM_WIRELESS@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_b43legacy_shm_write16
	incl	%ebx
	cmpl	$64, %ebx
	jne	LBB0_1
## %bb.2:
	movl	$-2, %ebx
	movq	_B43legacy_SHM_SHARED@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addl	$2, %ebx
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_b43legacy_shm_write16
	cmpl	$4094, %ebx                     ## imm = 0xFFE
	jb	LBB0_3
## %bb.4:
	movabsq	$17179869180, %rcx              ## imm = 0x3FFFFFFFC
	movq	24(%r13), %rax
	movq	8(%rax), %r12
	movq	(%rax), %rbx
	addq	%rcx, %rbx
	shrq	$2, %rbx
	movq	_B43legacy_SHM_UCODE@GOTPCREL(%rip), %rax
	movq	_B43legacy_SHM_AUTOINC_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_b43legacy_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	_B43legacy_MMIO_SHM_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	4(%r12,%rbx,4), %edi
	callq	_be32_to_cpu
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_b43legacy_write32
	movl	$10, %edi
	callq	_udelay
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_6
LBB0_7:
	movq	16(%r13), %rax
	testq	%rax, %rax
	movabsq	$17179869180, %rbx              ## imm = 0x3FFFFFFFC
	je	LBB0_11
## %bb.8:
	addq	(%rax), %rbx
	movq	8(%rax), %r12
	shrq	$2, %rbx
	movq	_B43legacy_SHM_HW@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	$490, %edx                      ## imm = 0x1EA
	callq	_b43legacy_shm_control_word
	movq	_B43legacy_MMIO_SHM_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$16384, %edx                    ## imm = 0x4000
	callq	_b43legacy_write32
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	$491, %edx                      ## imm = 0x1EB
	callq	_b43legacy_shm_control_word
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.9:
	movl	%ebx, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_B43legacy_MMIO_SHM_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r12,%r14,4), %edi
	callq	_be32_to_cpu
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_b43legacy_write32
	movl	$10, %edi
	callq	_udelay
	incq	%r14
	cmpq	%r14, %r15
	jne	LBB0_10
LBB0_11:
	movq	_B43legacy_MMIO_GEN_IRQ_REASON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43legacy_IRQ_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_b43legacy_write32
	movq	_B43legacy_MMIO_MACCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_b43legacy_read32
	movq	_B43legacy_MACCTL_PSM_JMP0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_B43legacy_MACCTL_PSM_RUN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_b43legacy_write32
	xorl	%ebx, %ebx
	movq	_B43legacy_IRQ_MAC_SUSPENDED@GOTPCREL(%rip), %r12
	movq	_B43legacy_IRQWAIT_MAX_RETRIES@GOTPCREL(%rip), %r15
	movq	_current@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_B43legacy_MMIO_GEN_IRQ_REASON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43legacy_read32
	cmpl	(%r12), %eax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jae	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$50, %edi
	callq	_msleep_interruptible
	movl	(%r14), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_12
## %bb.16:
	movq	_EINTR@GOTPCREL(%rip), %rbx
	jmp	LBB0_20
LBB0_17:
	movq	_B43legacy_MMIO_GEN_IRQ_REASON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43legacy_read32
	movq	_B43legacy_SHM_SHARED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_B43legacy_SHM_SH_UCODEREV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_b43legacy_shm_read16
	movl	%eax, %r14d
	movl	(%rbx), %esi
	movq	_B43legacy_SHM_SH_UCODEPATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_b43legacy_shm_read16
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movq	_B43legacy_SHM_SH_UCODEDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_b43legacy_shm_read16
	movl	%eax, %r12d
	movl	(%rbx), %esi
	movq	_B43legacy_SHM_SH_UCODETIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_b43legacy_shm_read16
                                        ## kill: def $eax killed $eax def $rax
	movq	32(%r13), %rdi
	cmpl	$297, %r14d                     ## imm = 0x129
	jl	LBB0_22
## %bb.18:
	leaq	L_.str.1(%rip), %rsi
	callq	_b43legacyerr
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rbx
	jmp	LBB0_19
LBB0_14:
	movq	32(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_b43legacyerr
	movq	_ENODEV@GOTPCREL(%rip), %rbx
LBB0_19:
	movq	32(%r13), %rdi
	callq	_b43legacy_print_fw_helptext
LBB0_20:
	xorl	%r14d, %r14d
	subl	(%rbx), %r14d
	movq	_B43legacy_MMIO_MACCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_b43legacy_read32
	movq	_B43legacy_MACCTL_PSM_RUN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_B43legacy_MACCTL_PSM_JMP0@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_b43legacy_write32
LBB0_21:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movl	%r12d, %r8d
	shrl	$12, %r8d
	andl	$15, %r8d
	movl	%r12d, %r9d
	shrl	$8, %r9d
	andl	$15, %r9d
	movzbl	%r12b, %r10d
	movl	%eax, %r11d
	shrl	$11, %r11d
	andl	$31, %r11d
	movl	%eax, %ebx
	shrl	$5, %ebx
	andl	$63, %ebx
	andl	$31, %eax
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	pushq	%rax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_b43legacyinfo
	addq	$32, %rsp
	movl	%r14d, 8(%r13)
	movl	%r15d, 12(%r13)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	leaq	L_.str.3(%rip), %rdx
	movl	$4, %esi
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_snprintf
	movq	(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_MMIO_MACCTL,4,2      ## @B43legacy_MMIO_MACCTL
	.comm	_B43legacy_MACCTL_PSM_RUN,4,2   ## @B43legacy_MACCTL_PSM_RUN
	.comm	_B43legacy_MACCTL_PSM_JMP0,4,2  ## @B43legacy_MACCTL_PSM_JMP0
	.comm	_B43legacy_SHM_WIRELESS,4,2     ## @B43legacy_SHM_WIRELESS
	.comm	_B43legacy_SHM_SHARED,4,2       ## @B43legacy_SHM_SHARED
	.comm	_B43legacy_SHM_UCODE,4,2        ## @B43legacy_SHM_UCODE
	.comm	_B43legacy_SHM_AUTOINC_W,4,2    ## @B43legacy_SHM_AUTOINC_W
	.comm	_B43legacy_MMIO_SHM_DATA,4,2    ## @B43legacy_MMIO_SHM_DATA
	.comm	_B43legacy_SHM_HW,4,2           ## @B43legacy_SHM_HW
	.comm	_B43legacy_MMIO_GEN_IRQ_REASON,4,2 ## @B43legacy_MMIO_GEN_IRQ_REASON
	.comm	_B43legacy_IRQ_ALL,4,2          ## @B43legacy_IRQ_ALL
	.comm	_B43legacy_IRQ_MAC_SUSPENDED,4,2 ## @B43legacy_IRQ_MAC_SUSPENDED
	.comm	_B43legacy_IRQWAIT_MAX_RETRIES,4,2 ## @B43legacy_IRQWAIT_MAX_RETRIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Microcode not responding\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_B43legacy_SHM_SH_UCODEREV,4,2  ## @B43legacy_SHM_SH_UCODEREV
	.comm	_B43legacy_SHM_SH_UCODEPATCH,4,2 ## @B43legacy_SHM_SH_UCODEPATCH
	.comm	_B43legacy_SHM_SH_UCODEDATE,4,2 ## @B43legacy_SHM_SH_UCODEDATE
	.comm	_B43legacy_SHM_SH_UCODETIME,4,2 ## @B43legacy_SHM_SH_UCODETIME
L_.str.1:                               ## @.str.1
	.asciz	"YOU ARE TRYING TO LOAD V4 FIRMWARE. Only firmware from binary drivers version 3.x is supported. You must change your firmware files.\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.2:                               ## @.str.2
	.asciz	"Loading firmware version 0x%X, patch level %u (20%.2i-%.2i-%.2i %.2i:%.2i:%.2i)\n"

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

	.no_dead_strip	_b43legacy_upload_microcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_upload_microcode
_b43legacy_upload_microcode:            ; @b43legacy_upload_microcode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, #32]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x23, _B43legacy_MMIO_MACCTL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _B43legacy_MMIO_MACCTL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_b43legacy_read32
	mov	x20, x0
Lloh2:
	adrp	x28, _B43legacy_MACCTL_PSM_RUN@GOTPAGE
Lloh3:
	ldr	x28, [x28, _B43legacy_MACCTL_PSM_RUN@GOTPAGEOFF]
	ldr	w8, [x28]
	and	w0, w8, w0
	bl	_B43legacy_WARN_ON
Lloh4:
	adrp	x26, _B43legacy_MACCTL_PSM_JMP0@GOTPAGE
Lloh5:
	ldr	x26, [x26, _B43legacy_MACCTL_PSM_JMP0@GOTPAGEOFF]
	ldr	w8, [x26]
	orr	w2, w8, w20
	ldr	w1, [x23]
	mov	x0, x19
	bl	_b43legacy_write32
	mov	w20, #0
Lloh6:
	adrp	x21, _B43legacy_SHM_WIRELESS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _B43legacy_SHM_WIRELESS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_b43legacy_shm_write16
	add	w20, w20, #1
	cmp	w20, #64
	b.ne	LBB0_1
; %bb.2:
	mov	w20, #-2
Lloh8:
	adrp	x27, _B43legacy_SHM_SHARED@GOTPAGE
Lloh9:
	ldr	x27, [x27, _B43legacy_SHM_SHARED@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #2
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_b43legacy_shm_write16
	cmp	w20, #4094
	b.lo	LBB0_3
; %bb.4:
	ldr	x8, [x19, #24]
	ldp	x8, x20, [x8]
	mov	x9, #17179869180
	add	x24, x8, x9
Lloh10:
	adrp	x8, _B43legacy_SHM_UCODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _B43legacy_SHM_UCODE@GOTPAGEOFF]
	lsr	x22, x24, #2
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _B43legacy_SHM_AUTOINC_W@GOTPAGE
Lloh14:
	ldr	x9, [x9, _B43legacy_SHM_AUTOINC_W@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #0
	bl	_b43legacy_shm_control_word
Lloh16:
	adrp	x21, _B43legacy_MMIO_SHM_DATA@GOTPAGE
Lloh17:
	ldr	x21, [x21, _B43legacy_MMIO_SHM_DATA@GOTPAGEOFF]
	cbz	w22, LBB0_7
; %bb.5:
	add	x22, x20, #4
	ubfx	x24, x24, #2, #32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x21]
	ldr	w0, [x22], #4
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_write32
	mov	w0, #10
	bl	_udelay
	subs	x24, x24, #1
	b.ne	LBB0_6
LBB0_7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.8:
	ldp	x8, x20, [x8]
	mov	x9, #17179869180
	add	x24, x8, x9
	lsr	x22, x24, #2
Lloh18:
	adrp	x25, _B43legacy_SHM_HW@GOTPAGE
Lloh19:
	ldr	x25, [x25, _B43legacy_SHM_HW@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #490
	bl	_b43legacy_shm_control_word
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #16384
	bl	_b43legacy_write32
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #491
	bl	_b43legacy_shm_control_word
	cbz	w22, LBB0_11
; %bb.9:
	add	x22, x20, #4
	ubfx	x24, x24, #2, #32
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x21]
	ldr	w0, [x22], #4
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_write32
	mov	w0, #10
	bl	_udelay
	subs	x24, x24, #1
	b.ne	LBB0_10
LBB0_11:
Lloh20:
	adrp	x20, _B43legacy_MMIO_GEN_IRQ_REASON@GOTPAGE
Lloh21:
	ldr	x20, [x20, _B43legacy_MMIO_GEN_IRQ_REASON@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh22:
	adrp	x8, _B43legacy_IRQ_ALL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _B43legacy_IRQ_ALL@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43legacy_write32
	ldr	w1, [x23]
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x26]
	bic	w8, w0, w8
	mov	x26, x28
	ldr	w9, [x28]
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x19
	bl	_b43legacy_write32
	mov	w22, #0
Lloh25:
	adrp	x28, _B43legacy_IRQ_MAC_SUSPENDED@GOTPAGE
Lloh26:
	ldr	x28, [x28, _B43legacy_IRQ_MAC_SUSPENDED@GOTPAGEOFF]
Lloh27:
	adrp	x24, _B43legacy_IRQWAIT_MAX_RETRIES@GOTPAGE
Lloh28:
	ldr	x24, [x24, _B43legacy_IRQWAIT_MAX_RETRIES@GOTPAGEOFF]
Lloh29:
	adrp	x25, _current@GOTPAGE
Lloh30:
	ldr	x25, [x25, _current@GOTPAGEOFF]
Lloh31:
	adrp	x21, _EINTR@GOTPAGE
Lloh32:
	ldr	x21, [x21, _EINTR@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x28]
	cmp	w0, w8
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.hs	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #50
	bl	_msleep_interruptible
	ldr	w0, [x25]
	bl	_signal_pending
	cbz	x0, LBB0_12
	b	LBB0_19
LBB0_15:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w1, [x27]
Lloh33:
	adrp	x8, _B43legacy_SHM_SH_UCODEREV@GOTPAGE
Lloh34:
	ldr	x8, [x8, _B43legacy_SHM_SH_UCODEREV@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43legacy_shm_read16
	mov	x20, x0
	ldr	w1, [x27]
Lloh36:
	adrp	x8, _B43legacy_SHM_SH_UCODEPATCH@GOTPAGE
Lloh37:
	ldr	x8, [x8, _B43legacy_SHM_SH_UCODEPATCH@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43legacy_shm_read16
	mov	x21, x0
	ldr	w1, [x27]
Lloh39:
	adrp	x8, _B43legacy_SHM_SH_UCODEDATE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _B43legacy_SHM_SH_UCODEDATE@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43legacy_shm_read16
	mov	x22, x0
	ldr	w1, [x27]
Lloh42:
	adrp	x8, _B43legacy_SHM_SH_UCODETIME@GOTPAGE
Lloh43:
	ldr	x8, [x8, _B43legacy_SHM_SH_UCODETIME@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43legacy_shm_read16
	mov	x8, x0
	ldr	x0, [x19, #32]
	cmp	w20, #297
	b.lt	LBB0_21
; %bb.16:
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_b43legacyerr
Lloh47:
	adrp	x21, _EOPNOTSUPP@GOTPAGE
Lloh48:
	ldr	x21, [x21, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
	ldr	x0, [x19, #32]
Lloh49:
	adrp	x1, l_.str@PAGE
Lloh50:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43legacyerr
Lloh51:
	adrp	x21, _ENODEV@GOTPAGE
Lloh52:
	ldr	x21, [x21, _ENODEV@GOTPAGEOFF]
LBB0_18:
	ldr	x0, [x19, #32]
	bl	_b43legacy_print_fw_helptext
LBB0_19:
	ldr	w8, [x21]
	neg	w20, w8
	ldr	w1, [x23]
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x26]
	bic	w8, w0, w8
Lloh53:
	adrp	x9, _B43legacy_MACCTL_PSM_JMP0@GOTPAGE
Lloh54:
	ldr	x9, [x9, _B43legacy_MACCTL_PSM_JMP0@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x19
	bl	_b43legacy_write32
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	ubfx	w4, w22, #12, #4
	ubfx	w5, w22, #8, #4
	and	w6, w22, #0xff
	ubfx	w7, w8, #11, #5
	and	w9, w8, #0x1f
	ubfx	w8, w8, #5, #6
	stp	w8, w9, [sp]
Lloh56:
	adrp	x1, l_.str.2@PAGE
Lloh57:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_b43legacyinfo
	stp	w20, w21, [x19, #8]
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w0, [x22, #4]
Lloh58:
	adrp	x2, l_.str.3@PAGE
Lloh59:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #4
	mov	x3, x20
	mov	x4, x21
	bl	_snprintf
	mov	w20, #0
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	w8, [x22]
	b	LBB0_20
	.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	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_MMIO_MACCTL,4,2      ; @B43legacy_MMIO_MACCTL
	.comm	_B43legacy_MACCTL_PSM_RUN,4,2   ; @B43legacy_MACCTL_PSM_RUN
	.comm	_B43legacy_MACCTL_PSM_JMP0,4,2  ; @B43legacy_MACCTL_PSM_JMP0
	.comm	_B43legacy_SHM_WIRELESS,4,2     ; @B43legacy_SHM_WIRELESS
	.comm	_B43legacy_SHM_SHARED,4,2       ; @B43legacy_SHM_SHARED
	.comm	_B43legacy_SHM_UCODE,4,2        ; @B43legacy_SHM_UCODE
	.comm	_B43legacy_SHM_AUTOINC_W,4,2    ; @B43legacy_SHM_AUTOINC_W
	.comm	_B43legacy_MMIO_SHM_DATA,4,2    ; @B43legacy_MMIO_SHM_DATA
	.comm	_B43legacy_SHM_HW,4,2           ; @B43legacy_SHM_HW
	.comm	_B43legacy_MMIO_GEN_IRQ_REASON,4,2 ; @B43legacy_MMIO_GEN_IRQ_REASON
	.comm	_B43legacy_IRQ_ALL,4,2          ; @B43legacy_IRQ_ALL
	.comm	_B43legacy_IRQ_MAC_SUSPENDED,4,2 ; @B43legacy_IRQ_MAC_SUSPENDED
	.comm	_B43legacy_IRQWAIT_MAX_RETRIES,4,2 ; @B43legacy_IRQWAIT_MAX_RETRIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Microcode not responding\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_B43legacy_SHM_SH_UCODEREV,4,2  ; @B43legacy_SHM_SH_UCODEREV
	.comm	_B43legacy_SHM_SH_UCODEPATCH,4,2 ; @B43legacy_SHM_SH_UCODEPATCH
	.comm	_B43legacy_SHM_SH_UCODEDATE,4,2 ; @B43legacy_SHM_SH_UCODEDATE
	.comm	_B43legacy_SHM_SH_UCODETIME,4,2 ; @B43legacy_SHM_SH_UCODETIME
l_.str.1:                               ; @.str.1
	.asciz	"YOU ARE TRYING TO LOAD V4 FIRMWARE. Only firmware from binary drivers version 3.x is supported. You must change your firmware files.\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.2:                               ; @.str.2
	.asciz	"Loading firmware version 0x%X, patch level %u (20%.2i-%.2i-%.2i %.2i:%.2i:%.2i)\n"

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

	.no_dead_strip	_b43legacy_upload_microcode
.subsections_via_symbols
