	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kay_l2_receive
_kay_l2_receive:                        ## @kay_l2_receive
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	cmpq	$19, %rcx
	ja	LBB0_1
## %bb.11:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_1:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	16(%rdx), %edi
	callq	_be_to_host16
	movslq	%eax, %r12
	addq	$20, %r12
	cmpq	%rbx, %r12
	jbe	LBB0_2
## %bb.12:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	16(%r14), %edi
	callq	_be_to_host16
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_2:
	jae	LBB0_3
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%r14,%r12,4), %rdx
	subq	%r12, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rcx
	callq	_wpa_hexdump
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %r12
LBB0_5:
	movl	12(%r14), %edx
	movq	_EAPOL_VERSION@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jge	LBB0_6
## %bb.13:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_6:
	movl	(%r14), %edi
	callq	_be_to_host16
	movq	_ETH_P_PAE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.7:
	movq	4(%r14), %rax
	movq	_IEEE802_1X_TYPE_EAPOL_MKA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_wpa_hexdump
	movq	%r15, %rdi
	callq	_dl_list_empty
	testq	%rax, %rax
	je	LBB0_9
## %bb.14:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee802_1x_kay_decode_mkpdu    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KaY: EAPOL frame too short (%lu)"

L_.str.1:                               ## @.str.1
	.asciz	"KaY: EAPOL MPDU is invalid: (received len %lu, calculated len %lu, EAPOL length %u)"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"KaY: Ignore extra octets following the Packey Body field"

	.comm	_EAPOL_VERSION,4,2              ## @EAPOL_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"KaY: version %d does not support MKA"

	.comm	_ETH_P_PAE,4,2                  ## @ETH_P_PAE
	.comm	_IEEE802_1X_TYPE_EAPOL_MKA,8,3  ## @IEEE802_1X_TYPE_EAPOL_MKA
L_.str.4:                               ## @.str.4
	.asciz	"KaY: RX EAPOL-MKA"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.5:                               ## @.str.5
	.asciz	"KaY: No MKA participant instance - ignore EAPOL-MKA"

	.no_dead_strip	_kay_l2_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kay_l2_receive
_kay_l2_receive:                        ; @kay_l2_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x22, x3
	cmp	x3, #19
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_2:
	mov	x19, x2
	mov	x21, x0
	ldr	w0, [x2, #16]
	bl	_be_to_host16
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x20, x8, #20
	cmp	x20, x22
	b.ls	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	ldr	w0, [x19, #16]
	bl	_be_to_host16
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp, #8]
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	b	LBB0_9
LBB0_4:
	b.hs	LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x2, x19, x20, lsl #2
	sub	x3, x22, x20
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump
	b	LBB0_7
LBB0_6:
	mov	x20, x22
LBB0_7:
	ldr	w8, [x19, #12]
Lloh15:
	adrp	x9, _EAPOL_VERSION@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EAPOL_VERSION@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.8:
Lloh18:
	adrp	x9, _MSG_MSGDUMP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	bl	_wpa_printf
LBB0_10:
	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
	add	sp, sp, #80
	ret
LBB0_11:
	ldr	w0, [x19]
	bl	_be_to_host16
Lloh23:
	adrp	x8, _ETH_P_PAE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETH_P_PAE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.12:
	ldur	x8, [x19, #4]
Lloh26:
	adrp	x9, _IEEE802_1X_TYPE_EAPOL_MKA@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IEEE802_1X_TYPE_EAPOL_MKA@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.13:
Lloh29:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_wpa_hexdump
	mov	x0, x21
	bl	_dl_list_empty
	cbz	x0, LBB0_15
; %bb.14:
Lloh34:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	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
	add	sp, sp, #80
	b	_wpa_printf
LBB0_15:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	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
	add	sp, sp, #80
	b	_ieee802_1x_kay_decode_mkpdu
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KaY: EAPOL frame too short (%lu)"

l_.str.1:                               ; @.str.1
	.asciz	"KaY: EAPOL MPDU is invalid: (received len %lu, calculated len %lu, EAPOL length %u)"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"KaY: Ignore extra octets following the Packey Body field"

	.comm	_EAPOL_VERSION,4,2              ; @EAPOL_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"KaY: version %d does not support MKA"

	.comm	_ETH_P_PAE,4,2                  ; @ETH_P_PAE
	.comm	_IEEE802_1X_TYPE_EAPOL_MKA,8,3  ; @IEEE802_1X_TYPE_EAPOL_MKA
l_.str.4:                               ; @.str.4
	.asciz	"KaY: RX EAPOL-MKA"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.5:                               ; @.str.5
	.asciz	"KaY: No MKA participant instance - ignore EAPOL-MKA"

	.no_dead_strip	_kay_l2_receive
.subsections_via_symbols
