	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_rc4_multi_call
_test_rc4_multi_call:                   ## @test_rc4_multi_call
	.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	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%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), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_memset
	movq	_data@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	24(%rax), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rcx
	callq	_RC4
	movq	_data_len@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	12(%rax), %esi
	subl	%ebx, %esi
	movq	(%r12), %rax
	movslq	%ebx, %rcx
	leaq	(,%rcx,4), %rdx
	addq	24(%rax), %rdx
	addq	%rbp, %rcx
	addq	$-560, %rcx                     ## imm = 0xFDD0
	movq	%r15, %rdi
	callq	_RC4
	movq	(%r13), %rax
	movl	12(%rax), %ecx
	incl	%ecx
	movq	_output@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rax), %edx
	movq	%r14, %rdi
	movl	%ecx, %esi
	callq	_TEST_mem_eq
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_keys,8,3                       ## @keys
	.comm	_data,8,3                       ## @data
	.comm	_data_len,8,3                   ## @data_len
	.comm	_output,8,3                     ## @output
	.no_dead_strip	_test_rc4_multi_call
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_rc4_multi_call
_test_rc4_multi_call:                   ; @test_rc4_multi_call
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	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, #-56]
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	x21, _data@GOTPAGE
Lloh7:
	ldr	x21, [x21, _data@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x2, [x8, #24]
	add	x0, sp, #4
	add	x3, sp, #8
	mov	x1, x19
	bl	_RC4
Lloh8:
	adrp	x22, _data_len@GOTPAGE
Lloh9:
	ldr	x22, [x22, _data_len@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w8, [x8, #12]
	sub	w1, w8, w19
	ldr	x8, [x21]
	ldr	x8, [x8, #24]
	add	x2, x8, w19, sxtw #2
	add	x3, x20, w19, sxtw
	add	x0, sp, #4
	bl	_RC4
	ldr	x8, [x22]
	ldr	w8, [x8, #12]
	add	w1, w8, #1
Lloh10:
	adrp	x8, _output@GOTPAGE
Lloh11:
	ldr	x8, [x8, _output@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w2, [x8, #12]
	add	x0, sp, #8
	mov	x3, x1
	bl	_TEST_mem_eq
	ldur	x8, [x29, #-56]
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_2
; %bb.1:
	add	sp, sp, #528
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.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,8,3                       ; @data
	.comm	_data_len,8,3                   ; @data_len
	.comm	_output,8,3                     ; @output
	.no_dead_strip	_test_rc4_multi_call
.subsections_via_symbols
