	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_wep_encrypt          ## -- Begin function ieee80211_wep_encrypt
	.p2align	4, 0x90
_ieee80211_wep_encrypt:                 ## @ieee80211_wep_encrypt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_WLAN_KEY_LEN_WEP104@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$3, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_ieee80211_wep_add_iv
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movslq	(%r13), %r14
	movq	_WEP_IV_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r12,%rax,4), %rax
	subq	8(%r13), %rax
	sarq	$2, %rax
	subq	%rax, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$3, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	addq	$12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	movq	_WEP_ICV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_skb_put
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	addl	$3, %r15d
	movq	_WEP_IV_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r12,%rax,4), %rcx
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	%r14, %r8
	callq	_ieee80211_wep_encrypt_data
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_KEY_LEN_WEP104,4,2        ## @WLAN_KEY_LEN_WEP104
	.comm	_WEP_IV_LEN,4,2                 ## @WEP_IV_LEN
	.comm	_WEP_ICV_LEN,4,2                ## @WEP_ICV_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_wep_encrypt          ; -- Begin function ieee80211_wep_encrypt
	.p2align	2
_ieee80211_wep_encrypt:                 ; @ieee80211_wep_encrypt
	.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
	sub	sp, sp, #16
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _WLAN_KEY_LEN_WEP104@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_KEY_LEN_WEP104@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #3
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	x2, x3
	mov	x3, x4
	bl	_ieee80211_wep_add_iv
	cbz	x0, LBB0_2
; %bb.1:
	mov	x24, x0
Lloh8:
	adrp	x26, _WEP_IV_LEN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _WEP_IV_LEN@GOTPAGEOFF]
	ldrsw	x8, [x21]
	ldrsw	x9, [x26]
	add	x9, x0, x9, lsl #2
	ldr	x10, [x21, #8]
	sub	x9, x9, x10
	sub	x25, x8, x9, asr #2
	mov	x0, x22
	mov	x1, x24
	mov	w2, #3
	bl	_memcpy
	add	x0, x22, #12
	mov	x1, x23
	mov	x2, x19
	bl	_memcpy
Lloh10:
	adrp	x8, _WEP_ICV_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WEP_ICV_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_skb_put
	ldr	w0, [x20]
	add	w2, w19, #3
	ldrsw	x8, [x26]
	add	x3, x24, x8, lsl #2
	mov	x1, x22
	mov	x4, x25
	bl	_ieee80211_wep_encrypt_data
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #64
	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
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_KEY_LEN_WEP104,4,2        ; @WLAN_KEY_LEN_WEP104
	.comm	_WEP_IV_LEN,4,2                 ; @WEP_IV_LEN
	.comm	_WEP_ICV_LEN,4,2                ; @WEP_ICV_LEN
.subsections_via_symbols
