	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_build_go_neg_conf
_p2p_build_go_neg_conf:                 ## @p2p_build_go_neg_conf
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_p2p_dbg
	movq	8(%r15), %rax
	movl	$1000, %edi                     ## imm = 0x3E8
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_VENDOR_ELEM_P2P_GO_NEG_CONF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	callq	_wpabuf_len
	movq	%rax, %rdi
	addl	$1000, %edi                     ## imm = 0x3E8
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_wpabuf_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_21
## %bb.4:
	movq	_P2P_GO_NEG_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_p2p_buf_add_public_action_hdr
	movq	%rbx, %rdi
	callq	_p2p_buf_add_ie_hdr
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_p2p_buf_add_status
	movq	(%r12), %rax
	movq	_LOCAL_GO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_12
## %bb.5:
	movl	8(%r12), %ecx
	movq	_P2P_DEV_PREFER_PERSISTENT_GROUP@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movl	$0, %eax
	testl	%ecx, (%rsi)
	je	LBB0_8
## %bb.6:
	movq	_P2P_GROUP_CAPAB_PERSISTENT_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_P2P_DEV_PREFER_PERSISTENT_RECONN@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_8
## %bb.7:
	movq	_P2P_GROUP_CAPAB_PERSISTENT_RECONN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_8:
	cmpq	$0, 56(%r15)
	je	LBB0_10
## %bb.9:
	movq	_P2P_GROUP_CAPAB_CROSS_CONN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_10:
	orl	%eax, %edx
	movq	32(%r15), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_12
## %bb.11:
	movq	_P2P_GROUP_CAPAB_INTRA_BSS_DIST@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_12:
	movq	_P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_p2p_buf_add_capability
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:
	testl	%r13d, %r13d
	jne	LBB0_14
## %bb.15:
	movl	12(%rsi), %edx
	movl	16(%rsi), %ecx
	jmp	LBB0_16
LBB0_14:
	movq	32(%r15), %rax
	movq	(%rax), %rsi
	movl	48(%r15), %edx
	movl	44(%r15), %ecx
LBB0_16:
	movq	%rbx, %rdi
	callq	_p2p_buf_add_operating_channel
	leaq	40(%r15), %rdi
	addq	$12, %r12
	leaq	-72(%rbp), %r14
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_p2p_channels_intersect
	movq	32(%r15), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_p2p_buf_add_channel_list
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.17:
	movq	32(%r15), %rax
	movl	8(%rax), %esi
	movl	24(%r15), %ecx
	movl	28(%r15), %edx
	movq	%rbx, %rdi
	callq	_p2p_buf_add_group_id
LBB0_18:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_p2p_buf_update_ie_hdr
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	_VENDOR_ELEM_P2P_GO_NEG_CONF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	callq	_wpabuf_put_buf
LBB0_21:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Building GO Negotiation Confirm"

	.comm	_VENDOR_ELEM_P2P_GO_NEG_CONF,8,3 ## @VENDOR_ELEM_P2P_GO_NEG_CONF
	.comm	_P2P_GO_NEG_CONF,4,2            ## @P2P_GO_NEG_CONF
	.comm	_LOCAL_GO,8,3                   ## @LOCAL_GO
	.comm	_P2P_DEV_PREFER_PERSISTENT_GROUP,4,2 ## @P2P_DEV_PREFER_PERSISTENT_GROUP
	.comm	_P2P_GROUP_CAPAB_PERSISTENT_GROUP,4,2 ## @P2P_GROUP_CAPAB_PERSISTENT_GROUP
	.comm	_P2P_DEV_PREFER_PERSISTENT_RECONN,4,2 ## @P2P_DEV_PREFER_PERSISTENT_RECONN
	.comm	_P2P_GROUP_CAPAB_PERSISTENT_RECONN,4,2 ## @P2P_GROUP_CAPAB_PERSISTENT_RECONN
	.comm	_P2P_GROUP_CAPAB_CROSS_CONN,4,2 ## @P2P_GROUP_CAPAB_CROSS_CONN
	.comm	_P2P_GROUP_CAPAB_INTRA_BSS_DIST,4,2 ## @P2P_GROUP_CAPAB_INTRA_BSS_DIST
	.comm	_P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY,4,2 ## @P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY
	.no_dead_strip	_p2p_build_go_neg_conf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_build_go_neg_conf
_p2p_build_go_neg_conf:                 ; @p2p_build_go_neg_conf
	.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
	mov	x20, x5
	mov	x23, x4
	mov	x25, x3
	mov	x24, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_p2p_dbg
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x26, _VENDOR_ELEM_P2P_GO_NEG_CONF@GOTPAGE
Lloh3:
	ldr	x26, [x26, _VENDOR_ELEM_P2P_GO_NEG_CONF@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x26]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_wpabuf_len
	add	w0, w0, #1000
	b	LBB0_4
LBB0_3:
	mov	w0, #1000
LBB0_4:
	bl	_wpabuf_alloc
	mov	x21, x0
	cbz	x0, LBB0_22
