	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_assoc_req_ie               ## -- Begin function p2p_assoc_req_ie
	.p2align	4, 0x90
_p2p_assoc_req_ie:                      ## @p2p_assoc_req_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	%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
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	testl	%r8d, %r8d
	je	LBB0_18
## %bb.1:
	movq	16(%r12), %rax
	movl	$200, %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_VENDOR_ELEM_P2P_ASSOC_REQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	callq	_wpabuf_len
	movq	%rax, %rdi
	addl	$200, %edi
LBB0_4:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_VENDOR_ELEM_P2P_ASSOC_REQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_wpabuf_put_buf
LBB0_9:
	testq	%r13, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.11:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_p2p_get_device
	movq	%rax, %r13
	jmp	LBB0_12
LBB0_18:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movq	%r9, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_p2p_assoc_req_ie_wlan_ap       ## TAILCALL
LBB0_5:
	movl	$-1, %ebx
	jmp	LBB0_17
LBB0_10:
	xorl	%r13d, %r13d
LBB0_12:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_p2p_buf_add_ie_hdr
	movq	%rax, %r14
	movl	8(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_p2p_buf_add_capability
	movl	(%r12), %edx
	testl	%edx, %edx
	je	LBB0_14
## %bb.13:
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_p2p_buf_add_ext_listen_timing
LBB0_14:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_p2p_buf_add_device_info
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_p2p_buf_update_ie_hdr
	movq	%r15, %rdi
	callq	_wpabuf_len
	movl	$-1, %ebx
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	ja	LBB0_16
## %bb.15:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_wpabuf_head
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_os_memcpy
	movl	%r14d, %ebx
LBB0_16:
	movq	%r15, %rdi
	callq	_wpabuf_free
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VENDOR_ELEM_P2P_ASSOC_REQ,8,3  ## @VENDOR_ELEM_P2P_ASSOC_REQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_assoc_req_ie               ; -- Begin function p2p_assoc_req_ie
	.p2align	2
_p2p_assoc_req_ie:                      ; @p2p_assoc_req_ie
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
	cbz	w4, LBB0_5
; %bb.1:
	ldr	x8, [x21, #16]
Lloh0:
	adrp	x24, _VENDOR_ELEM_P2P_ASSOC_REQ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VENDOR_ELEM_P2P_ASSOC_REQ@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x9, [x24]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_6
; %bb.3:
	bl	_wpabuf_len
	add	w0, w0, #200
	bl	_wpabuf_alloc
	cbnz	x0, LBB0_7
LBB0_4:
	mov	w21, #-1
	b	LBB0_18
LBB0_5:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x19
	mov	x3, x20
	mov	x4, x5
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_p2p_assoc_req_ie_wlan_ap
LBB0_6:
	mov	w0, #200
	bl	_wpabuf_alloc
	cbz	x0, LBB0_4
LBB0_7:
	mov	x22, x0
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	x9, [x24]
	ldr	x1, [x8, x9, lsl #3]
	cbz	x1, LBB0_10
; %bb.9:
	mov	x0, x22
	bl	_wpabuf_put_buf
LBB0_10:
	cbz	x23, LBB0_12
; %bb.11:
	mov	x0, x21
	mov	x1, x23
	bl	_p2p_get_device
	mov	x23, x0
LBB0_12:
	mov	x0, x22
	bl	_p2p_buf_add_ie_hdr
	mov	x24, x0
	ldr	w1, [x21, #8]
	mov	x0, x22
	mov	w2, #0
	bl	_p2p_buf_add_capability
	ldr	w2, [x21]
	cbz	w2, LBB0_14
; %bb.13:
	ldr	w1, [x21, #4]
	mov	x0, x22
	bl	_p2p_buf_add_ext_listen_timing
LBB0_14:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_p2p_buf_add_device_info
	mov	x0, x22
	mov	x1, x24
	bl	_p2p_buf_update_ie_hdr
	mov	x0, x22
	bl	_wpabuf_len
	cmp	x0, x20
	b.ls	LBB0_16
; %bb.15:
	mov	w21, #-1
	b	LBB0_17
LBB0_16:
	mov	x21, x0
	mov	x0, x22
	bl	_wpabuf_head
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_os_memcpy
LBB0_17:
	mov	x0, x22
	bl	_wpabuf_free
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VENDOR_ELEM_P2P_ASSOC_REQ,8,3  ; @VENDOR_ELEM_P2P_ASSOC_REQ
.subsections_via_symbols
