	.file	"extr_p2p_pd.c_p2p_build_prov_disc_resp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	p2p_build_prov_disc_resp, @function
p2p_build_prov_disc_resp:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15d, edx
	push	r14
	push	r13
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13d, r9d
	push	r12
	.cfi_offset 12, -48
	mov	r12d, ecx
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 104
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR -96[rbp], rsi
	mov	DWORD PTR -68[rbp], r8d
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR 48[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 16[rdi]
	mov	edi, 1000
	test	rax, rax
	je	.L2
	mov	rcx, QWORD PTR VENDOR_ELEM_P2P_PD_RESP[rip]
	mov	r8, QWORD PTR [rax+rcx*8]
	test	r8, r8
	je	.L2
	mov	rdi, r8
	call	wpabuf_len@PLT
	lea	edi, 1000[rax]
.L2:
	call	wpabuf_alloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR P2P_PROV_DISC_RESP[rip]
	mov	edx, r15d
	mov	rdi, rax
	call	p2p_buf_add_public_action_hdr@PLT
	mov	rax, QWORD PTR 24[rbx]
	test	rax, rax
	je	.L4
	cmp	DWORD PTR 20[rax], r13d
	je	.L100
.L4:
	cmp	DWORD PTR P2P_SC_SUCCESS[rip], r12d
	jne	.L49
	test	r13d, r13d
	je	.L35
.L49:
	mov	rdi, r14
	call	p2p_buf_add_ie_hdr@PLT
	mov	esi, r12d
	mov	rdi, r14
	mov	r15, rax
	call	p2p_buf_add_status@PLT
	mov	rax, QWORD PTR 24[rbx]
	test	rax, rax
	je	.L37
	mov	edx, DWORD PTR 8[rax]
	mov	esi, r13d
	mov	rdi, r14
	call	p2p_buf_add_advertisement_id@PLT
.L37:
	mov	rsi, r15
	mov	rdi, r14
	call	p2p_buf_update_ie_hdr@PLT
.L35:
	mov	esi, DWORD PTR -68[rbp]
	mov	rdi, r14
	call	p2p_build_wps_ie_config_methods@PLT
	mov	rax, QWORD PTR 16[rbx]
	test	rax, rax
	je	.L1
	mov	rdx, QWORD PTR VENDOR_ELEM_P2P_PD_RESP[rip]
	mov	rsi, QWORD PTR [rax+rdx*8]
	test	rsi, rsi
	je	.L1
	mov	rdi, r14
	call	wpabuf_put_buf@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L101
	lea	rsp, -40[rbp]
	mov	rax, r14
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L100:
	.cfi_restore_state
	mov	rdi, r14
	call	p2p_buf_add_ie_hdr@PLT
	cmp	DWORD PTR P2P_SC_SUCCESS[rip], r12d
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR 24[rbx]
	mov	QWORD PTR -104[rbp], rax
	je	.L5
	xor	r15d, r15d
	cmp	DWORD PTR P2P_SC_SUCCESS_DEFERRED[rip], r12d
	je	.L5
.L6:
	mov	esi, r12d
	test	r12d, r12d
	jne	.L8
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, DWORD PTR 4[rax]
	cmp	esi, -1
	je	.L48
	mov	r12d, esi
.L8:
	mov	rdi, r14
	call	p2p_buf_add_status@PLT
	mov	edx, DWORD PTR P2P_GROUP_CAPAB_PERSISTENT_GROUP[rip]
	or	edx, DWORD PTR P2P_GROUP_CAPAB_PERSISTENT_RECONN[rip]
	cmp	QWORD PTR 64[rbx], 0
	je	.L9
	or	edx, DWORD PTR P2P_GROUP_CAPAB_CROSS_CONN[rip]
.L9:
	mov	rax, QWORD PTR 48[rbx]
	cmp	QWORD PTR 24[rax], 0
	je	.L10
	or	edx, DWORD PTR P2P_GROUP_CAPAB_INTRA_BSS_DIST[rip]
.L10:
	mov	esi, DWORD PTR P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY[rip]
	mov	rdi, r14
	not	esi
	and	esi, DWORD PTR 8[rbx]
	call	p2p_buf_add_capability@PLT
	xor	edx, edx
	mov	rsi, rbx
	mov	rdi, r14
	call	p2p_buf_add_device_info@PLT
	cmp	QWORD PTR -80[rbp], 0
	je	.L96
	mov	rdx, QWORD PTR 48[rbx]
	mov	rax, QWORD PTR [rdx]
	test	rax, rax
	je	.L96
	cmp	QWORD PTR -96[rbp], 0
	je	.L96
	cmp	DWORD PTR P2P_SC_SUCCESS[rip], r12d
	je	.L16
	cmp	DWORD PTR P2P_SC_SUCCESS_DEFERRED[rip], r12d
	jne	.L96
.L16:
	movsx	rcx, DWORD PTR SSID_MAX_LEN[rip]
	mov	rdi, rsp
	mov	r11, rsp
	lea	rcx, 15[0+rcx*4]
	mov	rsi, rcx
	and	rcx, -4096
	sub	rdi, rcx
	and	rsi, -16
	mov	rcx, rdi
	cmp	rsp, rcx
	je	.L18
.L102:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L102
.L18:
	and	esi, 4095
	sub	rsp, rsi
	test	rsi, rsi
	je	.L19
	or	QWORD PTR -8[rsp+rsi], 0
.L19:
	movsx	rcx, DWORD PTR ETH_ALEN[rip]
	mov	r10, rsp
	mov	r9, rsp
	lea	rcx, 15[0+rcx*4]
	mov	rdi, rcx
	mov	rsi, rcx
	and	rdi, -4096
	and	rsi, -16
	sub	r10, rdi
	mov	rdi, r10
	cmp	rsp, rdi
	je	.L21
.L103:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rdi
	jne	.L103
.L21:
	and	esi, 4095
	sub	rsp, rsi
	test	rsi, rsi
	je	.L22
	or	QWORD PTR -8[rsp+rsi], 0
.L22:
	mov	rsi, rcx
	mov	rdi, rsp
	and	rcx, -4096
	mov	r8, rsp
	sub	rdi, rcx
	and	rsi, -16
	mov	rcx, rdi
	cmp	rsp, rcx
	je	.L24
.L104:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L104
.L24:
	mov	rcx, rsi
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	je	.L25
	or	QWORD PTR -8[rsp+rcx], 0
.L25:
	mov	rsi, QWORD PTR -96[rbp]
	mov	rcx, rsp
	mov	edi, DWORD PTR 20[rdx]
	lea	rdx, -64[rbp]
	mov	QWORD PTR -144[rbp], r11
	mov	QWORD PTR -120[rbp], rcx
	mov	esi, DWORD PTR [rsi]
	push	rcx
	mov	rcx, QWORD PTR 40[rbp]
	push	rdx
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR -136[rbp], r9
	mov	QWORD PTR -128[rbp], r8
	call	rax
	mov	r8, QWORD PTR -128[rbp]
	mov	r9, QWORD PTR -136[rbp]
	mov	r12d, eax
	mov	r11, QWORD PTR -144[rbp]
	pop	rax
	test	r12d, r12d
	pop	rdx
	jne	.L105
	mov	rsp, r11
	.p2align 4,,10
	.p2align 3
.L96:
	mov	eax, DWORD PTR P2PS_SETUP_GROUP_OWNER[rip]
	test	r15d, eax
	jne	.L106
.L43:
	or	eax, DWORD PTR P2PS_SETUP_CLIENT[rip]
	test	r15d, eax
	jne	.L32
	test	r15d, r15d
	jne	.L42
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, r13d
	mov	rdi, r14
	mov	edx, DWORD PTR 8[rax]
	call	p2p_buf_add_advertisement_id@PLT
.L34:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, r14
	mov	edx, DWORD PTR 12[rax]
	mov	esi, DWORD PTR 16[rax]
	call	p2p_buf_add_session_id@PLT
	mov	esi, DWORD PTR 56[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	rdi, r14
	call	p2p_buf_add_feature_capability@PLT
	mov	rsi, QWORD PTR -112[rbp]
	mov	rdi, r14
	call	p2p_buf_update_ie_hdr@PLT
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	mov	r15d, eax
	jmp	.L6
.L28:
	or	eax, DWORD PTR P2PS_SETUP_CLIENT[rip]
	test	r15d, eax
	je	.L42
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rax, QWORD PTR 48[rbx]
	lea	rdx, 40[rbx]
	mov	rdi, r14
	mov	esi, DWORD PTR 8[rax]
	call	p2p_buf_add_channel_list@PLT
.L42:
	mov	esi, r15d
	mov	rdi, r14
	call	p2p_buf_add_connection_capability@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, r13d
	mov	rdi, r14
	mov	edx, DWORD PTR 8[rax]
	call	p2p_buf_add_advertisement_id@PLT
	mov	eax, DWORD PTR P2PS_SETUP_CLIENT[rip]
	or	eax, DWORD PTR P2PS_SETUP_GROUP_OWNER[rip]
	test	r15d, eax
	je	.L34
.L41:
	mov	edx, DWORD PTR 32[rbx]
	mov	esi, DWORD PTR 36[rbx]
	mov	rdi, r14
	call	p2p_buf_add_config_timeout@PLT
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L48:
	xor	esi, esi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L106:
	mov	rsi, QWORD PTR -96[rbp]
	mov	rdx, r14
	mov	rdi, rbx
	call	p2ps_add_new_group_info@PLT
	mov	eax, DWORD PTR P2PS_SETUP_GROUP_OWNER[rip]
	test	r15d, eax
	je	.L28
	xor	r12d, r12d
.L40:
	mov	rax, QWORD PTR 48[rbx]
	mov	edx, DWORD PTR 60[rbx]
	mov	esi, DWORD PTR 8[rax]
	test	edx, edx
	je	.L29
	mov	ecx, DWORD PTR 56[rbx]
	test	ecx, ecx
	jne	.L98
.L29:
	mov	ecx, DWORD PTR 12[rax]
	mov	edx, DWORD PTR 16[rax]
.L98:
	mov	rdi, r14
	call	p2p_buf_add_operating_channel@PLT
	test	r12d, r12d
	jne	.L31
	mov	eax, DWORD PTR P2PS_SETUP_GROUP_OWNER[rip]
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rax, QWORD PTR 48[rbx]
	lea	rdx, 40[rbx]
	mov	rdi, r14
	mov	esi, DWORD PTR 8[rax]
	call	p2p_buf_add_channel_list@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, r13d
	mov	rdi, r14
	mov	edx, DWORD PTR 8[rax]
	call	p2p_buf_add_advertisement_id@PLT
	jmp	.L41
.L105:
	mov	rcx, QWORD PTR -64[rbp]
	mov	rdx, r9
	mov	rsi, r8
	mov	rdi, r14
	mov	QWORD PTR -80[rbp], r11
	call	p2p_buf_add_persistent_group_info@PLT
	mov	rdi, QWORD PTR -120[rbp]
	call	is_zero_ether_addr@PLT
	mov	r11, QWORD PTR -80[rbp]
	test	eax, eax
	je	.L107
.L27:
	mov	rsp, r11
	jmp	.L40
.L107:
	mov	rsi, QWORD PTR -120[rbp]
	mov	rdi, r14
	call	p2p_buf_add_intended_addr@PLT
	mov	r11, QWORD PTR -80[rbp]
	jmp	.L27
.L101:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	p2p_build_prov_disc_resp, .-p2p_build_prov_disc_resp
	.comm	VENDOR_ELEM_P2P_PD_RESP,8,8
	.comm	SSID_MAX_LEN,4,4
	.comm	P2P_SC_SUCCESS_DEFERRED,4,4
	.comm	P2P_SC_SUCCESS,4,4
	.comm	P2P_PROV_DISC_RESP,4,4
	.comm	P2P_GROUP_CAPAB_PERSISTENT_RECONN,4,4
	.comm	P2P_GROUP_CAPAB_PERSISTENT_GROUP,4,4
	.comm	P2P_GROUP_CAPAB_INTRA_BSS_DIST,4,4
	.comm	P2P_GROUP_CAPAB_CROSS_CONN,4,4
	.comm	P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY,4,4
	.comm	P2PS_SETUP_GROUP_OWNER,4,4
	.comm	P2PS_SETUP_CLIENT,4,4
	.comm	ETH_ALEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_p2p_pd.c_p2p_build_prov_disc_resp.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	p2p_build_prov_disc_resp, %function
p2p_build_prov_disc_resp:
	@ args = 32, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #60
	mov	r5, r0
	ldr	r0, [r0, #8]
	mov	r6, r3
	ldr	r3, .L87
	cmp	r0, #0
	mov	r7, r1
	mov	r10, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r8, [fp, #20]
	ldr	r9, [fp, #28]
	beq	.L36
	ldr	r3, .L87+4
	ldr	r3, [r3]
	ldr	r0, [r0, r3, lsl #2]
	cmp	r0, #0
	beq	.L36
	bl	wpabuf_len
	add	r0, r0, #1000
	bl	wpabuf_alloc
	subs	r4, r0, #0
	bne	.L82
.L1:
	ldr	r3, .L87
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L83
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	mov	r0, #1000
	bl	wpabuf_alloc
	subs	r4, r0, #0
	beq	.L1
.L82:
	ldr	r3, .L87+8
	mov	r2, r10
	ldr	r1, [r3]
	bl	p2p_buf_add_public_action_hdr
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #8]
	cmp	r3, r2
	beq	.L84
.L4:
	ldr	r3, .L87+12
	ldr	r2, [fp, #8]
	ldr	r3, [r3]
	cmp	r2, #0
	cmpeq	r3, r6
	beq	.L26
	mov	r0, r4
	bl	p2p_buf_add_ie_hdr
	mov	r3, r0
	mov	r1, r6
	mov	r0, r4
	mov	r6, r3
	bl	p2p_buf_add_status
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L27
	mov	r0, r4
	ldr	r2, [r3, #8]
	ldr	r1, [fp, #8]
	bl	p2p_buf_add_advertisement_id
.L27:
	mov	r1, r6
	mov	r0, r4
	bl	p2p_buf_update_ie_hdr
.L26:
	mov	r0, r4
	ldr	r1, [fp, #4]
	bl	p2p_build_wps_ie_config_methods
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L1
	ldr	r2, .L87+4
	ldr	r2, [r2]
	ldr	r1, [r3, r2, lsl #2]
	cmp	r1, #0
	beq	.L1
	mov	r0, r4
	bl	wpabuf_put_buf
	b	.L1
.L84:
	mov	r0, r4
	bl	p2p_buf_add_ie_hdr
	ldr	r3, .L87+12
	ldr	r10, [r5, #12]
	ldr	r3, [r3]
	str	r0, [fp, #-52]
	cmp	r3, r6
	beq	.L5
	ldr	r3, .L87+16
	ldr	r3, [r3]
	cmp	r3, r6
	movne	r3, #0
	strne	r3, [fp, #-48]
	beq	.L5
.L6:
	cmp	r6, #0
	bne	.L38
	ldr	r1, [r10, #4]
	cmn	r1, #1
	movne	r6, r1
	beq	.L38
.L8:
	mov	r0, r4
	bl	p2p_buf_add_status
	ldr	r3, .L87+20
	ldr	r2, .L87+24
	ldr	r1, [r5, #40]
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r1, #0
	orr	r2, r3, r2
	ldrne	r3, .L87+28
	ldr	r1, .L87+32
	ldrne	r3, [r3]
	ldr	r1, [r1]
	orrne	r2, r2, r3
	ldr	r3, [r5, #28]
	mov	r0, r4
	ldr	r3, [r3, #20]
	cmp	r3, #0
	ldrne	r3, .L87+36
	ldrne	r3, [r3]
	orrne	r2, r2, r3
	ldr	r3, [r5, #4]
	bic	r1, r3, r1
	bl	p2p_buf_add_capability
	mov	r2, #0
	mov	r1, r5
	mov	r0, r4
	bl	p2p_buf_add_device_info
	cmp	r8, #0
	beq	.L78
	ldr	r2, [r5, #28]
	ldr	r3, [r2]
	cmp	r3, #0
	str	r3, [fp, #-56]
	beq	.L78
	cmp	r7, #0
	beq	.L78
	ldr	r3, .L87+12
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L16
	ldr	r3, .L87+16
	ldr	r3, [r3]
	cmp	r3, r6
	bne	.L78
.L16:
	ldr	r1, .L87+40
	ldr	r3, .L87+44
	ldr	r1, [r1]
	ldr	r3, [r3]
	lsl	r1, r1, #2
	add	r1, r1, #7
	lsl	r3, r3, #2
	bic	r1, r1, #7
	add	r3, r3, #7
	str	sp, [fp, #-60]
	bic	r3, r3, #7
	sub	sp, sp, r1
	add	ip, sp, #16
	sub	sp, sp, r3
	add	lr, sp, #16
	sub	sp, sp, r3
	add	r6, sp, #16
	sub	r3, fp, #44
	ldr	r0, [r2, #16]
	str	ip, [fp, #-68]
	str	r6, [fp, #-64]
	ldr	r1, [r7]
	str	lr, [fp, #-72]
	str	r6, [sp, #12]
	str	ip, [sp, #4]
	str	lr, [sp]
	str	r3, [sp, #8]
	mov	r2, r8
	ldr	r3, [fp, #24]
	ldr	ip, [fp, #-56]
	blx	ip
	subs	r6, r0, #0
	bne	.L85
	ldr	r6, .L87+48
	ldr	r2, [fp, #-48]
	ldr	r3, [r6]
	ldr	sp, [fp, #-60]
	tst	r2, r3
	beq	.L33
.L12:
	mov	r2, r4
	mov	r1, r7
	mov	r0, r5
	bl	p2ps_add_new_group_info
	ldr	r3, [r6]
	ldr	r2, [fp, #-48]
	tst	r2, r3
	beq	.L19
	mov	r6, #0
.L30:
	ldr	r2, [r5, #36]
	ldr	r0, [r5, #28]
	cmp	r2, #0
	ldr	r1, [r0, #4]
	beq	.L20
	ldr	r3, [r5, #32]
	cmp	r3, #0
	bne	.L80
.L20:
	ldr	r3, [r0, #8]
	ldr	r2, [r0, #12]
.L80:
	mov	r0, r4
	bl	p2p_buf_add_operating_channel
	cmp	r6, #0
	bne	.L22
	ldr	r6, .L87+48
	ldr	r3, [r6]
	b	.L33
.L38:
	mov	r1, r6
	b	.L8
.L78:
	ldr	r6, .L87+48
	ldr	r2, [fp, #-48]
	ldr	r3, [r6]
	tst	r2, r3
	bne	.L12
.L33:
	ldr	r8, .L87+52
	ldr	r2, [r8]
	orr	r3, r3, r2
	ldr	r2, [fp, #-48]
	tst	r3, r2
	bne	.L23
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L32
	mov	r0, r4
	ldr	r1, [fp, #8]
	ldr	r2, [r10, #8]
	bl	p2p_buf_add_advertisement_id
.L25:
	ldr	r2, [r10, #12]
	ldr	r1, [r10, #16]
	mov	r0, r4
	bl	p2p_buf_add_session_id
	ldr	r1, [fp, #32]
	mov	r2, r9
	mov	r0, r4
	bl	p2p_buf_add_feature_capability
	mov	r0, r4
	ldr	r1, [fp, #-52]
	bl	p2p_buf_update_ie_hdr
	b	.L26
.L5:
	ldr	r3, [r10]
	str	r3, [fp, #-48]
	b	.L6
.L19:
	ldr	r8, .L87+52
	ldr	r2, [r8]
	orr	r3, r3, r2
	ldr	r2, [fp, #-48]
	tst	r3, r2
	beq	.L32
.L23:
	ldr	r3, [r5, #28]
	mov	r0, r4
	ldr	r1, [r3, #4]
	add	r2, r5, #24
	bl	p2p_buf_add_channel_list
.L32:
	ldr	r7, [fp, #-48]
	mov	r0, r4
	mov	r1, r7
	bl	p2p_buf_add_connection_capability
	ldr	r2, [r10, #8]
	mov	r0, r4
	ldr	r1, [fp, #8]
	bl	p2p_buf_add_advertisement_id
	ldr	r3, [r8]
	ldr	r2, [r6]
	orr	r3, r3, r2
	tst	r3, r7
	beq	.L25
.L31:
	mov	r0, r4
	ldr	r2, [r5, #16]
	ldr	r1, [r5, #20]
	bl	p2p_buf_add_config_timeout
	b	.L25
.L22:
	ldr	r3, [r5, #28]
	add	r2, r5, #24
	ldr	r1, [r3, #4]
	mov	r0, r4
	bl	p2p_buf_add_channel_list
	mov	r0, r4
	ldr	r1, [fp, #8]
	ldr	r2, [r10, #8]
	bl	p2p_buf_add_advertisement_id
	b	.L31
.L85:
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-72]
	ldr	r3, [fp, #-44]
	mov	r0, r4
	bl	p2p_buf_add_persistent_group_info
	ldr	r0, [fp, #-64]
	bl	is_zero_ether_addr
	cmp	r0, #0
	beq	.L86
.L18:
	ldr	sp, [fp, #-60]
	b	.L30
.L86:
	mov	r0, r4
	ldr	r1, [fp, #-64]
	bl	p2p_buf_add_intended_addr
	b	.L18
.L83:
	bl	__stack_chk_fail
.L88:
	.align	2
.L87:
	.word	.LC0
	.word	VENDOR_ELEM_P2P_PD_RESP
	.word	P2P_PROV_DISC_RESP
	.word	P2P_SC_SUCCESS
	.word	P2P_SC_SUCCESS_DEFERRED
	.word	P2P_GROUP_CAPAB_PERSISTENT_GROUP
	.word	P2P_GROUP_CAPAB_PERSISTENT_RECONN
	.word	P2P_GROUP_CAPAB_CROSS_CONN
	.word	P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY
	.word	P2P_GROUP_CAPAB_INTRA_BSS_DIST
	.word	SSID_MAX_LEN
	.word	ETH_ALEN
	.word	P2PS_SETUP_GROUP_OWNER
	.word	P2PS_SETUP_CLIENT
	.size	p2p_build_prov_disc_resp, .-p2p_build_prov_disc_resp
	.comm	VENDOR_ELEM_P2P_PD_RESP,4,4
	.comm	SSID_MAX_LEN,4,4
	.comm	P2P_SC_SUCCESS_DEFERRED,4,4
	.comm	P2P_SC_SUCCESS,4,4
	.comm	P2P_PROV_DISC_RESP,4,4
	.comm	P2P_GROUP_CAPAB_PERSISTENT_RECONN,4,4
	.comm	P2P_GROUP_CAPAB_PERSISTENT_GROUP,4,4
	.comm	P2P_GROUP_CAPAB_INTRA_BSS_DIST,4,4
	.comm	P2P_GROUP_CAPAB_CROSS_CONN,4,4
	.comm	P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY,4,4
	.comm	P2PS_SETUP_GROUP_OWNER,4,4
	.comm	P2PS_SETUP_CLIENT,4,4
	.comm	ETH_ALEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
