	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CRYPTO_ctr128_encrypt_ctr32    ## -- Begin function CRYPTO_ctr128_encrypt_ctr32
	.p2align	4, 0x90
_CRYPTO_ctr128_encrypt_ctr32:           ## @CRYPTO_ctr128_encrypt_ctr32
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	16(%rbp), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	movzbl	(%r12,%rax), %eax
	xorb	(%r13), %al
	incq	%r13
	movb	%al, (%rsi)
	incq	%rsi
	leaq	-1(%rdx), %rax
	incl	%ecx
	andl	$15, %ecx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$1, %rdx
	movq	%rax, %rdx
	jne	LBB0_2
	jmp	LBB0_6
LBB0_5:
	movq	%rdx, %rax
LBB0_6:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	leaq	12(%r8), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	callq	_GETU32
	movl	%eax, %r14d
	cmpq	$16, %rbx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	jae	LBB0_15
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.8:
	movq	%r13, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r12, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r8
	callq	*24(%rbp)
	leal	1(%r14), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_PUTU32
	incl	%r14d
	jne	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_ctr96_inc
LBB0_10:
	movq	%rbx, %r10
	cmpq	$32, %rbx
	movq	16(%rbp), %r9
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jae	LBB0_18
## %bb.11:
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	movq	%r15, %rbx
LBB0_12:
	testb	$1, %r10b
	jne	LBB0_29
## %bb.13:
	movq	%r10, %rax
	cmpq	$1, %r10
	jne	LBB0_30
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	shlq	$4, %r12
	subq	%r12, %rbx
	addq	%r12, %r15
	addq	%r12, %r13
	cmpq	$15, %rbx
	movq	%r15, %rsi
	jbe	LBB0_7
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	shrq	$4, %r12
	cmpq	$268435456, %r12                ## imm = 0x10000000
	movl	$268435456, %eax                ## imm = 0x10000000
	cmovaeq	%rax, %r12
	addl	%r12d, %r14d
	cmpq	%r14, %r12
	movl	$0, %eax
	cmovaq	%r14, %rax
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
	movl	$0, %ecx
	cmoval	%ecx, %r14d
	subq	%rax, %r12
	movq	%r13, %rdi
	movl	%r12d, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%rsi, %r15
	callq	*24(%rbp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_PUTU32
	testl	%r14d, %r14d
	jne	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ctr96_inc
	jmp	LBB0_14
LBB0_17:
	movq	16(%rbp), %r9
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_18:
	leaq	-1(%r10), %rax
	movl	%edi, %ecx
	addl	%eax, %ecx
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	movq	%r15, %rbx
	jb	LBB0_12
## %bb.19:
	shrq	$32, %rax
	jne	LBB0_12
## %bb.20:
	movl	%edi, %eax
	leaq	(%r11,%rax), %rcx
	movq	%rcx, %rsi
	subq	%rbx, %rsi
	subq	%rax, %rsi
	cmpq	$32, %rsi
	jb	LBB0_12
## %bb.21:
	addq	%r12, %rax
	subq	%rax, %rcx
	cmpq	$32, %rcx
	jb	LBB0_12
## %bb.22:
	movq	%r10, %r8
	andq	$-32, %r8
	leaq	-32(%r8), %rcx
	movq	%rcx, %r14
	shrq	$5, %r14
	incq	%r14
	testq	%rcx, %rcx
	je	LBB0_32
## %bb.23:
	movq	%r14, %rsi
	andq	$-2, %rsi
	xorl	%ecx, %ecx
	movl	%edi, %edx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, %eax
	movups	(%rbx,%rax), %xmm0
	movups	16(%rbx,%rax), %xmm1
	movups	(%r12,%rax), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%r12,%rax), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%r11,%rax)
	movups	%xmm0, 16(%r11,%rax)
	leal	32(%rdx), %eax
	movups	(%rbx,%rax), %xmm0
	movups	16(%rbx,%rax), %xmm1
	movups	(%r12,%rax), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%r12,%rax), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%r11,%rax)
	movups	%xmm0, 16(%r11,%rax)
	addl	$64, %edx
	addl	$64, %ecx
	addq	$-2, %rsi
	jne	LBB0_24
## %bb.25:
	testb	$1, %r14b
	je	LBB0_27
LBB0_26:
	addl	%edi, %ecx
	movups	(%rbx,%rcx), %xmm0
	movups	16(%rbx,%rcx), %xmm1
	movups	(%r12,%rcx), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%r12,%rcx), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%r11,%rcx)
	movups	%xmm0, 16(%r11,%rcx)
LBB0_27:
	addl	%r8d, %edi
	cmpq	%r8, %r10
	je	LBB0_31
## %bb.28:
	andl	$31, %r10d
	jmp	LBB0_12
