	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_aes_ctrcbc
_do_aes_ctrcbc:                         ## @do_aes_ctrcbc
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %rbx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	16(%rbp), %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-68(%rbp), %rdi
	callq	_br_aes_big_ctr_init
	leaq	-84(%rbp), %r12
	testq	%rbx, %rbx
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	je	LBB0_6
## %bb.1:
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.2:
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r13
	leaq	-68(%rbp), %r14
	leaq	-96(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%r15,%rbx), %xmm0
	xorps	-64(%rbp), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-84(%rbp), %rdi
	callq	_br_dec32be
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	movq	%r13, %rcx
	movl	$16, %r8d
	callq	_br_aes_big_ctr_run
	addq	$16, %rbx
	cmpq	16(%rbp), %rbx
	jb	LBB0_4
LBB0_5:
	leaq	-64(%rbp), %rsi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_memcpy
	movq	16(%rbp), %r14
	leaq	-84(%rbp), %r12
	movl	-72(%rbp), %r13d                ## 4-byte Reload
LBB0_6:
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.7:
	leaq	-64(%rbp), %rdi
	movl	$16, %edx
	callq	_memcpy
	movq	%r14, %r12
	testq	%r14, %r14
	je	LBB0_13
## %bb.8:
	xorl	%ebx, %ebx
	leaq	-68(%rbp), %r13
	leaq	-64(%rbp), %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$16, %rbx
	cmpq	%r12, %rbx
	jae	LBB0_13
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	leaq	-52(%rbp), %rdi
	callq	_br_dec32be
	leaq	(%r15,%rbx), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	movl	$16, %r8d
	callq	_br_aes_big_ctr_run
	movl	$15, %eax
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %edx
	addl	$-1, %eax
	setb	%cl
	incb	-64(%rbp,%rdx)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	testb	%cl, %cl
	jne	LBB0_10
	jmp	LBB0_12
LBB0_13:
	leaq	-64(%rbp), %rsi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	$16, %edx
	callq	_memcpy
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%r12, %r14
	leaq	-84(%rbp), %r12
	movl	-72(%rbp), %r13d                ## 4-byte Reload
LBB0_14:
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.15:
	testl	%r13d, %r13d
	je	LBB0_20
## %bb.16:
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	testq	%r14, %r14
	je	LBB0_19
## %bb.17:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r13
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movups	(%r15,%rbx), %xmm0
	xorps	-64(%rbp), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_br_dec32be
	leaq	-68(%rbp), %rdi
	leaq	-96(%rbp), %rsi
	movl	%eax, %edx
	movq	%r13, %rcx
	movl	$16, %r8d
	callq	_br_aes_big_ctr_run
	addq	$16, %rbx
	cmpq	%r14, %rbx
	jb	LBB0_18
LBB0_19:
	leaq	-64(%rbp), %rsi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	$16, %edx
	callq	_memcpy
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_aes_ctrcbc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_aes_ctrcbc
_do_aes_ctrcbc:                         ; @do_aes_ctrcbc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x6
	mov	x21, x5
	mov	x19, x4
	mov	x24, x3
	mov	x23, x2
	mov	x2, x1
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	add	x0, sp, #28
	bl	_br_aes_big_ctr_init
	mov	x8, sp
	orr	x22, x8, #0xc
	cbz	x19, LBB0_6
; %bb.1:
	cbnz	w23, LBB0_6
; %bb.2:
	add	x0, sp, #32
	mov	x1, x19
	mov	w2, #16
	bl	_memcpy
	cbz	x20, LBB0_5
; %bb.3:
	mov	x25, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q0, [sp, #32]
	ldr	q1, [x21, x25]
	eor.16b	v0, v1, v0
	str	q0, [sp]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, x22
	bl	_br_dec32be
	mov	x2, x0
	add	x0, sp, #28
	mov	x1, sp
	add	x3, sp, #32
	mov	w4, #16
	bl	_br_aes_big_ctr_run
	add	x25, x25, #16
	cmp	x25, x20
	b.lo	LBB0_4
LBB0_5:
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #16
	bl	_memcpy
LBB0_6:
	cbz	x24, LBB0_14
; %bb.7:
	add	x26, sp, #32
	add	x0, sp, #32
	mov	x1, x24
	mov	w2, #16
	bl	_memcpy
	cbz	x20, LBB0_13
; %bb.8:
	mov	x27, #0
	add	x8, sp, #32
	add	x25, x8, #12
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x27, x27, #16
	cmp	x27, x20
	b.hs	LBB0_13
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x25
	bl	_br_dec32be
	mov	x2, x0
	add	x3, x21, x27
	add	x0, sp, #28
	add	x1, sp, #32
	mov	w4, #16
	bl	_br_aes_big_ctr_run
	mov	w8, #15
LBB0_11:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w9, w8
	ldrb	w10, [x26, x9]
	add	w10, w10, #1
	strb	w10, [x26, x9]
	subs	w8, w8, #1
	cset	w9, hs
	tbz	w10, #8, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	tbnz	w9, #0, LBB0_11
	b	LBB0_9
LBB0_13:
	add	x1, sp, #32
	mov	x0, x24
	mov	w2, #16
	bl	_memcpy
LBB0_14:
	cbz	x19, LBB0_20
; %bb.15:
	cbz	w23, LBB0_20
; %bb.16:
	add	x0, sp, #32
	mov	x1, x19
	mov	w2, #16
	bl	_memcpy
	cbz	x20, LBB0_19
; %bb.17:
	mov	x23, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	q0, [sp, #32]
	ldr	q1, [x21, x23]
	eor.16b	v0, v1, v0
	str	q0, [sp]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, x22
	bl	_br_dec32be
	mov	x2, x0
	add	x0, sp, #28
	mov	x1, sp
	add	x3, sp, #32
	mov	w4, #16
	bl	_br_aes_big_ctr_run
	add	x23, x23, #16
	cmp	x23, x20
	b.lo	LBB0_18
LBB0_19:
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #16
	bl	_memcpy
LBB0_20:
	ldr	x8, [sp, #56]
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_22
; %bb.21:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_aes_ctrcbc
.subsections_via_symbols
