	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_eapol_key_mic              ## -- Begin function wpa_eapol_key_mic
	.p2align	4, 0x90
_wpa_eapol_key_mic:                     ## @wpa_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	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	16(%rbp), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA512_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	cmpl	$136, %r14d
	je	LBB0_7
## %bb.3:
	cmpl	$138, %r14d
	je	LBB0_9
## %bb.4:
	cmpl	$137, %r14d
	jne	LBB0_10
## %bb.5:
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.6:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hmac_md5                       ## TAILCALL
LBB0_1:
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_12
LBB0_7:
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, %r8
	callq	_hmac_sha1
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	jne	LBB0_13
## %bb.8:
	movq	_MD5_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_os_memcpy
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edx
	jmp	LBB0_11
LBB0_10:
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edx
LBB0_11:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA512_MAC_LEN,4,2             ## @SHA512_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPA: KCK not set - cannot calculate MIC"

L_.str.1:                               ## @.str.1
	.asciz	"WPA: EAPOL-Key MIC using HMAC-MD5"

L_.str.2:                               ## @.str.2
	.asciz	"WPA: EAPOL-Key MIC using HMAC-SHA1"

	.comm	_MD5_MAC_LEN,4,2                ## @MD5_MAC_LEN
L_.str.3:                               ## @.str.3
	.asciz	"WPA: EAPOL-Key MIC algorithm not known (AKM-defined - akmp=0x%x)"

L_.str.4:                               ## @.str.4
	.asciz	"WPA: EAPOL-Key MIC algorithm not known (ver=%d)"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_eapol_key_mic              ; -- Begin function wpa_eapol_key_mic
	.p2align	2
_wpa_eapol_key_mic:                     ; @wpa_eapol_key_mic
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _SHA512_MAC_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHA512_MAC_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	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, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
	cbz	x1, LBB0_6
; %bb.1:
	cmp	w3, #136
	b.eq	LBB0_7
; %bb.2:
	cmp	w3, #138
	b.eq	LBB0_9
; %bb.3:
	cmp	w3, #137
	b.ne	LBB0_10
; %bb.4:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.5:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hmac_md5
LBB0_6:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_12
LBB0_7:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x24
	bl	_hmac_sha1
	cbnz	w0, LBB0_12
; %bb.8:
Lloh19:
	adrp	x8, _MD5_MAC_LEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MD5_MAC_LEN@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x24
	bl	_os_memcpy
	mov	w0, #0
	b	LBB0_13
LBB0_9:
	ldr	w0, [x8]
	str	x2, [sp, #-16]!
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
	ldr	w0, [x8]
	str	x3, [sp, #-16]!
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_11:
	bl	_wpa_printf
	add	sp, sp, #16
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldur	x8, [x29, #-56]
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_15
; %bb.14:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA512_MAC_LEN,4,2             ; @SHA512_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA: KCK not set - cannot calculate MIC"

l_.str.1:                               ; @.str.1
	.asciz	"WPA: EAPOL-Key MIC using HMAC-MD5"

l_.str.2:                               ; @.str.2
	.asciz	"WPA: EAPOL-Key MIC using HMAC-SHA1"

	.comm	_MD5_MAC_LEN,4,2                ; @MD5_MAC_LEN
l_.str.3:                               ; @.str.3
	.asciz	"WPA: EAPOL-Key MIC algorithm not known (AKM-defined - akmp=0x%x)"

l_.str.4:                               ; @.str.4
	.asciz	"WPA: EAPOL-Key MIC algorithm not known (ver=%d)"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
.subsections_via_symbols
