	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enc_write
_enc_write:                             ## @enc_write
	.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	%edx, %r12d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_BIO_get_data
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_BIO_next
	testq	%r15, %r15
	je	LBB0_19
## %bb.1:
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_BIO_clear_retry_flags
	movl	(%r15), %ebx
	movl	4(%r15), %eax
	subl	%eax, %ebx
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	8(%r15), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_BIO_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15), %eax
	addl	%r14d, %eax
	movl	%eax, 4(%r15)
	subl	%r14d, %ebx
	jg	LBB0_3
LBB0_5:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.6:
	testl	%r12d, %r12d
	jle	LBB0_19
## %bb.7:
	movl	$0, 4(%r15)
	movq	_ENC_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movl	%r12d, %eax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movslq	%r14d, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addq	%rax, %rbx
	movq	$0, (%r15)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	_ENC_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	jle	LBB0_22
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movl	(%rcx), %r14d
	cmpl	%r14d, %eax
	cmovll	%eax, %r14d
	movl	24(%r15), %edi
	movq	8(%r15), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	movl	%eax, %r12d
	callq	_EVP_CipherUpdate
	testl	%eax, %eax
	je	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	subl	%r14d, %r12d
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	$0, 4(%r15)
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	8(%r15), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_BIO_write
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	4(%r15), %eax
	addl	%r12d, %eax
	movl	%eax, 4(%r15)
	subl	%r12d, %ebx
	jg	LBB0_12
	jmp	LBB0_8
LBB0_16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BIO_copy_next_retry
	jmp	LBB0_20
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BIO_copy_next_retry
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	subl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	cmovel	%r12d, %r14d
	jmp	LBB0_20
LBB0_21:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BIO_clear_retry_flags
	movq	$0, 16(%r15)
LBB0_19:
	xorl	%r14d, %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BIO_copy_next_retry
	movl	%r12d, %r14d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENC_BLOCK_SIZE,4,2             ## @ENC_BLOCK_SIZE
	.no_dead_strip	_enc_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enc_write
_enc_write:                             ; @enc_write
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_BIO_get_data
	mov	x21, x0
	mov	x0, x20
	bl	_BIO_next
	mov	w24, #0
	cbz	x21, LBB0_16
; %bb.1:
	mov	x23, x0
	cbz	x0, LBB0_16
; %bb.2:
	mov	x0, x20
	bl	_BIO_clear_retry_flags
	ldp	w9, w8, [x21]
	sub	w25, w9, w8
	cmp	w25, #1
	b.lt	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	add	x1, x9, w8, sxtw #2
	mov	x0, x23
	mov	x2, x25
	bl	_BIO_write
	mov	x24, x0
	cmp	w0, #0
	b.le	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21, #4]
	add	w8, w8, w24
	str	w8, [x21, #4]
	sub	w25, w25, w24
	cmp	w25, #0
	b.gt	LBB0_3
LBB0_5:
	mov	w24, #0
	cbz	x22, LBB0_16
; %bb.6:
	cmp	w19, #1
	b.lt	LBB0_16
; %bb.7:
	str	wzr, [x21, #4]
Lloh0:
	adrp	x28, _ENC_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _ENC_BLOCK_SIZE@GOTPAGEOFF]
	mov	x27, x19
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, w24, sxtw
	str	xzr, [x21]
	cmp	w27, #0
	b.le	LBB0_18
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w8, [x28]
	cmp	w27, w8
	csel	w24, w27, w8, lt
	ldr	w0, [x21, #24]
	ldr	x1, [x21, #8]
	mov	x2, x21
	mov	x3, x22
	mov	x4, x24
	bl	_EVP_CipherUpdate
	cbz	w0, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w27, w27, w24
	str	wzr, [x21, #4]
	ldr	w25, [x21]
	cmp	w25, #1
	b.lt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #0
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x21, #8]
	add	x1, x9, w8, sxtw #2
	mov	x0, x23
	mov	x2, x25
	bl	_BIO_write
	mov	x26, x0
	cmp	w0, #0
	b.le	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	sub	w25, w25, w26
	ldr	w8, [x21, #4]
	add	w8, w8, w26
	str	w8, [x21, #4]
	cmp	w25, #0
	b.gt	LBB0_12
	b	LBB0_8
LBB0_14:
	mov	x0, x20
	bl	_BIO_copy_next_retry
	b	LBB0_16
LBB0_15:
	mov	x0, x20
	bl	_BIO_copy_next_retry
	subs	w8, w19, w27
	csel	w24, w26, w8, eq
LBB0_16:
	mov	x0, x24
	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
LBB0_17:
	mov	x0, x20
	bl	_BIO_clear_retry_flags
	mov	w24, #0
	str	xzr, [x21, #16]
	b	LBB0_16
LBB0_18:
	mov	x0, x20
	bl	_BIO_copy_next_retry
	mov	x24, x19
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENC_BLOCK_SIZE,4,2             ; @ENC_BLOCK_SIZE
	.no_dead_strip	_enc_write
.subsections_via_symbols
