	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_DecryptFinal_ex            ## -- Begin function EVP_DecryptFinal_ex
	.p2align	4, 0x90
_EVP_DecryptFinal_ex:                   ## @EVP_DecryptFinal_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 40(%rdi)
	je	LBB0_3
## %bb.1:
	movq	_EVP_F_EVP_DECRYPTFINAL_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_INVALID_OPERATION@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_EVPerr
	xorl	%ebx, %ebx
	jmp	LBB0_29
LBB0_3:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$0, (%rdx)
	movq	16(%rdi), %rax
	movq	_EVP_CIPH_FLAG_CUSTOM_CIPHER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*8(%rax)
	testl	%eax, %eax
	js	LBB0_29
LBB0_27:
	movl	%eax, (%r15)
LBB0_28:
	movl	$1, %ebx
LBB0_29:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EVP_CIPH_NO_PADDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r12)
	je	LBB0_8
## %bb.6:
	cmpq	$0, 32(%r12)
	je	LBB0_28
## %bb.7:
	movq	_EVP_F_EVP_DECRYPTFINAL_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movl	16(%rax), %ebx
	xorl	%eax, %eax
	cmpl	$2, %ebx
	jb	LBB0_27
## %bb.9:
	cmpq	$0, 32(%r12)
	je	LBB0_10
LBB0_11:
	movq	_EVP_F_EVP_DECRYPTFINAL_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_WRONG_FINAL_BLOCK_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	cmpl	$0, 24(%r12)
	je	LBB0_11
## %bb.12:
	xorl	%edi, %edi
	cmpl	$9, %ebx
	setb	%dil
	callq	_OPENSSL_assert
	movq	8(%r12), %rcx
	leal	-1(%rbx), %eax
	movl	(%rcx,%rax,4), %edx
	testl	%edx, %edx
	je	LBB0_18
## %bb.13:
	cmpl	%ebx, %edx
	jg	LBB0_18
## %bb.14:
	testl	%edx, %edx
	jle	LBB0_19
## %bb.15:
	xorl	%esi, %esi
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rax,%rsi), %edi
	cmpl	%edx, (%rcx,%rdi,4)
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_17 Depth=1
	decl	%esi
	movl	%edx, %edi
	addl	%esi, %edi
	jne	LBB0_17
LBB0_19:
	movq	16(%r12), %rax
	movl	16(%rax), %eax
	subl	%edx, %eax
	testl	%eax, %eax
	jle	LBB0_27
## %bb.20:
	movb	(%rcx), %cl
	movb	%cl, (%r14)
	cmpl	$1, %eax
	je	LBB0_27
## %bb.21:
	movl	%eax, %edi
	leaq	-1(%rdi), %rsi
	addq	$-2, %rdi
	movl	%esi, %ecx
	andl	$3, %ecx
	movl	$1, %edx
	cmpq	$3, %rdi
	jb	LBB0_25
## %bb.22:
	andq	$-4, %rsi
	xorl	%edx, %edx
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	movzbl	4(%rdi,%rdx,4), %ebx
	movb	%bl, 1(%r14,%rdx)
	movq	8(%r12), %rdi
	movzbl	8(%rdi,%rdx,4), %ebx
	movb	%bl, 2(%r14,%rdx)
	movq	8(%r12), %rdi
	movzbl	12(%rdi,%rdx,4), %ebx
	movb	%bl, 3(%r14,%rdx)
	movq	8(%r12), %rdi
	movzbl	16(%rdi,%rdx,4), %ebx
	movb	%bl, 4(%r14,%rdx)
	addq	$4, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_23
## %bb.24:
	incq	%rdx
LBB0_25:
	testq	%rcx, %rcx
	je	LBB0_27
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rsi
	movzbl	(%rsi,%rdx,4), %ebx
	movb	%bl, (%r14,%rdx)
	incq	%rdx
	decq	%rcx
	jne	LBB0_26
	jmp	LBB0_27
