	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cast5_setkey
_cast5_setkey:                          ## @cast5_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_crypto_tfm_ctx
	movq	%rax, %r13
	xorl	%eax, %eax
	cmpl	$11, %ebx
	setb	%al
	movl	%eax, (%r13)
	leaq	-160(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movl	-160(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -64(%rbp)
	movl	-156(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -60(%rbp)
	movl	-152(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -56(%rbp)
	movl	-148(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -52(%rbp)
	leaq	-64(%rbp), %r14
	leaq	-80(%rbp), %r15
	leaq	-144(%rbp), %r12
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_key_schedule
	movq	8(%r13), %rax
	movl	-144(%rbp), %ecx
	movl	%ecx, (%rax)
	movl	-140(%rbp), %ecx
	movl	%ecx, 4(%rax)
	movl	-136(%rbp), %ecx
	movl	%ecx, 8(%rax)
	movl	-132(%rbp), %ecx
	movl	%ecx, 12(%rax)
	movl	-128(%rbp), %ecx
	movl	%ecx, 16(%rax)
	movl	-124(%rbp), %ecx
	movl	%ecx, 20(%rax)
	movl	-120(%rbp), %ecx
	movl	%ecx, 24(%rax)
	movl	-116(%rbp), %ecx
	movl	%ecx, 28(%rax)
	movl	-112(%rbp), %ecx
	movl	%ecx, 32(%rax)
	movl	-108(%rbp), %ecx
	movl	%ecx, 36(%rax)
	movl	-104(%rbp), %ecx
	movl	%ecx, 40(%rax)
	movl	-100(%rbp), %ecx
	movl	%ecx, 44(%rax)
	movl	-96(%rbp), %ecx
	movl	%ecx, 48(%rax)
	movl	-92(%rbp), %ecx
	movl	%ecx, 52(%rax)
	movl	-88(%rbp), %ecx
	movl	%ecx, 56(%rax)
	movl	-84(%rbp), %ecx
	movl	%ecx, 60(%rax)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_key_schedule
	movq	16(%r13), %rax
	movl	-144(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, (%rax)
	movl	-140(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 4(%rax)
	movl	-136(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 8(%rax)
	movl	-132(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 12(%rax)
	movl	-128(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 16(%rax)
	movl	-124(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 20(%rax)
	movl	-120(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 24(%rax)
	movl	-116(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 28(%rax)
	movl	-112(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 32(%rax)
	movl	-108(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 36(%rax)
	movl	-104(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 40(%rax)
	movl	-100(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 44(%rax)
	movl	-96(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 48(%rax)
	movl	-92(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 52(%rax)
	movl	-88(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 56(%rax)
	movl	-84(%rbp), %ecx
	andl	$31, %ecx
	movl	%ecx, 60(%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cast5_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cast5_setkey
_cast5_setkey:                          ; @cast5_setkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_crypto_tfm_ctx
	mov	x19, x0
	cmp	w20, #11
	cset	w8, lo
	str	w8, [x0]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	w0, [sp, #8]
	bl	_be32_to_cpu
	stur	w0, [x29, #-56]
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
	stur	w0, [x29, #-52]
	ldr	w0, [sp, #16]
	bl	_be32_to_cpu
	stur	w0, [x29, #-48]
	ldr	w0, [sp, #20]
	bl	_be32_to_cpu
	stur	w0, [x29, #-44]
	sub	x0, x29, #56
	sub	x1, x29, #72
	add	x2, sp, #24
	bl	_key_schedule
	ldr	x8, [x19, #8]
	ldr	w9, [sp, #24]
	str	w9, [x8]
	ldr	w9, [sp, #28]
	str	w9, [x8, #4]
	ldr	w9, [sp, #32]
	str	w9, [x8, #8]
	ldr	w9, [sp, #36]
	str	w9, [x8, #12]
	ldr	w9, [sp, #40]
	str	w9, [x8, #16]
	ldr	w9, [sp, #44]
	str	w9, [x8, #20]
	ldr	w9, [sp, #48]
	str	w9, [x8, #24]
	ldr	w9, [sp, #52]
	str	w9, [x8, #28]
	ldr	w9, [sp, #56]
	str	w9, [x8, #32]
	ldr	w9, [sp, #60]
	str	w9, [x8, #36]
	ldr	w9, [sp, #64]
	str	w9, [x8, #40]
	ldr	w9, [sp, #68]
	str	w9, [x8, #44]
	ldr	w9, [sp, #72]
	str	w9, [x8, #48]
	ldr	w9, [sp, #76]
	str	w9, [x8, #52]
	ldr	w9, [sp, #80]
	str	w9, [x8, #56]
	ldr	w9, [sp, #84]
	str	w9, [x8, #60]
	sub	x0, x29, #56
	sub	x1, x29, #72
	add	x2, sp, #24
	bl	_key_schedule
	ldr	x8, [x19, #16]
	ldr	w9, [sp, #24]
	and	w9, w9, #0x1f
	str	w9, [x8]
	ldr	w9, [sp, #28]
	and	w9, w9, #0x1f
	str	w9, [x8, #4]
	ldr	w9, [sp, #32]
	and	w9, w9, #0x1f
	str	w9, [x8, #8]
	ldr	w9, [sp, #36]
	and	w9, w9, #0x1f
	str	w9, [x8, #12]
	ldr	w9, [sp, #40]
	and	w9, w9, #0x1f
	str	w9, [x8, #16]
	ldr	w9, [sp, #44]
	and	w9, w9, #0x1f
	str	w9, [x8, #20]
	ldr	w9, [sp, #48]
	and	w9, w9, #0x1f
	str	w9, [x8, #24]
	ldr	w9, [sp, #52]
	and	w9, w9, #0x1f
	str	w9, [x8, #28]
	ldr	w9, [sp, #56]
	and	w9, w9, #0x1f
	str	w9, [x8, #32]
	ldr	w9, [sp, #60]
	and	w9, w9, #0x1f
	str	w9, [x8, #36]
	ldr	w9, [sp, #64]
	and	w9, w9, #0x1f
	str	w9, [x8, #40]
	ldr	w9, [sp, #68]
	and	w9, w9, #0x1f
	str	w9, [x8, #44]
	ldr	w9, [sp, #72]
	and	w9, w9, #0x1f
	str	w9, [x8, #48]
	ldr	w9, [sp, #76]
	and	w9, w9, #0x1f
	str	w9, [x8, #52]
	ldr	w9, [sp, #80]
	and	w9, w9, #0x1f
	str	w9, [x8, #56]
	ldr	w9, [sp, #84]
	and	w9, w9, #0x1f
	str	w9, [x8, #60]
	ldur	x8, [x29, #-40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cast5_setkey
.subsections_via_symbols
