	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_group_add_common_ies
_p2p_group_add_common_ies:              ## @p2p_group_add_common_ies
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %r8
	movq	8(%rdi), %r11
	movq	16(%rdi), %rsi
	movq	_P2P_GROUP_CAPAB_GROUP_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r11), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movq	_P2P_GROUP_CAPAB_PERSISTENT_GROUP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	cmpl	$2, %edx
	jne	LBB0_3
## %bb.2:
	movq	_P2P_GROUP_CAPAB_PERSISTENT_RECONN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_3:
	movq	8(%rsi), %rax
	xorl	%r9d, %r9d
	cmpq	$0, (%rax)
	movl	$0, %edx
	je	LBB0_5
## %bb.4:
	movq	_P2P_GROUP_CAPAB_INTRA_BSS_DIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_5:
	cmpq	$0, 24(%rdi)
	movl	$0, %eax
	je	LBB0_7
## %bb.6:
	movq	_P2P_GROUP_CAPAB_GROUP_FORMATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	orl	%eax, %ecx
	cmpq	$0, (%rsi)
	movl	$0, %eax
	je	LBB0_9
## %bb.8:
	movq	_P2P_GROUP_CAPAB_CROSS_CONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	orl	%eax, %ecx
	movq	_P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY@GOTPCREL(%rip), %r10
	movq	(%rdi), %rdi
	movl	$0, %eax
	cmpq	8(%r11), %rdi
	jl	LBB0_11
## %bb.10:
	movq	_P2P_GROUP_CAPAB_GROUP_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	orl	%eax, %ecx
	movl	16(%rsi), %esi
	movl	(%r10), %edi
	cmpq	$0, 16(%r11)
	je	LBB0_13
## %bb.12:
	movq	_P2P_GROUP_CAPAB_IP_ADDR_ALLOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
LBB0_13:
	orl	%r9d, %ecx
	orl	%ecx, %edx
	notl	%edi
	andl	%edi, %esi
	movq	%r8, %rdi
	popq	%rbp
	jmp	_p2p_buf_add_capability         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY,4,2 ## @P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY
	.comm	_P2P_GROUP_CAPAB_GROUP_OWNER,4,2 ## @P2P_GROUP_CAPAB_GROUP_OWNER
	.comm	_P2P_GROUP_CAPAB_PERSISTENT_GROUP,4,2 ## @P2P_GROUP_CAPAB_PERSISTENT_GROUP
	.comm	_P2P_GROUP_CAPAB_PERSISTENT_RECONN,4,2 ## @P2P_GROUP_CAPAB_PERSISTENT_RECONN
	.comm	_P2P_GROUP_CAPAB_INTRA_BSS_DIST,4,2 ## @P2P_GROUP_CAPAB_INTRA_BSS_DIST
	.comm	_P2P_GROUP_CAPAB_GROUP_FORMATION,4,2 ## @P2P_GROUP_CAPAB_GROUP_FORMATION
	.comm	_P2P_GROUP_CAPAB_CROSS_CONN,4,2 ## @P2P_GROUP_CAPAB_CROSS_CONN
	.comm	_P2P_GROUP_CAPAB_GROUP_LIMIT,4,2 ## @P2P_GROUP_CAPAB_GROUP_LIMIT
	.comm	_P2P_GROUP_CAPAB_IP_ADDR_ALLOCATION,4,2 ## @P2P_GROUP_CAPAB_IP_ADDR_ALLOCATION
	.no_dead_strip	_p2p_group_add_common_ies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_group_add_common_ies
_p2p_group_add_common_ies:              ; @p2p_group_add_common_ies
	.cfi_startproc
; %bb.0:
	mov	x8, x1
