	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_group_build_probe_resp_ie
_p2p_group_build_probe_resp_ie:         ## @p2p_group_build_probe_resp_ie
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_p2p_group_add_common_ies
	movl	24(%r14), %esi
	movq	%rbx, %rdi
	callq	_p2p_group_add_noa
	movq	8(%r14), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_p2p_buf_add_device_info
	cmpq	$0, 16(%r14)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$-1, %edx
	callq	_p2p_buf_add_group_info
LBB0_4:
	movq	%rbx, %rdi
	callq	_p2p_group_encaps_probe_resp
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_wpabuf_free
	movq	8(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_VENDOR_ELEM_PROBE_RESP_P2P_GO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	callq	_wpabuf_dup
	movq	%rax, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpabuf_concat                  ## TAILCALL
LBB0_1:
	xorl	%r15d, %r15d
LBB0_6:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VENDOR_ELEM_PROBE_RESP_P2P_GO,8,3 ## @VENDOR_ELEM_PROBE_RESP_P2P_GO
	.no_dead_strip	_p2p_group_build_probe_resp_ie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_group_build_probe_resp_ie
_p2p_group_build_probe_resp_ie:         ; @p2p_group_build_probe_resp_ie
	.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
	mov	x19, x0
	mov	w0, #500
	bl	_wpabuf_alloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_p2p_group_add_common_ies
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_p2p_group_add_noa
	ldr	x1, [x19, #8]
	mov	x0, x20
	mov	x2, #0
	bl	_p2p_buf_add_device_info
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #-1
	bl	_p2p_buf_add_group_info
LBB0_3:
	mov	x0, x20
	bl	_p2p_group_encaps_probe_resp
	mov	x21, x0
	mov	x0, x20
	bl	_wpabuf_free
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:
Lloh0:
	adrp	x9, _VENDOR_ELEM_PROBE_RESP_P2P_GO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VENDOR_ELEM_PROBE_RESP_P2P_GO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_7
; %bb.5:
	bl	_wpabuf_dup
	mov	x1, x21
	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
	b	_wpabuf_concat
LBB0_6:
	mov	x21, #0
LBB0_7:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VENDOR_ELEM_PROBE_RESP_P2P_GO,8,3 ; @VENDOR_ELEM_PROBE_RESP_P2P_GO
	.no_dead_strip	_p2p_group_build_probe_resp_ie
.subsections_via_symbols
