	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ieee802_1x_mka_decode_basic_body
LCPI0_0:
	.quad	0x3ff8000000000000              ## double 1.5
LCPI0_1:
	.quad	0x408f400000000000              ## double 1000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ieee802_1x_mka_decode_basic_body:      ## @ieee802_1x_mka_decode_basic_body
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %rdx
	movq	_MKA_VERSION_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_2
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_2:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.3:
	cmpq	$0, 16(%r15)
	je	LBB0_5
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_23
LBB0_5:
	movq	%r15, %rdi
	callq	_get_mka_param_body_len
	movq	_MKA_HDR_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	$56, %esi
	subq	%rcx, %rsi
	movq	%rax, %rdx
	subq	%rsi, %rdx
	jae	LBB0_7
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_24
LBB0_7:
	movl	48(%r15), %esi
	movq	%rbx, %rdi
	callq	_ieee802_1x_kay_get_participant
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r14
	movl	36(%r15), %edi
	movl	16(%rax), %esi
	movq	_MI_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_reset_participant_mi
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	16(%r14), %edi
	callq	_mi_txt
	leaq	L_.str.4(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_13:
	movl	12(%r14), %edi
	movl	36(%r15), %esi
	movl	(%rbx), %edx
	callq	_os_memcpy
	movl	32(%r15), %eax
	movl	%eax, 8(%r14)
	movl	4(%r14), %edi
	movl	44(%r15), %esi
	movl	$4, %edx
	callq	_os_memcpy
	movl	40(%r15), %eax
	movl	%eax, (%r14)
	movl	36(%r15), %esi
	movq	%r14, %rdi
	callq	_ieee802_1x_kay_get_peer
	testq	%rax, %rax
	je	LBB0_14
## %bb.20:
	movq	%rax, %rbx
	movq	8(%rax), %r12
	movl	32(%r15), %edi
	callq	_be_to_host32
	cmpq	%rax, %r12
	jge	LBB0_22
## %bb.21:
	movl	32(%r15), %edi
	callq	_be_to_host32
	movq	%rax, 8(%rbx)
	movl	28(%r15), %eax
	movl	%eax, 36(%rbx)
	movl	24(%r15), %eax
	movl	%eax, 32(%rbx)
	movq	16(%r15), %rax
	movq	%rax, 24(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_24
LBB0_8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_23
LBB0_14:
	leaq	40(%r15), %rsi
	movq	%r14, %rdi
	callq	_ieee802_1x_kay_get_peer_sci
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	%rax, %rbx
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	xorl	%edi, %edi
	callq	_time
	cvtsi2sd	%rax, %xmm0
	movq	_MKA_HELLO_TIME@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm1
	divsd	LCPI0_1(%rip), %xmm1
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %rax
	cmpq	%rax, (%rbx)
	jle	LBB0_24
## %bb.16:
	movq	%rax, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_24
LBB0_22:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
LBB0_23:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_24:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_24
LBB0_17:
	movl	32(%r15), %edi
	movl	36(%r15), %ebx
	callq	_be_to_host32
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_ieee802_1x_kay_create_potential_peer
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movl	28(%r15), %ecx
	movl	%ecx, 36(%rax)
	movl	24(%r15), %ecx
	movl	%ecx, 32(%rax)
	movq	16(%r15), %rcx
	movq	%rcx, 24(%rax)
	movl	8(%r15), %ecx
	movl	%ecx, 16(%rax)
	jmp	LBB0_24
LBB0_18:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_MKA_VERSION_ID,8,3             ## @MKA_VERSION_ID
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KaY: Peer's version(%d) greater than MKA current version(%d)"

L_.str.1:                               ## @.str.1
	.asciz	"KaY: I must be key server - ignore MKPDU claiming to be from a key server"

	.comm	_MKA_HDR_LEN,4,2                ## @MKA_HDR_LEN
L_.str.2:                               ## @.str.2
	.asciz	"KaY: Too small body length %zu"

L_.str.3:                               ## @.str.3
	.asciz	"KaY: Peer is not included in my CA - ignore MKPDU"

	.comm	_MI_LEN,4,2                     ## @MI_LEN
L_.str.4:                               ## @.str.4
	.asciz	"KaY: Peer using my MI - selected a new random MI: %s"

	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.5:                               ## @.str.5
	.asciz	"KaY: duplicated SCI detected - maybe active attacker or peer selected new MI - ignore MKPDU"

	.comm	_MKA_HELLO_TIME,8,3             ## @MKA_HELLO_TIME
L_.str.6:                               ## @.str.6
	.asciz	"KaY: No potential peer entry found - ignore MKPDU"

L_.str.7:                               ## @.str.7
	.asciz	"KaY: The peer MN did not increase - ignore MKPDU"

	.no_dead_strip	_ieee802_1x_mka_decode_basic_body
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802_1x_mka_decode_basic_body
_ieee802_1x_mka_decode_basic_body:      ; @ieee802_1x_mka_decode_basic_body
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _MKA_VERSION_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MKA_VERSION_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x10, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x10]
	stp	x8, x9, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_2:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_get_mka_param_body_len
Lloh13:
	adrp	x8, _MKA_HDR_LEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MKA_HDR_LEN@GOTPAGEOFF]
