	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_KeccakP1600_Permute_Nrounds    ## -- Begin function KeccakP1600_Permute_Nrounds
	.p2align	4, 0x90
_KeccakP1600_Permute_Nrounds:           ## @KeccakP1600_Permute_Nrounds
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	_KeccakF1600RoundConstants_int2@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	$48, %ebx
	subl	%esi, %ebx
	subl	%esi, %ebx
	andl	$3, %esi
	cmpl	$1, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$3, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$2, %esi
	jne	LBB0_6
## %bb.3:
	movq	8(%rdi), %rax
	movq	40(%rdi), %rcx
	rolq	$32, %rcx
	rolq	$32, %rax
	movsd	160(%rdi), %xmm0                ## xmm0 = mem[0],zero
	movq	%rcx, 160(%rdi)
	movsd	88(%rdi), %xmm1                 ## xmm1 = mem[0],zero
	shufps	$17, %xmm1, %xmm0               ## xmm0 = xmm0[1,0],xmm1[1,0]
	movsd	120(%rdi), %xmm1                ## xmm1 = mem[0],zero
	movsd	48(%rdi), %xmm2                 ## xmm2 = mem[0],zero
	shufps	$17, %xmm2, %xmm1               ## xmm1 = xmm1[1,0],xmm2[1,0]
	movups	%xmm0, 40(%rdi)
	movsd	128(%rdi), %xmm0                ## xmm0 = mem[0],zero
	movq	%rax, 128(%rdi)
	movsd	56(%rdi), %xmm2                 ## xmm2 = mem[0],zero
	shufps	$17, %xmm2, %xmm0               ## xmm0 = xmm0[1,0],xmm2[1,0]
	movl	176(%rdi), %eax
	movl	180(%rdi), %ecx
	movsd	16(%rdi), %xmm2                 ## xmm2 = mem[0],zero
	movups	%xmm0, 8(%rdi)
	movsd	144(%rdi), %xmm0                ## xmm0 = mem[0],zero
	shufps	$17, %xmm0, %xmm2               ## xmm2 = xmm2[1,0],xmm0[1,0]
	movsd	184(%rdi), %xmm0                ## xmm0 = mem[0],zero
	movsd	96(%rdi), %xmm3                 ## xmm3 = mem[0],zero
	movl	%eax, 100(%rdi)
	movl	%ecx, 96(%rdi)
	movsd	24(%rdi), %xmm4                 ## xmm4 = mem[0],zero
	shufps	$17, %xmm4, %xmm3               ## xmm3 = xmm3[1,0],xmm4[1,0]
	movups	%xmm3, 176(%rdi)
	movsd	112(%rdi), %xmm3                ## xmm3 = mem[0],zero
	shufps	$17, %xmm3, %xmm0               ## xmm0 = xmm0[1,0],xmm3[1,0]
	movsd	80(%rdi), %xmm3                 ## xmm3 = mem[0],zero
	movups	%xmm1, 80(%rdi)
	movsd	32(%rdi), %xmm1                 ## xmm1 = mem[0],zero
	shufps	$17, %xmm3, %xmm1               ## xmm1 = xmm1[1,0],xmm3[1,0]
	movups	%xmm0, 24(%rdi)
	movups	%xmm1, 112(%rdi)
	movq	152(%rdi), %rax
	rolq	$32, %rax
	movsd	64(%rdi), %xmm0                 ## xmm0 = mem[0],zero
	movups	%xmm2, 56(%rdi)
	movsd	192(%rdi), %xmm1                ## xmm1 = mem[0],zero
	shufps	$17, %xmm1, %xmm0               ## xmm0 = xmm0[1,0],xmm1[1,0]
	movups	%xmm0, 144(%rdi)
	movq	%rax, 192(%rdi)
	jmp	LBB0_8
