	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twofish_encrypt
_twofish_encrypt:                       ## @twofish_encrypt
	.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
	movq	%rdx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_AV_RL32
	movq	(%r14), %rcx
	xorl	(%rcx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	16(%rbx), %rdi
	callq	_AV_RL32
	movl	%eax, %r13d
	movq	(%r14), %rax
	xorl	4(%rax), %r13d
	leaq	32(%rbx), %rdi
	callq	_AV_RL32
	movq	(%r14), %rcx
	xorl	8(%rcx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	addq	$48, %rbx
	movq	%rbx, %rdi
	callq	_AV_RL32
	movl	%eax, %ebx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	xorl	12(%rax), %ebx
	movq	$-2, %r12
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_MDS_mul
	movl	%eax, %r14d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	movl	$8, %esi
	callq	_LR
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_MDS_mul
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	(%rax,%r14), %edi
	movq	(%r15), %rax
	addl	48(%rax,%r12,8), %edi
	xorl	-48(%rbp), %edi                 ## 4-byte Folded Reload
	movl	$1, %esi
	callq	_RR
	movl	%eax, %r14d
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_LR
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rdx,%rcx,2), %ebx
	movq	(%r15), %rcx
	addl	52(%rcx,%r12,8), %ebx
	xorl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_MDS_mul
	movl	%eax, %r14d
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_LR
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_MDS_mul
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	(%rax,%r14), %edi
	movq	(%r15), %rax
	addl	56(%rax,%r12,8), %edi
	xorl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	movl	$1, %esi
	callq	_RR
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_LR
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	(%r14,%rcx,2), %r13d
	movq	(%r15), %rcx
	addl	60(%rcx,%r12,8), %r13d
	xorl	%eax, %r13d
	addq	$2, %r12
	cmpq	$14, %r12
	jb	LBB0_1
## %bb.2:
	movl	16(%rcx), %esi
	xorl	-48(%rbp), %esi                 ## 4-byte Folded Reload
	xorl	20(%rcx), %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	xorl	24(%rcx), %r15d
	xorl	28(%rcx), %r13d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_AV_WL32
	leaq	16(%r14), %rdi
	movl	%ebx, %esi
	callq	_AV_WL32
	leaq	32(%r14), %rdi
	movl	%r15d, %esi
	callq	_AV_WL32
	addq	$48, %r14
	movq	%r14, %rdi
	movl	%r13d, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AV_WL32                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_twofish_encrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twofish_encrypt
_twofish_encrypt:                       ; @twofish_encrypt
	.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	x24, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_AV_RL32
	ldr	x8, [x20]
	ldr	w8, [x8]
	eor	w21, w8, w0
	add	x0, x24, #16
	bl	_AV_RL32
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	eor	w22, w8, w0
	add	x0, x24, #32
	bl	_AV_RL32
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	eor	w23, w8, w0
	add	x0, x24, #48
	bl	_AV_RL32
	mov	x27, #0
	ldr	x8, [x20]
	ldr	w8, [x8, #12]
	eor	w24, w8, w0
	mov	x28, #-2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_MDS_mul
	mov	x25, x0
	mov	x0, x22
	mov	w1, #8
	bl	_LR
	mov	x1, x0
	mov	x0, x20
	bl	_MDS_mul
	mov	x26, x0
	ldr	x8, [x20]
	add	x8, x8, x27
	ldr	w8, [x8, #32]
	add	w9, w0, w25
	add	w8, w9, w8
	eor	w0, w8, w23
	mov	w1, #1
	bl	_RR
	mov	x23, x0
	mov	x0, x24
	mov	w1, #1
	bl	_LR
	add	w8, w25, w26, lsl #1
	ldr	x9, [x20]
	add	x9, x9, x27
	ldr	w9, [x9, #36]
	add	w8, w8, w9
	eor	w24, w8, w0
	mov	x0, x20
	mov	x1, x23
	bl	_MDS_mul
	mov	x25, x0
	mov	x0, x24
	mov	w1, #8
	bl	_LR
	mov	x1, x0
	mov	x0, x20
	bl	_MDS_mul
	mov	x26, x0
	ldr	x8, [x20]
	add	x8, x8, x27
	ldr	w8, [x8, #40]
	add	w9, w0, w25
	add	w8, w9, w8
	eor	w0, w8, w21
	mov	w1, #1
	bl	_RR
	mov	x21, x0
	mov	x0, x22
	mov	w1, #1
	bl	_LR
	add	w9, w25, w26, lsl #1
	ldr	x8, [x20]
	add	x10, x8, x27
	ldr	w10, [x10, #44]
	add	w9, w9, w10
	eor	w22, w9, w0
	add	x28, x28, #2
	add	x27, x27, #16
	cmp	x28, #14
	b.lo	LBB0_1
; %bb.2:
	ldp	w9, w10, [x8, #16]
	eor	w1, w9, w23
	eor	w20, w10, w24
	ldp	w9, w8, [x8, #24]
	eor	w21, w9, w21
	eor	w22, w8, w22
	mov	x0, x19
	bl	_AV_WL32
	add	x0, x19, #16
	mov	x1, x20
	bl	_AV_WL32
	add	x0, x19, #32
	mov	x1, x21
	bl	_AV_WL32
	add	x0, x19, #48
	mov	x1, x22
	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
	b	_AV_WL32
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_twofish_encrypt
.subsections_via_symbols
