	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vk_ssl_aes_ctr_crypt           ## -- Begin function vk_ssl_aes_ctr_crypt
	.p2align	4, 0x90
_vk_ssl_aes_ctr_crypt:                  ## @vk_ssl_aes_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
	movq	%r9, %r13
	movq	%r8, %r11
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %rdx
	movq	8(%r8), %rsi
	movq	%r9, %rax
	shrq	$4, %rax
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	addq	%rsi, %rax
	movq	%rax, 8(%r8)
	movl	%r13d, %r12d
	andl	$15, %r12d
	movq	%rdi, %r14
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leaq	-64(%rbp), %rsi
	movq	%r11, %rdi
	movl	%ecx, %r12d
	callq	_AES_encrypt
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	incq	8(%r11)
	addl	%r12d, %esi
	cmpl	$16, %esi
	movl	$16, %r8d
	cmovll	%esi, %r8d
	andl	$15, %r13d
	movslq	%r8d, %rcx
	leaq	1(%r13), %r10
	cmpq	%rcx, %r10
	cmovleq	%rcx, %r10
	subq	%r13, %r10
	cmpq	$16, %r10
	jb	LBB0_3
## %bb.4:
	movq	%r15, %rax
	subq	%rbx, %rax
	cmpq	$16, %rax
	jb	LBB0_5
## %bb.6:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r10, %r9
	andq	$-16, %r9
	leaq	-16(%r9), %rax
	movq	%rax, %rdi
	shrq	$4, %rdi
	incq	%rdi
	movl	%edi, %esi
	andl	$3, %esi
	cmpq	$48, %rax
	jae	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movl	%ecx, %r12d
	cmpl	$16, %r12d
	jge	LBB0_19
LBB0_18:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	andl	$15, %r12d
	jne	LBB0_23
	jmp	LBB0_31
LBB0_3:
	movq	%r14, %rdx
	jmp	LBB0_15
LBB0_5:
	movq	%r14, %rdx
	jmp	LBB0_15
LBB0_8:
	andq	$-4, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdx
	orq	%rax, %rdx
	movups	(%rbx,%rax), %xmm0
	movups	-64(%rbp,%rdx), %xmm1
	xorps	%xmm0, %xmm1
	movups	%xmm1, (%r15,%rax)
	leaq	16(%rax), %rdx
	orq	%r13, %rdx
	movups	16(%rbx,%rax), %xmm0
	movups	-64(%rbp,%rdx), %xmm1
	xorps	%xmm0, %xmm1
	movups	%xmm1, 16(%r15,%rax)
	leaq	32(%rax), %rdx
	orq	%r13, %rdx
	movups	32(%rbx,%rax), %xmm0
	movups	-64(%rbp,%rdx), %xmm1
	xorps	%xmm0, %xmm1
	movups	%xmm1, 32(%r15,%rax)
	leaq	48(%rax), %rdx
	orq	%r13, %rdx
	movups	48(%rbx,%rax), %xmm0
	movups	-64(%rbp,%rdx), %xmm1
	xorps	%xmm0, %xmm1
	movups	%xmm1, 48(%r15,%rax)
	addq	$64, %rax
	addq	$-4, %rdi
	jne	LBB0_9
LBB0_10:
	testq	%rsi, %rsi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdx
	orq	%rax, %rdx
	movups	(%rbx,%rax), %xmm0
	movups	-64(%rbp,%rdx), %xmm1
	xorps	%xmm0, %xmm1
	movups	%xmm1, (%r15,%rax)
	addq	$16, %rax
	decq	%rsi
	jne	LBB0_11
LBB0_12:
	addq	%r9, %r15
	addq	%r9, %rbx
	cmpq	%r9, %r10
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_16
LBB0_14:
	orq	%r9, %r13
	movq	%r14, %rdx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-64(%rbp,%r13), %eax
	incq	%r13
	xorb	(%rbx), %al
	incq	%rbx
	movb	%al, (%r15)
	incq	%r15
	cmpq	%rcx, %r13
	jl	LBB0_15
LBB0_16:
	subl	%r8d, %esi
	movl	%esi, %r12d
	cmpl	$16, %r12d
	jl	LBB0_18
LBB0_19:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	shrl	$4, %r12d
	incl	%r12d
	leaq	-64(%rbp), %r13
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r11, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_AES_encrypt
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	incq	8(%r11)
	movq	-64(%rbp), %rax
	xorq	(%rbx), %rax
	movq	%rax, (%r15)
	movq	-56(%rbp), %rax
	xorq	8(%rbx), %rax
	addq	$16, %rbx
	movq	%rax, 8(%r15)
	addq	$16, %r15
	decl	%r12d
	cmpl	$1, %r12d
	ja	LBB0_20
## %bb.21:
	movq	%r14, %rdx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	andl	$15, %r12d
	je	LBB0_31