Lloh15:
	ldrsw	x8, [x8]
	mov	w9, #56
	sub	x8, x9, x8
	subs	x2, x0, x8
	b.hs	LBB0_10
; %bb.6:
Lloh16:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
LBB0_7:
	bl	_wpa_printf
LBB0_8:
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	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
LBB0_10:
	ldr	w1, [x19, #48]
	mov	x0, x20
	bl	_ieee802_1x_kay_get_participant
	mov	x20, x0
	cbz	x0, LBB0_17
; %bb.11:
	ldr	w0, [x19, #36]
	ldr	w1, [x20, #16]
Lloh21:
	adrp	x22, _MI_LEN@GOTPAGE
Lloh22:
	ldr	x22, [x22, _MI_LEN@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_os_memcmp
	cbnz	x0, LBB0_14
; %bb.12:
	mov	x0, x20
	bl	_reset_participant_mi
	cbz	w0, LBB0_8
; %bb.13:
Lloh23:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
	ldr	w0, [x20, #16]
	bl	_mi_txt
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_wpa_printf
LBB0_14:
	ldr	w0, [x20, #12]
	ldr	w1, [x19, #36]
	ldr	w2, [x22]
	bl	_os_memcpy
	ldr	w8, [x19, #32]
	str	w8, [x20, #8]
	ldr	w0, [x20, #4]
	ldr	w1, [x19, #44]
	mov	w2, #4
	bl	_os_memcpy
	mov	x22, x19
	ldr	w8, [x22, #40]!
	str	w8, [x20]
	ldr	w1, [x19, #36]
	mov	x0, x20
	bl	_ieee802_1x_kay_get_peer
	cbz	x0, LBB0_18
; %bb.15:
	mov	x21, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x19, #32]
	bl	_be_to_host32
	cmp	x22, x0
	b.ge	LBB0_21
; %bb.16:
	ldr	w0, [x19, #32]
	bl	_be_to_host32
	str	x0, [x21, #8]
	ldr	d0, [x19, #24]
	str	d0, [x21, #32]
	ldr	x8, [x19, #16]
	str	x8, [x21, #24]
	ldr	w8, [x19, #8]
	str	w8, [x21, #16]
	b	LBB0_9
LBB0_17:
Lloh28:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	b	LBB0_9
LBB0_18:
	mov	x0, x20
	mov	x1, x22
	bl	_ieee802_1x_kay_get_peer_sci
	cbz	x0, LBB0_22
; %bb.19:
	mov	x21, x0
Lloh33:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	mov	x0, #0
	bl	_time
	mov	x20, #0
	scvtf	d0, x0
Lloh38:
	adrp	x8, _MKA_HELLO_TIME@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MKA_HELLO_TIME@GOTPAGEOFF]
Lloh40:
	ldr	d1, [x8]
	fmov	d2, #1.50000000
	fmul	d1, d1, d2
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d2, x8
	fdiv	d1, d1, d2
	fadd	d0, d1, d0
	fcvtzs	x8, d0
	ldr	x9, [x21]
	cmp	x9, x8
	b.le	LBB0_9
; %bb.20:
	mov	x20, #0
	str	x8, [x21]
	b	LBB0_9
LBB0_21:
Lloh41:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x1, l_.str.7@PAGE
Lloh45:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_7
LBB0_22:
	ldp	w0, w21, [x19, #32]
	bl	_be_to_host32
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ieee802_1x_kay_create_potential_peer
	cbz	x0, LBB0_24
; %bb.23:
	ldr	d0, [x19, #24]
	str	d0, [x0, #32]
	ldr	x8, [x19, #16]
	str	x8, [x0, #24]
	ldr	w8, [x19, #8]
	str	w8, [x0, #16]
	b	LBB0_9
LBB0_24:
Lloh46:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x1, l_.str.6@PAGE
Lloh50:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_MKA_VERSION_ID,8,3             ; @MKA_VERSION_ID
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KaY: Peer's version(%d) greater than MKA current version(%d)"

l_.str.1:                               ; @.str.1
	.asciz	"KaY: I must be key server - ignore MKPDU claiming to be from a key server"

	.comm	_MKA_HDR_LEN,4,2                ; @MKA_HDR_LEN
l_.str.2:                               ; @.str.2
	.asciz	"KaY: Too small body length %zu"

l_.str.3:                               ; @.str.3
	.asciz	"KaY: Peer is not included in my CA - ignore MKPDU"

	.comm	_MI_LEN,4,2                     ; @MI_LEN
l_.str.4:                               ; @.str.4
	.asciz	"KaY: Peer using my MI - selected a new random MI: %s"

	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.5:                               ; @.str.5
	.asciz	"KaY: duplicated SCI detected - maybe active attacker or peer selected new MI - ignore MKPDU"

	.comm	_MKA_HELLO_TIME,8,3             ; @MKA_HELLO_TIME
l_.str.6:                               ; @.str.6
	.asciz	"KaY: No potential peer entry found - ignore MKPDU"

l_.str.7:                               ; @.str.7
	.asciz	"KaY: The peer MN did not increase - ignore MKPDU"

	.no_dead_strip	_ieee802_1x_mka_decode_basic_body
.subsections_via_symbols
