	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_vendor_elem_remove        ## -- Begin function wpas_vendor_elem_remove
	.p2align	4, 0x90
_wpas_vendor_elem_remove:               ## @wpas_vendor_elem_remove
	.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, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movslq	%esi, %rbx
	movq	(%rax,%rbx,8), %rdi
	callq	_wpabuf_mhead_u8
	movq	%rax, %r12
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_wpabuf_len
	movl	$-1, %ecx
	cmpq	$2, %rax
	jl	LBB0_10
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rax,8), %r13
	movq	%r12, %rbx
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r15,8), %r14
	cmpq	%r13, %r14
	ja	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	leaq	(%r12,%rax,8), %rbx
	addq	$24, %rbx
	leaq	(%r12,%rax,8), %r12
	addq	$16, %r12
	cmpq	%r13, %rbx
	jb	LBB0_2
LBB0_9:
	movl	$-1, %ecx
	jmp	LBB0_10
LBB0_4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdi
	callq	_wpabuf_len
	cmpq	%r15, %rax
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rdi
	callq	_wpabuf_free
	movq	(%rbx), %rax
	movq	$0, (%rax,%r14,8)
	jmp	LBB0_7
LBB0_6:
	subq	%r14, %r13
	shrq	$3, %r13
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_os_memmove
	movq	(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	subq	%r15, (%rax)
LBB0_7:
	movq	%rbx, %rdi
	callq	_wpas_vendor_elem_update
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_vendor_elem_remove        ; -- Begin function wpas_vendor_elem_remove
	.p2align	2
_wpas_vendor_elem_remove:               ; @wpas_vendor_elem_remove
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0]
	sbfiz	x24, x23, #3, #32
	ldr	x0, [x8, x24]
	bl	_wpabuf_mhead_u8
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x0, [x8, x24]
	bl	_wpabuf_len
	cmp	x0, #2
	b.lt	LBB0_5
; %bb.1:
	sxtw	x24, w23
	add	x25, x21, x0, lsl #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x21, x20, lsl #3
	cmp	x23, x25
	b.hi	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_os_memcmp
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21, #8]
	add	x8, x21, x8, lsl #3
	add	x21, x8, #16
	add	x8, x8, #24
	cmp	x8, x25
	b.lo	LBB0_2
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x19]
	ldr	x0, [x8, x24, lsl #3]
	bl	_wpabuf_len
	cmp	x0, x20
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x19]
	lsl	x20, x24, #3
	ldr	x0, [x8, x20]
	bl	_wpabuf_free
	ldr	x8, [x19]
	str	xzr, [x8, x20]
	b	LBB0_10
LBB0_9:
	sub	x8, x25, x23
	lsr	x2, x8, #3
	mov	x0, x21
	mov	x1, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memmove
	ldr	x8, [x19]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x9, [x8]
	sub	x9, x9, x20
	str	x9, [x8]
LBB0_10:
	mov	x0, x19
	bl	_wpas_vendor_elem_update
	mov	w0, #0
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
