	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aes_xts_crypt
_aes_xts_crypt:                         ## @aes_xts_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AES_XTS_BLOCKSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	leaq	(,%r13,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.1:
	movq	(%r14), %rax
	cmpl	$8, %r13d
	jae	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
LBB0_12:
	movq	%rcx, %r8
	notq	%r8
	addq	%r13, %r8
	movq	%r13, %rdi
	andq	$3, %rdi
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	xorl	(%rbx,%rcx,4), %edx
	movl	%edx, (%rsi,%rcx,4)
	incq	%rcx
	decq	%rdi
	jne	LBB0_13
LBB0_14:
	cmpq	$3, %r8
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	xorl	(%rbx,%rcx,4), %edx
	movl	%edx, (%rsi,%rcx,4)
	movl	4(%rax,%rcx,4), %edx
	xorl	4(%rbx,%rcx,4), %edx
	movl	%edx, 4(%rsi,%rcx,4)
	movl	8(%rax,%rcx,4), %edx
	xorl	8(%rbx,%rcx,4), %edx
	movl	%edx, 8(%rsi,%rcx,4)
	movl	12(%rax,%rcx,4), %edx
	xorl	12(%rbx,%rcx,4), %edx
	movl	%edx, 12(%rsi,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %r13
	jne	LBB0_15
	jmp	LBB0_16
LBB0_3:
	movq	%rsi, %rdx
	subq	%rbx, %rdx
	xorl	%ecx, %ecx
	cmpq	$32, %rdx
	jb	LBB0_12
## %bb.4:
	movq	%rsi, %rdx
	subq	%rax, %rdx
	cmpq	$32, %rdx
	jb	LBB0_12
## %bb.5:
	movl	%r13d, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rdx
	movq	%rdx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.7:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rdx,4), %xmm0
	movups	16(%rbx,%rdx,4), %xmm1
	movups	(%rax,%rdx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rax,%rdx,4), %xmm0
	xorps	%xmm1, %xmm0
	movaps	%xmm2, (%rsi,%rdx,4)
	movaps	%xmm0, 16(%rsi,%rdx,4)
	movups	32(%rbx,%rdx,4), %xmm0
	movups	48(%rbx,%rdx,4), %xmm1
	movups	32(%rax,%rdx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	48(%rax,%rdx,4), %xmm0
	xorps	%xmm1, %xmm0
	movaps	%xmm2, 32(%rsi,%rdx,4)
	movaps	%xmm0, 48(%rsi,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	movups	(%rbx,%rdx,4), %xmm0
	movups	16(%rbx,%rdx,4), %xmm1
	movups	(%rax,%rdx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rax,%rdx,4), %xmm0
	xorps	%xmm1, %xmm0
	movaps	%xmm2, (%rsi,%rdx,4)
	movaps	%xmm0, 16(%rsi,%rdx,4)
LBB0_11:
	cmpq	%r13, %rcx
	jne	LBB0_12
LBB0_16:
	leaq	8(%r14), %rdi
	movq	%rbx, %rdx
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.17:
	callq	_rijndael_encrypt
	cmpl	$0, (%r12)
	jg	LBB0_20
	jmp	LBB0_27
LBB0_18:
	callq	_rijndael_decrypt
	cmpl	$0, (%r12)
	jle	LBB0_27
LBB0_20:
	movq	(%r14), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	xorl	%edx, (%rbx,%rcx,4)
	incq	%rcx
	movslq	(%r12), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_21
## %bb.22:
	testl	%edx, %edx
	jle	LBB0_27
## %bb.23:
	movq	(%r14), %rax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, %esi
	movl	(%rax,%rcx,4), %edi
	movl	%edi, %edx
	andl	$128, %edx
	addl	%edi, %edi
	shrl	$7, %esi
	orl	%edi, %esi
	movl	%esi, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%r12), %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_24
## %bb.25:
	testl	%edx, %edx
	je	LBB0_27
## %bb.26:
	movq	_AES_XTS_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	xorl	%eax, (%rcx)
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_XTS_BLOCKSIZE,4,2          ## @AES_XTS_BLOCKSIZE
	.comm	_AES_XTS_ALPHA,4,2              ## @AES_XTS_ALPHA
	.no_dead_strip	_aes_xts_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aes_xts_crypt
_aes_xts_crypt:                         ; @aes_xts_crypt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _AES_XTS_BLOCKSIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AES_XTS_BLOCKSIZE@GOTPAGEOFF]
	ldr	w12, [x21]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x1, x9, x8
	mov	sp, x1
	cmp	w12, #1
	b.lt	LBB0_5
; %bb.1:
	ldr	x8, [x19]
	cmp	w12, #16
	b.hs	LBB0_18
; %bb.2:
	mov	x9, #0
LBB0_3:
	lsl	x11, x9, #2
	add	x10, x1, x11
	add	x8, x8, x11
	add	x11, x20, x11
	sub	x9, x12, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	ldr	w13, [x8], #4
	eor	w12, w13, w12
	str	w12, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_4
LBB0_5:
	add	x0, x19, #8
	cbz	w2, LBB0_7
; %bb.6:
	mov	x2, x20
	bl	_rijndael_encrypt
	b	LBB0_8
LBB0_7:
	mov	x2, x20
	bl	_rijndael_decrypt
LBB0_8:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.9:
	mov	x8, #0
	ldr	x9, [x19]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	ldr	w12, [x20, x10]
	eor	w11, w12, w11
	str	w11, [x20, x10]
	add	x8, x8, #1
	ldrsw	x10, [x21]
	cmp	x8, x10
	b.lt	LBB0_10
; %bb.11:
	cmp	w10, #1
	b.lt	LBB0_16
; %bb.12:
	mov	x8, #0
	mov	w10, #0
	ldr	x9, [x19]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	lsl	w13, w12, #1
	orr	w13, w13, w10, lsr #7
	and	w10, w12, #0x80
	str	w13, [x9, x11]
	add	x8, x8, #1
	ldrsw	x11, [x21]
	cmp	x8, x11
	b.lt	LBB0_13
; %bb.14:
	cbz	w10, LBB0_16
; %bb.15:
Lloh7:
	adrp	x8, _AES_XTS_ALPHA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AES_XTS_ALPHA@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9]
	eor	w8, w10, w8
	str	w8, [x9]
LBB0_16:
	ldur	x8, [x29, #-40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.17:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	x9, #0
	sub	x10, x1, x20
	cmp	x10, #64
	b.lo	LBB0_3
; %bb.19:
	sub	x10, x1, x8
	cmp	x10, #64
	b.lo	LBB0_3
; %bb.20:
	and	x9, x12, #0xfffffff0
	add	x10, x1, #32
	add	x11, x20, #32
	add	x13, x8, #32
	mov	x14, x9
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x14, x14, #16
	b.ne	LBB0_21
; %bb.22:
	cmp	x9, x12
	b.ne	LBB0_3
	b	LBB0_5
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_XTS_BLOCKSIZE,4,2          ; @AES_XTS_BLOCKSIZE
	.comm	_AES_XTS_ALPHA,4,2              ; @AES_XTS_ALPHA
	.no_dead_strip	_aes_xts_crypt
.subsections_via_symbols
