	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aes_gctr
_aes_gctr:                              ## @aes_gctr
	.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	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	testq	%r15, %r15
	je	LBB0_22
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	cmpq	$16, %r15
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jae	LBB0_3
## %bb.2:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_3:
	shrq	$4, %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_aes_encrypt
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_xor_block
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rbx
	leaq	(%r14,%rax,4), %r14
	movq	%r13, %rdi
	callq	_inc32
	decq	%r15
	jne	LBB0_4
LBB0_5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	subq	%rbx, %r15
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_22
## %bb.6:
	sarq	$2, %r15
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_aes_encrypt
	cmpq	$2, %r15
	movl	$1, %r8d
	cmovaeq	%r15, %r8
	cmpq	$8, %r8
	jae	LBB0_14
## %bb.7:
	xorl	%ecx, %ecx
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_9:
	movq	%rcx, %rdx
	notq	%rdx
	addq	%r8, %rdx
	movq	%r8, %rsi
	andq	$3, %rsi
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edi
	xorl	(%rbx), %edi
	addq	$4, %rbx
	movl	%edi, (%r14)
	addq	$4, %r14
	incq	%rcx
	decq	%rsi
	jne	LBB0_10
LBB0_11:
	cmpq	$3, %rdx
	jb	LBB0_22
## %bb.12:
	subq	%rcx, %r8
	leaq	(%rax,%rcx,4), %rcx
	addq	$12, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	-12(%rcx,%rdx,4), %esi
	xorl	(%rbx,%rdx,4), %esi
	movl	%esi, (%r14,%rdx,4)
	movl	-8(%rcx,%rdx,4), %esi
	xorl	4(%rbx,%rdx,4), %esi
	movl	%esi, 4(%r14,%rdx,4)
	movl	-4(%rcx,%rdx,4), %esi
	xorl	8(%rbx,%rdx,4), %esi
	movl	%esi, 8(%r14,%rdx,4)
	movl	(%rcx,%rdx,4), %esi
	xorl	12(%rbx,%rdx,4), %esi
	movl	%esi, 12(%r14,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_13
	jmp	LBB0_22
LBB0_14:
	movq	%r14, %rdx
	subq	%rbx, %rdx
	xorl	%ecx, %ecx
	cmpq	$32, %rdx
	jb	LBB0_8
## %bb.15:
	movq	%r14, %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%rax, %rdx
	cmpq	$32, %rdx
	jb	LBB0_9
## %bb.16:
	movq	%r8, %rcx
	andq	$-8, %rcx
	leaq	-8(%rcx), %rdx
	movq	%rdx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rdx, %rdx
	je	LBB0_26
## %bb.17:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rdx,4), %xmm0
	movups	16(%rbx,%rdx,4), %xmm1
	xorps	(%rax,%rdx,4), %xmm0
	xorps	16(%rax,%rdx,4), %xmm1
	movups	%xmm0, (%r14,%rdx,4)
	movups	%xmm1, 16(%r14,%rdx,4)
	movups	32(%rbx,%rdx,4), %xmm0
	movups	48(%rbx,%rdx,4), %xmm1
	xorps	32(%rax,%rdx,4), %xmm0
	xorps	48(%rax,%rdx,4), %xmm1
	movups	%xmm0, 32(%r14,%rdx,4)
	movups	%xmm1, 48(%r14,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rdi
	jne	LBB0_18
## %bb.19:
	testb	$1, %sil
	je	LBB0_21
LBB0_20:
	movups	(%rbx,%rdx,4), %xmm0
	movups	16(%rbx,%rdx,4), %xmm1
	xorps	(%rax,%rdx,4), %xmm0
	xorps	16(%rax,%rdx,4), %xmm1
	movups	%xmm0, (%r14,%rdx,4)
	movups	%xmm1, 16(%r14,%rdx,4)
LBB0_21:
	cmpq	%rcx, %r8
	jne	LBB0_25
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	leaq	(%r14,%rcx,4), %r14
	leaq	(%rbx,%rcx,4), %rbx
	jmp	LBB0_9
LBB0_26:
	xorl	%edx, %edx
	testb	$1, %sil
	jne	LBB0_20
	jmp	LBB0_21
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.no_dead_strip	_aes_gctr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aes_gctr
_aes_gctr:                              ; @aes_gctr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x26, _AES_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldr	w2, [x26]
	lsl	x8, x2, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x25, x9, x12
	mov	sp, x25
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x19, x8, x12
	mov	sp, x19
	cbz	x3, LBB0_11
; %bb.1:
	mov	x0, x25
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	cmp	x23, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x22, x24
	b	LBB0_5
LBB0_3:
	lsr	x27, x23, #4
	mov	x22, x24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x25
	mov	x2, x20
	bl	_aes_encrypt
	mov	x0, x20
	mov	x1, x22
	bl	_xor_block
	ldrsw	x8, [x26]
	lsl	x8, x8, #2
	add	x22, x22, x8
	add	x20, x20, x8
	mov	x0, x25
	bl	_inc32
	subs	x27, x27, #1
	b.ne	LBB0_4
LBB0_5:
	add	x8, x24, x23, lsl #2
	subs	x8, x8, x22
	b.eq	LBB0_11
; %bb.6:
	asr	x23, x8, #2
	mov	x0, x21
	mov	x1, x25
	mov	x2, x19
	bl	_aes_encrypt
	cmp	x23, #1
	csinc	x10, x23, xzr, hi
	cmp	x10, #16
	b.hs	LBB0_13
; %bb.7:
	mov	x11, #0
LBB0_8:
	mov	x8, x20
	mov	x9, x22
LBB0_9:
	sub	x10, x10, x11
	add	x11, x19, x11, lsl #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9], #4
	ldr	w13, [x11], #4
	eor	w12, w13, w12
	str	w12, [x8], #4
	subs	x10, x10, #1
	b.ne	LBB0_10
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.12:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x11, #0
	sub	x8, x20, x22
	cmp	x8, #64
	b.lo	LBB0_8
; %bb.14:
	sub	x8, x20, x19
	cmp	x8, #64
	b.lo	LBB0_8
; %bb.15:
	and	x11, x10, #0xfffffffffffffff0
	lsl	x9, x11, #2
	add	x8, x20, x9
	add	x9, x22, x9
	add	x12, x20, #32
	add	x13, x19, #32
	add	x14, x22, #32
	mov	x15, x11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x15, x15, #16
	b.ne	LBB0_16
; %bb.17:
	cmp	x10, x11
	b.ne	LBB0_9
	b	LBB0_11
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.no_dead_strip	_aes_gctr
.subsections_via_symbols
