	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_rc4_encrypt
_test_rc4_encrypt:                      ## @test_rc4_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	%r12
	pushq	%rbx
	subq	$544, %rsp                      ## imm = 0x220
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_keys@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rbx
	movq	(%rax,%rbx,8), %rdx
	movl	(%rdx), %esi
	addq	$4, %rdx
	leaq	-564(%rbp), %r14
	movq	%r14, %rdi
	callq	_RC4_set_key
	leaq	-560(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memset
	movq	_data_len@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_RC4
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rcx
	incq	%rcx
	movq	_output@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	movq	%rcx, %rsi
	callq	_TEST_mem_eq
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$544, %rsp                      ## imm = 0x220
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_keys,8,3                       ## @keys
	.comm	_data_len,8,3                   ## @data_len
	.comm	_data,8,3                       ## @data
	.comm	_output,8,3                     ## @output
	.no_dead_strip	_test_rc4_encrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_rc4_encrypt
_test_rc4_encrypt:                      ; @test_rc4_encrypt
	.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
	sub	sp, sp, #528
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _keys@GOTPAGE
Lloh4:
	ldr	x8, [x8, _keys@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sbfiz	x20, x19, #3, #32
	ldr	x2, [x8, x20]
	ldr	w1, [x2], #4
	add	x0, sp, #4
	bl	_RC4_set_key
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #512
	bl	_memset
Lloh6:
	adrp	x21, _data_len@GOTPAGE
Lloh7:
	ldr	x21, [x21, _data_len@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x1, [x8, x20]
Lloh8:
	adrp	x8, _data@GOTPAGE
Lloh9:
	ldr	x8, [x8, _data@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x2, [x8, x20]
	add	x0, sp, #4
	add	x3, sp, #8
	bl	_RC4
	ldr	x8, [x21]
	ldr	x8, [x8, x20]
	add	x1, x8, #1
Lloh11:
	adrp	x8, _output@GOTPAGE
Lloh12:
	ldr	x8, [x8, _output@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w2, [x8, w19, sxtw #2]
	add	x0, sp, #8
	mov	x3, x1
	bl	_TEST_mem_eq
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	add	sp, sp, #528
	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
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_keys,8,3                       ; @keys
	.comm	_data_len,8,3                   ; @data_len
	.comm	_data,8,3                       ; @data
	.comm	_output,8,3                     ; @output
	.no_dead_strip	_test_rc4_encrypt
.subsections_via_symbols
