	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_update_vs_ie
_mwifiex_update_vs_ie:                  ## @mwifiex_update_vs_ie
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %ecx
	movq	%rdi, %rdx
	movq	(%r14), %r12
	movl	%r8d, %edi
	movl	%r9d, %esi
	callq	_cfg80211_find_vendor_ie
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, (%r14)
	jne	LBB0_5
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	%rax, %r12
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movl	24(%r12), %edi
	callq	_le16_to_cpu
	movq	(%rbx), %rcx
	addq	%rcx, %rax
	addq	$2, %rax
	movq	_IEEE_MAX_IE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_7:
	leaq	24(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r13
	movl	24(%r12), %edi
	callq	_le16_to_cpu
	addq	%rax, %r13
	movq	(%rbx), %rdx
	addq	$2, %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	(%rbx), %rsi
	addq	$2, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_le16_unaligned_add_cpu
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r12)
	movq	_MWIFIEX_AUTO_IDX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r12)
LBB0_8:
	movq	%r12, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IEEE_MAX_IE_SIZE,8,3           ## @IEEE_MAX_IE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MWIFIEX_AUTO_IDX_MASK,4,2      ## @MWIFIEX_AUTO_IDX_MASK
	.no_dead_strip	_mwifiex_update_vs_ie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_update_vs_ie
_mwifiex_update_vs_ie:                  ; @mwifiex_update_vs_ie
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x19, x2
	mov	x3, x1
	mov	x2, x0
	ldr	x20, [x19]
	mov	x0, x4
	mov	x1, x5
	bl	_cfg80211_find_vendor_ie
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x0
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	mov	x20, x0
	str	x0, [x19]
	cbz	x0, LBB0_7
LBB0_3:
	mov	x23, x20
	ldr	w0, [x23, #24]!
	bl	_le16_to_cpu
	ldr	x8, [x22]
	add	x8, x0, x8
	add	x8, x8, #2
Lloh3:
	adrp	x9, _IEEE_MAX_IE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE_MAX_IE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	x24, [x20]
	ldr	w0, [x20, #24]
	bl	_le16_to_cpu
	add	x0, x0, x24
	ldr	x8, [x22]
	add	x2, x8, #2
	mov	x1, x22
	bl	_memcpy
	ldr	x8, [x22]
	add	x1, x8, #2
	mov	x0, x23
	bl	_le16_unaligned_add_cpu
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [x20, #16]
Lloh8:
	adrp	x8, _MWIFIEX_AUTO_IDX_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MWIFIEX_AUTO_IDX_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x20, #8]
LBB0_6:
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE_MAX_IE_SIZE,8,3           ; @IEEE_MAX_IE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MWIFIEX_AUTO_IDX_MASK,4,2      ; @MWIFIEX_AUTO_IDX_MASK
	.no_dead_strip	_mwifiex_update_vs_ie
.subsections_via_symbols
