	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_invite_group          ## -- Begin function wpas_p2p_invite_group
	.p2align	4, 0x90
_wpas_p2p_invite_group:                 ## @wpas_p2p_invite_group
	.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
	movq	%rcx, %r15
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r12
	movl	$0, -56(%rbp)
	movl	$0, -60(%rbp)
	movq	_P2P_MAX_PREF_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movups	%xmm0, 104(%rbx)
	movups	%xmm0, 88(%rbx)
	movq	$0, 120(%rbx)
	movq	32(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	72(%rbx), %edi
	movq	%r13, %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	80(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_4:
	movl	$-1, %eax
LBB0_5:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_31
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	64(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_10
## %bb.8:
	movq	8(%rbx), %rax
	movq	%rbx, 24(%rax)
	cmpq	$0, 24(%r13)
	je	LBB0_11
## %bb.9:
	movq	16(%rbx), %rdi
	movl	12(%r13), %ecx
	movl	16(%r13), %edx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_wpas_p2p_get_persistent
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
	jmp	LBB0_12
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_18
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	movq	(%r13), %rax
	movq	_WPAS_MODE_P2P_GO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.13:
	movq	_P2P_INVITE_ROLE_ACTIVE_GO@GOTPCREL(%rip), %rax
	testq	%r15, %r15
	jne	LBB0_15
## %bb.14:
	movq	8(%rbx), %rcx
	movq	16(%rcx), %r15
LBB0_15:
	movl	(%rax), %edx
	movq	56(%rbx), %rdi
	movl	8(%r13), %esi
	jmp	LBB0_27
LBB0_16:
	movq	(%rbx), %rax
	movq	_WPA_ASSOCIATED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_19
## %bb.17:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_18:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_4
LBB0_19:
	movq	_P2P_INVITE_ROLE_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	48(%rbx), %rdi
	testq	%r15, %r15
	jne	LBB0_24
## %bb.20:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	40(%rbx), %rdi
	callq	_is_zero_ether_addr
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_22:
	movq	40(%rbx), %r15
LBB0_23:
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_24:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movl	(%rax), %esi
	jmp	LBB0_27
LBB0_26:
	movl	24(%rbx), %esi
LBB0_27:
	movq	16(%rbx), %rax
	movl	$-1, (%rax)
	movq	8(%rbx), %rcx
	movl	$-1, %eax
	cmpq	$0, 8(%rcx)
	jne	LBB0_5
## %bb.28:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.29:
	movq	_P2P_MAX_PREF_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_P2P_INVITE_ROLE_ACTIVE_GO@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	cmpl	(%rax), %edx
	sete	%r8b
	subq	$8, %rsp
	leaq	-76(%rbp), %rax
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	leaq	-56(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%rbx, %rdi
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	callq	_wpas_p2p_setup_freqs
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.30:
	movl	-56(%rbp), %esi
	movq	%rbx, %rdi
	callq	_wpas_p2p_set_own_freq_preference
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movl	12(%r13), %r9d
	movl	16(%r13), %r8d
	movl	-56(%rbp), %eax
	movl	-60(%rbp), %ebx
	subq	$8, %rsp
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	pushq	$-1
	pushq	%rbx
	pushq	%r12
	pushq	%r15
	pushq	%rax
	callq	_p2p_invite
	addq	$48, %rsp
	jmp	LBB0_5
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_MAX_PREF_CHANNELS,4,2      ## @P2P_MAX_PREF_CHANNELS
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Interface '%s' not found"

L_.str.1:                               ## @.str.1
	.asciz	"P2P: No current SSID to use for invitation"

	.comm	_WPAS_MODE_P2P_GO,8,3           ## @WPAS_MODE_P2P_GO
	.comm	_P2P_INVITE_ROLE_ACTIVE_GO,4,2  ## @P2P_INVITE_ROLE_ACTIVE_GO
	.comm	_P2P_INVITE_ROLE_CLIENT,4,2     ## @P2P_INVITE_ROLE_CLIENT
	.comm	_WPA_ASSOCIATED,8,3             ## @WPA_ASSOCIATED
L_.str.2:                               ## @.str.2
	.asciz	"P2P: Not associated - cannot invite to current group"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_invite_group          ; -- Begin function wpas_p2p_invite_group
	.p2align	2
_wpas_p2p_invite_group:                 ; @wpas_p2p_invite_group
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x12, [x0, #8]
	stur	xzr, [x29, #-96]
Lloh3:
	adrp	x26, _P2P_MAX_PREF_CHANNELS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _P2P_MAX_PREF_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	str	xzr, [x0, #120]
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #104]
	stur	q0, [x0, #88]
	ldr	x21, [x12, #32]
	cbz	x21, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #72]
	mov	x1, x23
	bl	_os_strcmp
	cbz	x0, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x21, [x21, #80]
	cbnz	x21, LBB0_1
LBB0_3:
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	str	x23, [sp, #-16]!
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
LBB0_4:
	mov	w0, #-1
LBB0_5:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.6:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x27, [x21, #64]
	cbz	x27, LBB0_10
; %bb.8:
	ldr	x8, [x21, #8]
	str	x21, [x8, #24]
	ldr	x8, [x27, #24]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	x0, [x21, #16]
	ldp	w3, w2, [x27, #12]
	mov	x1, x19
	bl	_wpas_p2p_get_persistent
	cmp	x0, #0
	cset	w28, ne
	b	LBB0_12
LBB0_10:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_11:
	mov	w28, #0
LBB0_12:
	ldr	x8, [x27]
Lloh20:
	adrp	x9, _WPAS_MODE_P2P_GO@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WPAS_MODE_P2P_GO@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
Lloh23:
	adrp	x8, _P2P_INVITE_ROLE_ACTIVE_GO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _P2P_INVITE_ROLE_ACTIVE_GO@GOTPAGEOFF]
Lloh25:
	ldr	w23, [x8]
	ldr	x24, [x21, #56]
	cbnz	x20, LBB0_15
; %bb.14:
	ldr	x8, [x21, #8]
	ldr	x20, [x8, #16]
LBB0_15:
	ldr	w1, [x27, #8]
	b	LBB0_26
LBB0_16:
	ldr	x8, [x21]
Lloh26:
	adrp	x9, _WPA_ASSOCIATED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WPA_ASSOCIATED@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_19
; %bb.17:
Lloh29:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_18:
	bl	_wpa_printf
	b	LBB0_4
LBB0_19:
Lloh34:
	adrp	x8, _P2P_INVITE_ROLE_CLIENT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _P2P_INVITE_ROLE_CLIENT@GOTPAGEOFF]
Lloh36:
	ldr	w23, [x8]
	ldr	x24, [x21, #48]
	cbnz	x20, LBB0_23
; %bb.20:
	ldr	x0, [x21, #40]
	bl	_is_zero_ether_addr
	cbz	w0, LBB0_22
; %bb.21:
	mov	x20, #0
	b	LBB0_23
LBB0_22:
	ldr	x20, [x21, #40]
LBB0_23:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_25
; %bb.24:
	ldr	w1, [x8]
	b	LBB0_26
LBB0_25:
	ldr	w1, [x21, #24]
LBB0_26:
	ldr	x8, [x21, #16]
	mov	w0, #-1
	str	w0, [x8]
	ldr	x8, [x21, #8]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_5
; %bb.27:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.28:
	ldr	w8, [x26]
	stur	w8, [x29, #-100]
Lloh37:
	adrp	x8, _P2P_INVITE_ROLE_ACTIVE_GO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _P2P_INVITE_ROLE_ACTIVE_GO@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w23, w8
	cset	w4, eq
	sub	x2, x29, #92
	sub	x3, x29, #96
	sub	x6, x29, #100
	mov	x0, x21
	mov	x5, x22
	bl	_wpas_p2p_setup_freqs
	cbnz	w0, LBB0_5
; %bb.29:
	ldur	w1, [x29, #-92]
	mov	x0, x21
	bl	_wpas_p2p_set_own_freq_preference
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
	ldp	w5, w4, [x27, #12]
	ldp	w8, w6, [x29, #-96]
	sub	sp, sp, #16
	mov	w9, #-1
	stp	w8, w9, [sp, #4]
	str	w28, [sp]
	mov	x1, x19
	mov	x2, x23
	mov	x3, x24
	mov	x7, x20
	bl	_p2p_invite
	add	sp, sp, #16
	b	LBB0_5
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_MAX_PREF_CHANNELS,4,2      ; @P2P_MAX_PREF_CHANNELS
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Interface '%s' not found"

l_.str.1:                               ; @.str.1
	.asciz	"P2P: No current SSID to use for invitation"

	.comm	_WPAS_MODE_P2P_GO,8,3           ; @WPAS_MODE_P2P_GO
	.comm	_P2P_INVITE_ROLE_ACTIVE_GO,4,2  ; @P2P_INVITE_ROLE_ACTIVE_GO
	.comm	_P2P_INVITE_ROLE_CLIENT,4,2     ; @P2P_INVITE_ROLE_CLIENT
	.comm	_WPA_ASSOCIATED,8,3             ; @WPA_ASSOCIATED
l_.str.2:                               ; @.str.2
	.asciz	"P2P: Not associated - cannot invite to current group"

.subsections_via_symbols
