	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tnepres_setkey
_tnepres_setkey:                        ## @tnepres_setkey
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_SERPENT_MAX_KEY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.1:
	movl	%r15d, %r8d
	cmpl	$8, %r15d
	jae	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
LBB0_12:
	movq	%rcx, %r9
	notq	%r9
	addq	%r8, %r9
	movq	%r8, %rdx
	andq	$3, %rdx
	je	LBB0_15
## %bb.13:
	movl	%ecx, %edi
	notl	%edi
	addl	%r15d, %edi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rcx,4), %ebx
	movl	%edi, %eax
	movl	%ebx, (%rsi,%rax,4)
	incq	%rcx
	decl	%edi
	decq	%rdx
	jne	LBB0_14
LBB0_15:
	cmpq	$3, %r9
	jb	LBB0_18
## %bb.16:
	movl	$-4, %r10d
	subl	%ecx, %r10d
	movl	$-3, %edi
	subl	%ecx, %edi
	movl	%ecx, %eax
	notl	%eax
	movl	$-2, %ebx
	subl	%ecx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rcx,4), %r9d
	leal	(%r8,%rax), %edx
	movl	%r9d, (%rsi,%rdx,4)
	movl	4(%r12,%rcx,4), %r9d
	leal	(%rbx,%r8), %edx
	movl	%r9d, (%rsi,%rdx,4)
	movl	8(%r12,%rcx,4), %r9d
	leal	(%rdi,%r8), %edx
	movl	%r9d, (%rsi,%rdx,4)
	movl	12(%r12,%rcx,4), %r9d
	leal	(%r10,%r8), %edx
	movl	%r9d, (%rsi,%rdx,4)
	addq	$4, %rcx
	addq	$-4, %r10
	addq	$-4, %rdi
	addq	$-4, %rax
	addq	$-4, %rbx
	cmpq	%rcx, %r8
	jne	LBB0_17
	jmp	LBB0_18
LBB0_3:
	leaq	-1(%r8), %rax
	leal	-1(%r15), %edx
	xorl	%ecx, %ecx
	cmpl	%eax, %edx
	jb	LBB0_12
## %bb.4:
	shrq	$32, %rax
	jne	LBB0_12
## %bb.5:
	movl	%r8d, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r9, %rdi
	andq	$-2, %rdi
	leal	-9(%r15), %ebx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r12,%rax,4), %xmm0
	movdqu	16(%r12,%rax,4), %xmm1
	leal	8(%rbx), %edx
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, -12(%rsi,%rdx,4)
	pshufd	$27, %xmm1, %xmm0               ## xmm0 = xmm1[3,2,1,0]
	movdqu	%xmm0, -28(%rsi,%rdx,4)
	movdqu	32(%r12,%rax,4), %xmm0
	movdqu	48(%r12,%rax,4), %xmm1
	movl	%ebx, %edx
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, -12(%rsi,%rdx,4)
	pshufd	$27, %xmm1, %xmm0               ## xmm0 = xmm1[3,2,1,0]
	movdqu	%xmm0, -28(%rsi,%rdx,4)
	addq	$16, %rax
	addl	$-16, %ebx
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	movdqu	(%r12,%rax,4), %xmm0
	movdqu	16(%r12,%rax,4), %xmm1
	notl	%eax
	addl	%r15d, %eax
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, -12(%rsi,%rax,4)
	pshufd	$27, %xmm1, %xmm0               ## xmm0 = xmm1[3,2,1,0]
	movdqu	%xmm0, -28(%rsi,%rax,4)
LBB0_11:
	cmpq	%r8, %rcx
	jne	LBB0_12
LBB0_18:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_serpent_setkey
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SERPENT_MAX_KEY_SIZE,4,2       ## @SERPENT_MAX_KEY_SIZE
	.no_dead_strip	_tnepres_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tnepres_setkey
_tnepres_setkey:                        ; @tnepres_setkey
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	sp, sp, #16
	mov	x8, x1
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-8]
Lloh3:
	adrp	x9, _SERPENT_MAX_KEY_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SERPENT_MAX_KEY_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	x12, x9, #2
	mov	x9, x12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x7fffffff0
	sub	x1, x9, x10
	mov	sp, x1
	cbz	w2, LBB0_5
; %bb.1:
	mov	w9, w2
	cmp	w2, #16
	b.hs	LBB0_7
; %bb.2:
	mov	x10, #0
LBB0_3:
	mvn	w11, w10
	add	w11, w11, w2
	add	x8, x8, x10, lsl #2
	sub	x9, x9, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #4
	str	w10, [x1, w11, uxtw #2]
	sub	w11, w11, #1
	subs	x9, x9, #1
	b.ne	LBB0_4
LBB0_5:
	bl	_serpent_setkey
	ldur	x8, [x29, #-8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.6:
	mov	sp, x29
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x10, #0
	sub	x12, x9, #1
	sub	w11, w2, #1
	cmp	w11, w12
	b.lo	LBB0_3
; %bb.8:
	lsr	x12, x12, #32
	cbnz	x12, LBB0_3
; %bb.9:
	and	x10, x9, #0xfffffff0
	add	x12, x8, #32
	mov	x13, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	add	x14, x1, w11, uxtw #2
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	stur	q0, [x14, #-12]
	rev64.4s	v0, v1
	ext.16b	v0, v0, v0, #8
	stur	q0, [x14, #-28]
	rev64.4s	v0, v2
	ext.16b	v0, v0, v0, #8
	stur	q0, [x14, #-44]
	rev64.4s	v0, v3
	ext.16b	v0, v0, v0, #8
	stur	q0, [x14, #-60]
	sub	w11, w11, #16
	sub	x13, x13, #16
	cbnz	x13, LBB0_10
; %bb.11:
	cmp	x10, x9
	b.ne	LBB0_3
	b	LBB0_5
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SERPENT_MAX_KEY_SIZE,4,2       ; @SERPENT_MAX_KEY_SIZE
	.no_dead_strip	_tnepres_setkey
.subsections_via_symbols
