	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_cts_encrypt
_crypto_cts_encrypt:                    ## @crypto_cts_encrypt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_crypto_blkcipher_ctx
	movq	%rax, %rbx
	movl	8(%r15), %edi
	callq	_crypto_blkcipher_blocksize
	movq	%rbx, %rdi
	movl	%eax, %ebx
	leal	(%r12,%rbx), %eax
	decl	%eax
	xorl	%esi, %esi
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	leal	-2(%rax), %r14d
	cmpl	$3, %eax
	cmovll	%esi, %r14d
	movl	(%rdi), %edx
	movl	%edx, -48(%rbp)
	movl	4(%r15), %edx
	movl	%edx, -52(%rbp)
	movl	(%r15), %edx
	movl	%edx, -56(%rbp)
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	-56(%rbp), %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_crypto_blkcipher_encrypt_iv
	jmp	LBB0_5
LBB0_2:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rbx,%rbx), %eax
	cmpl	%r12d, %eax
	jae	LBB0_6
## %bb.3:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	imull	%ebx, %r14d
	leaq	-56(%rbp), %rdi
	movq	%r13, %rsi
	movq	%rcx, %rbx
	movq	%rcx, %rdx
	movl	%r14d, %ecx
	callq	_crypto_blkcipher_encrypt_iv
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	subl	%r14d, %r12d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	callq	_cts_cbc_encrypt
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rsi
	movq	%r13, %rdx
	xorl	%r8d, %r8d
	movl	%r12d, %r9d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cts_cbc_encrypt                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_crypto_cts_encrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_cts_encrypt
_crypto_cts_encrypt:                    ; @crypto_cts_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w0, [x0, #8]
	bl	_crypto_blkcipher_ctx
	mov	x23, x0
	ldr	w0, [x22, #8]
	bl	_crypto_blkcipher_blocksize
	mov	x3, x0
	add	w8, w21, w0
	sub	w8, w8, #1
	udiv	w9, w8, w0
	subs	w8, w9, #2
	csel	w8, w8, wzr, gt
	ldr	w10, [x23]
	str	w10, [sp, #8]
	ldr	d0, [x22]
	str	d0, [sp]
	cmp	w9, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, sp
	mov	x1, x20
	mov	x2, x19
	bl	_crypto_blkcipher_encrypt_iv
	b	LBB0_5
LBB0_2:
	cmp	w21, w3, lsl #1
	b.ls	LBB0_6
; %bb.3:
	mul	w24, w8, w3
	mov	x0, sp
	mov	x1, x20
	mov	x2, x19
	mov	x3, x24
	bl	_crypto_blkcipher_encrypt_iv
	cbnz	w0, LBB0_5
; %bb.4:
	sub	w5, w21, w24
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	mov	x4, x24
	bl	_cts_cbc_encrypt
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	mov	x5, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_cts_cbc_encrypt
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_crypto_cts_encrypt
.subsections_via_symbols