LBB0_18:
	movq	_EVP_F_EVP_DECRYPTFINAL_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_BAD_DECRYPT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_F_EVP_DECRYPTFINAL_EX,4,2  ## @EVP_F_EVP_DECRYPTFINAL_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
	.comm	_EVP_R_WRONG_FINAL_BLOCK_LENGTH,4,2 ## @EVP_R_WRONG_FINAL_BLOCK_LENGTH
	.comm	_EVP_R_BAD_DECRYPT,4,2          ## @EVP_R_BAD_DECRYPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_DecryptFinal_ex            ; -- Begin function EVP_DecryptFinal_ex
	.p2align	2
_EVP_DecryptFinal_ex:                   ; @EVP_DecryptFinal_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	x8, [x0, #40]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EVP_F_EVP_DECRYPTFINAL_EX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_F_EVP_DECRYPTFINAL_EX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EVP_R_INVALID_OPERATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_R_INVALID_OPERATION@GOTPAGEOFF]
LBB0_2:
	ldr	w1, [x8]
	bl	_EVPerr
LBB0_3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	wzr, [x2]
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
Lloh5:
	adrp	x10, _EVP_CIPH_FLAG_CUSTOM_CIPHER@GOTPAGE
Lloh6:
	ldr	x10, [x10, _EVP_CIPH_FLAG_CUSTOM_CIPHER@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.5:
	ldr	x8, [x8, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	mov	w3, #0
	blr	x8
	tbnz	w0, #31, LBB0_3
; %bb.6:
	str	w0, [x19]
LBB0_7:
	mov	w0, #1
LBB0_8:
	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_9:
	ldr	w9, [x21]
Lloh8:
	adrp	x10, _EVP_CIPH_NO_PADDING@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EVP_CIPH_NO_PADDING@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.10:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_7
; %bb.11:
Lloh11:
	adrp	x8, _EVP_F_EVP_DECRYPTFINAL_EX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EVP_F_EVP_DECRYPTFINAL_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_2
LBB0_12:
	ldr	w22, [x8, #16]
	cmp	w22, #2
	b.lo	LBB0_15
; %bb.13:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_17
LBB0_14:
Lloh16:
	adrp	x8, _EVP_F_EVP_DECRYPTFINAL_EX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EVP_F_EVP_DECRYPTFINAL_EX@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _EVP_R_WRONG_FINAL_BLOCK_LENGTH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EVP_R_WRONG_FINAL_BLOCK_LENGTH@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
	mov	w9, #0
LBB0_16:
	str	w9, [x19]
	b	LBB0_7
LBB0_17:
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_14
; %bb.18:
	cmp	w22, #9
	cset	w0, lo
	bl	_OPENSSL_assert
	ldr	x8, [x21, #8]
	sub	w10, w22, #1
	ldr	w9, [x8, w10, uxtw #2]
	cmp	w9, #0
	ccmp	w9, w22, #0, ne
	b.le	LBB0_20
LBB0_19:
Lloh21:
	adrp	x8, _EVP_F_EVP_DECRYPTFINAL_EX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EVP_F_EVP_DECRYPTFINAL_EX@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _EVP_R_BAD_DECRYPT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EVP_R_BAD_DECRYPT@GOTPAGEOFF]
	b	LBB0_2
LBB0_20:
	cmp	w9, #1
	b.lt	LBB0_24
; %bb.21:
	mov	w11, #0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	add	w12, w10, w11
	ldr	w12, [x8, w12, uxtw #2]
	cmp	w12, w9
	b.ne	LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	sub	w11, w11, #1
	cmn	w9, w11
	b.ne	LBB0_22
LBB0_24:
	ldr	x10, [x21, #16]
	ldr	w10, [x10, #16]
	sub	w9, w10, w9
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.25:
	ldr	w8, [x8]
	strb	w8, [x20]
	cmp	w9, #1
	b.eq	LBB0_16
; %bb.26:
	mov	w8, #1
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21, #8]
	ldr	w10, [x10, x8, lsl #2]
	strb	w10, [x20, x8]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_27
	b	LBB0_16
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_F_EVP_DECRYPTFINAL_EX,4,2  ; @EVP_F_EVP_DECRYPTFINAL_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
	.comm	_EVP_R_WRONG_FINAL_BLOCK_LENGTH,4,2 ; @EVP_R_WRONG_FINAL_BLOCK_LENGTH
	.comm	_EVP_R_BAD_DECRYPT,4,2          ; @EVP_R_BAD_DECRYPT
.subsections_via_symbols
