	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_group_add_persistent  ## -- Begin function wpas_p2p_group_add_persistent
	.p2align	4, 0x90
_wpas_p2p_group_add_persistent:         ## @wpas_p2p_group_add_persistent
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -44(%rbp)
	movl	$-1, %r12d
	cmpl	$2, (%rsi)
	jne	LBB0_31
## %bb.1:
	movq	%rsi, %rbx
	movq	16(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_31
## %bb.2:
	movl	%r8d, %r13d
	movl	%ecx, %r14d
	movq	%rdi, %r15
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %edx
	leaq	-44(%rbp), %rcx
	callq	_wpas_get_p2p_group
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	8(%rbx), %rax
	movq	_WPAS_MODE_P2P_GO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	cmpl	%edx, -44(%rbp)
	jne	LBB0_7
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	xorl	%r12d, %r12d
	cmpl	$0, -44(%rbp)
	jne	LBB0_31
## %bb.5:
	movq	_wpas_p2p_group_formation_timeout@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	24(%r15), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	testq	%rax, %rax
	je	LBB0_31
## %bb.6:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_P2P_MAX_INITIAL_CONN_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	movl	24(%r15), %ecx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	jmp	LBB0_31
LBB0_7:
	movq	16(%r15), %rax
	movq	(%rax), %rdi
	callq	_os_free
	movq	16(%r15), %rax
	movq	$0, (%rax)
	movq	%r15, %rdi
	callq	_wpas_p2p_stop_find_oper
	movq	$0, 8(%r15)
	movq	8(%rbx), %rax
	movq	_WPAS_MODE_P2P_GO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.8:
	movq	%r15, %rdi
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.9:
	movl	%r14d, %esi
	callq	_wpas_p2p_select_go_freq
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_14
	jmp	LBB0_31
LBB0_20:
	movq	_WPAS_MODE_INFRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.21:
	movl	64(%rbp), %r14d
	testl	%r13d, %r13d
	jle	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	movq	48(%rbp), %rsi
	movl	%r13d, %edx
	callq	_freq_included
	testq	%rax, %rax
	jne	LBB0_27
LBB0_23:
	movl	48(%rbx), %esi
	movq	%r15, %rdi
	callq	_wpa_bss_get_p2p_dev_addr
	movq	%rax, %r12
	leaq	-96(%rbp), %rdi
	callq	_os_get_reltime
	xorl	%r13d, %r13d
	testq	%r12, %r12
	je	LBB0_27
## %bb.24:
	leaq	4(%r12), %rsi
	leaq	-96(%rbp), %rdi
	movl	$5, %edx
	callq	_os_reltime_expired
	testl	%eax, %eax
	jne	LBB0_27
## %bb.25:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	48(%rbp), %rsi
	callq	_freq_included
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movl	(%r12), %r13d
LBB0_27:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	callq	_wpas_start_p2p_client
	movl	%eax, %r12d
	jmp	LBB0_31
LBB0_10:
	movl	%r13d, %esi
	callq	_wpas_p2p_select_go_freq
	testl	%eax, %eax
	js	LBB0_13
## %bb.11:
	je	LBB0_13
## %bb.12:
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	48(%rbp), %rsi
	movl	%eax, %edx
	callq	_freq_included
	testq	%rax, %rax
	jne	LBB0_14
LBB0_13:
	xorl	%r14d, %r14d
LBB0_14:
	movl	40(%rbp), %eax
	movl	32(%rbp), %r10d
	movl	24(%rbp), %r9d
	movl	16(%rbp), %r8d
	subq	$8, %rsp
	leaq	-96(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	pushq	48(%rbp)
	pushq	%rax
	pushq	%r10
	callq	_wpas_p2p_init_go_params
	addq	$32, %rsp
	testq	%rax, %rax
	jne	LBB0_31
## %bb.15:
	movl	$1, -96(%rbp)
	movq	40(%rbx), %rax
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	-72(%rbp), %edi
	movq	32(%rbx), %rsi
	movl	$4, %edx
	callq	_os_memcpy
LBB0_17:
	movl	24(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_29
## %bb.18:
	callq	_os_strlen
	cmpl	$4, %eax
	jb	LBB0_28
## %bb.19:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_31
LBB0_28:
	movl	-76(%rbp), %edi
	movl	24(%rbx), %esi
	movl	$4, %edx
	callq	_os_strlcpy
LBB0_29:
	movl	-80(%rbp), %edi
	movq	16(%rbx), %rsi
	movl	4(%rbx), %edx
	callq	_os_memcpy
	movl	4(%rbx), %eax
	movl	%eax, -92(%rbp)
	movl	$1, -88(%rbp)
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	callq	_wpas_p2p_get_group_iface
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	%rax, %rbx
	movl	56(%rbp), %r14d
	movl	-84(%rbp), %esi
	movq	_P2P_MAX_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	48(%rbp), %rdi
	callq	_p2p_channels_to_freqs
	movl	%r14d, (%rbx)
	leaq	-96(%rbp), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wpas_start_wps_go
LBB0_31:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPAS_MODE_P2P_GO,8,3           ## @WPAS_MODE_P2P_GO
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Requested persistent group is already running"

	.comm	_wpas_p2p_group_formation_timeout,4,2 ## @wpas_p2p_group_formation_timeout
L_.str.1:                               ## @.str.1
	.asciz	"P2P: Reschedule group formation timeout since peer is still trying to invite us"

	.comm	_P2P_MAX_INITIAL_CONN_WAIT,4,2  ## @P2P_MAX_INITIAL_CONN_WAIT
	.comm	_WPAS_MODE_INFRA,8,3            ## @WPAS_MODE_INFRA
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"P2P: Invalid passphrase in persistent group"

	.comm	_P2P_MAX_CHANNELS,4,2           ## @P2P_MAX_CHANNELS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_group_add_persistent  ; -- Begin function wpas_p2p_group_add_persistent
	.p2align	2
_wpas_p2p_group_add_persistent:         ; @wpas_p2p_group_add_persistent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	wzr, [sp, #20]
	ldr	w8, [x1]
	cmp	w8, #2
	b.ne	LBB0_22
; %bb.1:
	mov	x21, x1
	ldr	x1, [x1, #16]
	cbz	x1, LBB0_22
; %bb.2:
	mov	x23, x7
	mov	x24, x6
	mov	x25, x5
	mov	x26, x4
	mov	x27, x3
	mov	x20, x2
	mov	x19, x0
	ldr	w2, [x21, #4]
	add	x3, sp, #20
	bl	_wpas_get_p2p_group
Lloh0:
	adrp	x28, _WPAS_MODE_P2P_GO@GOTPAGE
Lloh1:
	ldr	x28, [x28, _WPAS_MODE_P2P_GO@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w8, [sp, #20]
	ldr	x9, [x21, #8]
	ldr	x10, [x28]
	cmp	x9, x10
	cset	w9, eq
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.4:
Lloh2:
	adrp	x20, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [sp, #20]
	cbnz	w8, LBB0_32
; %bb.5:
Lloh6:
	adrp	x21, _wpas_p2p_group_formation_timeout@GOTPAGE
Lloh7:
	ldr	x21, [x21, _wpas_p2p_group_formation_timeout@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x19, #24]
	mov	x2, #0
	bl	_eloop_cancel_timeout
	cbz	x0, LBB0_23
; %bb.6:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh10:
	adrp	x8, _P2P_MAX_INITIAL_CONN_WAIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _P2P_MAX_INITIAL_CONN_WAIT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w2, [x21]
	ldr	w3, [x19, #24]
	mov	w1, #0
	mov	x4, #0
	bl	_eloop_register_timeout
	b	LBB0_32
LBB0_7:
	ldr	x22, [x29, #24]
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_os_free
	ldr	x8, [x19, #16]
	str	xzr, [x8]
	mov	x0, x19
	bl	_wpas_p2p_stop_find_oper
	str	xzr, [x19, #8]
	ldr	x8, [x21, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x19
	cmp	w27, #1
	b.lt	LBB0_17
; %bb.9:
	mov	x1, x27
	bl	_wpas_p2p_select_go_freq
	mov	x26, x0
	tbz	w0, #31, LBB0_21
	b	LBB0_22
LBB0_10:
Lloh13:
	adrp	x9, _WPAS_MODE_INFRA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WPAS_MODE_INFRA@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.11:
	ldr	w23, [x29, #36]
	cmp	w26, #1
	b.lt	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x26
	bl	_freq_included
	cbnz	x0, LBB0_16
LBB0_13:
	ldr	w1, [x21, #48]
	mov	x0, x19
	bl	_wpa_bss_get_p2p_dev_addr
	mov	x24, x0
	add	x0, sp, #24
	bl	_os_get_reltime
	cbz	x24, LBB0_15
; %bb.14:
	add	x1, x24, #4
	add	x0, sp, #24
	mov	w2, #5
	bl	_os_reltime_expired
	cbz	w0, LBB0_33
LBB0_15:
	mov	w26, #0
LBB0_16:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x26
	mov	x4, x23
	bl	_wpas_start_p2p_client
	b	LBB0_23
LBB0_17:
	mov	x1, x26
	bl	_wpas_p2p_select_go_freq
	tbnz	w0, #31, LBB0_20
; %bb.18:
	mov	x26, x0
	cbz	w0, LBB0_21
; %bb.19:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x26
	bl	_freq_included
	cbnz	x0, LBB0_21
LBB0_20:
	mov	w26, #0
LBB0_21:
	ldp	w6, w7, [x29, #16]
	str	x22, [sp]
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	mov	x5, x23
	bl	_wpas_p2p_init_go_params
	cbz	x0, LBB0_24
LBB0_22:
	mov	w0, #-1
LBB0_23:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_24:
	mov	w8, #1
	str	w8, [sp, #24]
	ldr	x8, [x21, #40]
	str	x8, [sp, #56]
	cbz	x8, LBB0_26
; %bb.25:
	ldr	w0, [sp, #48]
	ldr	x1, [x21, #32]
	mov	w2, #4
	bl	_os_memcpy
LBB0_26:
	ldr	w0, [x21, #24]
	cbz	w0, LBB0_30
; %bb.27:
	bl	_os_strlen
	cmp	w0, #4
	b.lo	LBB0_29
; %bb.28:
Lloh16:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_23
LBB0_29:
	ldr	w0, [sp, #44]
	ldr	w1, [x21, #24]
	mov	w2, #4
	bl	_os_strlcpy
LBB0_30:
	ldr	w0, [sp, #40]
	ldr	x1, [x21, #16]
	ldr	w2, [x21, #4]
	bl	_os_memcpy
	ldr	w8, [x21, #4]
	mov	w9, #1
	stp	w8, w9, [sp, #28]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_wpas_p2p_get_group_iface
	cbz	x0, LBB0_22
; %bb.31:
	mov	x19, x0
	ldr	w20, [x29, #32]
	ldr	w1, [sp, #36]
Lloh21:
	adrp	x8, _P2P_MAX_CHANNELS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _P2P_MAX_CHANNELS@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_p2p_channels_to_freqs
	str	w20, [x19]
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #0
	bl	_wpas_start_wps_go
LBB0_32:
	mov	w0, #0
	b	LBB0_23
LBB0_33:
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x22
	bl	_freq_included
	cbz	x0, LBB0_15
; %bb.34:
	ldr	w26, [x24]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_WPAS_MODE_P2P_GO,8,3           ; @WPAS_MODE_P2P_GO
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Requested persistent group is already running"

	.comm	_wpas_p2p_group_formation_timeout,4,2 ; @wpas_p2p_group_formation_timeout
l_.str.1:                               ; @.str.1
	.asciz	"P2P: Reschedule group formation timeout since peer is still trying to invite us"

	.comm	_P2P_MAX_INITIAL_CONN_WAIT,4,2  ; @P2P_MAX_INITIAL_CONN_WAIT
	.comm	_WPAS_MODE_INFRA,8,3            ; @WPAS_MODE_INFRA
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"P2P: Invalid passphrase in persistent group"

	.comm	_P2P_MAX_CHANNELS,4,2           ; @P2P_MAX_CHANNELS
.subsections_via_symbols
