	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evp_EncryptDecryptUpdate
_evp_EncryptDecryptUpdate:              ## @evp_EncryptDecryptUpdate
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_EVP_CIPH_FLAG_LENGTH_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVP_CIPHER_CTX_test_flags
	movl	%ebx, %edx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leal	7(%rbx), %eax
	leal	14(%rbx), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
LBB0_2:
	movq	16(%r15), %rax
	movl	(%rax), %r14d
	movq	_EVP_CIPH_FLAG_CUSTOM_CIPHER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_9
## %bb.3:
	cmpl	$1, %r14d
	jne	LBB0_6
## %bb.4:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_is_partially_overlapping
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	movq	16(%r15), %rax
LBB0_6:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	*8(%rax)
	testl	%eax, %eax
	js	LBB0_12
## %bb.7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_8:
	movl	$1, %eax
	jmp	LBB0_14
LBB0_9:
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.10:
	movslq	(%r15), %rdi
	addq	%r13, %rdi
	movq	%r12, %rsi
	callq	_is_partially_overlapping
	testq	%rax, %rax
	je	LBB0_15
LBB0_11:
	movq	_EVP_F_EVP_ENCRYPTDECRYPTUPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_PARTIALLY_OVERLAPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVPerr
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	sete	%al
	movzbl	%al, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movslq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	$9, %r14d
	setl	%dil
	callq	_OPENSSL_assert
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %eax
	subl	%edi, %eax
	addq	8(%r15), %rdi
	cmpl	%ebx, %eax
	jle	LBB0_20
## %bb.17:
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	addl	%ebx, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_8
LBB0_18:
	testl	%ebx, 4(%r15)
	je	LBB0_28
## %bb.19:
	xorl	%edi, %edi
	cmpl	$9, %r14d
	setl	%dil
	callq	_OPENSSL_assert
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_20:
	movq	%r12, %rsi
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	callq	_memcpy
	movq	8(%r15), %rdx
	movq	16(%r15), %rax
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %ecx
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_12
## %bb.21:
	movslq	%r14d, %rax
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movslq	%edx, %rcx
	addq	%rcx, %r12
	subl	%edx, %ebx
	addq	%rax, %r13
	movl	%r14d, %eax
LBB0_22:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	decl	%r14d
	andl	%ebx, %r14d
	subl	%r14d, %ebx
	jle	LBB0_25
## %bb.23:
	movq	16(%r15), %rax
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_12
## %bb.24:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, (%rax)
LBB0_25:
	testl	%r14d, %r14d
	je	LBB0_27
## %bb.26:
	movq	8(%r15), %rdi
	movslq	%ebx, %rax
	addq	%rax, %r12
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_memcpy
LBB0_27:
	movl	%r14d, (%r15)
	jmp	LBB0_8
LBB0_28:
	movq	16(%r15), %rax
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_32
## %bb.29:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	jmp	LBB0_8
LBB0_32:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_CIPH_FLAG_LENGTH_BITS,4,2  ## @EVP_CIPH_FLAG_LENGTH_BITS
	.comm	_EVP_CIPH_FLAG_CUSTOM_CIPHER,4,2 ## @EVP_CIPH_FLAG_CUSTOM_CIPHER
	.comm	_EVP_F_EVP_ENCRYPTDECRYPTUPDATE,4,2 ## @EVP_F_EVP_ENCRYPTDECRYPTUPDATE
	.comm	_EVP_R_PARTIALLY_OVERLAPPING,4,2 ## @EVP_R_PARTIALLY_OVERLAPPING
	.no_dead_strip	_evp_EncryptDecryptUpdate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evp_EncryptDecryptUpdate
