	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_rc4_end_processing
_test_rc4_end_processing:               ## @test_rc4_end_processing
	.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
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_keys@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rax), %rdx
	movl	(%rdx), %esi
	addq	$4, %rdx
	leaq	-564(%rbp), %r15
	movq	%r15, %rdi
	callq	_RC4_set_key
	leaq	-560(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memset
	movq	_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rax), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rcx
	callq	_RC4
	movq	_output@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%ebx, %ecx
	callq	_TEST_mem_eq
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movslq	%ebx, %rax
	movzbl	-560(%rbp,%rax), %edi
	xorl	%esi, %esi
	callq	_TEST_uchar_eq
	movl	%eax, %r14d
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%r14d, %eax
	addq	$544, %rsp                      ## imm = 0x220
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_keys,8,3                       ## @keys
	.comm	_data,8,3                       ## @data
	.comm	_output,8,3                     ## @output
	.no_dead_strip	_test_rc4_end_processing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_rc4_end_processing
_test_rc4_end_processing:               ; @test_rc4_end_processing
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -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]
	ldr	x2, [x8, #24]
	ldr	w1, [x2], #4
	add	x0, sp, #4
	bl	_RC4_set_key
	add	x20, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #512
	bl	_memset
Lloh6:
	adrp	x8, _data@GOTPAGE
Lloh7:
	ldr	x8, [x8, _data@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x2, [x8, #24]
	add	x0, sp, #4
	add	x3, sp, #8
	mov	x1, x19
	bl	_RC4
Lloh9:
	adrp	x8, _output@GOTPAGE
Lloh10:
	ldr	x8, [x8, _output@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w2, [x8, #12]
	add	x0, sp, #8
	mov	x1, x19
	mov	x3, x19
	bl	_TEST_mem_eq
	cbz	w0, LBB0_2
; %bb.1:
	ldrb	w0, [x20, w19, sxtw]
	mov	w1, #0
	bl	_TEST_uchar_eq
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	add	sp, sp, #528
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_keys,8,3                       ; @keys
	.comm	_data,8,3                       ; @data
	.comm	_output,8,3                     ; @output
	.no_dead_strip	_test_rc4_end_processing
.subsections_via_symbols
