	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_assoc_req_ie_wlan_ap
_p2p_assoc_req_ie_wlan_ap:              ## @p2p_assoc_req_ie_wlan_ap
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdi, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_os_memset
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_p2p_parse_p2p_ie
	testq	%rax, %rax
	js	LBB0_18
## %bb.3:
	cmpq	$0, -48(%rbp)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_p2p_dbg
	cmpq	$0, -48(%rbp)
	je	LBB0_18
## %bb.4:
	movl	$200, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_p2p_buf_add_ie_hdr
	movq	%rax, %rbx
	cmpq	$0, (%r13)
	jle	LBB0_7
## %bb.8:
	movq	_P2P_GROUP_CAPAB_GROUP_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r13), %esi
	movq	_P2P_DEV_CAPAB_CONCURRENT_OPER@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_12
## %bb.9:
	movq	_P2P_DEV_CAPAB_INFRA_MANAGED@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_12
## %bb.10:
	cmpq	$0, 16(%r13)
	je	LBB0_12
## %bb.11:
	movq	_P2P_GROUP_CAPAB_CROSS_CONN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	jmp	LBB0_12
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_5:
	movl	$-1, %r14d
	jmp	LBB0_18
LBB0_7:
	movl	8(%r13), %esi
	xorl	%edx, %edx
LBB0_12:
	movq	%r12, %rdi
	callq	_p2p_buf_add_capability
	movl	8(%r13), %eax
	movq	_P2P_DEV_CAPAB_CONCURRENT_OPER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.13:
	movq	_P2P_DEV_CAPAB_INFRA_MANAGED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_p2p_buf_add_p2p_interface
LBB0_15:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_p2p_buf_update_ie_hdr
	movq	%r12, %rdi
	callq	_wpabuf_len
	movl	$-1, %r14d
	cmpq	%r15, %rax
	ja	LBB0_17
## %bb.16:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_wpabuf_head
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_os_memcpy
	movl	%r13d, %r14d
LBB0_17:
	movq	%r12, %rdi
	callq	_wpabuf_free
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %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	"BSS P2P manageability %s"

L_.str.1:                               ## @.str.1
	.asciz	"enabled"

L_.str.2:                               ## @.str.2
	.asciz	"disabled"

	.comm	_P2P_GROUP_CAPAB_GROUP_OWNER,4,2 ## @P2P_GROUP_CAPAB_GROUP_OWNER
	.comm	_P2P_DEV_CAPAB_CONCURRENT_OPER,4,2 ## @P2P_DEV_CAPAB_CONCURRENT_OPER
	.comm	_P2P_DEV_CAPAB_INFRA_MANAGED,4,2 ## @P2P_DEV_CAPAB_INFRA_MANAGED
	.comm	_P2P_GROUP_CAPAB_CROSS_CONN,4,2 ## @P2P_GROUP_CAPAB_CROSS_CONN
	.no_dead_strip	_p2p_assoc_req_ie_wlan_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_assoc_req_ie_wlan_ap
_p2p_assoc_req_ie_wlan_ap:              ; @p2p_assoc_req_ie_wlan_ap
	.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
	cbz	x4, LBB0_9
; %bb.1:
	mov	x22, x4
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_os_memset
	add	x1, sp, #8
	mov	x0, x22
	bl	_p2p_parse_p2p_ie
	tbnz	x0, #63, LBB0_9
; %bb.2:
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_p2p_dbg
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_9
; %bb.3:
	mov	w0, #200
	bl	_wpabuf_alloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x22, x0
	bl	_p2p_buf_add_ie_hdr
	mov	x23, x0
	ldr	x8, [x21]
Lloh6:
	adrp	x25, _P2P_DEV_CAPAB_CONCURRENT_OPER@GOTPAGE
Lloh7:
	ldr	x25, [x25, _P2P_DEV_CAPAB_CONCURRENT_OPER@GOTPAGEOFF]
Lloh8:
	adrp	x24, _P2P_DEV_CAPAB_INFRA_MANAGED@GOTPAGE
Lloh9:
	ldr	x24, [x24, _P2P_DEV_CAPAB_INFRA_MANAGED@GOTPAGEOFF]
	cmp	x8, #0
	b.le	LBB0_12
; %bb.5:
Lloh10:
	adrp	x8, _P2P_GROUP_CAPAB_GROUP_OWNER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _P2P_GROUP_CAPAB_GROUP_OWNER@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	w1, [x21, #8]
	ldr	w8, [x25]
	tst	w8, w1
	b.eq	LBB0_13
; %bb.6:
	ldr	w8, [x24]
	tst	w8, w1
	b.eq	LBB0_13
; %bb.7:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_13
; %bb.8:
Lloh13:
	adrp	x8, _P2P_GROUP_CAPAB_CROSS_CONN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _P2P_GROUP_CAPAB_CROSS_CONN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w2, w8, w2
	b	LBB0_13
LBB0_9:
	mov	w21, #0
LBB0_10:
	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
LBB0_11:
	mov	w21, #-1
	b	LBB0_10
LBB0_12:
	mov	w2, #0
	ldr	w1, [x21, #8]
LBB0_13:
	mov	x0, x22
	bl	_p2p_buf_add_capability
	ldr	w8, [x21, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x22
	mov	x1, x21
	bl	_p2p_buf_add_p2p_interface
LBB0_16:
	mov	x0, x22
	mov	x1, x23
	bl	_p2p_buf_update_ie_hdr
	mov	x0, x22
	bl	_wpabuf_len
	cmp	x0, x20
	b.ls	LBB0_18
; %bb.17:
	mov	w21, #-1
	b	LBB0_19
LBB0_18:
	mov	x21, x0
	mov	x0, x22
	bl	_wpabuf_head
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_os_memcpy
LBB0_19:
	mov	x0, x22
	bl	_wpabuf_free
	b	LBB0_10
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BSS P2P manageability %s"

l_.str.1:                               ; @.str.1
	.asciz	"enabled"

l_.str.2:                               ; @.str.2
	.asciz	"disabled"

	.comm	_P2P_GROUP_CAPAB_GROUP_OWNER,4,2 ; @P2P_GROUP_CAPAB_GROUP_OWNER
	.comm	_P2P_DEV_CAPAB_CONCURRENT_OPER,4,2 ; @P2P_DEV_CAPAB_CONCURRENT_OPER
	.comm	_P2P_DEV_CAPAB_INFRA_MANAGED,4,2 ; @P2P_DEV_CAPAB_INFRA_MANAGED
	.comm	_P2P_GROUP_CAPAB_CROSS_CONN,4,2 ; @P2P_GROUP_CAPAB_CROSS_CONN
	.no_dead_strip	_p2p_assoc_req_ie_wlan_ap
.subsections_via_symbols
