	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function khazad_crypt
_khazad_crypt:                          ## @khazad_crypt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdx), %edi
	callq	_be64_to_cpu
	movl	%eax, %ecx
	xorl	(%r15), %ecx
	movq	_KHAZAD_ROUNDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_T4@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_T5@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_T6@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_T7@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	cmpl	$2, %r8d
	jl	LBB0_1
## %bb.2:
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	movzbl	%ch, %esi
	movzbl	%cl, %edi
                                        ## kill: def $ecx killed $ecx def $rcx
	shrl	$24, %ecx
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	(%r11,%rax,4), %eax
	xorl	(%rbx,%rcx,4), %eax
	xorl	(%r10,%rsi,4), %eax
	xorl	(%r9,%rdi,4), %eax
	xorl	(%r15,%rdx,4), %eax
	incq	%rdx
	movl	%eax, %ecx
	cmpq	%rdx, %r8
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movl	%ecx, %eax
LBB0_4:
	movl	%eax, %ecx
	shrl	$24, %ecx
	movzbl	3(%rbx,%rcx,4), %ecx
	shll	$24, %ecx
	movl	%eax, %edx
	shrl	$16, %edx
	movzbl	%dl, %edx
	movzbl	2(%r11,%rdx,4), %edx
	shll	$16, %edx
	orl	%ecx, %edx
	movzbl	%ah, %ecx
	movzbl	1(%r10,%rcx,4), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	movzbl	%al, %eax
	movzbl	(%r9,%rax,4), %edi
	orl	%ecx, %edi
	movslq	%r8d, %rax
	xorl	(%r15,%rax,4), %edi
	callq	_cpu_to_be64
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KHAZAD_ROUNDS,4,2              ## @KHAZAD_ROUNDS
	.comm	_T0,8,3                         ## @T0
	.comm	_T1,8,3                         ## @T1
	.comm	_T2,8,3                         ## @T2
	.comm	_T3,8,3                         ## @T3
	.comm	_T4,8,3                         ## @T4
	.comm	_T5,8,3                         ## @T5
	.comm	_T6,8,3                         ## @T6
	.comm	_T7,8,3                         ## @T7
	.no_dead_strip	_khazad_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function khazad_crypt
_khazad_crypt:                          ; @khazad_crypt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x2]
	bl	_be64_to_cpu
	ldr	w8, [x20]
	eor	w9, w8, w0
Lloh0:
	adrp	x8, _KHAZAD_ROUNDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KHAZAD_ROUNDS@GOTPAGEOFF]
Lloh2:
	adrp	x10, _T4@GOTPAGE
Lloh3:
	ldr	x10, [x10, _T4@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	x13, [x10]
Lloh6:
	adrp	x10, _T5@GOTPAGE
Lloh7:
	ldr	x10, [x10, _T5@GOTPAGEOFF]
Lloh8:
	adrp	x11, _T6@GOTPAGE
Lloh9:
	ldr	x11, [x11, _T6@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x10]
Lloh11:
	ldr	x11, [x11]
Lloh12:
	adrp	x10, _T7@GOTPAGE
Lloh13:
	ldr	x10, [x10, _T7@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	add	x14, x20, #4
	sub	x15, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w16, w9, #24
	ldr	w16, [x13, w16, uxtw #2]
	ubfx	w17, w9, #16, #8
	ldr	w17, [x12, w17, uxtw #2]
	eor	w16, w17, w16
	ubfx	w17, w9, #8, #8
	ldr	w17, [x11, w17, uxtw #2]
	and	w9, w9, #0xff
	ldr	w9, [x10, w9, uxtw #2]
	eor	w16, w16, w17
	eor	w9, w16, w9
	ldr	w16, [x14], #4
	eor	w9, w9, w16
	subs	x15, x15, #1
	b.ne	LBB0_2
LBB0_3:
	lsr	w14, w9, #24
	add	x13, x13, w14, uxtw #2
	ldrb	w13, [x13, #3]
	lsl	w13, w13, #24
	ubfx	w14, w9, #16, #8
	add	x12, x12, w14, uxtw #2
	ldrb	w12, [x12, #2]
	bfi	w13, w12, #16, #8
	ubfx	w12, w9, #8, #8
	add	x11, x11, w12, uxtw #2
	ldrb	w11, [x11, #1]
	bfi	w13, w11, #8, #8
	and	w9, w9, #0xff
	lsl	x9, x9, #2
	ldrb	w9, [x10, x9]
	orr	w9, w13, w9
	ldr	w8, [x20, w8, sxtw #2]
	eor	w0, w9, w8
	bl	_cpu_to_be64
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_KHAZAD_ROUNDS,4,2              ; @KHAZAD_ROUNDS
	.comm	_T0,8,3                         ; @T0
	.comm	_T1,8,3                         ; @T1
	.comm	_T2,8,3                         ; @T2
	.comm	_T3,8,3                         ; @T3
	.comm	_T4,8,3                         ; @T4
	.comm	_T5,8,3                         ; @T5
	.comm	_T6,8,3                         ; @T6
	.comm	_T7,8,3                         ; @T7
	.no_dead_strip	_khazad_crypt
.subsections_via_symbols
