	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_EncodeUpdate               ## -- Begin function EVP_EncodeUpdate
	.p2align	4, 0x90
_EVP_EncodeUpdate:                      ## @EVP_EncodeUpdate
	.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	$0, (%rdx)
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movl	%r8d, %r14d
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	xorl	%edi, %edi
	cmpl	$9, (%r12)
	setl	%dil
	callq	_OPENSSL_assert
	movslq	(%r12), %rcx
	movslq	4(%r12), %rdi
	movq	%rcx, %rax
	subq	%rdi, %rax
	cmpl	%r14d, %eax
	jle	LBB0_4
## %bb.3:
	addq	8(%r12), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	addl	%r14d, 4(%r12)
	jmp	LBB0_20
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_4:
	testl	%edi, %edi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	addq	8(%r12), %rdi
	movq	%rbx, %rsi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	8(%r12), %rdx
	movl	(%r12), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_evp_encodeblock_int
	movl	$0, 4(%r12)
	movslq	%eax, %r15
	addq	%r15, %r13
	movq	_EVP_ENCODE_CTX_NO_NEWLINES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r12)
	jne	LBB0_8
## %bb.7:
	movb	$10, (%r13)
	incq	%r13
	incq	%r15
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %rbx
	subl	%eax, %r14d
	jmp	LBB0_9
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_9:
	movb	$0, (%r13)
	movl	(%r12), %ecx
LBB0_10:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%ecx, %r14d
	jl	LBB0_15
## %bb.11:
	cmpq	%rax, %r15
	ja	LBB0_15
## %bb.12:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_evp_encodeblock_int
	movslq	(%r12), %rcx
	subl	%ecx, %r14d
	cltq
	addq	%rax, %r13
	addq	%rax, %r15
	movq	_EVP_ENCODE_CTX_NO_NEWLINES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r12)
	jne	LBB0_14
## %bb.13:
	movb	$10, (%r13)
	incq	%r13
	incq	%r15
LBB0_14:
	addq	%rcx, %rbx
	jmp	LBB0_9
LBB0_15:
	cmpq	%rax, %r15
	jbe	LBB0_17
## %bb.16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_17:
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.18:
	movq	8(%r12), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
LBB0_19:
	movl	%r14d, 4(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
LBB0_20:
	movl	$1, %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_ENCODE_CTX_NO_NEWLINES,4,2 ## @EVP_ENCODE_CTX_NO_NEWLINES
	.comm	_INT_MAX,8,3                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_EncodeUpdate               ; -- Begin function EVP_EncodeUpdate
	.p2align	2
_EVP_EncodeUpdate:                      ; @EVP_EncodeUpdate
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	str	wzr, [x2]
	cmp	w4, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #9
	cset	w0, lt
	bl	_OPENSSL_assert
	ldpsw	x3, x8, [x20]
	sub	x24, x3, x8
	cmp	w24, w19
	b.le	LBB0_4
; %bb.2:
	ldr	x9, [x20, #8]
	add	x0, x9, x8
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	ldr	w8, [x20, #4]
	add	w8, w8, w19
	str	w8, [x20, #4]
	b	LBB0_20
LBB0_3:
	mov	w0, #0
	b	LBB0_21
LBB0_4:
Lloh0:
	adrp	x25, _EVP_ENCODE_CTX_NO_NEWLINES@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EVP_ENCODE_CTX_NO_NEWLINES@GOTPAGEOFF]
	cbz	w8, LBB0_8
; %bb.5:
	ldr	x9, [x20, #8]
	add	x0, x9, x8
	mov	x1, x22
	mov	x2, x24
	bl	_memcpy
	add	x22, x22, x24
	sub	w19, w19, w24
	ldr	x2, [x20, #8]
	ldr	w3, [x20]
	mov	x0, x20
	mov	x1, x23
	bl	_evp_encodeblock_int
                                        ; kill: def $w0 killed $w0 def $x0
	str	wzr, [x20, #4]
	sxtw	x24, w0
	add	x23, x23, x24
	ldr	w8, [x20, #16]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #10
	strb	w8, [x23], #1
	add	x24, x24, #1
LBB0_7:
	strb	wzr, [x23]
	ldr	w3, [x20]
	b	LBB0_9
LBB0_8:
	mov	x24, #0
LBB0_9:
Lloh2:
	adrp	x26, _INT_MAX@GOTPAGE
Lloh3:
	ldr	x26, [x26, _INT_MAX@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	w19, w3
	b.lt	LBB0_15
; %bb.10:
	cmp	x24, x8
	b.hi	LBB0_15
; %bb.11:
	mov	w27, #10
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, x8
	strb	wzr, [x23]
	ldr	w3, [x20]
	ldr	x8, [x26]
	cmp	w19, w3
	ccmp	x24, x8, #2, ge
	b.hi	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_evp_encodeblock_int
                                        ; kill: def $w0 killed $w0 def $x0
	ldrsw	x8, [x20]
	sub	w19, w19, w8
	sxtw	x9, w0
	add	x23, x23, x9
	add	x24, x24, x9
	ldr	w9, [x20, #16]
	ldr	w10, [x25]
	tst	w10, w9
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	strb	w27, [x23], #1
	add	x24, x24, #1
	b	LBB0_12
LBB0_15:
	cmp	x24, x8
	b.ls	LBB0_17
; %bb.16:
	mov	w0, #0
	str	wzr, [x21]
	b	LBB0_21
LBB0_17:
	cbz	w19, LBB0_19
; %bb.18:
	ldr	x0, [x20, #8]
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
LBB0_19:
	str	w19, [x20, #4]
	str	w24, [x21]
LBB0_20:
	mov	w0, #1
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_ENCODE_CTX_NO_NEWLINES,4,2 ; @EVP_ENCODE_CTX_NO_NEWLINES
	.comm	_INT_MAX,8,3                    ; @INT_MAX
.subsections_via_symbols
