	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_recovery_hb_timer
_ath6kl_recovery_hb_timer:              ## @ath6kl_recovery_hb_timer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_fw_recovery@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	movq	_RECOVERY_CLEANUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	44(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	(%rbx), %rax
	movq	_ATH6KL_STATE_RECOVERY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, 8(%rbx)
	je	LBB0_3
## %bb.4:
	movq	16(%rbx), %rax
	incq	%rax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	%rax, 16(%rbx)
	movq	_ATH6KL_HB_RESP_MISS_THRES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.10:
	movq	$0, 16(%rbx)
	movq	$0, 32(%rbx)
	movl	$0, 8(%rbx)
	movq	_ATH6KL_FW_HB_RESP_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_recovery_err_notify     ## TAILCALL
LBB0_6:
	movq	32(%rbx), %rsi
	incq	%rsi
	movq	%rsi, 32(%rbx)
	movl	$1, 8(%rbx)
	movl	40(%rbx), %edi
	xorl	%edx, %edx
	callq	_ath6kl_wmi_get_challenge_resp_cmd
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_ath6kl_warn
LBB0_8:
	movq	%rbx, %r14
	addq	$28, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	24(%rbx), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fw_recovery,4,2                ## @fw_recovery
	.comm	_RECOVERY_CLEANUP,4,2           ## @RECOVERY_CLEANUP
	.comm	_ATH6KL_STATE_RECOVERY,8,3      ## @ATH6KL_STATE_RECOVERY
	.comm	_ATH6KL_HB_RESP_MISS_THRES,8,3  ## @ATH6KL_HB_RESP_MISS_THRES
	.comm	_ATH6KL_FW_HB_RESP_FAILURE,4,2  ## @ATH6KL_FW_HB_RESP_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to send hb challenge request, err:%d\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ar,8,3                         ## @ar
	.no_dead_strip	_ath6kl_recovery_hb_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_recovery_hb_timer
_ath6kl_recovery_hb_timer:              ; @ath6kl_recovery_hb_timer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _fw_recovery@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fw_recovery@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
Lloh3:
	adrp	x8, _RECOVERY_CLEANUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RECOVERY_CLEANUP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #44
	bl	_test_bit
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _ATH6KL_STATE_RECOVERY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATH6KL_STATE_RECOVERY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	b	LBB0_6
LBB0_5:
	mov	x8, #0
LBB0_6:
	str	x8, [x19, #16]
Lloh9:
	adrp	x9, _ATH6KL_HB_RESP_MISS_THRES@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATH6KL_HB_RESP_MISS_THRES@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.7:
	str	xzr, [x19, #16]
	str	xzr, [x19, #32]
	str	wzr, [x19, #8]
Lloh12:
	adrp	x8, _ATH6KL_FW_HB_RESP_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATH6KL_FW_HB_RESP_FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath6kl_recovery_err_notify
LBB0_8:
	ldr	x8, [x19, #32]
	add	x1, x8, #1
	str	x1, [x19, #32]
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	w0, [x19, #40]
	mov	w2, #0
	bl	_ath6kl_wmi_get_challenge_resp_cmd
	cbz	w0, LBB0_10
; %bb.9:
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ath6kl_warn
LBB0_10:
	add	x20, x19, #28
Lloh17:
	adrp	x8, _jiffies@GOTPAGE
Lloh18:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh19:
	ldr	x21, [x8]
	ldr	w0, [x19, #24]
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mod_timer
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_fw_recovery,4,2                ; @fw_recovery
	.comm	_RECOVERY_CLEANUP,4,2           ; @RECOVERY_CLEANUP
	.comm	_ATH6KL_STATE_RECOVERY,8,3      ; @ATH6KL_STATE_RECOVERY
	.comm	_ATH6KL_HB_RESP_MISS_THRES,8,3  ; @ATH6KL_HB_RESP_MISS_THRES
	.comm	_ATH6KL_FW_HB_RESP_FAILURE,4,2  ; @ATH6KL_FW_HB_RESP_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to send hb challenge request, err:%d\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ar,8,3                         ; @ar
	.no_dead_strip	_ath6kl_recovery_hb_timer
.subsections_via_symbols
