	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cipher_crypt                   ## -- Begin function cipher_crypt
	.p2align	4, 0x90
_cipher_crypt:                          ## @cipher_crypt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %eax
	movq	_CFLAG_CHACHAPOLY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	16(%rbp), %eax
	leaq	28(%rbx), %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	pushq	8(%rbx)
	pushq	%rax
	callq	_chachapoly_crypt
	addq	$24, %rsp
	jmp	LBB0_10
LBB0_2:
	movq	_CFLAG_NONE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	addl	%r14d, %r13d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	movq	_CFLAG_AESCTR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.5:
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
LBB0_7:
	addq	$24, %rbx
	movslq	%r13d, %rax
	leaq	(%r15,%rax,4), %rsi
	leaq	(%r12,%rax,4), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_aesctr_encrypt_bytes
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFLAG_CHACHAPOLY,4,2           ## @CFLAG_CHACHAPOLY
	.comm	_CFLAG_NONE,4,2                 ## @CFLAG_NONE
	.comm	_CFLAG_AESCTR,4,2               ## @CFLAG_AESCTR
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.comm	_EVP_CTRL_GCM_GET_TAG,4,2       ## @EVP_CTRL_GCM_GET_TAG
	.comm	_EVP_CTRL_GCM_IV_GEN,4,2        ## @EVP_CTRL_GCM_IV_GEN
	.comm	_EVP_CTRL_GCM_SET_TAG,4,2       ## @EVP_CTRL_GCM_SET_TAG
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_SSH_ERR_MAC_INVALID,4,2        ## @SSH_ERR_MAC_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cipher_crypt                   ; -- Begin function cipher_crypt
	.p2align	2
_cipher_crypt:                          ; @cipher_crypt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x5
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _CFLAG_CHACHAPOLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CFLAG_CHACHAPOLY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x0, x23, #28
	ldr	x7, [x23, #8]
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	mov	x5, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_chachapoly_crypt
LBB0_2:
Lloh3:
	adrp	x9, _CFLAG_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CFLAG_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	add	w2, w21, w19
	mov	x0, x22
	mov	x1, x20
	bl	_memcpy
	mov	w0, #0
	b	LBB0_9
LBB0_4:
Lloh6:
	adrp	x9, _CFLAG_AESCTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CFLAG_AESCTR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	cbz	w21, LBB0_7
; %bb.6:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
LBB0_7:
	add	x0, x23, #24
	sbfiz	x8, x21, #2, #32
	add	x1, x20, x8
	add	x2, x22, x8
	mov	x3, x19
	bl	_aesctr_encrypt_bytes
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CFLAG_CHACHAPOLY,4,2           ; @CFLAG_CHACHAPOLY
	.comm	_CFLAG_NONE,4,2                 ; @CFLAG_NONE
	.comm	_CFLAG_AESCTR,4,2               ; @CFLAG_AESCTR
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_EVP_CTRL_GCM_GET_TAG,4,2       ; @EVP_CTRL_GCM_GET_TAG
	.comm	_EVP_CTRL_GCM_IV_GEN,4,2        ; @EVP_CTRL_GCM_IV_GEN
	.comm	_EVP_CTRL_GCM_SET_TAG,4,2       ; @EVP_CTRL_GCM_SET_TAG
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_SSH_ERR_MAC_INVALID,4,2        ; @SSH_ERR_MAC_INVALID
.subsections_via_symbols