LBB0_23:
	leaq	-64(%rbp), %rsi
	movq	%r11, %rdi
	callq	_AES_encrypt
	movl	%r12d, %ecx
	leaq	-1(%rcx), %rdx
	movl	%ecx, %esi
	andl	$3, %esi
	cmpq	$3, %rdx
	jae	LBB0_25
## %bb.24:
	xorl	%edx, %edx
	jmp	LBB0_28
LBB0_25:
	andl	$-4, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-64(%rbp,%rdx), %eax
	xorb	(%rbx,%rdx), %al
	movb	%al, (%r15,%rdx)
	movzbl	-63(%rbp,%rdx), %eax
	xorb	1(%rbx,%rdx), %al
	movb	%al, 1(%r15,%rdx)
	movzbl	-62(%rbp,%rdx), %eax
	xorb	2(%rbx,%rdx), %al
	movb	%al, 2(%r15,%rdx)
	movzbl	-61(%rbp,%rdx), %eax
	xorb	3(%rbx,%rdx), %al
	movb	%al, 3(%r15,%rdx)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_26
## %bb.27:
	addq	%rdx, %r15
	addq	%rdx, %rbx
LBB0_28:
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_31
## %bb.29:
	leaq	(%rdx,%rbp), %rcx
	addq	$-64, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rdx), %eax
	xorb	(%rbx,%rdx), %al
	movb	%al, (%r15,%rdx)
	incq	%rdx
	cmpq	%rdx, %rsi
	jne	LBB0_30
LBB0_31:
	movq	%r14, 8(%r11)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vk_ssl_aes_ctr_crypt           ; -- Begin function vk_ssl_aes_ctr_crypt
	.p2align	2
_vk_ssl_aes_ctr_crypt:                  ; @vk_ssl_aes_ctr_crypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x24, x5
	mov	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x25, [x4, #8]
	add	x8, x25, x5, lsr #4
	str	x8, [x4, #8]
	ands	w27, w24, #0xf
	b.eq	LBB0_8
; %bb.1:
	mov	x26, sp
	mov	x1, sp
	mov	x0, x19
	mov	x2, x20
	bl	_AES_encrypt
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	add	w8, w27, w23
	mov	w9, #16
	cmp	w8, #16
	csel	w9, w8, w9, lt
	and	x13, x24, #0xf
	sxtw	x9, w9
	add	x10, x13, #1
	cmp	x10, x9
	csinc	x10, x9, x13, le
	sub	x14, x10, x13
	sub	x10, x21, x22
	cmp	x14, #16
	ccmp	x10, #16, #0, hs
	b.hs	LBB0_3
; %bb.2:
	mov	x12, x13
	mov	x10, x21
	mov	x11, x22
	b	LBB0_6
LBB0_3:
	mov	x16, #0
	and	x15, x14, #0xfffffffffffffff0
	orr	x12, x13, x15
	add	x10, x21, x15
	add	x11, x22, x15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	orr	x17, x13, x16
	ldr	q0, [x22, x16]
	ldr	q1, [x26, x17]
	eor.16b	v0, v1, v0
	str	q0, [x21, x16]
	add	x16, x16, #16
	cmp	x15, x16
	b.ne	LBB0_4
; %bb.5:
	cmp	x14, x15
	b.eq	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w13, [x11], #1
	ldrb	w14, [x26, x12]
	add	x15, x12, #1
	eor	w12, w14, w13
	strb	w12, [x10], #1
	mov	x12, x15
	cmp	x15, x9
	b.lt	LBB0_6
LBB0_7:
	sub	w23, w8, w9
	mov	x21, x10
	mov	x22, x11
LBB0_8:
	cmp	w23, #16
	b.lt	LBB0_12
; %bb.9:
	lsr	w8, w23, #4
	add	w24, w8, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x19
	mov	x2, x20
	bl	_AES_encrypt
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	ldr	x8, [x22]
	ldr	x9, [sp]
	eor	x8, x9, x8
	str	x8, [x21]
	add	x8, x22, #16
	ldr	x9, [x22, #8]
	ldr	x10, [sp, #8]
	eor	x10, x10, x9
	add	x9, x21, #16
	str	x10, [x21, #8]
	sub	w24, w24, #1
	mov	x21, x9
	mov	x22, x8
	cmp	w24, #1
	b.hi	LBB0_10
; %bb.11:
	mov	x22, x8
	mov	x21, x9
LBB0_12:
	ands	w23, w23, #0xf
	b.eq	LBB0_15
; %bb.13:
	mov	x24, sp
	mov	x1, sp
	mov	x0, x19
	mov	x2, x20
	bl	_AES_encrypt
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22], #1
	ldrb	w9, [x24], #1
	eor	w8, w9, w8
	strb	w8, [x21], #1
	subs	x23, x23, #1
	b.ne	LBB0_14
LBB0_15:
	str	x25, [x19, #8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
