	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enc_ctrl
_enc_ctrl:                              ## @enc_ctrl
	.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
	movq	%rcx, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_BIO_get_data
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_BIO_next
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	leal	-128(%r14), %eax
	cmpl	$8, %eax
	ja	LBB0_7
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movslq	(%rbx), %r14
	jmp	LBB0_5
LBB0_7:
	movq	%r12, %rdi
	movl	%r14d, %esi
	jmp	LBB0_23
LBB0_8:
	movq	24(%rbx), %rax
	movq	%rax, (%r15)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_BIO_set_init
	movl	$1, %r14d
	jmp	LBB0_5
LBB0_9:
	movq	%r13, %rdi
	callq	_BIO_clear_retry_flags
	movq	%r12, %rdi
	movl	$130, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_BIO_ctrl
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_BIO_copy_next_retry
	movq	%rbx, %rax
	jmp	LBB0_6
LBB0_10:
	movq	8(%rbx), %r14
	subq	16(%rbx), %r14
	jg	LBB0_5
## %bb.11:
	movq	%r12, %rdi
	movl	$131, %esi
	jmp	LBB0_23
LBB0_12:
	movq	$1, (%rbx)
	movq	24(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_CTX_encrypting
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%eax, %r9d
	callq	_EVP_CipherInit_ex
	testl	%eax, %eax
	je	LBB0_5
## %bb.13:
	movq	%r12, %rdi
	movl	$132, %esi
	jmp	LBB0_23
LBB0_14:
	movq	8(%rbx), %r14
	subq	16(%rbx), %r14
	jg	LBB0_5
## %bb.15:
	movq	%r12, %rdi
	movl	$133, %esi
	jmp	LBB0_23
LBB0_16:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	addq	$8, %r15
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_enc_write
	testl	%eax, %eax
	js	LBB0_29
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$0, 4(%rbx)
	jne	LBB0_30
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$1, 4(%rbx)
	movq	$0, 16(%rbx)
	movq	24(%rbx), %rdi
	movq	32(%rbx), %rsi
	movq	%r15, %rdx
	callq	_EVP_CipherFinal_ex
	movq	%rax, %r14
	movl	%r14d, (%rbx)
	testq	%rax, %rax
	jg	LBB0_18
	jmp	LBB0_5
LBB0_21:
	cmpl	$0, 40(%rbx)
	jle	LBB0_28
## %bb.22:
	movq	%r12, %rdi
	movl	$135, %esi
LBB0_23:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BIO_ctrl                       ## TAILCALL
LBB0_25:
	movq	%r15, %r12
	movq	%r15, %rdi
	callq	_BIO_get_data
	movq	%rax, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.26:
	movq	24(%rbx), %rsi
	movq	%rax, %rdi
	callq	_EVP_CIPHER_CTX_copy
	testq	%rax, %rax
	je	LBB0_4
## %bb.27:
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_BIO_set_init
	jmp	LBB0_5
LBB0_4:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r14, %rax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movl	$1, %r14d
	jmp	LBB0_5
LBB0_29:
	movslq	%eax, %r14
	jmp	LBB0_5
LBB0_30:
	movq	%r12, %rdi
	movl	$134, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_24
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_21
	.long	L0_0_set_25
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_enc_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function enc_ctrl
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_enc_ctrl:                              ; @enc_ctrl
	.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	x19, x3
	mov	x20, x2
	mov	x24, x1
	mov	x23, x0
	bl	_BIO_get_data
	mov	x22, x0
	mov	x0, x23
	bl	_BIO_next
	cbz	x22, LBB0_24
; %bb.1:
	mov	x21, x0
	sub	w8, w24, #128
	cmp	w8, #8
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldrsw	x24, [x22]
	b	LBB0_25
LBB0_4:
	mov	x0, x21
	mov	x1, x24
	b	LBB0_29
LBB0_5:
	ldr	x8, [x22, #24]
	str	x8, [x19]
	mov	w24, #1
	mov	x0, x23
	b	LBB0_23
LBB0_6:
	mov	x0, x23
	bl	_BIO_clear_retry_flags
	mov	x0, x21
	mov	w1, #130
	mov	x2, x20
	mov	x3, x19
	bl	_BIO_ctrl
	mov	x19, x0
	mov	x0, x23
	bl	_BIO_copy_next_retry
	mov	x0, x19
	b	LBB0_26
LBB0_7:
	ldp	x8, x9, [x22, #8]
	sub	x24, x8, x9
	cmp	x24, #0
	b.gt	LBB0_25
; %bb.8:
	mov	x0, x21
	mov	w1, #131
	b	LBB0_29
LBB0_9:
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x22]
	ldr	x22, [x22, #24]
	mov	x0, x22
	bl	_EVP_CIPHER_CTX_encrypting
	mov	x5, x0
	mov	x0, x22
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_EVP_CipherInit_ex
	cbz	w0, LBB0_24
; %bb.10:
	mov	x0, x21
	mov	w1, #132
	b	LBB0_29
LBB0_11:
	ldp	x8, x9, [x22, #8]
	sub	x24, x8, x9
	cmp	x24, #0
	b.gt	LBB0_25
; %bb.12:
	mov	x0, x21
	mov	w1, #133
	b	LBB0_29
LBB0_13:
	add	x25, x22, #8
	mov	w26, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x23
	mov	x1, #0
	mov	w2, #0
	bl	_enc_write
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_27
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x22, #8]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x22, #4]
	cbnz	w8, LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	str	w26, [x22, #4]
	str	xzr, [x22, #16]
	ldp	x0, x1, [x22, #24]
	mov	x2, x25
	bl	_EVP_CipherFinal_ex
	mov	x24, x0
	str	w24, [x22]
	cmp	x0, #1
	b.ge	LBB0_15
	b	LBB0_25
LBB0_18:
	ldr	w8, [x22, #40]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.19:
	mov	x0, x21
	mov	w1, #135
	b	LBB0_29
LBB0_20:
	mov	x0, x19
	bl	_BIO_get_data
	mov	x20, x0
	bl	_EVP_CIPHER_CTX_new
	str	x0, [x20, #24]
	cbz	x0, LBB0_24
; %bb.21:
	ldr	x1, [x22, #24]
	bl	_EVP_CIPHER_CTX_copy
	mov	x24, x0
	cbz	x0, LBB0_25
; %bb.22:
	mov	x0, x19
LBB0_23:
	mov	w1, #1
	bl	_BIO_set_init
	b	LBB0_25
LBB0_24:
	mov	x24, #0
LBB0_25:
	mov	x0, x24
LBB0_26:
	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_27:
	sxtw	x24, w0
	b	LBB0_25
LBB0_28:
	mov	x0, x21
	mov	w1, #134
LBB0_29:
	mov	x2, x20
	mov	x3, x19
	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
	b	_BIO_ctrl
LBB0_30:
	mov	w24, #1
	b	LBB0_25
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_18-LBB0_3)>>2
	.byte	(LBB0_20-LBB0_3)>>2
                                        ; -- End function
	.no_dead_strip	_enc_ctrl
.subsections_via_symbols
