	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shuffle
_shuffle:                               ## @shuffle
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ROTORSZ@GOTPCREL(%rip), %r8
	movl	(%r8), %r15d
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.1:
	movl	$-1, %r9d
	movl	_shuffle.seed(%rip), %esi
	xorl	%ecx, %ecx
	movabsq	$5675921253449092805, %r10      ## imm = 0x4EC4EC4EC4EC4EC5
	movq	_buf@GOTPCREL(%rip), %r11
	movq	_MASK@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	mulq	%r10
	shrq	$2, %rdx
	imulq	$52, %rdx, %rax
	movq	%r12, %rdx
	subq	%rax, %rdx
	leal	(%rsi,%rsi,4), %esi
	movq	(%r11), %rax
	addl	(%rax,%rdx), %esi
	movslq	%esi, %rax
	imulq	$-2146992015, %rax, %rdx        ## imm = 0x80078071
	shrq	$32, %rdx
	addl	%esi, %edx
	movl	%edx, %ebx
	shrl	$31, %ebx
	sarl	$15, %edx
	addl	%ebx, %edx
	imull	$65521, %edx, %edx              ## imm = 0xFFF1
	subl	%edx, %eax
	andl	(%r14), %eax
	leal	(%r15,%r9), %r13d
	incl	%r13d
	movl	%r15d, %ebx
	addl	%r9d, %ebx
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r13d
	movslq	%ebx, %rax
	movzbl	(%rdi,%rax), %r15d
	movslq	%edx, %rdx
	movzbl	(%rdi,%rdx), %ebx
	movb	%bl, (%rdi,%rax)
	movb	%r15b, (%rdi,%rdx)
	incq	%rcx
	movl	(%r8), %r15d
	addq	$4, %r12
	decl	%r9d
	cmpl	%ecx, %r15d
	jg	LBB0_2
## %bb.3:
	movl	%esi, _shuffle.seed(%rip)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @shuffle.seed
_shuffle.seed:
	.long	123                             ## 0x7b

	.comm	_ROTORSZ,4,2                    ## @ROTORSZ
	.comm	_buf,8,3                        ## @buf
	.comm	_MASK,4,2                       ## @MASK
	.no_dead_strip	_shuffle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shuffle
_shuffle:                               ; @shuffle
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ROTORSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROTORSZ@GOTPAGEOFF]
	ldr	w1, [x8]
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
	mov	x10, #0
	adrp	x11, _shuffle.seed@PAGE
	ldr	w12, [x11, _shuffle.seed@PAGEOFF]
	mov	w13, #-1
	mov	x14, #20165
	movk	x14, #50412, lsl #16
	movk	x14, #60494, lsl #32
	movk	x14, #20164, lsl #48
	mov	w15, #52
Lloh2:
	adrp	x16, _buf@GOTPAGE
Lloh3:
	ldr	x16, [x16, _buf@GOTPAGEOFF]
	mov	w17, #32881
	movk	w17, #32775, lsl #16
	mov	w2, #65521
Lloh4:
	adrp	x3, _MASK@GOTPAGE
Lloh5:
	ldr	x3, [x3, _MASK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	umulh	x4, x9, x14
	lsr	x4, x4, #2
	msub	x4, x4, x15, x10
	ldr	x5, [x16]
	ldr	w4, [x5, x4]
	add	w12, w12, w12, lsl #2
	add	w12, w4, w12
	smull	x4, w12, w17
	lsr	x4, x4, #32
	add	w4, w4, w12
	asr	w5, w4, #15
	add	w4, w5, w4, lsr #31
	msub	w4, w4, w2, w12
	add	w1, w1, w13
	ldr	w5, [x3]
	and	w4, w4, w5
	add	w5, w1, #1
	udiv	w6, w4, w5
	msub	w4, w6, w5, w4
	sxtw	x1, w1
	ldrb	w5, [x0, x1]
	sxtw	x4, w4
	ldrb	w6, [x0, x4]
	strb	w6, [x0, x1]
	strb	w5, [x0, x4]
	add	x9, x9, #1
	ldr	w1, [x8]
	add	x10, x10, #4
	sub	w13, w13, #1
	cmp	w1, w9
	b.gt	LBB0_2
; %bb.3:
	str	w12, [x11, _shuffle.seed@PAGEOFF]
LBB0_4:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @shuffle.seed
_shuffle.seed:
	.long	123                             ; 0x7b

	.comm	_ROTORSZ,4,2                    ; @ROTORSZ
	.comm	_buf,8,3                        ; @buf
	.comm	_MASK,4,2                       ; @MASK
	.no_dead_strip	_shuffle
.subsections_via_symbols