LBB0_29:
	leaq	-1(%r10), %rax
	movl	%edi, %ecx
	movb	(%r12,%rcx), %dl
	xorb	(%rbx,%rcx), %dl
	movb	%dl, (%r11,%rcx)
	incl	%edi
	cmpq	$1, %r10
	je	LBB0_31
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	%edi, %ecx
	movzbl	(%r12,%rcx), %edx
	xorb	(%rbx,%rcx), %dl
	movb	%dl, (%r11,%rcx)
	leal	1(%rdi), %ecx
	movzbl	(%r12,%rcx), %edx
	xorb	(%rbx,%rcx), %dl
	addl	$2, %edi
	movb	%dl, (%r11,%rcx)
	addq	$-2, %rax
	jne	LBB0_30
LBB0_31:
	movl	%edi, (%r9)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	xorl	%ecx, %ecx
	testb	$1, %r14b
	jne	LBB0_26
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CRYPTO_ctr128_encrypt_ctr32    ; -- Begin function CRYPTO_ctr128_encrypt_ctr32
	.p2align	2
_CRYPTO_ctr128_encrypt_ctr32:           ; @CRYPTO_ctr128_encrypt_ctr32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x3, x7, [sp, #16]               ; 16-byte Folded Spill
	mov	x20, x5
	mov	x23, x4
	mov	x21, x1
	mov	x22, x0
	str	x6, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w19, [x6]
	cmp	w19, #0
	ccmp	x2, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x24, x2
	b	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22], #1
	ldrb	w9, [x20, w19, uxtw]
	eor	w8, w9, w8
	strb	w8, [x21], #1
	sub	x24, x2, #1
	add	w8, w19, #1
	ands	w19, w8, #0xf
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x2, #1
	mov	x2, x24
	b.ne	LBB0_2
LBB0_4:
	add	x26, x23, #12
	mov	x0, x26
	bl	_GETU32
	mov	x27, x0
	cmp	x24, #16
	b.lo	LBB0_9
; %bb.5:
	mov	w25, #268435456
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	lsl	x8, x28, #4
	sub	x24, x24, x8
	add	x21, x21, x8
	add	x22, x22, x8
	cmp	x24, #15
	b.ls	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsr	x8, x24, #4
	cmp	x8, x25
	csel	x8, x8, x25, lo
	add	w9, w27, w8
	cmp	x8, x9
	csel	w27, wzr, w9, hi
	csel	x9, x9, xzr, hi
	sub	x28, x8, x9
	mov	x0, x22
	mov	x1, x21
	mov	x2, x28
	ldp	x3, x8, [sp, #16]               ; 16-byte Folded Reload
	mov	x4, x23
	blr	x8
	mov	x0, x26
	mov	x1, x27
	bl	_PUTU32
	cbnz	w27, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_ctr96_inc
	b	LBB0_6
LBB0_9:
	cbz	x24, LBB0_22
; %bb.10:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, x20
	mov	x1, x20
	mov	w2, #1
	ldp	x3, x8, [sp, #16]               ; 16-byte Folded Reload
	mov	x4, x23
	blr	x8
	adds	w1, w27, #1
	mov	x0, x26
	bl	_PUTU32
	cmn	w27, #1
	b.lo	LBB0_12
; %bb.11:
	mov	x0, x23
	bl	_ctr96_inc
LBB0_12:
	cmp	x24, #32
	b.lo	LBB0_20
; %bb.13:
	sub	x8, x24, #1
	cmn	w19, w8
	b.hs	LBB0_20
; %bb.14:
	lsr	x8, x8, #32
	cbnz	x8, LBB0_20
; %bb.15:
	mov	w8, w19
	add	x9, x21, x8
	add	x10, x22, x8
	sub	x10, x9, x10
	cmp	x10, #32
	b.lo	LBB0_20
; %bb.16:
	add	x8, x20, x8
	sub	x8, x9, x8
	cmp	x8, #32
	b.lo	LBB0_20
; %bb.17:
	and	x10, x24, #0xffffffffffffffe0
	add	w8, w19, w10
	and	x9, x24, #0x1f
	mov	x11, x10
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	w12, w19
	add	x13, x22, x12
	ldp	q0, q1, [x13]
	add	x13, x20, x12
	ldp	q2, q3, [x13]
	eor.16b	v0, v2, v0
	eor.16b	v1, v3, v1
	add	x12, x21, x12
	stp	q0, q1, [x12]
	add	w19, w19, #32
	subs	x11, x11, #32
	b.ne	LBB0_18
; %bb.19:
	cmp	x24, x10
	ldr	x13, [sp, #8]                   ; 8-byte Folded Reload
	b.ne	LBB0_21
	b	LBB0_23
LBB0_20:
	mov	x8, x19
	mov	x9, x24
	ldr	x13, [sp, #8]                   ; 8-byte Folded Reload
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	w10, w8
	ldrb	w11, [x22, x10]
	ldrb	w12, [x20, x10]
	eor	w11, w12, w11
	strb	w11, [x21, x10]
	add	w8, w8, #1
	subs	x9, x9, #1
	b.ne	LBB0_21
	b	LBB0_23
LBB0_22:
	mov	x8, x19
	ldr	x13, [sp, #8]                   ; 8-byte Folded Reload
LBB0_23:
	str	w8, [x13]
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
