	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_event_michael_mic_failure
_wpa_supplicant_event_michael_mic_failure: ## @wpa_supplicant_event_michael_mic_failure
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_MSG_WARNING@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	callq	_wpa_msg
	xorl	%r14d, %r14d
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%r15)
	setne	%r14b
LBB0_2:
	leaq	-40(%rbp), %rdi
	callq	_os_get_reltime
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	24(%rbx), %rsi
	leaq	-40(%rbp), %rdi
	movl	$60, %edx
	callq	_os_reltime_expired
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	cmpl	$0, (%rbx)
	jne	LBB0_7
## %bb.5:
	movl	32(%rbx), %edi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_wpa_sm_key_request
	jmp	LBB0_9
LBB0_6:
	cmpl	$0, (%rbx)
	je	LBB0_8
LBB0_7:
	movl	4(%rbx), %edx
	movl	32(%rbx), %edi
	movl	$1, %esi
	callq	_wpa_sm_key_request
LBB0_8:
	movl	32(%rbx), %edi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_wpa_sm_key_request
	movl	$1, 8(%rbx)
	movl	36(%rbx), %esi
	movq	%rbx, %rdi
	callq	_wpa_blacklist_add
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_wpa_msg
	xorl	%edi, %edi
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_os_sleep
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wpa_drv_set_countermeasures
	movq	_WLAN_REASON_MICHAEL_MIC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpa_supplicant_deauthenticate
	movq	_wpa_supplicant_stop_countermeasures@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movl	(%r14), %edx
	movl	$60, %edi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
LBB0_9:
	movq	-40(%rbp), %rax
	movq	%rax, 24(%rbx)
	incq	16(%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Michael MIC failure detected"

L_.str.1:                               ## @.str.1
	.asciz	"TKIP countermeasures started"

	.comm	_WLAN_REASON_MICHAEL_MIC_FAILURE,4,2 ## @WLAN_REASON_MICHAEL_MIC_FAILURE
	.comm	_wpa_supplicant_stop_countermeasures,4,2 ## @wpa_supplicant_stop_countermeasures
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.comm	_wpa_supplicant_delayed_mic_error_report,4,2 ## @wpa_supplicant_delayed_mic_error_report
	.no_dead_strip	_wpa_supplicant_event_michael_mic_failure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_event_michael_mic_failure
_wpa_supplicant_event_michael_mic_failure: ; @wpa_supplicant_event_michael_mic_failure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _MSG_WARNING@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_WARNING@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_wpa_msg
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w20, ne
LBB0_2:
	add	x0, sp, #8
	bl	_os_get_reltime
	mov	x1, x19
	ldr	x8, [x1, #24]!
	cbz	x8, LBB0_4
; %bb.3:
	add	x0, sp, #8
	mov	w2, #60
	bl	_os_reltime_expired
	cbz	w0, LBB0_6
LBB0_4:
	ldr	w8, [x19]
	cbnz	w8, LBB0_7
; %bb.5:
	ldr	w0, [x19, #32]
	mov	w1, #1
	mov	x2, x20
	bl	_wpa_sm_key_request
	b	LBB0_9
LBB0_6:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
LBB0_7:
	ldr	w0, [x19, #32]
	ldr	w2, [x19, #4]
	mov	w1, #1
	bl	_wpa_sm_key_request
LBB0_8:
	ldr	w0, [x19, #32]
	mov	w22, #1
	mov	w1, #1
	mov	x2, x20
	bl	_wpa_sm_key_request
	str	w22, [x19, #8]
	ldr	w1, [x19, #36]
	mov	x0, x19
	bl	_wpa_blacklist_add
	ldr	w1, [x21]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wpa_msg
	mov	w0, #0
	mov	w1, #10000
	bl	_os_sleep
	mov	x0, x19
	mov	w1, #1
	bl	_wpa_drv_set_countermeasures
Lloh6:
	adrp	x8, _WLAN_REASON_MICHAEL_MIC_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLAN_REASON_MICHAEL_MIC_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_supplicant_deauthenticate
Lloh9:
	adrp	x20, _wpa_supplicant_stop_countermeasures@GOTPAGE
Lloh10:
	ldr	x20, [x20, _wpa_supplicant_stop_countermeasures@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	ldr	w2, [x20]
	mov	w0, #60
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
LBB0_9:
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #16]
	add	x9, x9, #1
	stp	x9, x8, [x19, #16]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Michael MIC failure detected"

l_.str.1:                               ; @.str.1
	.asciz	"TKIP countermeasures started"

	.comm	_WLAN_REASON_MICHAEL_MIC_FAILURE,4,2 ; @WLAN_REASON_MICHAEL_MIC_FAILURE
	.comm	_wpa_supplicant_stop_countermeasures,4,2 ; @wpa_supplicant_stop_countermeasures
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.comm	_wpa_supplicant_delayed_mic_error_report,4,2 ; @wpa_supplicant_delayed_mic_error_report
	.no_dead_strip	_wpa_supplicant_event_michael_mic_failure
.subsections_via_symbols
