	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twofish_decrypt
_twofish_decrypt:                       ## @twofish_decrypt
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rdx, %rdi
	callq	_AV_RL32
	movl	%eax, %r12d
	movq	(%r13), %rax
	xorl	16(%rax), %r12d
	leaq	16(%r15), %rdi
	callq	_AV_RL32
	movl	%eax, %ebx
	movq	(%r13), %rax
	xorl	20(%rax), %ebx
	leaq	32(%r15), %rdi
	callq	_AV_RL32
	movl	%eax, %r14d
	movq	(%r13), %rax
	xorl	24(%rax), %r14d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	48(%r15), %rdi
	callq	_AV_RL32
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rcx
	xorl	28(%rcx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$17, %r13d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_MDS_mul
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_LR
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_MDS_mul
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_LR
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rbx,%rdx), %r14d
	movq	(%r15), %rcx
	addl	16(%rcx,%r13,8), %r14d
	xorl	%eax, %r14d
	leal	(%rdx,%rbx,2), %edi
	addl	20(%rcx,%r13,8), %edi
	xorl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	movl	$1, %esi
	callq	_RR
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_MDS_mul
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_LR
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_MDS_mul
	movl	%eax, %ebx
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_LR
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rbx,%rdx), %r12d
	movq	(%r15), %rcx
	addl	8(%rcx,%r13,8), %r12d
	xorl	%eax, %r12d
	leal	(%rdx,%rbx,2), %edi
	addl	12(%rcx,%r13,8), %edi
	xorl	-60(%rbp), %edi                 ## 4-byte Folded Reload
	movl	$1, %esi
	callq	_RR
	movl	%eax, %ebx
	addq	$-2, %r13
	cmpq	$1, %r13
	ja	LBB0_1
## %bb.2:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	xorl	(%rax), %r14d
	movl	4(%rax), %r13d
	xorl	8(%rax), %r12d
	xorl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	xorl	12(%rax), %ebx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_AV_RL32
	xorl	%eax, %r14d
	leaq	16(%r15), %rdi
	callq	_AV_RL32
	xorl	%eax, %r13d
	leaq	32(%r15), %rdi
	callq	_AV_RL32
	xorl	%eax, %r12d
	leaq	48(%r15), %rdi
	callq	_AV_RL32
	xorl	%eax, %ebx
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_memcpy
LBB0_4:
	movl	%ebx, %r15d
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_AV_WL32
	leaq	16(%rbx), %rdi
	movl	%r15d, %esi
	callq	_AV_WL32
	leaq	32(%rbx), %rdi
	movl	%r14d, %esi
	callq	_AV_WL32
	addq	$48, %rbx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	addq	$56, %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_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twofish_decrypt
_twofish_decrypt:                       ; @twofish_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	stp	x3, x1, [sp]                    ; 16-byte Folded Spill
	mov	x20, x2
	mov	x22, x0
	mov	x0, x2
	bl	_AV_RL32
	ldr	x8, [x22]
	ldr	w8, [x8, #16]
	eor	w23, w8, w0
	add	x0, x20, #16
	bl	_AV_RL32
	ldr	x8, [x22]
	ldr	w8, [x8, #20]
	eor	w24, w8, w0
	add	x0, x20, #32
	bl	_AV_RL32
	ldr	x8, [x22]
	ldr	w8, [x8, #24]
	eor	w25, w8, w0
	add	x0, x20, #48
	bl	_AV_RL32
	mov	x19, #0
	ldr	x8, [x22]
	ldr	w8, [x8, #28]
	eor	w26, w8, w0
	mov	w21, #17
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_MDS_mul
	mov	x27, x0
	mov	x0, x24
	mov	w1, #8
	bl	_LR
	mov	x1, x0
	mov	x0, x22
	bl	_MDS_mul
	mov	x28, x0
	mov	x0, x25
	mov	w1, #1
	bl	_LR
	ldr	x8, [x22]
	add	x8, x8, x19
	ldp	w9, w8, [x8, #152]
	add	w10, w28, w27
	add	w9, w10, w9
	eor	w25, w9, w0
	add	w9, w27, w28, lsl #1
	add	w8, w9, w8
	eor	w0, w8, w26
	mov	w1, #1
	bl	_RR
	mov	x26, x0
	mov	x0, x22
	mov	x1, x25
	bl	_MDS_mul
	mov	x27, x0
	mov	x0, x26
	mov	w1, #8
	bl	_LR
	mov	x1, x0
	mov	x0, x22
	bl	_MDS_mul
	mov	x28, x0
	mov	x0, x23
	mov	w1, #1
	bl	_LR
	ldr	x8, [x22]
	add	x8, x8, x19
	ldp	w9, w8, [x8, #144]
	add	w10, w28, w27
	add	w9, w10, w9
	eor	w23, w9, w0
	add	w9, w27, w28, lsl #1
	add	w8, w9, w8
	eor	w0, w8, w24
	mov	w1, #1
	bl	_RR
	mov	x24, x0
	sub	x21, x21, #2
	sub	x19, x19, #16
	cmp	x21, #1
	b.hi	LBB0_1
; %bb.2:
	ldr	x8, [x22]
	ldp	w9, w10, [x8]
	eor	w25, w9, w25
	eor	w22, w10, w26
	ldp	w9, w8, [x8, #8]
	eor	w26, w9, w23
	eor	w23, w8, w24
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	cbz	x19, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_AV_RL32
	eor	w25, w0, w25
	add	x0, x19, #16
	bl	_AV_RL32
	eor	w22, w0, w22
	add	x0, x19, #32
	bl	_AV_RL32
	eor	w26, w0, w26
	add	x0, x19, #48
	bl	_AV_RL32
	eor	w23, w0, w23
	mov	x0, x19
	mov	x1, x20
	mov	w2, #16
	bl	_memcpy
LBB0_4:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x19
	mov	x1, x26
	bl	_AV_WL32
	add	x0, x19, #16
	mov	x1, x23
	bl	_AV_WL32
	add	x0, x19, #32
	mov	x1, x25
	bl	_AV_WL32
	add	x0, x19, #48
	mov	x1, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AV_WL32
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_twofish_decrypt
.subsections_via_symbols
