	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_build_probe_resp_template  ## -- Begin function p2p_build_probe_resp_template
	.p2align	4, 0x90
_p2p_build_probe_resp_template:         ## @p2p_build_probe_resp_template
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	l___const.p2p_build_probe_resp_template.addr+16(%rip), %rax
	movq	%rax, -48(%rbp)
	movaps	l___const.p2p_build_probe_resp_template.addr(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_p2p_build_probe_resp_ies
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_wpabuf_len
	leaq	200(%rax), %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %r8d
	callq	_p2p_build_probe_resp_buf
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_wpabuf_free
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	jmp	LBB0_6
LBB0_1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
LBB0_6:
	callq	_wpabuf_free
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movq	%r12, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.p2p_build_probe_resp_template.addr
l___const.p2p_build_probe_resp_template.addr:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CTRL: Failed to build Probe Response IEs"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_build_probe_resp_template  ; -- Begin function p2p_build_probe_resp_template
	.p2align	2
_p2p_build_probe_resp_template:         ; @p2p_build_probe_resp_template
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.p2p_build_probe_resp_template.addr@PAGE
Lloh4:
	add	x8, x8, l___const.p2p_build_probe_resp_template.addr@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
	mov	x1, #0
	mov	w2, #0
	bl	_p2p_build_probe_resp_ies
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	bl	_wpabuf_len
	add	x0, x0, #200
	bl	_wpabuf_alloc
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.2:
	mov	x3, sp
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x4, x19
	bl	_p2p_build_probe_resp_buf
	mov	x19, x0
	mov	x0, x22
	bl	_wpabuf_free
	cbz	w19, LBB0_7
; %bb.3:
	mov	x0, x21
	bl	_wpabuf_free
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	mov	x21, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x22
	bl	_wpabuf_free
LBB0_7:
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.p2p_build_probe_resp_template.addr
l___const.p2p_build_probe_resp_template.addr:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CTRL: Failed to build Probe Response IEs"

.subsections_via_symbols
