	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_group_init            ## -- Begin function wpas_p2p_group_init
	.p2align	4, 0x90
_wpas_p2p_group_init:                   ## @wpas_p2p_group_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.4:
	movq	%rsi, %r14
	cmpl	$0, 32(%rsi)
	je	LBB0_1
## %bb.5:
	movq	%rdi, %r12
	movl	$56, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rax, %r15
	cmpq	$0, 24(%r14)
	je	LBB0_8
## %bb.7:
	movq	32(%r12), %rax
	cmpq	$1, 8(%rax)
	movl	$2, %eax
	sbbl	$0, %eax
	movl	%eax, (%r15)
LBB0_8:
	movl	52(%r15), %edi
	movl	40(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	(%r12), %rax
	movq	32(%r12), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	movq	%rcx, %rdx
	cmovlq	%rax, %rdx
	testq	%rax, %rax
	cmoveq	%rcx, %rdx
	movq	%rdx, 8(%r15)
	movl	48(%r15), %edi
	movl	12(%r14), %edx
	movl	16(%r14), %esi
	callq	_os_memcpy
	movl	12(%r14), %eax
	movl	%eax, 44(%r15)
	movl	8(%r14), %eax
	movl	%eax, 40(%r15)
	movq	%r12, 32(%r15)
	movq	_wpas_p2p_ie_update@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_wpas_p2p_idle_update@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_WPA_GET_BE32
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, 16(%r15)
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_p2p_group_init
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_os_free
LBB0_10:
	movq	(%r14), %rax
	movq	_WPAS_MODE_P2P_GROUP_FORMATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_p2p_group_notif_formation_done
LBB0_12:
	movq	%rbx, 8(%r12)
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_wpas_p2p_ie_update,4,2         ## @wpas_p2p_ie_update
	.comm	_wpas_p2p_idle_update,4,2       ## @wpas_p2p_idle_update
	.comm	_WPAS_MODE_P2P_GROUP_FORMATION,8,3 ## @WPAS_MODE_P2P_GROUP_FORMATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_group_init            ; -- Begin function wpas_p2p_group_init
	.p2align	2
_wpas_p2p_group_init:                   ; @wpas_p2p_group_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #16]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
LBB0_1:
	mov	x22, #0
LBB0_2:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.4:
	mov	x20, x1
	ldr	w8, [x1, #32]
	cbz	w8, LBB0_1
; %bb.5:
	mov	x19, x0
	mov	w0, #56
	bl	_os_zalloc
	cbz	x0, LBB0_1
; %bb.6:
	mov	x21, x0
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	mov	w8, #1
	cinc	w8, w8, ne
	str	w8, [x21]
LBB0_8:
	ldr	w0, [x21, #52]
	ldr	w1, [x19, #40]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_os_memcpy
	ldr	x8, [x19]
	ldr	x9, [x19, #32]
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x8, #0, #4, lt
	csel	x8, x8, x9, ne
	str	x8, [x21, #8]
	ldr	w0, [x21, #48]
	ldp	w2, w1, [x20, #12]
	bl	_os_memcpy
	ldr	d0, [x20, #8]
	str	d0, [x21, #40]
	str	x19, [x21, #32]
Lloh3:
	adrp	x8, _wpas_p2p_ie_update@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wpas_p2p_ie_update@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _wpas_p2p_idle_update@GOTPAGE
Lloh7:
	ldr	x9, [x9, _wpas_p2p_idle_update@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #20]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_WPA_GET_BE32
	cmp	x0, #0
	cset	w8, ne
	str	w8, [x21, #16]
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_p2p_group_init
	mov	x22, x0
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_os_free
LBB0_10:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _WPAS_MODE_P2P_GROUP_FORMATION@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WPAS_MODE_P2P_GROUP_FORMATION@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x22
	bl	_p2p_group_notif_formation_done
LBB0_12:
	str	x22, [x19, #8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_wpas_p2p_ie_update,4,2         ; @wpas_p2p_ie_update
	.comm	_wpas_p2p_idle_update,4,2       ; @wpas_p2p_idle_update
	.comm	_WPAS_MODE_P2P_GROUP_FORMATION,8,3 ; @WPAS_MODE_P2P_GROUP_FORMATION
.subsections_via_symbols