LBB0_5:
	movq	120(%rdi), %rax
	rolq	$32, %rax
	movq	40(%rdi), %rcx
	movq	88(%rdi), %rdx
	movq	%rcx, 120(%rdi)
	movsd	48(%rdi), %xmm0                 ## xmm0 = mem[0],zero
	movsd	80(%rdi), %xmm1                 ## xmm1 = mem[0],zero
	movsd	160(%rdi), %xmm2                ## xmm2 = mem[0],zero
	movq	%rax, 160(%rdi)
	movsd	8(%rdi), %xmm3                  ## xmm3 = mem[0],zero
	shufps	$20, %xmm3, %xmm2               ## xmm2 = xmm2[0,1],xmm3[1,0]
	movups	%xmm2, 80(%rdi)
	movsd	128(%rdi), %xmm2                ## xmm2 = mem[0],zero
	shufps	$17, %xmm2, %xmm1               ## xmm1 = xmm1[1,0],xmm2[1,0]
	movq	%rdx, 128(%rdi)
	movups	%xmm1, 40(%rdi)
	movsd	96(%rdi), %xmm1                 ## xmm1 = mem[0],zero
	rolq	$32, 136(%rdi)
	shufps	$20, %xmm1, %xmm0               ## xmm0 = xmm0[0,1],xmm1[1,0]
	movq	184(%rdi), %rax
	movsd	176(%rdi), %xmm1                ## xmm1 = mem[0],zero
	movsd	16(%rdi), %xmm2                 ## xmm2 = mem[0],zero
	movups	%xmm0, 8(%rdi)
	movsd	64(%rdi), %xmm0                 ## xmm0 = mem[0],zero
	shufps	$20, %xmm0, %xmm2               ## xmm2 = xmm2[0,1],xmm0[1,0]
	movups	%xmm2, 176(%rdi)
	movsd	24(%rdi), %xmm0                 ## xmm0 = mem[0],zero
	shufps	$65, %xmm0, %xmm1               ## xmm1 = xmm1[1,0],xmm0[0,1]
	movsd	56(%rdi), %xmm0                 ## xmm0 = mem[0],zero
	movups	%xmm1, 56(%rdi)
	movsd	104(%rdi), %xmm1                ## xmm1 = mem[0],zero
	shufps	$20, %xmm1, %xmm0               ## xmm0 = xmm0[0,1],xmm1[1,0]
	movups	%xmm0, 96(%rdi)
	movl	32(%rdi), %ecx
	movl	36(%rdi), %edx
	movsd	144(%rdi), %xmm0                ## xmm0 = mem[0],zero
	movq	%rax, 144(%rdi)
	movsd	192(%rdi), %xmm1                ## xmm1 = mem[0],zero
	shufps	$65, %xmm1, %xmm0               ## xmm0 = xmm0[1,0],xmm1[0,1]
	movups	%xmm0, 24(%rdi)
	movq	112(%rdi), %rax
	rolq	$32, %rax
	movq	%rax, 192(%rdi)
	movq	152(%rdi), %rax
	movq	%rax, 112(%rdi)
	movl	%ecx, 156(%rdi)
	movl	%edx, 152(%rdi)
	jmp	LBB0_9