_evp_EncryptDecryptUpdate:              ; @evp_EncryptDecryptUpdate
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EVP_CIPH_FLAG_LENGTH_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_CIPH_FLAG_LENGTH_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_EVP_CIPHER_CTX_test_flags
	add	w8, w22, #7
	add	w9, w22, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	x0, #0
	csel	w2, w22, w8, eq
	ldr	x8, [x20, #16]
	ldp	w24, w9, [x8]
Lloh3:
	adrp	x10, _EVP_CIPH_FLAG_CUSTOM_CIPHER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EVP_CIPH_FLAG_CUSTOM_CIPHER@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.1:
	cmp	w24, #1
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x23
	mov	x1, x21
	bl	_is_partially_overlapping
	cbnz	x0, LBB0_9
; %bb.3:
	ldr	x8, [x20, #16]
LBB0_4:
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	blr	x8
	tbnz	w0, #31, LBB0_10
; %bb.5:
	str	w0, [x19]
LBB0_6:
	mov	w0, #1
	b	LBB0_12
LBB0_7:
	cmp	w22, #0
	b.le	LBB0_11
; %bb.8:
	ldrsw	x8, [x20]
	add	x0, x23, x8
	mov	x1, x21
	bl	_is_partially_overlapping
	cbz	x0, LBB0_13
LBB0_9:
Lloh6:
	adrp	x8, _EVP_F_EVP_ENCRYPTDECRYPTUPDATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_F_EVP_ENCRYPTDECRYPTUPDATE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _EVP_R_PARTIALLY_OVERLAPPING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVP_R_PARTIALLY_OVERLAPPING@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_EVPerr
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	str	wzr, [x19]
	cset	w0, eq
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldrsw	x25, [x20]
	cbz	w25, LBB0_16
; %bb.14:
	cmp	w24, #9
	cset	w0, lt
	bl	_OPENSSL_assert
	ldr	x8, [x20, #8]
	add	x0, x8, x25
	sub	w25, w24, w25
	cmp	w25, w22
	b.le	LBB0_18
; %bb.15:
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	ldr	w8, [x20]
	add	w8, w8, w22
	str	w8, [x20]
	str	wzr, [x19]
	b	LBB0_6
LBB0_16:
	ldr	w8, [x20, #4]
	tst	w8, w22
	b.eq	LBB0_26
; %bb.17:
	cmp	w24, #9
	cset	w0, lt
	bl	_OPENSSL_assert
	mov	w8, #0
	b	LBB0_20
LBB0_18:
	mov	x1, x21
	mov	x2, x25
	bl	_memcpy
	ldp	x2, x8, [x20, #8]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x24
	blr	x8
	cbz	w0, LBB0_12
; %bb.19:
	sxtw	x8, w24
	add	x21, x21, w25, sxtw
	sub	w22, w22, w25
	add	x23, x23, x8
	mov	x8, x24
LBB0_20:
	str	w8, [x19]
	sub	w8, w24, #1
	and	w24, w22, w8
	sub	w22, w22, w24
	cmp	w22, #1
	b.lt	LBB0_23
; %bb.21:
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	blr	x8
	cbz	w0, LBB0_12
; %bb.22:
	ldr	w8, [x19]
	add	w8, w8, w22
	str	w8, [x19]
LBB0_23:
	cbz	w24, LBB0_25
; %bb.24:
	ldr	x0, [x20, #8]
	add	x1, x21, w22, sxtw
	mov	x2, x24
	bl	_memcpy
LBB0_25:
	str	w24, [x20]
	b	LBB0_6
LBB0_26:
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	blr	x8
	cbz	w0, LBB0_28
; %bb.27:
	str	w22, [x19]
	b	LBB0_6
LBB0_28:
	str	wzr, [x19]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_CIPH_FLAG_LENGTH_BITS,4,2  ; @EVP_CIPH_FLAG_LENGTH_BITS
	.comm	_EVP_CIPH_FLAG_CUSTOM_CIPHER,4,2 ; @EVP_CIPH_FLAG_CUSTOM_CIPHER
	.comm	_EVP_F_EVP_ENCRYPTDECRYPTUPDATE,4,2 ; @EVP_F_EVP_ENCRYPTDECRYPTUPDATE
	.comm	_EVP_R_PARTIALLY_OVERLAPPING,4,2 ; @EVP_R_PARTIALLY_OVERLAPPING
	.no_dead_strip	_evp_EncryptDecryptUpdate
.subsections_via_symbols
