	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encrypt_counter
_encrypt_counter:                       ## @encrypt_counter
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	addq	$56, %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	%ecx, %r13d
	leaq	48(%rdx), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpl	%r14d, %r15d
	jge	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	%r12d, %esi
	callq	_AV_WB16
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	leaq	-112(%rbp), %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_av_aes_crypt
	cmpl	%r14d, %r15d
	jge	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %r15
	movq	%r15, %r8
	notq	%r8
	addq	%r13, %r8
	cmpq	$15, %r8
	movl	$15, %eax
	cmovaeq	%rax, %r8
	cmpq	$3, %r8
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r8
	movl	%r8d, %eax
	andl	$28, %eax
	leaq	-4(%rax), %rcx
	movq	%rcx, %rsi
	shrq	$2, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$12, %rcx
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	andq	$-4, %rsi
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r15,4), %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-48(%rcx,%rdi,4), %xmm0
	movups	-32(%rcx,%rdi,4), %xmm1
	movups	-16(%rcx,%rdi,4), %xmm2
	xorps	-112(%rbp,%rdi,4), %xmm0
	movups	(%rcx,%rdi,4), %xmm3
	movups	%xmm0, -48(%rcx,%rdi,4)
	xorps	-96(%rbp,%rdi,4), %xmm1
	movups	%xmm1, -32(%rcx,%rdi,4)
	xorps	-80(%rbp,%rdi,4), %xmm2
	movups	%xmm2, -16(%rcx,%rdi,4)
	xorps	-64(%rbp,%rdi,4), %xmm3
	movups	%xmm3, (%rcx,%rdi,4)
	addq	$16, %rdi
	addq	$-4, %rsi
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-112(,%rdi,4), %rcx
	addq	%rbp, %rcx
	addq	%r15, %rdi
	leaq	(%rbx,%rdi,4), %rsi
	shlq	$4, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%rsi,%rdi), %xmm0
	xorps	(%rcx,%rdi), %xmm0
	movups	%xmm0, (%rsi,%rdi)
	addq	$16, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	%rax, %r15
	cmpq	%rax, %r8
	je	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-112(%rbp,%rax,4), %ecx
	xorl	%ecx, (%rbx,%r15,4)
	incq	%r15
	cmpq	$14, %rax
	ja	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%rax
	cmpq	%r13, %r15
	jl	LBB0_13
	jmp	LBB0_15
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_encrypt_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encrypt_counter
_encrypt_counter:                       ; @encrypt_counter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	cmp	w3, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w28, #0
	mov	w23, #0
	add	x24, x1, #56
	add	x25, sp, #8
	mov	w26, #15
	mov	w27, w3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	cmp	w28, w19
	b.ge	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	mov	x0, x24
	mov	x1, x23
	bl	_AV_WB16
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x21
	mov	w3, #1
	mov	x4, #0
	mov	w5, #0
	bl	_av_aes_crypt
	cmp	w28, w19
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	sxtw	x10, w28
	mvn	x8, x10
	add	x8, x8, x27
	cmp	x8, #15
	csel	x8, x8, x26, lo
	cmp	x8, #3
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
	mov	x28, x10
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x8, #1
	and	x8, x9, #0x1c
	add	x28, x8, x10
	add	x10, x20, x10, lsl #2
	add	x11, sp, #8
	mov	x12, x8
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	q0, [x11], #16
	ldr	q1, [x10]
	eor.16b	v0, v1, v0
	str	q0, [x10], #16
	subs	x12, x12, #4
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x9, x8
	b.eq	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x25, x8, lsl #2]
	lsl	x10, x28, #2
	ldr	w11, [x20, x10]
	eor	w9, w11, w9
	str	w9, [x20, x10]
	add	x28, x28, #1
	cmp	x8, #14
	b.hi	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x8, x8, #1
	cmp	x28, x27
	b.lt	LBB0_9
	b	LBB0_2
LBB0_11:
	ldr	x8, [sp, #72]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_encrypt_counter
.subsections_via_symbols
