	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_group_add             ## -- Begin function wpas_p2p_group_add
	.p2align	4, 0x90
_wpas_p2p_group_add:                    ## @wpas_p2p_group_add
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movl	$-1, %r14d
	cmpq	$0, 16(%rax)
	je	LBB0_1
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.2:
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	8(%rax), %rdi
	callq	_os_free
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_wpas_p2p_stop_find_oper
	cmpl	$0, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_wpas_p2p_select_go_freq
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_7
LBB0_4:
	movl	24(%rbp), %eax
	movl	16(%rbp), %r10d
	subq	$8, %rsp
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	pushq	$0
	pushq	%rax
	pushq	%r10
	callq	_wpas_p2p_init_go_params
	addq	$32, %rsp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	leaq	-48(%rbp), %rsi
	callq	_p2p_go_params
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -48(%rbp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_wpas_p2p_get_group_iface
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_wpas_start_wps_go
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Stop any on-going P2P FIND"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_group_add             ; -- Begin function wpas_p2p_group_add
	.p2align	2
_wpas_p2p_group_add:                    ; @wpas_p2p_group_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	ldr	x8, [x0]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	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
	add	sp, sp, #96
	ret
LBB0_3:
	ldr	x9, [x8]
	cbz	x9, LBB0_1
; %bb.4:
	mov	x21, x7
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x8, #8]
	bl	_os_free
	ldr	x8, [x19]
	str	xzr, [x8, #8]
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_wpas_p2p_stop_find_oper
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x26
	bl	_wpas_p2p_select_go_freq
	mov	x26, x0
	tbnz	w0, #31, LBB0_1
LBB0_6:
	str	xzr, [sp]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	mov	x5, x23
	mov	x6, x22
	mov	x7, x21
	bl	_wpas_p2p_init_go_params
	cbnz	x0, LBB0_1
; %bb.7:
	ldr	x8, [x19]
	ldr	x0, [x8]
	add	x1, sp, #8
	bl	_p2p_go_params
	str	w20, [sp, #8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_wpas_p2p_get_group_iface
	cbz	x0, LBB0_1
; %bb.8:
	add	x1, sp, #8
	mov	w2, #0
	bl	_wpas_start_wps_go
	mov	w0, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Stop any on-going P2P FIND"

.subsections_via_symbols
