	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_add_wpa_tlv
_lbs_add_wpa_tlv:                       ## @lbs_add_wpa_tlv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	%edx, %eax
	movl	(%rsi), %ecx
	movl	%ecx, (%rdi)
	movl	$0, 4(%rdi)
	movslq	4(%rsi), %r8
	movl	%r8d, 8(%rdi)
	movl	$0, 12(%rdi)
	testq	%r8, %r8
	je	LBB0_17
## %bb.1:
	leaq	16(%rdi), %rdx
	leaq	8(%rsi), %rcx
	cmpl	$8, %r8d
	jb	LBB0_12
## %bb.2:
	movq	%rdi, %rbx
	subq	%rsi, %rbx
	addq	$8, %rbx
	cmpq	$32, %rbx
	jb	LBB0_12
## %bb.3:
	movq	%r8, %r9
	andq	$-8, %r9
	leaq	-8(%r9), %rbx
	movq	%rbx, %r11
	shrq	$3, %r11
	incq	%r11
	movl	%r11d, %r10d
	andl	$3, %r10d
	cmpq	$24, %rbx
	jae	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %r11
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movups	8(%rsi,%rbx,4), %xmm0
	movups	24(%rsi,%rbx,4), %xmm1
	movups	%xmm0, 16(%rdi,%rbx,4)
	movups	%xmm1, 32(%rdi,%rbx,4)
	movups	40(%rsi,%rbx,4), %xmm0
	movups	56(%rsi,%rbx,4), %xmm1
	movups	%xmm0, 48(%rdi,%rbx,4)
	movups	%xmm1, 64(%rdi,%rbx,4)
	movups	72(%rsi,%rbx,4), %xmm0
	movups	88(%rsi,%rbx,4), %xmm1
	movups	%xmm0, 80(%rdi,%rbx,4)
	movups	%xmm1, 96(%rdi,%rbx,4)
	movups	104(%rsi,%rbx,4), %xmm0
	movups	120(%rsi,%rbx,4), %xmm1
	movups	%xmm0, 112(%rdi,%rbx,4)
	movups	%xmm1, 128(%rdi,%rbx,4)
	addq	$32, %rbx
	addq	$-4, %r11
	jne	LBB0_6
LBB0_7:
	testq	%r10, %r10
	je	LBB0_10
## %bb.8:
	leaq	(%rsi,%rbx,4), %rsi
	addq	$24, %rsi
	leaq	(%rdi,%rbx,4), %rdi
	addq	$32, %rdi
	shlq	$5, %r10
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rbx), %xmm0
	movups	(%rsi,%rbx), %xmm1
	movups	%xmm0, -16(%rdi,%rbx)
	movups	%xmm1, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r10
	jne	LBB0_9
LBB0_10:
	cmpq	%r8, %r9
	je	LBB0_17
## %bb.11:
	andl	$7, %r8d
	leaq	(%rdx,%r9,4), %rdx
	leaq	(%rcx,%r9,4), %rcx
LBB0_12:
	leaq	-1(%r8), %rsi
	movq	%r8, %rdi
	andq	$7, %rdi
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	decq	%r8
	movl	(%rcx), %ebx
	addq	$4, %rcx
	movl	%ebx, (%rdx)
	addq	$4, %rdx
	decq	%rdi
	jne	LBB0_13
LBB0_14:
	cmpq	$7, %rsi
	jb	LBB0_17
## %bb.15:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	movl	4(%rcx,%rsi,4), %edi
	movl	%edi, 4(%rdx,%rsi,4)
	movl	8(%rcx,%rsi,4), %edi
	movl	%edi, 8(%rdx,%rsi,4)
	movl	12(%rcx,%rsi,4), %edi
	movl	%edi, 12(%rdx,%rsi,4)
	movl	16(%rcx,%rsi,4), %edi
	movl	%edi, 16(%rdx,%rsi,4)
	movl	20(%rcx,%rsi,4), %edi
	movl	%edi, 20(%rdx,%rsi,4)
	movl	24(%rcx,%rsi,4), %edi
	movl	%edi, 24(%rdx,%rsi,4)
	movl	28(%rcx,%rsi,4), %edi
	movl	%edi, 28(%rdx,%rsi,4)
	addq	$8, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_16
LBB0_17:
	addl	$2, %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lbs_add_wpa_tlv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbs_add_wpa_tlv
_lbs_add_wpa_tlv:                       ; @lbs_add_wpa_tlv
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	stp	w8, wzr, [x0]
	ldrsw	x8, [x1, #4]
	stp	w8, wzr, [x0, #8]
	cbz	w8, LBB0_7
; %bb.1:
	add	x9, x0, #16
	add	x10, x1, #8
	cmp	w8, #16
	b.lo	LBB0_6
; %bb.2:
	sub	x11, x0, x1
	add	x11, x11, #8
	cmp	x11, #64
	b.lo	LBB0_6
; %bb.3:
	and	x11, x8, #0xfffffffffffffff0
	and	x12, x8, #0xf
	lsl	x13, x11, #2
	add	x9, x9, x13
	add	x10, x10, x13
	add	x13, x0, #64
	add	x14, x1, #40
	mov	x15, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	stp	q0, q1, [x13, #-48]
	stp	q2, q3, [x13, #-16]
	add	x13, x13, #64
	subs	x15, x15, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x8
	mov	x8, x12
	b.eq	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	str	w11, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_6
LBB0_7:
	add	w0, w2, #2
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lbs_add_wpa_tlv
.subsections_via_symbols
