	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_del_mgmt_ies           ## -- Begin function mwifiex_del_mgmt_ies
	.p2align	4, 0x90
_mwifiex_del_mgmt_ies:                  ## @mwifiex_del_mgmt_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	12(%rdi), %eax
	movq	_MWIFIEX_AUTO_IDX_MASK@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
LBB0_7:
	leaq	8(%r15), %rbx
	cmpl	%eax, 8(%r15)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.8:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	leaq	12(%r15), %r12
	movl	12(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movq	_MWIFIEX_DELETE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movq	$0, (%rbx)
	leaq	4(%r15), %r8
	movq	%r15, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_mwifiex_update_uap_custom_ie
	movl	$-1, %r14d
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r14)
	movq	_MWIFIEX_DELETE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	movq	$0, (%r14)
	movl	(%r13), %eax
LBB0_12:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r15), %rbx
	cmpl	%eax, 4(%r15)
	jne	LBB0_14
## %bb.13:
	xorl	%r12d, %r12d
	cmpl	%eax, (%r15)
	jne	LBB0_18
LBB0_20:
	xorl	%r13d, %r13d
	movq	%r14, %rax
	orq	%r12, %rax
	jne	LBB0_23
## %bb.21:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_24
LBB0_14:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r12)
	movq	_MWIFIEX_DELETE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r12)
	movq	$0, (%r12)
	movl	(%r13), %eax
	cmpl	%eax, (%r15)
	je	LBB0_20
LBB0_18:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.22:
	movq	%rax, %r13
	movl	(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r13)
	movq	_MWIFIEX_DELETE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	movq	$0, (%r13)
LBB0_23:
	movq	%r15, (%rsp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	%rbx, %r8
	movq	%r13, %r9
	callq	_mwifiex_update_uap_custom_ie
	movq	%r14, %rbx
	movl	%eax, %r14d
	jmp	LBB0_24
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_25
LBB0_6:
	movl	(%r13), %eax
	movl	%eax, (%r12)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_24
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	movq	%r14, %rbx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_24
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	movq	%r14, %rbx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_24:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	movq	%r13, %rdi
	callq	_kfree
LBB0_25:
	movl	%r14d, %eax
	addq	$24, %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	_MWIFIEX_DELETE_MASK,4,2        ## @MWIFIEX_DELETE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_del_mgmt_ies           ; -- Begin function mwifiex_del_mgmt_ies
	.p2align	2
_mwifiex_del_mgmt_ies:                  ; @mwifiex_del_mgmt_ies
	.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, x0
	mov	x21, x0
	ldr	w8, [x21, #12]!
Lloh0:
	adrp	x24, _MWIFIEX_AUTO_IDX_MASK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MWIFIEX_AUTO_IDX_MASK@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, #0
LBB0_2:
	mov	x23, x20
	ldr	w9, [x23, #8]!
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.3:
	mov	x21, #0
	b	LBB0_9
LBB0_4:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_19
; %bb.5:
	mov	x19, x0
	ldr	w0, [x20, #12]
	bl	_cpu_to_le16
	str	x0, [x19, #16]
Lloh5:
	adrp	x8, _MWIFIEX_DELETE_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MWIFIEX_DELETE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	stp	xzr, x0, [x19]
	add	x4, x20, #4
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, #0
	mov	x5, #0
	mov	x6, x20
	bl	_mwifiex_update_uap_custom_ie
	cbz	w0, LBB0_20
; %bb.6:
	mov	x21, #0
	mov	x22, #0
	mov	x24, #0
	mov	w20, #-1
	b	LBB0_24
LBB0_7:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	mov	x21, x0
	cbz	x0, LBB0_21
; %bb.8:
	ldr	w0, [x23]
	bl	_cpu_to_le16
	str	x0, [x21, #16]
Lloh11:
	adrp	x8, _MWIFIEX_DELETE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MWIFIEX_DELETE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	stp	xzr, x0, [x21]
	ldr	w8, [x24]
LBB0_9:
	mov	x25, x20
	ldr	w9, [x25, #4]!
	cmp	w9, w8
	b.ne	LBB0_11
; %bb.10:
	mov	x22, #0
	b	LBB0_13
LBB0_11:
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	mov	x22, x0
	cbz	x0, LBB0_22
; %bb.12:
	ldr	w0, [x25]
	bl	_cpu_to_le16
	str	x0, [x22, #16]
Lloh17:
	adrp	x8, _MWIFIEX_DELETE_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MWIFIEX_DELETE_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	stp	xzr, x0, [x22]
	ldr	w8, [x24]
LBB0_13:
	ldr	w9, [x20]
	cmp	w9, w8
	b.ne	LBB0_16
; %bb.14:
	mov	x24, #0
	orr	x8, x21, x22
	cbnz	x8, LBB0_18
; %bb.15:
	mov	w20, #0
	mov	x21, x24
	mov	x22, x24
	b	LBB0_24
LBB0_16:
Lloh20:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	mov	x24, x0
	cbz	x0, LBB0_23
; %bb.17:
	ldr	w0, [x20]
	bl	_cpu_to_le16
	str	x0, [x24, #16]
Lloh23:
	adrp	x8, _MWIFIEX_DELETE_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MWIFIEX_DELETE_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	stp	xzr, x0, [x24]
LBB0_18:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x25
	mov	x5, x24
	mov	x6, x20
	bl	_mwifiex_update_uap_custom_ie
	mov	x20, x0
	b	LBB0_24
LBB0_19:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_25
LBB0_20:
	ldr	w8, [x24]
	str	w8, [x21]
	b	LBB0_2
LBB0_21:
	mov	x22, #0
LBB0_22:
	mov	x24, #0
LBB0_23:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_24:
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	bl	_kfree
	mov	x0, x22
	bl	_kfree
	mov	x0, x24
	bl	_kfree
LBB0_25:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, 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	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.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	_MWIFIEX_DELETE_MASK,4,2        ; @MWIFIEX_DELETE_MASK
.subsections_via_symbols
