	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_recovery_err_notify     ## -- Begin function ath6kl_recovery_err_notify
	.p2align	4, 0x90
_ath6kl_recovery_err_notify:            ## @ath6kl_recovery_err_notify
	.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
	cmpl	$0, 16(%rdi)
	je	LBB0_3
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_ATH6KL_DBG_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_ath6kl_dbg
	leaq	12(%rbx), %rsi
	movl	%r14d, %edi
	callq	_set_bit
	movq	_RECOVERY_CLEANUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movq	_ATH6KL_STATE_RECOVERY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	20(%rbx), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_DBG_RECOVERY,4,2        ## @ATH6KL_DBG_RECOVERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fw error detected, reason:%d\n"

	.comm	_RECOVERY_CLEANUP,4,2           ## @RECOVERY_CLEANUP
	.comm	_ATH6KL_STATE_RECOVERY,8,3      ## @ATH6KL_STATE_RECOVERY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_recovery_err_notify     ; -- Begin function ath6kl_recovery_err_notify
	.p2align	2
_ath6kl_recovery_err_notify:            ; @ath6kl_recovery_err_notify
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ATH6KL_DBG_RECOVERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_DBG_RECOVERY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_ath6kl_dbg
	add	x1, x19, #12
	mov	x0, x20
	bl	_set_bit
Lloh5:
	adrp	x8, _RECOVERY_CLEANUP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RECOVERY_CLEANUP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _ATH6KL_STATE_RECOVERY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATH6KL_STATE_RECOVERY@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x19, #20]
	add	x1, x19, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_queue_work
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_DBG_RECOVERY,4,2        ; @ATH6KL_DBG_RECOVERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fw error detected, reason:%d\n"

	.comm	_RECOVERY_CLEANUP,4,2           ; @RECOVERY_CLEANUP
	.comm	_ATH6KL_STATE_RECOVERY,8,3      ; @ATH6KL_STATE_RECOVERY
.subsections_via_symbols
