	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_mpm_connect_peer          ## -- Begin function mesh_mpm_connect_peer
	.p2align	4, 0x90
_mesh_mpm_connect_peer:                 ## @mesh_mpm_connect_peer
	.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	%rdi, %r13
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	cmpl	$0, (%rcx)
	je	LBB0_5
## %bb.6:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	(%rax), %rbx
	movq	8(%rax), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_ap_get_sta
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	_PLINK_OPN_SNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	jg	LBB0_10
## %bb.9:
	movq	_PLINK_ESTAB@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jle	LBB0_12
LBB0_10:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.11:
	movq	(%rcx), %rcx
	movq	_SAE_NOTHING@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jle	LBB0_13
LBB0_12:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_2
LBB0_5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_2:
	movq	%r13, %rdi
	callq	_wpa_msg
	movl	$-1, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_2
LBB0_13:
	movq	(%rbx), %rcx
	movq	_MESH_CONF_SEC_NONE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_mesh_mpm_plink_open
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_15:
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_mesh_rsn_auth_sae_sta
	movl	(%r12), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_os_memcpy
	cmpl	$-1, %r14d
	movl	$10, %edi
	cmovnel	%r14d, %edi
	movq	_peer_add_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mesh is not prepared yet"

L_.str.1:                               ## @.str.1
	.asciz	"This command is available only with no_auto_peer mesh network"

L_.str.2:                               ## @.str.2
	.asciz	"No such mesh peer"

	.comm	_PLINK_OPN_SNT,8,3              ## @PLINK_OPN_SNT
	.comm	_PLINK_ESTAB,8,3                ## @PLINK_ESTAB
	.comm	_SAE_NOTHING,8,3                ## @SAE_NOTHING
L_.str.3:                               ## @.str.3
	.asciz	"Specified peer is connecting/connected"

	.comm	_MESH_CONF_SEC_NONE,8,3         ## @MESH_CONF_SEC_NONE
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_peer_add_timer,4,2             ## @peer_add_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_mpm_connect_peer          ; -- Begin function mesh_mpm_connect_peer
	.p2align	2
_mesh_mpm_connect_peer:                 ; @mesh_mpm_connect_peer
	.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, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_8
; %bb.2:
	ldr	w9, [x9]
	cbz	w9, LBB0_8
; %bb.3:
	mov	x20, x2
	mov	x21, x1
	ldp	x23, x9, [x8]
	ldr	x22, [x9]
	mov	x0, x22
	bl	_ap_get_sta
	cbz	x0, LBB0_12
; %bb.4:
	mov	x1, x0
Lloh0:
	adrp	x8, _PLINK_OPN_SNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLINK_OPN_SNT@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _PLINK_ESTAB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PLINK_ESTAB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x2, x8
	ccmp	x8, x9, #0, le
	b.le	LBB0_7
; %bb.5:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_13
; %bb.6:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SAE_NOTHING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SAE_NOTHING@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_13
LBB0_7:
Lloh9:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh19:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_wpa_msg
	mov	w0, #-1
LBB0_11:
	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_12:
Lloh24:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_13:
	ldr	x8, [x23]
Lloh29:
	adrp	x9, _MESH_CONF_SEC_NONE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MESH_CONF_SEC_NONE@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_mesh_mpm_plink_open
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_mesh_rsn_auth_sae_sta
	ldr	w0, [x22]
Lloh32:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_os_memcpy
	cmn	w20, #1
	mov	w8, #10
	csel	w0, w8, w20, eq
Lloh35:
	adrp	x8, _peer_add_timer@GOTPAGE
Lloh36:
	ldr	x8, [x8, _peer_add_timer@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
LBB0_16:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mesh is not prepared yet"

l_.str.1:                               ; @.str.1
	.asciz	"This command is available only with no_auto_peer mesh network"

l_.str.2:                               ; @.str.2
	.asciz	"No such mesh peer"

	.comm	_PLINK_OPN_SNT,8,3              ; @PLINK_OPN_SNT
	.comm	_PLINK_ESTAB,8,3                ; @PLINK_ESTAB
	.comm	_SAE_NOTHING,8,3                ; @SAE_NOTHING
l_.str.3:                               ; @.str.3
	.asciz	"Specified peer is connecting/connected"

	.comm	_MESH_CONF_SEC_NONE,8,3         ; @MESH_CONF_SEC_NONE
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_peer_add_timer,4,2             ; @peer_add_timer
.subsections_via_symbols
