	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_uap_bss_wep
_mwifiex_uap_bss_wep:                   ## @mwifiex_uap_bss_wep
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	_NUM_WEP_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.1:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	xorl	%r15d, %r15d
	movq	_WLAN_KEY_LEN_WEP40@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TLV_TYPE_UAP_WEP_KEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movq	(%r12), %rax
	movq	(%rax,%r15), %rdi
	addq	$2, %rdi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movq	(%r12), %rax
	movl	16(%rax,%r15), %ecx
	movl	%ecx, 8(%rbx)
	movl	12(%rax,%r15), %ecx
	movl	%ecx, 4(%rbx)
	movl	(%rbx), %edi
	movl	8(%rax,%r15), %esi
	movq	(%rax,%r15), %rdx
	callq	_memcpy
	movq	_WLAN_KEY_LEN_WEP40@GOTPCREL(%rip), %rsi
	movq	(%r12), %rax
	movq	(%rax,%r15), %rcx
	leaq	6(%rcx), %rdx
	addl	%edx, %r13d
	leaq	(%rbx,%rcx,4), %rbx
	addq	$24, %rbx
	movq	_NUM_WEP_KEYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	%ecx, %rdx
	addq	$24, %r15
	cmpq	%rdx, %r14
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%rsi), %rdx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_WLAN_KEY_LEN_WEP104@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_6
	jmp	LBB0_5
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_WEP_KEYS,4,2               ## @NUM_WEP_KEYS
	.comm	_WLAN_KEY_LEN_WEP40,8,3         ## @WLAN_KEY_LEN_WEP40
	.comm	_WLAN_KEY_LEN_WEP104,8,3        ## @WLAN_KEY_LEN_WEP104
	.comm	_TLV_TYPE_UAP_WEP_KEY,8,3       ## @TLV_TYPE_UAP_WEP_KEY
	.no_dead_strip	_mwifiex_uap_bss_wep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_uap_bss_wep
_mwifiex_uap_bss_wep:                   ; @mwifiex_uap_bss_wep
	.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
	mov	x20, x0
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w22, [x2]
	ldr	x23, [x0]
Lloh0:
	adrp	x24, _NUM_WEP_KEYS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NUM_WEP_KEYS@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, x1
	mov	x25, #0
	mov	x26, #0
	ldr	x8, [x1]
Lloh2:
	adrp	x27, _WLAN_KEY_LEN_WEP40@GOTPAGE
Lloh3:
	ldr	x27, [x27, _WLAN_KEY_LEN_WEP40@GOTPAGEOFF]
Lloh4:
	adrp	x28, _WLAN_KEY_LEN_WEP104@GOTPAGE
Lloh5:
	ldr	x28, [x28, _WLAN_KEY_LEN_WEP104@GOTPAGEOFF]
Lloh6:
	adrp	x19, _TLV_TYPE_UAP_WEP_KEY@GOTPAGE
Lloh7:
	ldr	x19, [x19, _TLV_TYPE_UAP_WEP_KEY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	add	x25, x25, #24
	cmp	x26, w9, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x25]
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x27]
	ldr	x12, [x28]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19]
	bl	_cpu_to_le16
	str	x0, [x23, #24]
	ldr	x8, [x21]
	ldr	x8, [x8, x25]
	add	x0, x8, #2
	bl	_cpu_to_le16
	str	x0, [x23, #16]
	ldr	x8, [x21]
	add	x8, x8, x25
	ldur	d0, [x8, #12]
	stur	d0, [x23, #4]
	ldr	w0, [x23]
	ldr	w1, [x8, #8]
	ldr	x2, [x8]
	bl	_memcpy
	ldr	x8, [x21]
	ldr	x9, [x8, x25]
	add	x9, x9, #6
	add	w22, w22, w9
	add	x23, x23, x9, lsl #2
	ldr	w9, [x24]
	b	LBB0_2
LBB0_6:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w22, [x8]
	str	x23, [x20]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_WEP_KEYS,4,2               ; @NUM_WEP_KEYS
	.comm	_WLAN_KEY_LEN_WEP40,8,3         ; @WLAN_KEY_LEN_WEP40
	.comm	_WLAN_KEY_LEN_WEP104,8,3        ; @WLAN_KEY_LEN_WEP104
	.comm	_TLV_TYPE_UAP_WEP_KEY,8,3       ; @TLV_TYPE_UAP_WEP_KEY
	.no_dead_strip	_mwifiex_uap_bss_wep
.subsections_via_symbols
