	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_ctr_crypt
_crypto_ctr_crypt:                      ## @crypto_ctr_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
	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, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	callq	_crypto_blkcipher_ctx
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_crypto_cipher_blocksize
	movl	%eax, %r12d
	leaq	-72(%rbp), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_blkcipher_walk_init
	movq	%r14, %rdi
	leaq	-72(%rbp), %rsi
	movl	%r12d, %edx
	callq	_blkcipher_walk_virt_block
	movl	-72(%rbp), %ecx
	cmpl	%r12d, %ecx
	jae	LBB0_1
LBB0_6:
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.7:
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_crypto_ctr_crypt_final
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_blkcipher_walk_done
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-72(%rbp), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_crypto_ctr_crypt_segment
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_blkcipher_walk_done
	movl	-72(%rbp), %ecx
	cmpl	%r12d, %ecx
	jb	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_crypto_ctr_crypt_inplace
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_crypto_ctr_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_ctr_crypt
_crypto_ctr_crypt:                      ; @crypto_ctr_crypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x0, [x0]
	bl	_crypto_blkcipher_ctx
	ldr	x20, [x0]
	mov	x0, x20
	bl	_crypto_cipher_blocksize
	mov	x21, x0
	add	x0, sp, #8
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	bl	_blkcipher_walk_init
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_blkcipher_walk_virt_block
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_crypto_ctr_crypt_segment
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_blkcipher_walk_done
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, w21
	b.lo	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [sp, #16]
	add	x0, sp, #8
	mov	x1, x20
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_crypto_ctr_crypt_inplace
	b	LBB0_2
LBB0_6:
	cbz	w8, LBB0_8
; %bb.7:
	add	x0, sp, #8
	mov	x1, x20
	bl	_crypto_ctr_crypt_final
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_blkcipher_walk_done
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_crypto_ctr_crypt
.subsections_via_symbols
