	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_handle_firmware_panic
_b43_handle_firmware_panic:             ## @b43_handle_firmware_panic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_B43_SHM_SCRATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_FWPANIC_REASON_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_b43_shm_read16
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_b43err
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_2
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43_controller_restart         ## TAILCALL
LBB0_2:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43dbg                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_SHM_SCRATCH,4,2            ## @B43_SHM_SCRATCH
	.comm	_B43_FWPANIC_REASON_REG,4,2     ## @B43_FWPANIC_REASON_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Whoopsy, firmware panic! Reason: %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"The panic reason is unknown.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Microcode panic"

	.no_dead_strip	_b43_handle_firmware_panic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_handle_firmware_panic
_b43_handle_firmware_panic:             ; @b43_handle_firmware_panic
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _B43_SHM_SCRATCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_SHM_SCRATCH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _B43_FWPANIC_REASON_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_FWPANIC_REASON_REG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_b43_shm_read16
	mov	x20, x0
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_b43err
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_controller_restart
LBB0_4:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43dbg
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_SHM_SCRATCH,4,2            ; @B43_SHM_SCRATCH
	.comm	_B43_FWPANIC_REASON_REG,4,2     ; @B43_FWPANIC_REASON_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Whoopsy, firmware panic! Reason: %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"The panic reason is unknown.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Microcode panic"

	.no_dead_strip	_b43_handle_firmware_panic
.subsections_via_symbols
