	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_build_presence_req
_p2p_build_presence_req:                ## @p2p_build_presence_req
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$100, %edi
	callq	_wpabuf_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%r15, %rax
	orq	%r14, %rax
	je	LBB0_4
## %bb.2:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_os_memset
	movl	$1, -64(%rbp)
	movq	%r15, -48(%rbp)
	leaq	-64(%rbp), %r15
	movq	%r14, -56(%rbp)
	movq	%r13, %rax
	orq	%r12, %rax
	je	LBB0_5
## %bb.3:
	leaq	-88(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_os_memset
	movl	$2, -88(%rbp)
	movq	%r13, -72(%rbp)
	movq	%r12, -80(%rbp)
	movq	%r14, %r12
	jmp	LBB0_6
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	xorl	%r12d, %r12d
LBB0_6:
	movq	_P2P_PRESENCE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_p2p_buf_add_action_hdr
	movq	%rbx, %rdi
	callq	_p2p_buf_add_ie_hdr
	movq	%rax, %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	movq	%r12, %r9
	callq	_p2p_buf_add_noa
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_p2p_buf_update_ie_hdr
LBB0_7:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_PRESENCE_REQ,4,2           ## @P2P_PRESENCE_REQ
	.no_dead_strip	_p2p_build_presence_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_build_presence_req
_p2p_build_presence_req:                ; @p2p_build_presence_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x24, x0
	mov	w0, #100
	bl	_wpabuf_alloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	orr	x8, x24, x22
	cbz	x8, LBB0_4
; %bb.2:
	add	x20, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_os_memset
	mov	w8, #1
	str	w8, [sp, #24]
	stp	x22, x24, [sp, #32]
	orr	x8, x23, x21
	cbz	x8, LBB0_5
; %bb.3:
	mov	x22, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #24
	bl	_os_memset
	mov	w8, #2
	str	w8, [sp]
	stp	x21, x23, [sp, #8]
	add	x20, sp, #24
	b	LBB0_6
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x22, #0
LBB0_6:
Lloh0:
	adrp	x8, _P2P_PRESENCE_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P2P_PRESENCE_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_p2p_buf_add_action_hdr
	mov	x0, x19
	bl	_p2p_buf_add_ie_hdr
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x4, x20
	mov	x5, x22
	bl	_p2p_buf_add_noa
	mov	x0, x19
	mov	x1, x21
	bl	_p2p_buf_update_ie_hdr
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_PRESENCE_REQ,4,2           ; @P2P_PRESENCE_REQ
	.no_dead_strip	_p2p_build_presence_req
.subsections_via_symbols