; %bb.5:
Lloh4:
	adrp	x8, _P2P_GO_NEG_CONF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _P2P_GO_NEG_CONF@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x24
	bl	_p2p_buf_add_public_action_hdr
	mov	x0, x21
	bl	_p2p_buf_add_ie_hdr
	mov	x24, x0
	mov	x0, x21
	mov	x1, x25
	bl	_p2p_buf_add_status
	ldr	x8, [x22]
Lloh7:
	adrp	x9, _LOCAL_GO@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LOCAL_GO@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
	ldr	w9, [x22, #8]
Lloh10:
	adrp	x8, _P2P_DEV_PREFER_PERSISTENT_GROUP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _P2P_DEV_PREFER_PERSISTENT_GROUP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_10
; %bb.7:
Lloh13:
	adrp	x8, _P2P_GROUP_CAPAB_PERSISTENT_GROUP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _P2P_GROUP_CAPAB_PERSISTENT_GROUP@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x10, _P2P_DEV_PREFER_PERSISTENT_RECONN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _P2P_DEV_PREFER_PERSISTENT_RECONN@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.8:
Lloh19:
	adrp	x9, _P2P_GROUP_CAPAB_PERSISTENT_RECONN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _P2P_GROUP_CAPAB_PERSISTENT_RECONN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_11
LBB0_9:
	mov	w2, #0
	b	LBB0_13
LBB0_10:
	mov	w8, #0
LBB0_11:
	ldr	x9, [x19, #56]
Lloh22:
	adrp	x10, _P2P_GROUP_CAPAB_CROSS_CONN@GOTPAGE
Lloh23:
	ldr	x10, [x10, _P2P_GROUP_CAPAB_CROSS_CONN@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w9, w8
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_13
; %bb.12:
Lloh25:
	adrp	x8, _P2P_GROUP_CAPAB_INTRA_BSS_DIST@GOTPAGE
Lloh26:
	ldr	x8, [x8, _P2P_GROUP_CAPAB_INTRA_BSS_DIST@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w2, w8, w2
LBB0_13:
	ldr	w8, [x19]
Lloh28:
	adrp	x9, _P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	bic	w1, w8, w9
	mov	x0, x21
	bl	_p2p_buf_add_capability
	cbz	x23, LBB0_16
; %bb.14:
	cbnz	w20, LBB0_16
; %bb.15:
	ldp	w2, w3, [x23, #12]
	mov	x0, x21
	mov	x1, x23
	b	LBB0_17
LBB0_16:
	ldr	x8, [x19, #32]
	ldr	x1, [x8]
	ldp	w3, w2, [x19, #44]
	mov	x0, x21
LBB0_17:
	bl	_p2p_buf_add_operating_channel
	add	x0, x19, #40
	add	x1, x22, #12
	add	x2, sp, #8
	bl	_p2p_channels_intersect
	ldr	x8, [x19, #32]
	ldr	x1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_p2p_buf_add_channel_list
	cbz	w20, LBB0_19
; %bb.18:
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #8]
	ldp	w3, w2, [x19, #24]
	mov	x0, x21
	bl	_p2p_buf_add_group_id
LBB0_19:
	mov	x0, x21
	mov	x1, x24
	bl	_p2p_buf_update_ie_hdr
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_22
; %bb.20:
	ldr	x9, [x26]
	ldr	x1, [x8, x9, lsl #3]
	cbz	x1, LBB0_22
; %bb.21:
	mov	x0, x21
	bl	_wpabuf_put_buf
LBB0_22:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Building GO Negotiation Confirm"

	.comm	_VENDOR_ELEM_P2P_GO_NEG_CONF,8,3 ; @VENDOR_ELEM_P2P_GO_NEG_CONF
	.comm	_P2P_GO_NEG_CONF,4,2            ; @P2P_GO_NEG_CONF
	.comm	_LOCAL_GO,8,3                   ; @LOCAL_GO
	.comm	_P2P_DEV_PREFER_PERSISTENT_GROUP,4,2 ; @P2P_DEV_PREFER_PERSISTENT_GROUP
	.comm	_P2P_GROUP_CAPAB_PERSISTENT_GROUP,4,2 ; @P2P_GROUP_CAPAB_PERSISTENT_GROUP
	.comm	_P2P_DEV_PREFER_PERSISTENT_RECONN,4,2 ; @P2P_DEV_PREFER_PERSISTENT_RECONN
	.comm	_P2P_GROUP_CAPAB_PERSISTENT_RECONN,4,2 ; @P2P_GROUP_CAPAB_PERSISTENT_RECONN
	.comm	_P2P_GROUP_CAPAB_CROSS_CONN,4,2 ; @P2P_GROUP_CAPAB_CROSS_CONN
	.comm	_P2P_GROUP_CAPAB_INTRA_BSS_DIST,4,2 ; @P2P_GROUP_CAPAB_INTRA_BSS_DIST
	.comm	_P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY,4,2 ; @P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY
	.no_dead_strip	_p2p_build_go_neg_conf
.subsections_via_symbols
