	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_crypto_wep_decrypt   ## -- Begin function ieee80211_crypto_wep_decrypt
	.p2align	4, 0x90
_ieee80211_crypto_wep_decrypt:          ## @ieee80211_crypto_wep_decrypt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_IEEE80211_SKB_RXCB
	movq	%rax, %r15
	movq	8(%rbx), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ieee80211_is_data
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_ieee80211_is_auth
	testl	%eax, %eax
	je	LBB0_15
LBB0_2:
	movl	(%r15), %eax
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.8:
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.9:
	movq	(%r14), %r15
	movl	%ebx, %edi
	callq	_ieee80211_hdrlen
	movq	_WEP_IV_LEN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_pskb_may_pull
	movq	_RX_DROP_UNUSABLE@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	cmpq	$0, 16(%r14)
	je	LBB0_13
## %bb.11:
	movq	(%r14), %rdi
	movl	8(%r14), %esi
	callq	_ieee80211_wep_is_weak_iv
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	16(%r14), %rax
	incl	(%rax)
LBB0_13:
	movl	12(%r14), %edi
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	callq	_ieee80211_wep_remove_iv
	movq	(%r14), %rdi
	movq	(%rdi), %rsi
	movq	_WEP_ICV_LEN@GOTPCREL(%rip), %rax
	subq	(%rax), %rsi
	callq	_pskb_trim
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_15
LBB0_3:
	movq	(%r14), %rdi
	callq	_skb_linearize
	movq	_RX_DROP_UNUSABLE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.4:
	cmpq	$0, 16(%r14)
	je	LBB0_7
## %bb.5:
	movq	(%r14), %rdi
	movl	8(%r14), %esi
	callq	_ieee80211_wep_is_weak_iv
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%r14), %rax
	incl	(%rax)
LBB0_7:
	movl	12(%r14), %edi
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	callq	_ieee80211_wep_decrypt
	testq	%rax, %rax
	jne	LBB0_16
LBB0_15:
	movq	_RX_CONTINUE@GOTPCREL(%rip), %rbx
LBB0_16:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_CONTINUE,4,2                ## @RX_CONTINUE
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.comm	_RX_DROP_UNUSABLE,4,2           ## @RX_DROP_UNUSABLE
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ## @RX_FLAG_IV_STRIPPED
	.comm	_WEP_IV_LEN,8,3                 ## @WEP_IV_LEN
	.comm	_WEP_ICV_LEN,8,3                ## @WEP_ICV_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_crypto_wep_decrypt   ; -- Begin function ieee80211_crypto_wep_decrypt
	.p2align	2
_ieee80211_crypto_wep_decrypt:          ; @ieee80211_crypto_wep_decrypt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_IEEE80211_SKB_RXCB
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ieee80211_is_data
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ieee80211_is_auth
	cbz	w0, LBB0_4
LBB0_2:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_4:
Lloh6:
	adrp	x8, _RX_CONTINUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_CONTINUE@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
	ldr	x0, [x19]
	bl	_skb_linearize
	cbnz	x0, LBB0_15
; %bb.6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x0, [x19]
	ldr	w1, [x19, #8]
	bl	_ieee80211_wep_is_weak_iv
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_9:
	ldr	x1, [x19]
	ldp	w2, w0, [x19, #8]
	bl	_ieee80211_wep_decrypt
	cbnz	x0, LBB0_15
	b	LBB0_4
LBB0_10:
	ldr	x21, [x19]
	mov	x0, x20
	bl	_ieee80211_hdrlen
Lloh8:
	adrp	x8, _WEP_IV_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WEP_IV_LEN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, x0
	mov	x0, x21
	bl	_pskb_may_pull
	cbz	w0, LBB0_15
; %bb.11:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x0, [x19]
	ldr	w1, [x19, #8]
	bl	_ieee80211_wep_is_weak_iv
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_14:
	ldr	x1, [x19]
	ldp	w2, w0, [x19, #8]
	bl	_ieee80211_wep_remove_iv
	ldr	x0, [x19]
	ldr	x8, [x0]
Lloh11:
	adrp	x9, _WEP_ICV_LEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WEP_ICV_LEN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	sub	x1, x8, x9
	bl	_pskb_trim
	cbz	x0, LBB0_4
LBB0_15:
Lloh14:
	adrp	x8, _RX_DROP_UNUSABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RX_DROP_UNUSABLE@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_CONTINUE,4,2                ; @RX_CONTINUE
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.comm	_RX_DROP_UNUSABLE,4,2           ; @RX_DROP_UNUSABLE
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ; @RX_FLAG_IV_STRIPPED
	.comm	_WEP_IV_LEN,8,3                 ; @WEP_IV_LEN
	.comm	_WEP_ICV_LEN,8,3                ; @WEP_ICV_LEN
.subsections_via_symbols
