	.file	"extr_p2p.c_p2p_assoc_req_ie_wlan_ap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enabled"
.LC1:
	.string	"disabled"
.LC2:
	.string	"BSS P2P manageability %s"
	.text
	.p2align 4
	.type	p2p_assoc_req_ie_wlan_ap, @function
p2p_assoc_req_ie_wlan_ap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	r8, r8
	je	.L4
	mov	r14, rsp
	xor	esi, esi
	mov	rbp, r8
	mov	r12, rdi
	mov	r13, rdx
	mov	rdi, r14
	mov	edx, 8
	mov	rbx, rcx
	call	os_memset@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	p2p_parse_p2p_ie@PLT
	test	rax, rax
	js	.L4
	cmp	QWORD PTR [rsp], 0
	lea	rax, .LC1[rip]
	mov	rdi, r12
	lea	rdx, .LC0[rip]
	lea	rsi, .LC2[rip]
	cmove	rdx, rax
	call	p2p_dbg@PLT
	cmp	QWORD PTR [rsp], 0
	jne	.L28
.L4:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	edi, 200
	call	wpabuf_alloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L12
	mov	rdi, rax
	call	p2p_buf_add_ie_hdr@PLT
	cmp	QWORD PTR [r12], 0
	mov	r14, rax
	jle	.L30
	mov	edx, DWORD PTR P2P_GROUP_CAPAB_GROUP_OWNER[rip]
	mov	esi, DWORD PTR 8[r12]
	test	DWORD PTR P2P_DEV_CAPAB_CONCURRENT_OPER[rip], esi
	je	.L7
	test	DWORD PTR P2P_DEV_CAPAB_INFRA_MANAGED[rip], esi
	je	.L7
	cmp	QWORD PTR 16[r12], 0
	je	.L7
	or	edx, DWORD PTR P2P_GROUP_CAPAB_CROSS_CONN[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, DWORD PTR 8[r12]
	xor	edx, edx
.L7:
	mov	rdi, rbp
	call	p2p_buf_add_capability@PLT
	mov	eax, DWORD PTR 8[r12]
	test	DWORD PTR P2P_DEV_CAPAB_CONCURRENT_OPER[rip], eax
	je	.L8
	test	DWORD PTR P2P_DEV_CAPAB_INFRA_MANAGED[rip], eax
	jne	.L31
.L8:
	mov	rsi, r14
	mov	rdi, rbp
	mov	r12d, -1
	call	p2p_buf_update_ie_hdr@PLT
	mov	rdi, rbp
	call	wpabuf_len@PLT
	mov	r14, rax
	cmp	rax, rbx
	jbe	.L32
.L9:
	mov	rdi, rbp
	call	wpabuf_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, rbp
	mov	r12d, r14d
	call	wpabuf_head@PLT
	mov	rdx, r14
	mov	rdi, r13
	mov	esi, eax
	call	os_memcpy@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rsi, r12
	mov	rdi, rbp
	call	p2p_buf_add_p2p_interface@PLT
	jmp	.L8
.L12:
	mov	r12d, -1
	jmp	.L1
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	p2p_assoc_req_ie_wlan_ap, .-p2p_assoc_req_ie_wlan_ap
	.comm	P2P_GROUP_CAPAB_GROUP_OWNER,4,4
	.comm	P2P_GROUP_CAPAB_CROSS_CONN,4,4
	.comm	P2P_DEV_CAPAB_INFRA_MANAGED,4,4
	.comm	P2P_DEV_CAPAB_CONCURRENT_OPER,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.c_p2p_assoc_req_ie_wlan_ap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enabled\000"
	.align	2
.LC1:
	.ascii	"disabled\000"
	.align	2
.LC2:
	.ascii	"BSS P2P manageability %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	p2p_assoc_req_ie_wlan_ap, %function
p2p_assoc_req_ie_wlan_ap:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	ldr	r5, [sp, #40]
	mov	r6, r3
	ldr	r3, .L39
	cmp	r5, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L4
	mov	r1, #0
	mov	r4, r0
	mov	r7, r2
	mov	r0, sp
	mov	r2, #4
	bl	os_memset
	mov	r1, sp
	mov	r0, r5
	bl	p2p_parse_p2p_ie
	cmp	r0, #0
	blt	.L4
	ldr	r0, [sp]
	ldr	r3, .L39+4
	cmp	r0, #0
	ldr	r2, .L39+8
	mov	r0, r4
	moveq	r2, r3
	ldr	r1, .L39+12
	bl	p2p_dbg
	ldr	r3, [sp]
	cmp	r3, #0
	bne	.L34
.L4:
	mov	r4, #0
.L1:
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L34:
	mov	r0, #200
	bl	wpabuf_alloc
	subs	r5, r0, #0
	beq	.L12
	bl	p2p_buf_add_ie_hdr
	ldr	r3, [r4]
	mov	r8, r0
	cmp	r3, #0
	ble	.L36
	ldr	r9, .L39+16
	ldr	r1, [r4, #4]
	ldr	r2, [r9]
	ldr	r3, .L39+20
	tst	r1, r2
	ldr	r2, [r3]
	beq	.L7
	ldr	r3, .L39+24
	ldr	r3, [r3]
	tst	r1, r3
	beq	.L7
	ldr	r3, [r4, #8]
	cmp	r3, #0
	ldrne	r3, .L39+28
	ldrne	r3, [r3]
	orrne	r2, r2, r3
	b	.L7
.L36:
	mov	r2, #0
	ldr	r1, [r4, #4]
	ldr	r9, .L39+16
.L7:
	mov	r0, r5
	bl	p2p_buf_add_capability
	ldr	r2, [r9]
	ldr	r3, [r4, #4]
	tst	r3, r2
	beq	.L8
	ldr	r2, .L39+24
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L37
.L8:
	mov	r1, r8
	mov	r0, r5
	bl	p2p_buf_update_ie_hdr
	mov	r0, r5
	bl	wpabuf_len
	cmp	r0, r6
	mov	r4, r0
	mvnhi	r4, #0
	bls	.L38
.L9:
	mov	r0, r5
	bl	wpabuf_free
	b	.L1
.L38:
	mov	r0, r5
	bl	wpabuf_head
	mov	r2, r4
	mov	r1, r0
	mov	r0, r7
	bl	os_memcpy
	b	.L9
.L37:
	mov	r1, r4
	mov	r0, r5
	bl	p2p_buf_add_p2p_interface
	b	.L8
.L12:
	mvn	r4, #0
	b	.L1
.L35:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	.LC3
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	P2P_DEV_CAPAB_CONCURRENT_OPER
	.word	P2P_GROUP_CAPAB_GROUP_OWNER
	.word	P2P_DEV_CAPAB_INFRA_MANAGED
	.word	P2P_GROUP_CAPAB_CROSS_CONN
	.size	p2p_assoc_req_ie_wlan_ap, .-p2p_assoc_req_ie_wlan_ap
	.comm	P2P_GROUP_CAPAB_GROUP_OWNER,4,4
	.comm	P2P_GROUP_CAPAB_CROSS_CONN,4,4
	.comm	P2P_DEV_CAPAB_INFRA_MANAGED,4,4
	.comm	P2P_DEV_CAPAB_CONCURRENT_OPER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
