	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_update_peer_vendor_elems
_p2p_update_peer_vendor_elems:          ## @p2p_update_peer_vendor_elems
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	callq	_wpabuf_free
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	$0, (%r14)
	cmpq	$2, %r15
	jl	LBB0_14
## %bb.1:
	leaq	(%rbx,%r15,4), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r14,4), %rbx
	movq	%r13, %rax
	subq	%rbx, %rax
	cmpq	$4, %rax
	jle	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	8(%rbx), %r15
	movslq	4(%rbx), %r14
	movq	%r13, %rax
	subq	%r15, %rax
	sarq	$2, %rax
	cmpq	%r14, %rax
	jl	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %r14d
	jl	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$4, %r14d
	jb	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_WPA_GET_BE32
	movq	_WPA_IE_VENDOR_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_WMM_IE_VENDOR_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_WPS_IE_VENDOR_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_P2P_IE_VENDOR_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_WFD_IE_VENDOR_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	2(%r14), %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_wpabuf_resize
	testq	%rax, %rax
	js	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_wpabuf_put_data
	jmp	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ## @WLAN_EID_VENDOR_SPECIFIC
	.comm	_WPA_IE_VENDOR_TYPE,8,3         ## @WPA_IE_VENDOR_TYPE
	.comm	_WMM_IE_VENDOR_TYPE,8,3         ## @WMM_IE_VENDOR_TYPE
	.comm	_WPS_IE_VENDOR_TYPE,8,3         ## @WPS_IE_VENDOR_TYPE
	.comm	_P2P_IE_VENDOR_TYPE,8,3         ## @P2P_IE_VENDOR_TYPE
	.comm	_WFD_IE_VENDOR_TYPE,8,3         ## @WFD_IE_VENDOR_TYPE
	.no_dead_strip	_p2p_update_peer_vendor_elems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_update_peer_vendor_elems
_p2p_update_peer_vendor_elems:          ; @p2p_update_peer_vendor_elems
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	bl	_wpabuf_free
	str	xzr, [x19]
	cmp	x21, #2
	b.lt	LBB0_9
; %bb.1:
	add	x23, x20, x21, lsl #2
Lloh0:
	adrp	x24, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh2:
	adrp	x27, _WPS_IE_VENDOR_TYPE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _WPS_IE_VENDOR_TYPE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _P2P_IE_VENDOR_TYPE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _P2P_IE_VENDOR_TYPE@GOTPAGEOFF]
Lloh6:
	adrp	x25, _WFD_IE_VENDOR_TYPE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _WFD_IE_VENDOR_TYPE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x21, x26, lsl #2
	sub	x8, x23, x20
	cmp	x8, #4
	b.le	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x20, #8
	ldrsw	x26, [x20, #4]
	sub	x8, x23, x21
	cmp	x26, x8, asr #2
	b.gt	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x24]
	cmp	w8, w9
	ccmp	w26, #3, #8, eq
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w26, #4
	b.lo	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_WPA_GET_BE32
Lloh8:
	adrp	x8, _WPA_IE_VENDOR_TYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WPA_IE_VENDOR_TYPE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _WMM_IE_VENDOR_TYPE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WMM_IE_VENDOR_TYPE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x10, [x27]
	ldr	x11, [x28]
	ldr	x12, [x25]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	ccmp	x0, x10, #4, ne
	ccmp	x0, x11, #4, ne
	ccmp	x0, x12, #4, ne
	b.eq	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w26, #2
	mov	x0, x19
	mov	x1, x22
	bl	_wpabuf_resize
	tbnz	x0, #63, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19]
	mov	x1, x20
	mov	x2, x22
	bl	_wpabuf_put_data
	b	LBB0_2
LBB0_9:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_VENDOR_SPECIFIC,4,2   ; @WLAN_EID_VENDOR_SPECIFIC
	.comm	_WPA_IE_VENDOR_TYPE,8,3         ; @WPA_IE_VENDOR_TYPE
	.comm	_WMM_IE_VENDOR_TYPE,8,3         ; @WMM_IE_VENDOR_TYPE
	.comm	_WPS_IE_VENDOR_TYPE,8,3         ; @WPS_IE_VENDOR_TYPE
	.comm	_P2P_IE_VENDOR_TYPE,8,3         ; @P2P_IE_VENDOR_TYPE
	.comm	_WFD_IE_VENDOR_TYPE,8,3         ; @WFD_IE_VENDOR_TYPE
	.no_dead_strip	_p2p_update_peer_vendor_elems
.subsections_via_symbols
