	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_build_client_info
_p2p_build_client_info:                 ## @p2p_build_client_info
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %r14
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_os_memset
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_p2p_parse_p2p_ie
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	cmpq	$0, -64(%rbp)
	je	LBB0_8
## %bb.3:
	cmpq	$0, -56(%rbp)
	je	LBB0_8
## %bb.4:
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	-72(%rbp), %ecx
	leal	(%rax,%rcx), %edi
	addl	$2, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r13
	movq	-64(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movl	-48(%rbp), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_os_memcpy
	movq	-56(%rbp), %r12
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_wpabuf_put
	movq	%rax, %r15
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_wpabuf_put_data
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_wpabuf_put_data
	movq	-64(%rbp), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_wpabuf_put_u8
	movslq	(%rbx), %rax
	leaq	(%r12,%rax,8), %rsi
	movl	-72(%rbp), %edx
	subl	%eax, %edx
	movq	%r13, %rdi
	callq	_wpabuf_put_data
	movq	%r13, %rdi
	callq	_wpabuf_len
	decq	%rax
	movq	%rax, (%r15)
	jmp	LBB0_8
LBB0_7:
	xorl	%r13d, %r13d
LBB0_8:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_p2p_build_client_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_build_client_info
_p2p_build_client_info:                 ; @p2p_build_client_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	cbz	x1, LBB0_6
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_os_memset
	mov	x1, sp
	mov	x0, x19
	bl	_p2p_parse_p2p_ie
	mov	x19, #0
	cbnz	x0, LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_6
; %bb.4:
Lloh0:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [sp]
	add	w8, w8, w9
	add	w0, w8, #2
	bl	_wpabuf_alloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	str	x8, [x22]
	ldr	w1, [sp, #24]
	ldr	w2, [x23]
	mov	x0, x21
	bl	_os_memcpy
	ldr	x21, [sp, #16]
	mov	x0, x19
	mov	w1, #1
	bl	_wpabuf_put
	mov	x22, x0
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_wpabuf_put_data
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_wpabuf_put_data
	ldr	x8, [sp, #8]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_u8
	ldrsw	x8, [x23]
	add	x1, x21, x8, lsl #3
	ldr	w9, [sp]
	sub	w2, w9, w8
	mov	x0, x19
	bl	_wpabuf_put_data
	mov	x0, x19
	bl	_wpabuf_len
	sub	x8, x0, #1
	str	x8, [x22]
LBB0_6:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_p2p_build_client_info
.subsections_via_symbols