Lloh0:
	adrp	x10, _P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY@GOTPAGEOFF]
	ldp	x11, x12, [x0, #8]
	ldr	w9, [x12, #16]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x13, _P2P_GROUP_CAPAB_GROUP_OWNER@GOTPAGE
Lloh4:
	ldr	x13, [x13, _P2P_GROUP_CAPAB_GROUP_OWNER@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x13]
	ldr	w14, [x11]
	cbz	w14, LBB0_3
; %bb.1:
Lloh6:
	adrp	x15, _P2P_GROUP_CAPAB_PERSISTENT_GROUP@GOTPAGE
Lloh7:
	ldr	x15, [x15, _P2P_GROUP_CAPAB_PERSISTENT_GROUP@GOTPAGEOFF]
Lloh8:
	ldr	w15, [x15]
	orr	w13, w15, w13
	cmp	w14, #2
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x14, _P2P_GROUP_CAPAB_PERSISTENT_RECONN@GOTPAGE
Lloh10:
	ldr	x14, [x14, _P2P_GROUP_CAPAB_PERSISTENT_RECONN@GOTPAGEOFF]
Lloh11:
	ldr	w14, [x14]
	orr	w13, w14, w13
LBB0_3:
	ldp	x12, x14, [x12]
	ldr	x14, [x14]
Lloh12:
	adrp	x15, _P2P_GROUP_CAPAB_INTRA_BSS_DIST@GOTPAGE
Lloh13:
	ldr	x15, [x15, _P2P_GROUP_CAPAB_INTRA_BSS_DIST@GOTPAGEOFF]
Lloh14:
	ldr	w15, [x15]
	cmp	x14, #0
	csel	w14, wzr, w15, eq
	orr	w13, w14, w13
Lloh15:
	adrp	x14, _P2P_GROUP_CAPAB_GROUP_FORMATION@GOTPAGE
Lloh16:
	ldr	x14, [x14, _P2P_GROUP_CAPAB_GROUP_FORMATION@GOTPAGEOFF]
	ldr	x15, [x0, #24]
Lloh17:
	ldr	w14, [x14]
	cmp	x15, #0
	csel	w14, wzr, w14, eq
Lloh18:
	adrp	x15, _P2P_GROUP_CAPAB_CROSS_CONN@GOTPAGE
Lloh19:
	ldr	x15, [x15, _P2P_GROUP_CAPAB_CROSS_CONN@GOTPAGEOFF]
	orr	w13, w13, w14
Lloh20:
	ldr	w14, [x15]
	cmp	x12, #0
	csel	w12, wzr, w14, eq
	orr	w12, w13, w12
	ldr	x13, [x0]
Lloh21:
	adrp	x14, _P2P_GROUP_CAPAB_GROUP_LIMIT@GOTPAGE
Lloh22:
	ldr	x14, [x14, _P2P_GROUP_CAPAB_GROUP_LIMIT@GOTPAGEOFF]
Lloh23:
	ldr	w14, [x14]
	ldp	x15, x11, [x11, #8]
	cmp	x13, x15
	csel	w13, wzr, w14, lt
	orr	w12, w12, w13
Lloh24:
	adrp	x13, _P2P_GROUP_CAPAB_IP_ADDR_ALLOCATION@GOTPAGE
Lloh25:
	ldr	x13, [x13, _P2P_GROUP_CAPAB_IP_ADDR_ALLOCATION@GOTPAGEOFF]
Lloh26:
	ldr	w13, [x13]
	cmp	x11, #0
	csel	w11, wzr, w13, eq
	orr	w2, w12, w11
	bic	w1, w9, w10
	mov	x0, x8
	b	_p2p_buf_add_capability
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY,4,2 ; @P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY
	.comm	_P2P_GROUP_CAPAB_GROUP_OWNER,4,2 ; @P2P_GROUP_CAPAB_GROUP_OWNER
	.comm	_P2P_GROUP_CAPAB_PERSISTENT_GROUP,4,2 ; @P2P_GROUP_CAPAB_PERSISTENT_GROUP
	.comm	_P2P_GROUP_CAPAB_PERSISTENT_RECONN,4,2 ; @P2P_GROUP_CAPAB_PERSISTENT_RECONN
	.comm	_P2P_GROUP_CAPAB_INTRA_BSS_DIST,4,2 ; @P2P_GROUP_CAPAB_INTRA_BSS_DIST
	.comm	_P2P_GROUP_CAPAB_GROUP_FORMATION,4,2 ; @P2P_GROUP_CAPAB_GROUP_FORMATION
	.comm	_P2P_GROUP_CAPAB_CROSS_CONN,4,2 ; @P2P_GROUP_CAPAB_CROSS_CONN
	.comm	_P2P_GROUP_CAPAB_GROUP_LIMIT,4,2 ; @P2P_GROUP_CAPAB_GROUP_LIMIT
	.comm	_P2P_GROUP_CAPAB_IP_ADDR_ALLOCATION,4,2 ; @P2P_GROUP_CAPAB_IP_ADDR_ALLOCATION
	.no_dead_strip	_p2p_group_add_common_ies
.subsections_via_symbols
