	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_uap_parse_tail_ies
_mwifiex_uap_parse_tail_ies:            ## @mwifiex_uap_parse_tail_ies
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MWIFIEX_AUTO_IDX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, -52(%rbp)
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rsi)
	je	LBB0_28
## %bb.1:
	movq	%rsi, %r13
	cmpl	$0, (%rsi)
	je	LBB0_28
## %bb.2:
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movl	(%r13), %ebx
	cmpl	$9, %ebx
	jb	LBB0_5
## %bb.6:
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_WLAN_OUI_MICROSOFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_WLAN_OUI_TYPE_MICROSOFT_WMM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_cfg80211_find_vendor_ie
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	%r14d, %r12d
	cmpl	$8, %ebx
	jbe	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %r14d
	addl	$8, %r14d
	subl	%r14d, %ebx
	jb	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%rax,%rcx,4), %r15
	movl	4(%r15), %eax
	leal	-131(%rax), %ecx
	cmpl	$8, %ecx
	jb	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$130, %eax
	je	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	leal	(%r14,%rdx), %ecx
	movq	_IEEE_MAX_IE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	ja	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%edx, %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	24(%rax), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movl	%ecx, %r15d
	callq	_memcpy
	movl	%r15d, %edx
	jmp	LBB0_15
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_5:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_17
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_16:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	-68(%rbp), %r12d                ## 4-byte Reload
LBB0_17:
	movq	_WLAN_OUI_MICROSOFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WLAN_OUI_TYPE_MICROSOFT_WPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r13), %rdx
	movl	%ebx, %ecx
	callq	_cfg80211_find_vendor_ie
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movl	(%rax), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leal	(%rdx,%rsi), %ebx
	addl	$8, %ebx
	movq	_IEEE_MAX_IE_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jbe	LBB0_21
## %bb.20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_23
LBB0_24:
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r14)
	movq	_MGMT_MASK_BEACON@GOTPCREL(%rip), %rax
	movq	_MGMT_MASK_PROBE_RESP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_MGMT_MASK_ASSOC_RESP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r14)
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mwifiex_update_uap_custom_ie
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_21:
	addl	$8, %edx
	movl	%esi, %edi
	addq	24(%r14), %rdi
	movq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	testl	%ebx, %ebx
	jne	LBB0_24
LBB0_23:
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_26:
	movl	-52(%rbp), %eax
	movl	%eax, (%r15)
LBB0_27:
	movq	%r14, %rdi
	callq	_kfree
LBB0_28:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_AUTO_IDX_MASK,4,2      ## @MWIFIEX_AUTO_IDX_MASK
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WLAN_OUI_MICROSOFT,4,2         ## @WLAN_OUI_MICROSOFT
	.comm	_WLAN_OUI_TYPE_MICROSOFT_WMM,4,2 ## @WLAN_OUI_TYPE_MICROSOFT_WMM
	.comm	_IEEE_MAX_IE_SIZE,4,2           ## @IEEE_MAX_IE_SIZE
	.comm	_WLAN_OUI_TYPE_MICROSOFT_WPA,4,2 ## @WLAN_OUI_TYPE_MICROSOFT_WPA
	.comm	_MGMT_MASK_BEACON,4,2           ## @MGMT_MASK_BEACON
	.comm	_MGMT_MASK_PROBE_RESP,4,2       ## @MGMT_MASK_PROBE_RESP
	.comm	_MGMT_MASK_ASSOC_RESP,4,2       ## @MGMT_MASK_ASSOC_RESP
	.no_dead_strip	_mwifiex_uap_parse_tail_ies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_uap_parse_tail_ies
_mwifiex_uap_parse_tail_ies:            ; @mwifiex_uap_parse_tail_ies
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _MWIFIEX_AUTO_IDX_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWIFIEX_AUTO_IDX_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	str	w21, [sp, #12]
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x23, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.3:
	mov	x19, x0
	ldr	w24, [x23]
Lloh6:
	adrp	x22, _WLAN_OUI_MICROSOFT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _WLAN_OUI_MICROSOFT@GOTPAGEOFF]
	cmp	w24, #9
	b.lo	LBB0_15
