	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_cmd_append_vsie_tlv    ## -- Begin function mwifiex_cmd_append_vsie_tlv
	.p2align	4, 0x90
_mwifiex_cmd_append_vsie_tlv:           ## @mwifiex_cmd_append_vsie_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	%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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movq	%rdx, %rbx
	cmpq	$0, (%rdx)
	je	LBB0_7
## %bb.2:
	movq	_MWIFIEX_MAX_VSIE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$16, %r12
	cmpq	%rcx, %r15
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rcx,%r12)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %r13
	movq	_TLV_TYPE_PASSTHROUGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	movq	(%r14), %rax
	movq	8(%rax,%r12), %rax
	movzbl	8(%rax), %edi
	addl	$2, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r13)
	movl	16(%r13), %ebx
	movq	(%r14), %rcx
	movq	8(%rcx,%r12), %r14
	movq	%rax, %rdi
	callq	_le16_to_cpu
	movl	%ebx, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_memcpy
	movq	(%r13), %rdi
	callq	_le16_to_cpu
	movq	(%rbx), %rcx
	leaq	(%rcx,%rax,4), %rax
	addq	$16, %rax
	movq	%rax, (%rbx)
	movq	(%r13), %rdi
	callq	_le16_to_cpu
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addl	%eax, %esi
	addl	$4, %esi
	movq	_MWIFIEX_MAX_VSIE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_7:
	movl	%esi, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_MAX_VSIE_NUM,4,2       ## @MWIFIEX_MAX_VSIE_NUM
	.comm	_TLV_TYPE_PASSTHROUGH,4,2       ## @TLV_TYPE_PASSTHROUGH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_cmd_append_vsie_tlv    ; -- Begin function mwifiex_cmd_append_vsie_tlv
	.p2align	2
_mwifiex_cmd_append_vsie_tlv:           ; @mwifiex_cmd_append_vsie_tlv
	.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
	cbz	x2, LBB0_2
; %bb.1:
	mov	x19, x2
	ldr	x9, [x2]
Lloh0:
	adrp	x25, _MWIFIEX_MAX_VSIE_NUM@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MWIFIEX_MAX_VSIE_NUM@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	x9, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_4
LBB0_2:
	mov	w22, #0
LBB0_3:
	mov	x0, x22
	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
LBB0_4:
	mov	x20, x1
	mov	x21, x0
	mov	x26, #0
	mov	x27, #0
	mov	w22, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #1
	add	x26, x26, #16
	cmp	x27, w8, sxtw
	b.ge	LBB0_3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	ldr	w9, [x9, x26]
	tst	w9, w20
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x28, [x19]
Lloh2:
	adrp	x8, _TLV_TYPE_PASSTHROUGH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TLV_TYPE_PASSTHROUGH@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x28, #8]
	ldr	x8, [x21]
	add	x8, x8, x26
	ldr	x8, [x8, #8]
	ldrb	w8, [x8, #8]
	add	w0, w8, #2
	bl	_cpu_to_le16
	str	x0, [x28]
	ldr	w23, [x28, #16]
	ldr	x8, [x21]
	add	x8, x8, x26
	ldr	x24, [x8, #8]
	bl	_le16_to_cpu
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_memcpy
	ldr	x0, [x28]
	bl	_le16_to_cpu
	ldr	x8, [x19]
	add	x8, x8, x0, lsl #2
	add	x8, x8, #16
	str	x8, [x19]
	ldr	x0, [x28]
	bl	_le16_to_cpu
	add	w8, w22, w0
	add	w22, w8, #4
	ldr	w8, [x25]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_MAX_VSIE_NUM,4,2       ; @MWIFIEX_MAX_VSIE_NUM
	.comm	_TLV_TYPE_PASSTHROUGH,4,2       ; @TLV_TYPE_PASSTHROUGH
.subsections_via_symbols
