	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802_1x_mka_decode_live_peer_body
_ieee802_1x_mka_decode_live_peer_body:  ## @ieee802_1x_mka_decode_live_peer_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	%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	%rsi, %rbx
	movq	%rdi, %r14
	movl	12(%rdi), %esi
	callq	_ieee802_1x_kay_is_in_live_peer
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_get_mka_param_body_len
	movq	%rax, %rdx
	testb	$15, %dl
	je	LBB0_1
## %bb.15:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_13:
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_1:
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.2:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, (%rax)
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r14
	addq	$32, %r15
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jae	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MKA_HDR_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rcx
	leaq	(%r15,%rax,4), %r12
	addq	%rbx, %r12
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rcx,%r14,4), %edi
	callq	_be_to_host32
	movq	%rax, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %esi
	movq	_MI_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%r14,4), %esi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_ieee802_1x_kay_get_peer
	testq	%rax, %rax
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx,%r14,4), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_ieee802_1x_kay_create_potential_peer
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%rbx), %r13
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_reset_participant_mi
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KaY: MKA Peer Packet Body Length (%zu bytes) should be a multiple of 16 octets"

	.comm	_MKA_HDR_LEN,4,2                ## @MKA_HDR_LEN
	.comm	_MI_LEN,4,2                     ## @MI_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"KaY: Could not update mi"

	.no_dead_strip	_ieee802_1x_mka_decode_live_peer_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_live_peer_body
_ieee802_1x_mka_decode_live_peer_body:  ; @ieee802_1x_mka_decode_live_peer_body
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x0, #12]
	bl	_ieee802_1x_kay_is_in_live_peer
	mov	x22, x0
	mov	x0, x19
	bl	_get_mka_param_body_len
	mov	x21, x0
	tst	x0, #0xf
	b.eq	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_2:
	mov	w0, #-1
	b	LBB0_15
LBB0_3:
	cbz	x21, LBB0_14
; %bb.4:
	mov	w28, #1
Lloh5:
	adrp	x26, _MKA_HDR_LEN@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MKA_HDR_LEN@GOTPAGEOFF]
Lloh7:
	adrp	x27, _MI_LEN@GOTPAGE
Lloh8:
	ldr	x27, [x27, _MI_LEN@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x24, [x0]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x28, #7
	add	x28, x28, #8
	add	x19, x19, #32
	cmp	x8, x21
	b.hs	LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x23, [x26]
	add	x25, x19, x23, lsl #2
	ldr	w0, [x25, #4]
	bl	_be_to_host32
	mov	x24, x0
	ldr	w1, [x20, #8]
	ldr	w2, [x27]
	mov	x0, x25
	bl	_os_memcmp
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w22, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x19, x23, lsl #2]
	mov	x0, x20
	bl	_ieee802_1x_kay_get_peer
	cbnz	x0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x19, x23, lsl #2]
	mov	x0, x20
	mov	x2, x24
	bl	_ieee802_1x_kay_create_potential_peer
	cbnz	w0, LBB0_6
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	cmp	x24, x8
	b.le	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_reset_participant_mi
	cbnz	w0, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh9:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_6
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KaY: MKA Peer Packet Body Length (%zu bytes) should be a multiple of 16 octets"

	.comm	_MKA_HDR_LEN,4,2                ; @MKA_HDR_LEN
	.comm	_MI_LEN,4,2                     ; @MI_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"KaY: Could not update mi"

	.no_dead_strip	_ieee802_1x_mka_decode_live_peer_body
.subsections_via_symbols
