	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_EncryptFinal_ex            ## -- Begin function EVP_EncryptFinal_ex
	.p2align	4, 0x90
_EVP_EncryptFinal_ex:                   ## @EVP_EncryptFinal_ex
	.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
	cmpl	$0, 24(%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	_EVP_CIPH_FLAG_CUSTOM_CIPHER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*8(%rax)
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movl	%eax, (%r14)
	jmp	LBB0_8
LBB0_4:
	movq	_EVP_F_EVP_ENCRYPTFINAL_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_INVALID_OPERATION@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	callq	_EVPerr
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movl	16(%rax), %r12d
	xorl	%edi, %edi
	cmpq	$9, %r12
	setb	%dil
	callq	_OPENSSL_assert
	cmpq	$1, %r12
	jne	LBB0_10
LBB0_7:
	movl	$0, (%r14)
LBB0_8:
	movl	$1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r13), %eax
	movq	_EVP_CIPH_NO_PADDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%r13)
	je	LBB0_13
## %bb.11:
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:
	movq	_EVP_F_EVP_ENCRYPTFINAL_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	movl	%r12d, %ecx
	movq	8(%r13), %rdx
	subl	%eax, %ecx
	jbe	LBB0_25
## %bb.14:
	movq	%r12, %r9
	subq	%rax, %r9
	cmpq	$8, %r9
	jb	LBB0_24
## %bb.15:
	movq	%r9, %r8
	andq	$-8, %r8
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r8), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	movl	%ebx, %r10d
	andl	$3, %r10d
	cmpq	$24, %rsi
	jae	LBB0_17
## %bb.16:
	xorl	%esi, %esi
	jmp	LBB0_19
LBB0_17:
	andq	$-4, %rbx
	leaq	(%rdx,%rax,4), %rdi
	addq	$112, %rdi
	xorl	%esi, %esi
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -112(%rdi,%rsi,4)
	movdqu	%xmm0, -96(%rdi,%rsi,4)
	movdqu	%xmm0, -80(%rdi,%rsi,4)
	movdqu	%xmm0, -64(%rdi,%rsi,4)
	movdqu	%xmm0, -48(%rdi,%rsi,4)
	movdqu	%xmm0, -32(%rdi,%rsi,4)
	movdqu	%xmm0, -16(%rdi,%rsi,4)
	movdqu	%xmm0, (%rdi,%rsi,4)
	addq	$32, %rsi
	addq	$-4, %rbx
	jne	LBB0_18
LBB0_19:
	testq	%r10, %r10
	je	LBB0_22
## %bb.20:
	addq	%rax, %rsi
	leaq	(%rdx,%rsi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %r10
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rsi,%rdi)
	movdqu	%xmm0, (%rsi,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r10
	jne	LBB0_21
LBB0_22:
	cmpq	%r8, %r9
	je	LBB0_25
## %bb.23:
	addq	%r8, %rax
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rdx,%rax,4)
	incq	%rax
	cmpq	%rax, %r12
	jne	LBB0_24
LBB0_25:
	movq	16(%r13), %rax
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %ecx
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	movl	%eax, %ebx
	movl	%r12d, (%r14)
	jmp	LBB0_9
LBB0_27:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_F_EVP_ENCRYPTFINAL_EX,4,2  ## @EVP_F_EVP_ENCRYPTFINAL_EX
	.comm	_EVP_R_INVALID_OPERATION,4,2    ## @EVP_R_INVALID_OPERATION
	.comm	_EVP_CIPH_FLAG_CUSTOM_CIPHER,4,2 ## @EVP_CIPH_FLAG_CUSTOM_CIPHER
	.comm	_EVP_CIPH_NO_PADDING,4,2        ## @EVP_CIPH_NO_PADDING
	.comm	_EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH,4,2 ## @EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_EncryptFinal_ex            ; -- Begin function EVP_EncryptFinal_ex
	.p2align	2
_EVP_EncryptFinal_ex:                   ; @EVP_EncryptFinal_ex
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _EVP_CIPH_FLAG_CUSTOM_CIPHER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EVP_CIPH_FLAG_CUSTOM_CIPHER@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.2:
	ldr	x8, [x8, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	mov	w3, #0
	blr	x8
	tbnz	w0, #31, LBB0_6
; %bb.3:
	str	w0, [x19]
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x8, _EVP_F_EVP_ENCRYPTFINAL_EX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_F_EVP_ENCRYPTFINAL_EX@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _EVP_R_INVALID_OPERATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_R_INVALID_OPERATION@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	bl	_EVPerr
LBB0_6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	ldr	w22, [x8, #16]
	cmp	x22, #9
	cset	w0, lo
	bl	_OPENSSL_assert
	cmp	w22, #1
	b.ne	LBB0_11
LBB0_8:
	str	wzr, [x19]
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldp	w11, w8, [x21]
Lloh8:
	adrp	x9, _EVP_CIPH_NO_PADDING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EVP_CIPH_NO_PADDING@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
	cbz	w11, LBB0_8
; %bb.13:
Lloh11:
	adrp	x8, _EVP_F_EVP_ENCRYPTFINAL_EX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EVP_F_EVP_ENCRYPTFINAL_EX@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH@GOTPAGEOFF]
	b	LBB0_5
LBB0_14:
	ldr	x2, [x21, #8]
	subs	w8, w22, w11
	b.ls	LBB0_22
; %bb.15:
	sub	x10, x22, x11
	cmp	x10, #16
	b.hs	LBB0_17
; %bb.16:
	mov	x9, x11
	b	LBB0_20
LBB0_17:
	and	x12, x10, #0xfffffffffffffff0
	add	x9, x12, x11
	dup.4s	v0, w8
	add	x11, x2, x11, lsl #2
	add	x11, x11, #32
	mov	x13, x12
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x11, #-32]
	stp	q0, q0, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_18
; %bb.19:
	cmp	x10, x12
	b.eq	LBB0_22
LBB0_20:
	add	x10, x2, x9, lsl #2
	sub	x9, x22, x9
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_21
LBB0_22:
	ldr	x8, [x21, #16]
	ldr	x8, [x8, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	blr	x8
	cbz	w0, LBB0_10
; %bb.23:
	str	w22, [x19]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_F_EVP_ENCRYPTFINAL_EX,4,2  ; @EVP_F_EVP_ENCRYPTFINAL_EX
	.comm	_EVP_R_INVALID_OPERATION,4,2    ; @EVP_R_INVALID_OPERATION
	.comm	_EVP_CIPH_FLAG_CUSTOM_CIPHER,4,2 ; @EVP_CIPH_FLAG_CUSTOM_CIPHER
	.comm	_EVP_CIPH_NO_PADDING,4,2        ; @EVP_CIPH_NO_PADDING
	.comm	_EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH,4,2 ; @EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH
.subsections_via_symbols
