	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mesh_mpm_parse_peer_mgmt
_mesh_mpm_parse_peer_mgmt:              ## @mesh_mpm_parse_peer_mgmt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%r8, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_os_memset
	movq	_SAE_PMKID_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, %rax
	ja	LBB0_2
## %bb.1:
	leaq	(%r14,%rbx,8), %rcx
	leaq	(,%rax,8), %rdx
	subq	%rdx, %rcx
	movq	%rcx, (%r15)
	subq	%rax, %rbx
LBB0_2:
	movq	_PLINK_OPEN@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_4
## %bb.3:
	cmpq	$4, %rbx
	jne	LBB0_9
LBB0_4:
	movq	_PLINK_CONFIRM@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_6
## %bb.5:
	cmpq	$6, %rbx
	je	LBB0_6
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_wpa_msg
	movl	$-1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_PLINK_CLOSE@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_10
## %bb.7:
	cmpq	$6, %rbx
	je	LBB0_12
## %bb.8:
	cmpq	$8, %rbx
	jne	LBB0_9
LBB0_12:
	movq	%r14, 8(%r15)
	leaq	16(%r14), %rax
	movq	%rax, 16(%r15)
	leaq	(%r14,%rbx,8), %rax
	addq	$-16, %rax
	movq	%rax, 24(%r15)
	movq	$-6, %rax
	jmp	LBB0_13
LBB0_10:
	movl	$-1, %eax
	cmpq	$4, %rbx
	jb	LBB0_15
## %bb.11:
	movq	%r14, 8(%r15)
	leaq	16(%r14), %rax
	movq	%rax, 16(%r15)
	movq	$-4, %rax
LBB0_13:
	addq	%rax, %rbx
	xorl	%eax, %eax
	cmpq	$2, %rbx
	jb	LBB0_15
## %bb.14:
	addq	$32, %r14
	movq	%r14, 32(%r15)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SAE_PMKID_LEN,8,3              ## @SAE_PMKID_LEN
	.comm	_PLINK_OPEN,8,3                 ## @PLINK_OPEN
	.comm	_PLINK_CONFIRM,8,3              ## @PLINK_CONFIRM
	.comm	_PLINK_CLOSE,8,3                ## @PLINK_CLOSE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MPM: Invalid peer mgmt ie"

	.no_dead_strip	_mesh_mpm_parse_peer_mgmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mesh_mpm_parse_peer_mgmt
_mesh_mpm_parse_peer_mgmt:              ; @mesh_mpm_parse_peer_mgmt
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	mov	x0, x4
	mov	w1, #0
	mov	w2, #40
	bl	_os_memset
Lloh0:
	adrp	x8, _SAE_PMKID_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAE_PMKID_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.hi	LBB0_2
; %bb.1:
	add	x9, x20, x21, lsl #3
	sub	x9, x9, x8, lsl #3
	str	x9, [x19]
	sub	x21, x21, x8
LBB0_2:
Lloh3:
	adrp	x8, _PLINK_OPEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLINK_OPEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x23
	ccmp	x21, #4, #4, eq
	b.ne	LBB0_8
; %bb.3:
Lloh6:
	adrp	x8, _PLINK_CONFIRM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PLINK_CONFIRM@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x23
	ccmp	x21, #6, #4, eq
	b.ne	LBB0_8
; %bb.4:
Lloh9:
	adrp	x8, _PLINK_CLOSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PLINK_CLOSE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_11
; %bb.5:
	cmp	x21, #6
	b.eq	LBB0_7
; %bb.6:
	cmp	x21, #8
	b.ne	LBB0_8
LBB0_7:
	add	x8, x20, #16
	stp	x20, x8, [x19, #8]
	add	x8, x20, x21, lsl #3
	sub	x8, x8, #16
	str	x8, [x19, #24]
	mov	x8, #-6
	b	LBB0_13
LBB0_8:
Lloh12:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_wpa_msg
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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_11:
	cmp	x21, #4
	b.lo	LBB0_9
; %bb.12:
	add	x8, x20, #16
	stp	x20, x8, [x19, #8]
	mov	x8, #-4
LBB0_13:
	add	x8, x21, x8
	cmp	x8, #2
	b.lo	LBB0_15
; %bb.14:
	mov	w0, #0
	add	x8, x20, #32
	str	x8, [x19, #32]
	b	LBB0_10
LBB0_15:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SAE_PMKID_LEN,8,3              ; @SAE_PMKID_LEN
	.comm	_PLINK_OPEN,8,3                 ; @PLINK_OPEN
	.comm	_PLINK_CONFIRM,8,3              ; @PLINK_CONFIRM
	.comm	_PLINK_CLOSE,8,3                ; @PLINK_CLOSE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MPM: Invalid peer mgmt ie"

	.no_dead_strip	_mesh_mpm_parse_peer_mgmt
.subsections_via_symbols
