	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_enc                       ## -- Begin function ssl3_enc
	.p2align	4, 0x90
_ssl3_enc:                              ## @ssl3_enc
	.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
	xorl	%r14d, %r14d
	cmpq	$1, %rdx
	jne	LBB0_11
## %bb.1:
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	movq	24(%r12), %r13
	testq	%r13, %r13
	jne	LBB0_4
	jmp	LBB0_10
LBB0_3:
	movq	16(%r12), %r13
	testq	%r13, %r13
	je	LBB0_10
LBB0_4:
	movq	%r13, %rdi
	callq	_EVP_CIPHER_CTX_cipher
	cmpq	$0, 8(%r12)
	je	LBB0_10
## %bb.5:
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	16(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_EVP_CIPHER_CTX_block_size
	testl	%r15d, %r15d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.7:
	movq	%rax, %rcx
	cmpq	$1, %rax
	je	LBB0_13
## %bb.8:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_14
## %bb.9:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_15
LBB0_10:
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdx
	callq	_memmove
	movq	(%rbx), %rax
	movq	%rax, 8(%rbx)
	movl	$1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%r15d, %r15d
	jne	LBB0_17
	jmp	LBB0_21
LBB0_14:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_15:
	movq	%rcx, %r15
	subq	%rdx, %r15
	addq	%r15, %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	addq	16(%rbx), %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_memset
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%r15, 16(%rbx)
	decb	%r15b
	movq	8(%rbx), %rax
	movb	%r15b, -1(%rax,%rcx)
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_21
LBB0_17:
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	movq	%r13, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_EVP_Cipher
	movl	$-1, %r14d
	testl	%eax, %eax
	jle	LBB0_11
## %bb.18:
	movl	(%r12), %edi
	callq	_EVP_MD_CTX_md
	testq	%rax, %rax
	je	LBB0_24
## %bb.19:
	movl	(%r12), %edi
	callq	_EVP_MD_CTX_size
	testl	%eax, %eax
	js	LBB0_28
## %bb.20:
	movl	%eax, %edx
	jmp	LBB0_25
LBB0_21:
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.22:
	movq	%rcx, %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_29
## %bb.23:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	testq	%rdx, %rdx
	jne	LBB0_11
	jmp	LBB0_17
LBB0_24:
	xorl	%edx, %edx
LBB0_25:
	movl	$1, %r14d
	testl	%r15d, %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_11
## %bb.26:
	cmpq	$1, %rax
	je	LBB0_11
## %bb.27:
	movq	%rax, %rsi
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ssl3_cbc_remove_padding        ## TAILCALL
LBB0_28:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL3_ENC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_SSLfatal
	jmp	LBB0_11
LBB0_29:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_11
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL3_ENC,4,2             ## @SSL_F_SSL3_ENC
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_enc                       ; -- Begin function ssl3_enc
	.p2align	2
_ssl3_enc:                              ; @ssl3_enc
	.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
	cmp	x2, #1
	b.ne	LBB0_17
; %bb.1:
	mov	x20, x3
	mov	x19, x1
	mov	x21, x0
	cbz	w3, LBB0_3
; %bb.2:
	ldr	x23, [x21, #24]
	cbnz	x23, LBB0_4
	b	LBB0_14
LBB0_3:
	ldr	x23, [x21, #16]
	cbz	x23, LBB0_14
LBB0_4:
	mov	x0, x23
	bl	_EVP_CIPHER_CTX_cipher
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_14
; %bb.5:
	cbz	x0, LBB0_14
; %bb.6:
	ldr	x24, [x19, #16]
	mov	x0, x23
	bl	_EVP_CIPHER_CTX_block_size
	mov	x22, x0
	cbz	w20, LBB0_9
; %bb.7:
	cmp	x22, #1
	b.eq	LBB0_9
; %bb.8:
	udiv	x8, x24, x22
	neg	x9, x24
	madd	x8, x8, x22, x9
	add	x25, x22, x8
	add	x24, x25, x24
	ldp	x8, x9, [x19, #8]
	add	x0, x8, x9
	mov	w1, #0
	mov	x2, x25
	bl	_memset
	ldp	x9, x8, [x19, #8]
	add	x8, x8, x25
	str	x8, [x19, #16]
	sub	w8, w25, #1
	add	x9, x24, x9
	sturb	w8, [x9, #-1]
LBB0_9:
	cbz	w20, LBB0_15
LBB0_10:
	ldp	x1, x2, [x19]
	mov	x0, x23
	mov	x3, x24
	bl	_EVP_Cipher
	cmp	w0, #1
	b.lt	LBB0_24
; %bb.11:
	ldr	w0, [x21]
	bl	_EVP_MD_CTX_md
	cbz	x0, LBB0_19
; %bb.12:
	ldr	w0, [x21]
	bl	_EVP_MD_CTX_size
	tbnz	w0, #31, LBB0_23
; %bb.13:
	mov	w2, w0
	b	LBB0_20
LBB0_14:
	ldp	x0, x1, [x19]
	ldr	x2, [x19, #16]
	bl	_memmove
	ldr	x8, [x19]
	str	x8, [x19, #8]
	mov	w0, #1
	b	LBB0_18
LBB0_15:
	cbz	x24, LBB0_17
; %bb.16:
	udiv	x8, x24, x22
	msub	x8, x8, x22, x24
	cbz	x8, LBB0_10
LBB0_17:
	mov	w0, #0
LBB0_18:
	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_19:
	mov	x2, #0
LBB0_20:
	mov	w0, #1
	cbnz	w20, LBB0_18
; %bb.21:
	cmp	x22, #1
	b.eq	LBB0_18
; %bb.22:
	mov	x0, x19
	mov	x1, x22
	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	_ssl3_cbc_remove_padding
LBB0_23:
Lloh0:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SSL_F_SSL3_ENC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_SSL3_ENC@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_SSLfatal
LBB0_24:
	mov	w0, #-1
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SSL3_ENC,4,2             ; @SSL_F_SSL3_ENC
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
.subsections_via_symbols