; %bb.4:
	str	x20, [sp]                       ; 8-byte Folded Spill
	mov	w28, #0
	mov	w27, #0
	b	LBB0_8
LBB0_5:
	mov	w21, #0
	b	LBB0_26
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x22]
Lloh8:
	adrp	x8, _WLAN_OUI_TYPE_MICROSOFT_WMM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_OUI_TYPE_MICROSOFT_WMM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x26
	mov	x3, x25
	bl	_cfg80211_find_vendor_ie
	cbz	x0, LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w28, w25, w28
	cmp	w24, #8
	b.ls	LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	add	x26, x8, w28, sxtw #2
	ldr	w8, [x26]
	add	w25, w8, #8
	subs	w24, w24, w25
	b.lo	LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x26, #4]
	sub	w9, w8, #131
	cmp	w9, #8
	b.lo	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #130
	b.eq	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x20, x22
Lloh11:
	adrp	x8, _IEEE_MAX_IE_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE_MAX_IE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	add	w22, w25, w27
	cmp	w22, w8
	b.hi	LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, w27, uxtw
	mov	x1, x26
	mov	x2, x25
	bl	_memcpy
	mov	x27, x22
	mov	x22, x20
	b	LBB0_7
LBB0_14:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_26
LBB0_15:
	mov	w27, #0
	b	LBB0_17
LBB0_16:
	ldr	w24, [x23]
	ldr	x20, [sp]                       ; 8-byte Folded Reload
LBB0_17:
	ldr	w0, [x22]
Lloh17:
	adrp	x8, _WLAN_OUI_TYPE_MICROSOFT_WPA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WLAN_OUI_TYPE_MICROSOFT_WPA@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	x2, [x23, #8]
	mov	x3, x24
	bl	_cfg80211_find_vendor_ie
	cbz	x0, LBB0_20
; %bb.18:
	mov	x1, x0
	ldr	w8, [x0]
	add	w2, w8, #8
Lloh20:
	adrp	x8, _IEEE_MAX_IE_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE_MAX_IE_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	add	w23, w2, w27
	cmp	w23, w8
	b.hi	LBB0_22
; %bb.19:
	ldr	x8, [x19, #24]
	add	x0, x8, w27, uxtw
	bl	_memcpy
	mov	x27, x23
LBB0_20:
	cbz	w27, LBB0_23
; %bb.21:
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [x19, #16]
Lloh23:
	adrp	x8, _MGMT_MASK_BEACON@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MGMT_MASK_BEACON@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _MGMT_MASK_PROBE_RESP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MGMT_MASK_PROBE_RESP@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _MGMT_MASK_ASSOC_RESP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MGMT_MASK_ASSOC_RESP@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	mov	x0, x27
	bl	_cpu_to_le16
	str	x0, [x19]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_mwifiex_update_uap_custom_ie
	cbz	x0, LBB0_24
LBB0_22:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_25
LBB0_23:
	mov	w21, #0
	b	LBB0_25
LBB0_24:
	mov	w21, #0
	ldr	w8, [sp, #12]
	str	w8, [x20]
LBB0_25:
	mov	x0, x19
	bl	_kfree
LBB0_26:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_AUTO_IDX_MASK,4,2      ; @MWIFIEX_AUTO_IDX_MASK
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WLAN_OUI_MICROSOFT,4,2         ; @WLAN_OUI_MICROSOFT
	.comm	_WLAN_OUI_TYPE_MICROSOFT_WMM,4,2 ; @WLAN_OUI_TYPE_MICROSOFT_WMM
	.comm	_IEEE_MAX_IE_SIZE,4,2           ; @IEEE_MAX_IE_SIZE
	.comm	_WLAN_OUI_TYPE_MICROSOFT_WPA,4,2 ; @WLAN_OUI_TYPE_MICROSOFT_WPA
	.comm	_MGMT_MASK_BEACON,4,2           ; @MGMT_MASK_BEACON
	.comm	_MGMT_MASK_PROBE_RESP,4,2       ; @MGMT_MASK_PROBE_RESP
	.comm	_MGMT_MASK_ASSOC_RESP,4,2       ; @MGMT_MASK_ASSOC_RESP
	.no_dead_strip	_mwifiex_uap_parse_tail_ies
.subsections_via_symbols
