	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arcfour
_arcfour:                               ## @arcfour
	.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
	movb	(%rdx), %al
	movb	1(%rdx), %bl
	testl	%esi, %esi
	jle	LBB0_4
## %bb.1:
	movzbl	%al, %eax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %r15
	xorl	%r14d, %r14d
	movzwl	%ax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%r14d, %eax
	incl	%eax
	movzbl	%al, %r12d
	leaq	(%r15,%r12), %rdi
	addb	(%r15,%r12), %bl
	movzbl	%bl, %r13d
	leaq	(%r15,%r13), %rsi
	callq	_swap_byte
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movzbl	(%r15,%r13), %eax
	addb	(%r15,%r12), %al
	movzbl	%al, %eax
	movzbl	(%r15,%rax), %eax
	movswq	%r14w, %rcx
	xorb	%al, (%rdi,%rcx)
	incl	%r14d
	movswl	%r14w, %eax
	cmpl	%esi, %eax
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jl	LBB0_2
## %bb.3:
	addl	%r14d, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
LBB0_4:
	movb	%al, (%rdx)
	movb	%bl, 1(%rdx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_arcfour
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arcfour
_arcfour:                               ; @arcfour
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	ldrb	w24, [x2]
	ldrb	w25, [x2, #1]
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	mov	w26, #0
	ldr	x27, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w24, w24, #1
	add	x22, x27, w24, uxtb
	ldrb	w8, [x22]
	add	w25, w8, w25
	add	x23, x27, w25, uxtb
	mov	x0, x22
	mov	x1, x23
	bl	_swap_byte
	ldrb	w8, [x22]
	ldrb	w9, [x23]
	add	w8, w9, w8
	and	x8, x8, #0xff
	ldrb	w8, [x27, x8]
	sxth	x9, w26
	ldrb	w10, [x21, x9]
	eor	w8, w10, w8
	strb	w8, [x21, x9]
	add	w26, w26, #1
	cmp	w20, w26, sxth
	b.gt	LBB0_2
LBB0_3:
	strb	w24, [x19]
	strb	w25, [x19, #1]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_arcfour
.subsections_via_symbols
