	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctr_do_cipher
_ctr_do_cipher:                         ## @ctr_do_cipher
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_EVP_CIPHER_CTX_get_cipher_data
	movq	%rax, %r15
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rsi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14), %eax
	movq	8(%r15), %rcx
	xorb	(%rcx,%rdx,4), %al
	movb	%al, (%r13)
	movq	(%r15), %rax
	incq	%rax
	movl	16(%r15), %ecx
	movslq	%ecx, %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	incq	%r13
	leaq	-1(%rsi), %rbx
	movq	%rdx, (%r15)
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$1, %rsi
	movq	%rbx, %rsi
	jne	LBB0_4
	jmp	LBB0_9
LBB0_2:
	movl	16(%r15), %ecx
LBB0_9:
	movl	%ecx, %eax
	cmpq	%rax, %rbx
	jbe	LBB0_10
## %bb.11:
	movslq	%ecx, %rsi
	movq	%rbx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_12
## %bb.13:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, %r12
	jmp	LBB0_14
LBB0_10:
	movq	%rbx, %r12
	testq	%r12, %r12
	jne	LBB0_18
	jmp	LBB0_24
LBB0_12:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r12d
LBB0_14:
	subq	%r12, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_cipher_do_cipher
	testl	%eax, %eax
	jle	LBB0_15
## %bb.16:
	addq	%rbx, %r13
	addq	%rbx, %r14
	testq	%r12, %r12
	je	LBB0_24
LBB0_18:
	movq	8(%r15), %rdi
	movslq	16(%r15), %rdx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r15), %rdx
	movslq	16(%r15), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, %rsi
	callq	_cipher_do_cipher
	testl	%eax, %eax
	jle	LBB0_25
## %bb.19:
	movq	(%r15), %rcx
	testb	$1, %r12b
	jne	LBB0_21
## %bb.20:
	movq	%r12, %rax
	cmpq	$1, %r12
	jne	LBB0_23
	jmp	LBB0_24
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_21:
	leaq	-1(%r12), %rax
	movb	(%r14,%rcx), %dl
	movq	8(%r15), %rsi
	xorb	(%rsi,%rcx,4), %dl
	movb	%dl, (%r13,%rcx)
	movq	(%r15), %rcx
	incq	%rcx
	movq	%rcx, (%r15)
	cmpq	$1, %r12
	je	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rcx), %edx
	movq	8(%r15), %rsi
	xorb	(%rsi,%rcx,4), %dl
	movb	%dl, (%r13,%rcx)
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, (%r15)
	movzbl	1(%r14,%rcx), %ebx
	xorb	4(%rdx,%rcx,4), %bl
	movb	%bl, 1(%r13,%rcx)
	movq	(%r15), %rcx
	incq	%rcx
	movq	%rcx, (%r15)
	addq	$-2, %rax
	jne	LBB0_23
LBB0_24:
	movl	$1, %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ctr_do_cipher
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctr_do_cipher
_ctr_do_cipher:                         ; @ctr_do_cipher
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	bl	_EVP_CIPHER_CTX_get_cipher_data
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, #0
	ccmp	x22, #0, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21, #16]
	cmp	x22, w8, uxtw
	b.hi	LBB0_5
LBB0_2:
	cbnz	x22, LBB0_7
	b	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x19], #1
	ldr	x10, [x21, #8]
	ldr	w8, [x10, x8, lsl #2]
	eor	w8, w9, w8
	strb	w8, [x20], #1
	ldr	x8, [x21]
	add	x8, x8, #1
	ldrsw	x9, [x21, #16]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	cmp	x8, #0
	ccmp	x22, #1, #4, ne
	sub	x22, x22, #1
	str	x8, [x21]
	b.ne	LBB0_3
; %bb.4:
	mov	x8, x9
	cmp	x22, w8, uxtw
	b.ls	LBB0_2
LBB0_5:
	sxtw	x8, w8
	udiv	x9, x22, x8
	mul	x24, x9, x8
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	mov	x3, x24
	bl	_cipher_do_cipher
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.6:
	sub	x22, x22, x24
	add	x20, x20, x24
	add	x19, x19, x24
	cbz	x22, LBB0_10
LBB0_7:
	ldr	x0, [x21, #8]
	ldrsw	x2, [x21, #16]
	mov	w1, #0
	bl	_memset
	ldr	x1, [x21, #8]
	ldrsw	x3, [x21, #16]
	mov	x0, x23
	mov	x2, x1
	bl	_cipher_do_cipher
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.8:
	ldr	x8, [x21]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x19, x8]
	ldr	x10, [x21, #8]
	ldr	w10, [x10, x8, lsl #2]
	eor	w9, w9, w10
	strb	w9, [x20, x8]
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	subs	x22, x22, #1
	b.ne	LBB0_9
LBB0_10:
	mov	w0, #1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ctr_do_cipher
.subsections_via_symbols
