	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cast6_setkey
_cast6_setkey:                          ## @cast6_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_crypto_tfm_ctx
	testb	$3, %r13b
	je	LBB0_2
## %bb.1:
	movq	_CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_2:
	movq	%rax, %r15
	leaq	-112(%rbp), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	-112(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -80(%rbp)
	movl	-108(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -76(%rbp)
	movl	-104(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -72(%rbp)
	movl	-100(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -68(%rbp)
	movl	-96(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -64(%rbp)
	movl	-92(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -60(%rbp)
	movl	-88(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -56(%rbp)
	movl	-84(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -52(%rbp)
	leaq	-80(%rbp), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_W
	leal	1(%rbx), %esi
	movq	%r12, %rdi
	callq	_W
	movl	-80(%rbp), %eax
	andl	$31, %eax
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,4), %rcx
	movl	%eax, (%rcx)
	movl	-72(%rbp), %eax
	andl	$31, %eax
	movl	%eax, 4(%rcx)
	movl	-64(%rbp), %eax
	andl	$31, %eax
	movl	%eax, 8(%rcx)
	movl	-56(%rbp), %eax
	andl	$31, %eax
	movl	%eax, 12(%rcx)
	movl	-52(%rbp), %eax
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,4), %rcx
	movl	%eax, (%rcx)
	movl	-60(%rbp), %eax
	movl	%eax, 4(%rcx)
	movl	-68(%rbp), %eax
	movl	%eax, 8(%rcx)
	movl	-76(%rbp), %eax
	movl	%eax, 12(%rcx)
	addq	$2, %rbx
	cmpq	$24, %rbx
	jne	LBB0_3
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ## @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cast6_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cast6_setkey
_cast6_setkey:                          ; @cast6_setkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x22, x0
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
	tst	w20, #0x3
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPTO_TFM_RES_BAD_KEY_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	w0, [sp, #8]
	bl	_be32_to_cpu
	str	w0, [sp, #40]
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
	str	w0, [sp, #44]
	ldr	w0, [sp, #16]
	bl	_be32_to_cpu
	str	w0, [sp, #48]
	ldr	w0, [sp, #20]
	bl	_be32_to_cpu
	str	w0, [sp, #52]
	ldr	w0, [sp, #24]
	bl	_be32_to_cpu
	str	w0, [sp, #56]
	ldr	w0, [sp, #28]
	bl	_be32_to_cpu
	str	w0, [sp, #60]
	ldr	w0, [sp, #32]
	bl	_be32_to_cpu
	str	w0, [sp, #64]
	ldr	w0, [sp, #36]
	bl	_be32_to_cpu
	mov	x21, #0
	mov	x20, #0
	str	w0, [sp, #68]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #40
	mov	x1, x20
	bl	_W
	add	w1, w20, #1
	add	x0, sp, #40
	bl	_W
	ldr	w8, [sp, #40]
	and	w8, w8, #0x1f
	ldr	x9, [x19]
	ldr	x9, [x9, x21]
	str	w8, [x9]
	ldr	w8, [sp, #48]
	and	w8, w8, #0x1f
	str	w8, [x9, #4]
	ldr	w8, [sp, #56]
	and	w8, w8, #0x1f
	str	w8, [x9, #8]
	ldr	w8, [sp, #64]
	and	w8, w8, #0x1f
	str	w8, [x9, #12]
	ldr	w8, [sp, #68]
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x21]
	str	w8, [x9]
	ldr	w8, [sp, #60]
	str	w8, [x9, #4]
	ldr	w8, [sp, #52]
	ldr	w10, [sp, #44]
	stp	w8, w10, [x9, #8]
	add	x20, x20, #2
	add	x21, x21, #8
	cmp	x20, #24
	b.ne	LBB0_3
; %bb.4:
	mov	w0, #0
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_TFM_RES_BAD_KEY_LEN,4,2 ; @CRYPTO_TFM_RES_BAD_KEY_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cast6_setkey
.subsections_via_symbols