LBB0_4:
	movq	56(%rdi), %rax
	movq	80(%rdi), %rcx
	movsd	120(%rdi), %xmm0                ## xmm0 = mem[0],zero
	movsd	8(%rdi), %xmm1                  ## xmm1 = mem[0],zero
	movlhps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	movsd	88(%rdi), %xmm1                 ## xmm1 = mem[0],zero
	movsd	40(%rdi), %xmm2                 ## xmm2 = mem[0],zero
	movsd	128(%rdi), %xmm3                ## xmm3 = mem[0],zero
	shufps	$65, %xmm3, %xmm2               ## xmm2 = xmm2[1,0],xmm3[0,1]
	movsd	160(%rdi), %xmm3                ## xmm3 = mem[0],zero
	movq	%rcx, 160(%rdi)
	movsd	48(%rdi), %xmm4                 ## xmm4 = mem[0],zero
	shufps	$17, %xmm4, %xmm3               ## xmm3 = xmm3[1,0],xmm4[1,0]
	movups	%xmm3, 120(%rdi)
	movups	%xmm0, 40(%rdi)
	movups	%xmm2, 80(%rdi)
	movsd	176(%rdi), %xmm0                ## xmm0 = mem[0],zero
	rolq	$32, %rax
	movq	%rax, 176(%rdi)
	rolq	$32, 136(%rdi)
	shufps	$65, %xmm0, %xmm1               ## xmm1 = xmm1[1,0],xmm0[0,1]
	movsd	64(%rdi), %xmm0                 ## xmm0 = mem[0],zero
	movsd	96(%rdi), %xmm2                 ## xmm2 = mem[0],zero
	movsd	16(%rdi), %xmm3                 ## xmm3 = mem[0],zero
	movups	%xmm1, 8(%rdi)
	movsd	104(%rdi), %xmm1                ## xmm1 = mem[0],zero
	shufps	$17, %xmm1, %xmm3               ## xmm3 = xmm3[1,0],xmm1[1,0]
	movups	%xmm3, 96(%rdi)
	movsd	184(%rdi), %xmm1                ## xmm1 = mem[0],zero
	shufps	$20, %xmm1, %xmm2               ## xmm2 = xmm2[0,1],xmm1[1,0]
	movups	%xmm2, 56(%rdi)
	movsd	152(%rdi), %xmm1                ## xmm1 = mem[0],zero
	shufps	$20, %xmm1, %xmm0               ## xmm0 = xmm0[0,1],xmm1[1,0]
	movsd	24(%rdi), %xmm1                 ## xmm1 = mem[0],zero
	movsd	112(%rdi), %xmm2                ## xmm2 = mem[0],zero
	shufps	$65, %xmm2, %xmm1               ## xmm1 = xmm1[1,0],xmm2[0,1]
	movl	192(%rdi), %eax
	movl	196(%rdi), %ecx
	movl	%eax, 116(%rdi)
	movl	%ecx, 112(%rdi)
	movsd	144(%rdi), %xmm2                ## xmm2 = mem[0],zero
	movsd	32(%rdi), %xmm3                 ## xmm3 = mem[0],zero
	movlhps	%xmm3, %xmm2                    ## xmm2 = xmm2[0],xmm3[0]
	movups	%xmm0, 24(%rdi)
	movups	%xmm1, 144(%rdi)
	movups	%xmm2, 184(%rdi)
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_KeccakRound0
LBB0_7:
	xorl	%eax, %eax
	callq	_KeccakRound1
LBB0_8:
	xorl	%eax, %eax
	callq	_KeccakRound2
LBB0_9:
	xorl	%eax, %eax
	callq	_KeccakRound3
	cmpl	$255, (%r14,%rbx,4)
	jne	LBB0_6
## %bb.10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KeccakF1600RoundConstants_int2,8,3 ## @KeccakF1600RoundConstants_int2
	.comm	_Abe0,4,2                       ## @Abe0
	.comm	_Abi0,4,2                       ## @Abi0
	.comm	_Abo0,4,2                       ## @Abo0
	.comm	_Abu0,4,2                       ## @Abu0
	.comm	_Aga0,4,2                       ## @Aga0
	.comm	_Age0,4,2                       ## @Age0
	.comm	_Agi0,4,2                       ## @Agi0
	.comm	_Ago0,4,2                       ## @Ago0
	.comm	_Aka0,4,2                       ## @Aka0
	.comm	_Ake0,4,2                       ## @Ake0
	.comm	_Aki0,4,2                       ## @Aki0
	.comm	_Ako0,4,2                       ## @Ako0
	.comm	_Ako1,4,2                       ## @Ako1
	.comm	_Aku0,4,2                       ## @Aku0
	.comm	_Ama0,4,2                       ## @Ama0
	.comm	_Ame0,4,2                       ## @Ame0
	.comm	_Ami0,4,2                       ## @Ami0
	.comm	_Ami1,4,2                       ## @Ami1
	.comm	_Amo0,4,2                       ## @Amo0
	.comm	_Amu0,4,2                       ## @Amu0
	.comm	_Asa0,4,2                       ## @Asa0
	.comm	_Asi0,4,2                       ## @Asi0
	.comm	_Aso0,4,2                       ## @Aso0
	.comm	_Asu0,4,2                       ## @Asu0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_KeccakP1600_Permute_Nrounds    ; -- Begin function KeccakP1600_Permute_Nrounds
	.p2align	2
