	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_verify_eapol_key_mic
_wpa_supplicant_verify_eapol_key_mic:   ## @wpa_supplicant_verify_eapol_key_mic
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_WPA_EAPOL_KEY_MIC_MAX_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	32(%rbx), %edi
	movl	72(%rbx), %esi
	callq	_wpa_mic_len
	movq	%rax, %r15
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	addq	$16, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_os_memcpy
	cmpq	$0, 64(%rbx)
	je	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_os_memset
	movl	60(%rbx), %edi
	movl	32(%rbx), %edx
	movl	56(%rbx), %esi
	subq	$8, %rsp
	movl	%r13d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	%r12
	callq	_wpa_eapol_key_mic
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_10
LBB0_3:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_wpa_msg
LBB0_4:
	cmpl	$0, (%rbx)
	je	LBB0_9
## %bb.5:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_os_memset
	movl	40(%rbx), %edi
	movl	32(%rbx), %edx
	movl	36(%rbx), %esi
	subq	$8, %rsp
	movl	%r13d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	%r12
	callq	_wpa_eapol_key_mic
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_8
LBB0_9:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_8:
	callq	_wpa_msg
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_10:
	leaq	48(%rbx), %r14
	movq	$0, 64(%rbx)
	movl	$1, (%rbx)
	leaq	36(%rbx), %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_os_memcpy
	movl	$16, %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_os_memset
	movl	$1, 4(%rbx)
LBB0_11:
	movq	16(%rbx), %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	_WPA_REPLAY_COUNTER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movl	$1, 8(%rbx)
	xorl	%eax, %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_EAPOL_KEY_MIC_MAX_LEN,4,2  ## @WPA_EAPOL_KEY_MIC_MAX_LEN
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPA: Invalid EAPOL-Key MIC when using TPTK - ignoring TPTK"

L_.str.1:                               ## @.str.1
	.asciz	"WPA: Invalid EAPOL-Key MIC - dropping packet"

L_.str.2:                               ## @.str.2
	.asciz	"WPA: Could not verify EAPOL-Key MIC - dropping packet"

	.comm	_WPA_REPLAY_COUNTER_LEN,4,2     ## @WPA_REPLAY_COUNTER_LEN
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.no_dead_strip	_wpa_supplicant_verify_eapol_key_mic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_verify_eapol_key_mic
_wpa_supplicant_verify_eapol_key_mic:   ; @wpa_supplicant_verify_eapol_key_mic
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _WPA_EAPOL_KEY_MIC_MAX_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPA_EAPOL_KEY_MIC_MAX_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	w0, [x0, #32]
	ldr	w1, [x19, #72]
	bl	_wpa_mic_len
	mov	x25, x0
	add	x26, x20, #16
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	bl	_os_memcpy
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x26
	mov	w1, #0
	mov	x2, x25
	bl	_os_memset
	ldp	w1, w0, [x19, #56]
	ldr	w2, [x19, #32]
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x26
	bl	_wpa_eapol_key_mic
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	bl	_os_memcmp_const
	cbz	x0, LBB0_10
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	bl	_wpa_msg
LBB0_4:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.5:
	mov	x0, x26
	mov	w1, #0
	mov	x2, x25
	bl	_os_memset
	ldp	w1, w0, [x19, #36]
	ldr	w2, [x19, #32]
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x26
	bl	_wpa_eapol_key_mic
	tbnz	x0, #63, LBB0_7
; %bb.6:
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	bl	_os_memcmp_const
	cbz	x0, LBB0_11
LBB0_7:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_9:
	bl	_wpa_msg
	mov	w0, #-1
	b	LBB0_12
LBB0_10:
	add	x21, x19, #48
	str	xzr, [x19, #64]
	mov	w22, #1
	str	w22, [x19]
	add	x0, x19, #36
	mov	x1, x21
	mov	w2, #8
	bl	_os_memcpy
	mov	x0, x21
	mov	w1, #0
	mov	w2, #16
	bl	_os_memset
	str	w22, [x19, #4]
LBB0_11:
	ldr	x0, [x19, #16]
	ldr	x1, [x20]
Lloh23:
	adrp	x8, _WPA_REPLAY_COUNTER_LEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WPA_REPLAY_COUNTER_LEN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_os_memcpy
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_12:
	ldur	x8, [x29, #-72]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_EAPOL_KEY_MIC_MAX_LEN,4,2  ; @WPA_EAPOL_KEY_MIC_MAX_LEN
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA: Invalid EAPOL-Key MIC when using TPTK - ignoring TPTK"

l_.str.1:                               ; @.str.1
	.asciz	"WPA: Invalid EAPOL-Key MIC - dropping packet"

l_.str.2:                               ; @.str.2
	.asciz	"WPA: Could not verify EAPOL-Key MIC - dropping packet"

	.comm	_WPA_REPLAY_COUNTER_LEN,4,2     ; @WPA_REPLAY_COUNTER_LEN
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.no_dead_strip	_wpa_supplicant_verify_eapol_key_mic
.subsections_via_symbols
