	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wep_decrypt                    ## -- Begin function wep_decrypt
	.p2align	4, 0x90
_wep_decrypt:                           ## @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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	%esi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	4(%rdi), %r15
	movq	%rdi, %rbx
	movq	_Z_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_crc32
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leal	3(%r12), %r13d
	xorl	%edi, %edi
	cmpl	$65, %r13d
	setb	%dil
	callq	_assert
	leaq	-112(%rbp), %rdi
	movq	%r15, %rsi
	movl	$3, %edx
	callq	_memcpy
	leaq	-109(%rbp), %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	%r12d, %edx
	callq	_memcpy
	leaq	-132(%rbp), %r15
	movq	%r15, %rdi
	movl	%r13d, %esi
	leaq	-112(%rbp), %rdx
	callq	_RC4_set_key
	leal	-8(%r14), %r12d
	movq	%rbx, %r13
	addq	$8, %rbx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	callq	_RC4
	addl	$-12, %r14d
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_crc32
	movq	%rax, %rcx
	movslq	%r12d, %rdx
	xorl	%eax, %eax
	cmpq	%rcx, 4(%r13,%rdx)
	setne	%cl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_2
## %bb.1:
	movb	%cl, %al
	negl	%eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_NULL,8,3                     ## @Z_NULL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wep_decrypt                    ; -- Begin function wep_decrypt
	.p2align	2
_wep_decrypt:                           ; @wep_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	add	x23, x0, #4
Lloh3:
	adrp	x8, _Z_NULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Z_NULL@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x0, #0
	mov	w2, #0
	bl	_crc32
	mov	x24, x0
	add	w25, w19, #3
	cmp	w25, #65
	cset	w0, lo
	bl	_assert
	add	x26, sp, #8
	add	x0, sp, #8
	mov	x1, x23
	mov	w2, #3
	bl	_memcpy
	add	x0, x26, #3
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	add	x0, sp, #4
	add	x2, sp, #8
	mov	x1, x25
	bl	_RC4_set_key
	sub	w19, w21, #8
	add	x20, x22, #8
	add	x0, sp, #4
	mov	x1, x19
	mov	x2, x20
	mov	x3, x20
	bl	_RC4
	sub	w2, w21, #12
	mov	x0, x24
	mov	x1, x20
	bl	_crc32
	add	x8, x20, w19, sxtw
	ldur	x8, [x8, #-4]
	cmp	x8, x0
	csetm	w0, ne
	ldr	x8, [sp, #72]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_NULL,8,3                     ; @Z_NULL
.subsections_via_symbols