_KeccakP1600_Permute_Nrounds:           ; @KeccakP1600_Permute_Nrounds
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _KeccakF1600RoundConstants_int2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KeccakF1600RoundConstants_int2@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	mov	w8, #48
	sub	w20, w8, w1, lsl #1
	and	w8, w1, #0x3
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #3
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.3:
	add	x8, x0, #48
	add	x9, x0, #52
	add	x10, x0, #88
	ldp	d1, d0, [x0, #32]
	add	x11, x0, #92
	rev64.2s	v0, v0
	ldp	d3, d2, [x0, #152]
	rev64.2s	v2, v2
	ld1.s	{ v2 }[2], [x11]
	str	d0, [x0, #160]
	ld1.s	{ v2 }[3], [x10]
	ldp	d0, d4, [x0, #120]
	rev64.2s	v0, v0
	ld1.s	{ v0 }[2], [x9]
	ld1.s	{ v0 }[3], [x8]
	stur	q2, [x0, #40]
	add	x8, x0, #56
	add	x9, x0, #60
	ldp	d2, d5, [x0, #8]
	rev64.2s	v2, v2
	str	d2, [x0, #128]
	rev64.2s	v2, v4
	ld1.s	{ v2 }[2], [x9]
	ld1.s	{ v2 }[3], [x8]
	ldp	d4, d6, [x0, #176]
	rev64.2s	v4, v4
	stur	q2, [x0, #8]
	ldr	d2, [x0, #96]
	str	d4, [x0, #96]
	add	x8, x0, #24
	add	x9, x0, #144
	add	x10, x0, #148
	rev64.2s	v4, v5
	ld1.s	{ v4 }[2], [x10]
	ld1.s	{ v4 }[3], [x9]
	add	x9, x0, #28
	rev64.2s	v2, v2
	ld1.s	{ v2 }[2], [x9]
	ld1.s	{ v2 }[3], [x8]
	str	q2, [x0, #176]
	add	x8, x0, #112
	add	x9, x0, #116
	rev64.2s	v2, v6
	ld1.s	{ v2 }[2], [x9]
	ld1.s	{ v2 }[3], [x8]
	ldp	w8, w9, [x0, #80]
	str	q0, [x0, #80]
	stur	q2, [x0, #24]
	rev64.2s	v0, v1
	mov.s	v0[2], w9
	mov.s	v0[3], w8
	str	q0, [x0, #112]
	add	x8, x0, #192
	add	x9, x0, #196
	ldr	d0, [x0, #64]
	rev64.2s	v0, v0
	ld1.s	{ v0 }[2], [x9]
	stur	q4, [x0, #56]
	ld1.s	{ v0 }[3], [x8]
	str	q0, [x0, #144]
	rev64.2s	v0, v3
	str	d0, [x0, #192]
	b	LBB0_8
LBB0_4:
	ldr	x8, [x0, #40]
	add	x9, x0, #8
	add	x10, x0, #12
	add	x11, x0, #128
	ldr	d0, [x0, #160]
	add	x12, x0, #132
	ld1.s	{ v0 }[2], [x10]
	add	x10, x0, #96
	ld1.s	{ v0 }[3], [x9]
	add	x9, x0, #100
	ldr	d1, [x0, #80]
	rev64.2s	v1, v1
	ld1.s	{ v1 }[2], [x12]
	ld1.s	{ v1 }[3], [x11]
	ldp	d2, d3, [x0, #48]
	ld1.s	{ v2 }[2], [x9]
	ld1.s	{ v2 }[3], [x10]
	stur	q1, [x0, #40]
	ldp	d1, d4, [x0, #16]
	stur	q2, [x0, #8]
	ldr	d2, [x0, #176]
	rev64.2s	v2, v2
	mov.d	v2[1], v4[0]
	ldp	w9, w10, [x0, #88]
	ldp	w11, w12, [x0, #184]
	add	x13, x0, #64
	add	x14, x0, #68
	ld1.s	{ v1 }[2], [x14]
	ld1.s	{ v1 }[3], [x13]
	str	q1, [x0, #176]
	add	x13, x0, #104
	add	x14, x0, #108
	stur	q2, [x0, #56]
	ld1.s	{ v3 }[2], [x14]
	ld1.s	{ v3 }[3], [x13]
	stp	q0, q3, [x0, #80]
	ldr	d0, [x0, #192]
	ldp	d1, d2, [x0, #144]
	rev64.2s	v1, v1
	mov.d	v1[1], v0[0]
	ldp	d3, d0, [x0, #112]
	rev64.2s	v0, v0
	str	x8, [x0, #120]
	stp	w9, w10, [x0, #128]
	ldp	w8, w9, [x0, #136]
	stp	w9, w8, [x0, #136]
	stp	w11, w12, [x0, #144]
	rev64.2s	v3, v3
	str	d3, [x0, #192]
	str	d2, [x0, #112]
	ldr	d2, [x0, #32]
	stur	q1, [x0, #24]
	rev64.2s	v1, v2
	stp	d1, d0, [x0, #152]
	b	LBB0_9
LBB0_5:
	add	x8, x0, #48
	ldp	d0, d1, [x0, #8]
	ldp	d3, d2, [x0, #112]
	mov.d	v2[1], v0[0]
	add	x9, x0, #52
	ldp	d0, d4, [x0, #80]
	ldr	d5, [x0, #160]
	str	d0, [x0, #160]
	rev64.2s	v0, v5
	ld1.s	{ v0 }[2], [x9]
	ld1.s	{ v0 }[3], [x8]
	ldp	d5, d6, [x0, #128]
	stur	q0, [x0, #120]
	ldr	d0, [x0, #40]
	stur	q2, [x0, #40]
	rev64.2s	v0, v0
	mov.d	v0[1], v5[0]
	ldr	d2, [x0, #176]
	rev64.2s	v4, v4
	mov.d	v4[1], v2[0]
	ldp	d2, d5, [x0, #56]
	rev64.2s	v2, v2
	str	d2, [x0, #176]
	rev64.2s	v2, v6
	str	d2, [x0, #136]
	add	x8, x0, #184
	add	x9, x0, #188
	add	x10, x0, #104
	add	x11, x0, #108
	add	x12, x0, #152
	add	x13, x0, #156
	ldr	d2, [x0, #96]
	stur	q4, [x0, #8]
	rev64.2s	v1, v1
	ld1.s	{ v1 }[2], [x11]
	ld1.s	{ v1 }[3], [x10]
	stp	q0, q1, [x0, #80]
	ld1.s	{ v2 }[2], [x9]
	ld1.s	{ v2 }[3], [x8]
	stur	q2, [x0, #56]
	ld1.s	{ v5 }[2], [x13]
	ld1.s	{ v5 }[3], [x12]
	ldp	d0, d1, [x0, #24]
	rev64.2s	v0, v0
	mov.d	v0[1], v3[0]
	ldr	d2, [x0, #192]
	rev64.2s	v2, v2
	str	d2, [x0, #112]
	ldr	d2, [x0, #144]
	stur	q5, [x0, #24]
	str	q0, [x0, #144]
	mov.d	v2[1], v1[0]
	stur	q2, [x0, #184]
	b	LBB0_7
LBB0_6:
	bl	_KeccakRound0
LBB0_7:
	bl	_KeccakRound1
LBB0_8:
	bl	_KeccakRound2
LBB0_9:
	bl	_KeccakRound3
	ldr	w8, [x19, x20, lsl #2]
	cmp	w8, #255
	b.ne	LBB0_6
; %bb.10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KeccakF1600RoundConstants_int2,8,3 ; @KeccakF1600RoundConstants_int2
	.comm	_Abe0,4,2                       ; @Abe0
	.comm	_Abi0,4,2                       ; @Abi0
	.comm	_Abo0,4,2                       ; @Abo0
	.comm	_Abu0,4,2                       ; @Abu0
	.comm	_Aga0,4,2                       ; @Aga0
	.comm	_Age0,4,2                       ; @Age0
	.comm	_Agi0,4,2                       ; @Agi0
	.comm	_Ago0,4,2                       ; @Ago0
	.comm	_Aka0,4,2                       ; @Aka0
	.comm	_Ake0,4,2                       ; @Ake0
	.comm	_Aki0,4,2                       ; @Aki0
	.comm	_Ako0,4,2                       ; @Ako0
	.comm	_Ako1,4,2                       ; @Ako1
	.comm	_Aku0,4,2                       ; @Aku0
	.comm	_Ama0,4,2                       ; @Ama0
	.comm	_Ame0,4,2                       ; @Ame0
	.comm	_Ami0,4,2                       ; @Ami0
	.comm	_Ami1,4,2                       ; @Ami1
	.comm	_Amo0,4,2                       ; @Amo0
	.comm	_Amu0,4,2                       ; @Amu0
	.comm	_Asa0,4,2                       ; @Asa0
	.comm	_Asi0,4,2                       ; @Asi0
	.comm	_Aso0,4,2                       ; @Aso0
	.comm	_Asu0,4,2                       ; @Asu0
.subsections_via_symbols
